UNPKG

ttk-app-core

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