UNPKG

ttk-app-core

Version:

@ttk/recat enterprise develop framework

16 lines (15 loc) 1.03 kB
/** * webapi.js 封装app所需的所有web请求 * 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app */ import {fetch} from '@ttk/utils' const proxy = '/mock' export default { delDic: (option) => fetch.post(`${proxy}/gateway/org/back/functionService/deleteFunctionDTOByFunId`, option), getTreeData: (option) => fetch.post(`${proxy}/gateway/org/back/functionService/querySecFunctionDTOTree`, option), getBusTypeArr: (option) => fetch.post(`${proxy}/gateway/system/back/sysDicItemService/sysDicItemByCodes`, option), findById: (option) => fetch.post(`${proxy}/gateway/org/back/functionService/querySecFunctionDTOByFunctionId`, option), create: (option) => fetch.post(`${proxy}/gateway/org/back/functionService/addFunctionInfo`, option), update: (option) => fetch.post(`${proxy}/gateway/org/back/functionService/insertFunctionInfo`, option), validateFunctionCode: (option) => fetch.post(`${proxy}/gateway/org/back/functionService/validateFunctionCode`, option), }