---
group:
  title: 工具类 
title: 5.接口提示
---

## 接口返回异常提示语
```js
/**
 * @description 接口返回异常提示语
 * @params {String或Object} type 指操作的类型：
 *   @value {String} 值有 删除:'delete' 修改:'update'  新增:'create'
 *   @value {Object} { success: 'xxx成功提示语'}
 *
 * @params {Object} res 接口返回数据
 * @params {Function} callback 事件回调
 * */

import { responseControl } from 'fan-standard-comp';
```
| 方法名      | 类型 |   说明 |
|----------|------|---------|
| responseControl | Function(type?: any, res?: any, ?: (res: any) => void)| 接口返回异常提示语 |
| responseQuery | Function(res?: any, callback?: (res: any) => void)| 接口返回正常回调判断 |
