ttk-app-core
Version:
enterprise develop framework
18 lines (15 loc) • 881 B
JavaScript
/**
* webapi.js 封装app所需的所有web请求
* 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app
*/
import { fetch, fetchCors } from 'edf-utils'
export default {
tplus: {
create: (url, option, options) => fetchCors.post(url, option, options),//生成凭证
auditBatchForTPlusSa: (option) => fetch.post('/v1/biz/scm/sa/delivery/auditBatchForTPlus', option),//
updateBatchForTPlusSa: (option) => fetch.post('/v1/biz/scm/sa/delivery/updateBatchForTPlus', option),//
auditBatchForTPlusPu: (option) => fetch.post('v1/biz/scm/pu/arrival/auditBatchForTPlus', option),//
updateBatchForTPluPu: (option) => fetch.post('/v1/biz/scm/pu/arrival/updateBatchForTPlus', option),//
configQuery: (option) => fetch.post('/v1/edf/linkConfig/query', option),//查询配置
}
}