UNPKG

ttk-app-core

Version:
19 lines (15 loc) 738 B
/** * webapi.js 封装app所需的所有web请求 * 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app */ import { fetch } from 'edf-utils' export default { customer: { getCode: () => fetch.post('/v1/ba/basearchive/getAutoCode', { archiveName: 'ba_customer' }), query: (id) => fetch.post('/v1/ba/customer/query', { id }), create: (option) => fetch.post('/v1/ba/customer/create', option), update: (option) => fetch.post('/v1/ba/customer/update', option), queryList: (option) => fetch.post('/v1/ba/customer/queryList', option), account: (option) => fetch.post('/v1/gl/account/query', {isEnable: true, isEndNode: true }), } }