ttk-app-core
Version:
enterprise develop framework
17 lines (14 loc) • 687 B
JavaScript
/**
* webapi.js 封装app所需的所有web请求
* 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app
*/
import { fetch } from 'edf-utils'
export default {
incomeexpenses: {
queryCategory: () => fetch.post('/v1/biz/core/businessType/queryCategory'),
queryChild: (option) => fetch.post('/v1/biz/core/businessType/queryChild', option),
delete: (option) => fetch.post('/v1/biz/core/businessType/delete', option),
deleteBatch: (option) => fetch.post('/v1/biz/core/businessType/deleteBatch', option),
update: (option) => fetch.post('/v1/biz/core/businessType/update', option),
}
}