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()