feat(系统管理-用户管理): 登录限制以及解锁用户

This commit is contained in:
fit2cloud-chenyw
2022-09-20 14:26:15 +08:00
parent 5765be7af1
commit f2c238798d
20 changed files with 418 additions and 122 deletions

View File

@@ -9,7 +9,8 @@ const pathMap = {
createPath: '/api/user/create',
updatePath: '/api/user/update',
editPasswordPath: '/api/user/adminUpdatePwd',
editStatusPath: '/api/user/updateStatus'
editStatusPath: '/api/user/updateStatus',
unlockPath: '/api/user/unlock/'
}
export function userLists(page, size, data) {
return request({
@@ -133,4 +134,12 @@ export function existLdapUsers() {
})
}
export default { editPassword, delUser, editUser, addUser, userLists, editStatus, personInfo, updatePerson, updatePersonPwd, allRoles, roleGrid, ldapUsers, saveLdapUser, existLdapUsers }
export function unLock(username) {
return request({
url: pathMap.unlockPath + username,
method: 'post',
loading: false
})
}
export default { editPassword, delUser, editUser, addUser, userLists, editStatus, personInfo, updatePerson, updatePersonPwd, allRoles, roleGrid, ldapUsers, saveLdapUser, existLdapUsers, unLock }