ttk-app-core
Version:
enterprise develop framework
26 lines (23 loc) • 1.09 kB
JavaScript
/**
* webapi.js 封装app所需的所有web请求
* 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app
*/
import { fetch } from 'edf-utils'
export default {
getEnumData: {
basicEnum: (enumId) => fetch.post('/v1/edf/enumDetail/batchQuery', enumId),
taxEnum: (option) => fetch.post('v1/edf/enum/findEnumMapIncludeDetails', option)
},
org: {
modify: () => fetch.post('/v1/edf/org/canModifyEnterpriseProperty'),
query: () => fetch.post('/v1/edf/org/queryAll'),
updatePeriod: (option) => fetch.post('/v1/edf/org/checkCanUpdatePeriod', option),
existsSysOrg: (option) => fetch.post('/v1/edf/sysOrg/existsSysOrg', option),
readOrgMessage: (option) => fetch.post('v1/edf/org/getNSRXX', option),
saveBasicInfo: (option) => fetch.post('/v1/edf/org/updateOrgInfo', option),
saveOrgInfo: (option) => fetch.post('/v1/edf/nsxx/createOrUpdate', option),
},
CAState: {
queryCAState: () => fetch.post('/v1/edf/dlxxca/isExistCa')
}
}