UNPKG

ttk-app-core

Version:
38 lines (35 loc) 1.33 kB
/** * webapi.js 封装app所需的所有web请求 * 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app */ import { fetch, fetch2 } from 'edf-utils' export default { user: { login: (option) => fetch.post('/v1/edf/user/login', option), existsMobile: (mobile) => fetch.post('/v1/edf/user/existsMobile', { mobile }) }, connector: { accessLogin: (option) => fetch.post('/v1/edf/connector/accessLogin', option) }, tplus: { common: (option = { "appName": "Tplus12.4", "dbHost": "127.0.0.1", "dbPort": "3433", "dbUsername": "sa", "dbPassword": "15010365441", "dbVersion": "sqlserver2012", "bsAppHost": "127.0.0.1", "bsAppPort": "80", "foreseeClientHost": "127.0.0.1", "appUserName": "15010365441", "appPassword": "15010365441", "appAccountNumber": "0001", "appLoginDate": "2018/07/30", "ttkUserName": "15010365441", "ttkPassword": "15010365441", "ttkOrgId": "15010365441", "ttkLoginDate": "2018/07/30" }) => fetch2.post({ path: 'http://172.16.10.101:8867/common/config/Save',option }) } }