UNPKG

ttk-app-core

Version:

@ttk/recat enterprise develop framework

17 lines (16 loc) 1.09 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/departmentService/queryDepTreeByUserId`, option), getBusTypeArr: (option) => fetch.post(`${proxy}/gateway/system/back/sysDicItemService/sysDicItemByCodes`, option), findById: (option) => fetch.post(`${proxy}/gateway/org/back/functionService/querySecFunctionDTOByFunctionId`, option), tableData: (option) => fetch.post(`${proxy}/gateway/org/back/userService/query`, option), getUser: (option) => fetch.post(`${proxy}/gateway/org/back/userService/queryUserById`, option), save: (option) => fetch.post(`${proxy}/gateway/org/back/userService/createUser`, option), savePwd: (option) => fetch.post(`${proxy}/gateway/org/back/userService/superResetPassword`, option), }