Add role chang status (not finish)

This commit is contained in:
2023-11-12 22:53:22 +08:00
parent cb49a3d0a7
commit 7a9cd158de
10 changed files with 64 additions and 15 deletions

View File

@@ -10,6 +10,7 @@ import top.fatweb.api.entity.permission.PowerRole
import top.fatweb.api.entity.permission.Role
import top.fatweb.api.mapper.permission.RoleMapper
import top.fatweb.api.param.authentication.RoleAddParam
import top.fatweb.api.param.authentication.RoleChangeStatusParam
import top.fatweb.api.param.authentication.RoleGetParam
import top.fatweb.api.service.permission.IPowerRoleService
import top.fatweb.api.service.permission.IRoleService
@@ -59,4 +60,8 @@ class RoleServiceImpl(
return null
}
override fun changeStatus(roleChangeStatusParam: RoleChangeStatusParam): Boolean {
return updateById(RoleConverter.roleChangeStatusParamToRole(roleChangeStatusParam))
}
}