123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- //路径
- const root = "http://127.0.0.1:9999";
- //接口auth
- const api = {
- user: {
- list: `${root}/user/list`,
- add: `${root}/user/add`,
- update: `${root}/user/update`,
- detail: `${root}/user/detail`,
- delete: `${root}/user/delete`,
- batchDelete: `${root}/user/batchDelete`,
- bindRole: `${root}/user/bindRole`,
- bindOperator: `${root}/user/bindOperator`,
- },
- operator: {
- list: `${root}/operator/list`,
- add: `${root}/operator/add`,
- update: `${root}/operator/update`,
- detail: `${root}/operator/detail`,
- delete: `${root}/operator/delete`,
- batchDelete: `${root}/operator/batchDelete`
- },
- project: {
- list: `${root}/project/list`,
- operatorList: `${root}/project/operatorList`,
- add: `${root}/project/add`,
- update: `${root}/project/update`,
- detail: `${root}/project/detail`,
- delete: `${root}/project/delete`,
- batchDelete: `${root}/project/batchDelete`
- },
- gateway: {
- list: `${root}/gateway/list`,
- add: `${root}/gateway/add`,
- update: `${root}/gateway/update`,
- detail: `${root}/gateway/detail`,
- delete: `${root}/gateway/delete`,
- batchDelete: `${root}/gateway/batchDelete`
- },
- device: {
- list: `${root}/device/list`,
- add: `${root}/device/add`,
- update: `${root}/device/update`,
- detail: `${root}/device/detail`,
- delete: `${root}/device/delete`,
- batchDelete: `${root}/device/batchDelete`,
- },
- deviceParam: {
- list: `${root}/deviceParam/list`,
- add: `${root}/deviceParam/add`,
- update: `${root}/deviceParam/update`,
- updateParam: `${root}/deviceParam/updateParam`,
- detail: `${root}/deviceParam/detail`,
- delete: `${root}/deviceParam/delete`,
- batchDelete: `${root}/deviceParam/batchDelete`,
- getTimeData: `${root}/deviceParam/getTimeData`,
- },
- deviceAlarmRecord: {
- list: `${root}/deviceAlarmRecord/list`,
- add: `${root}/deviceAlarmRecord/add`,
- update: `${root}/deviceAlarmRecord/update`,
- detail: `${root}/deviceAlarmRecord/detail`,
- delete: `${root}/deviceAlarmRecord/delete`,
- batchDelete: `${root}/deviceAlarmRecord/batchDelete`,
- },
- deviceAlarmConfig: {
- list: `${root}/deviceAlarmConfig/list`,
- add: `${root}/deviceAlarmConfig/add`,
- update: `${root}/deviceAlarmConfig/update`,
- detail: `${root}/deviceAlarmConfig/detail`,
- delete: `${root}/deviceAlarmConfig/delete`,
- batchDelete: `${root}/deviceAlarmConfig/batchDelete`,
- },
- deviceAlarmRepairRecord: {
- list: `${root}/deviceAlarmRepairRecord/list`,
- add: `${root}/deviceAlarmRepairRecord/add`,
- update: `${root}/deviceAlarmRepairRecord/update`,
- detail: `${root}/deviceAlarmRepairRecord/detail`,
- delete: `${root}/deviceAlarmRepairRecord/delete`,
- batchDelete: `${root}/deviceAlarmRepairRecord/batchDelete`,
- },
- operatorLog: {
- list: `${root}/operatorLog/list`,
- add: `${root}/operatorLog/add`,
- update: `${root}/operatorLog/update`,
- detail: `${root}/operatorLog/detail`,
- delete: `${root}/operatorLog/delete`,
- batchDelete: `${root}/operatorLog/batchDelete`,
- },
- auth: {
- verifyCode: `${root}/auth/verifyCode`,
- login: `${root}/auth/login`,
- updateUserPassword: `${root}/auth/updateUserPassword`,
- userInfo: `${root}/auth/userInfo`,
- logout: `${root}/auth/logout`,
- },
- role: {
- list: `${root}/role/list`,
- add: `${root}/role/add`,
- update: `${root}/role/update`,
- detail: `${root}/role/detail`,
- delete: `${root}/role/delete`,
- },
- power: {
- list: `${root}/power/list`,
- add: `${root}/power/add`,
- update: `${root}/power/update`,
- detail: `${root}/power/detail`,
- delete: `${root}/power/delete`,
- },
- rolePower: {
- list: `${root}/rolePower/list`,
- add: `${root}/rolePower/add`,
- update: `${root}/rolePower/update`,
- detail: `${root}/rolePower/detail`,
- delete: `${root}/rolePower/delete`,
- },
- menu: {}
- };
- export default Object.assign({
- $base: {
- root: root,
- },
- },
- api
- )
|