ins-user.js
3.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import { createApiObj } from './common'
const PROJECT_ROOT = '/ins-user'
/*渠道管理*/
export const API_CHANNEL_MANAGE = createApiObj([
'/channel/getParamChannel',
], PROJECT_ROOT)
/*组织机构管理*/
export const API_SYSORORG_MANAGE = createApiObj([
'/org/addOrg', //机构增加
'/org/deleteOrg', //机构删除
'/org/getOrgById', // 根据机构id查询
'/org/getOrgByName', // 根据机构名称查询
'/org/getOrgTreeList', // 机构树状图
'/org/updateOrg', // 机构修改
'/org/getChildsOrgByCode', // 根据code 查下级
], PROJECT_ROOT)
/*角色管理*/
export const API_ROLE_MANAGE = createApiObj([
'/role/getRoleAll', //获取所有角色
'/role/getRoleModuleByRoleId', //根据roledId获取角色模块
'/role/getRoleById', //根据id查询角色
'/role/addRole', //添加角色
'/role/deleteRole', //删除角色
'/role/deleteRoleModule', //根据id删除角色模块
'/role/addRoleModule', //添加角色模块
'/role/getRoleJurisdiction', //根据userId获取权限数据
'/role/getRoleParam', //角色模糊查询,状态,名称模糊
'/role/updateRole', //修改角色(名称和状态)
'/role/updateRoleModule', //修改角色相对应所有权限
'/role/getRoleGiveUser', // 多条件查询角色分配用户
'/role/getRoleNoGiveUser', // 多条件查询角色未分配的用户
'/role/deleteByRoleIdBatchUser', // 取消角色分配用户的授权
'/role/updateRoleAndModule', // 修改角色(包含模块数据)
], PROJECT_ROOT)
/*图片验证码*/
export const API_IMG_CODE = createApiObj([
'/imgCode/getImgCode', // 获取图片验证码
'/imgCode/verifyImgCode', // 获取图片验证码
], PROJECT_ROOT)
/*用户管理接口*/
export const API_USER_MANAGE = createApiObj([
'/user/getUserRoleByUserId', //用户角色查询,根据userId
'/user/addOrUpdUserRole', //添加用户角色
'/user/batchAddUserRole', // 批次添加用户角色
'/user/addUser', //添加用户
'/user/deleteUser', //删除用户
'/user/deleteUserRole', //根据用户id删除角色
'/user/getParamQuery', //用户信息多条件查询
'/user/getUserByid', //根据id获取用户信息
'/user/addUserRole', //添加用户角色
'/user/getUserRoleList', //查询所有的用户角色
'/user/login', //登录
'/user/logout', //登出
'/user/resetPassword', //重置密码
'/user/updPassword', //修改密码
'/user/updateUser', //修改密码
'/user/batchAddUserRole', //批量绑定角色
], PROJECT_ROOT)
/*菜单管理*/
export const API_MENU_MANAGE = createApiObj([
'/module/deleteModule', //菜单删除
'/module/getModuleByModuleId', //根据菜单ID查询菜单信息
'/module/getModuleList', // 菜单查询
'/module/getModuleTreeList', // 菜单树形结构查询
'/module/insertModule', // 菜单新增或修改
], PROJECT_ROOT)
// 客户端管理
export const API_CLIENT_MANAGE = createApiObj([
'/user/clientAuthorization', //客户端列表查询
'/user/enaDisAccount', //客户端授权 启用禁用操作
'/user/enaDisableClient', //客户端授权 设置终端
], PROJECT_ROOT)
// 参数设置
export const API_SYSPARAM_MANAGE = createApiObj([
'/sysParam/deleteSysParam', //参数删除
'/sysParam/getSysParamById', //根据参数ID查询参数信息
'/sysParam/getSysParamList', //参数分页查询
'/sysParam/insertSysParam', //参数新增或修改
'/sysParam/getParamKeyValueByKeyName', // 根据keyName查询keyValue
'/sysParam/refreshCacheOfParam', // 刷新缓存
], PROJECT_ROOT)