fuliqi
2024-01-24 29c1e7eb5ac16e90d8991a86c1c071bc312ec8d9
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
import service from './service'
 
// 获取当前用户的系统
export class AccountManageApi {
  getList = (showLoading = true) => {
    return service.get('/gyl-base-service/sysAuthority/userSyetem', { showLoading })
  }
  /**
 *获取用户列表
 * @param {*} param
 *
 */
  queryUserList = (param, showLoading = true) => {
    return service.post('/gyl-base-service/sysUser/queryUser', param, showLoading)
  }
  /**
  *addUser添加用户
  * @param {*} param
  *
  */
  addUser = (param, showLoading = true) => {
    return service.post('/gyl-base-service/sysUser/addUser', param, showLoading)
  }
  /**
  *获取系统角色
  * @param {*} param
  *
  */
  getRoleIds = (params, showLoading = true) => {
    return service.get('/gyl-base-service/sysAuthority/getRoleIds', { params, showLoading })
  }
  /**
   * 绑定用户角色:
   * /sysAuthority/bindUserRole
   */
  bindUserRole = (param) => {
    return service.post('/gyl-base-service/sysAuthority/bindUserRole', param)
  }
  /**
   * 解绑所有角色:
   */
   unBindUserRole = (param) => {
    return service.post('/gyl-base-service/sysAuthority/unBindUserRole', param)
  }
}
export default new AccountManageApi()