feat: add public usdt user registration
This commit is contained in:
1 parent
2316d48224
commit
b52c8d7dbf
6 files changed
+245
No files matched your search
@@ -50,6 +50,14 @@ public interface ISysRoleService
|
||||
*/
|
||||
public SysRole selectRoleById(Long roleId);
|
||||
|
||||
/**
|
||||
* 通过角色权限字符查询角色配置。
|
||||
*
|
||||
* @param roleKey 角色权限字符
|
||||
* @return 角色信息,不存在时返回null
|
||||
*/
|
||||
public SysRole selectRoleByRoleKey(String roleKey);
|
||||
|
||||
/**
|
||||
* 校验角色名称是否唯一
|
||||
*
|
||||
|
||||
@@ -111,6 +111,18 @@ public class SysRoleServiceImpl implements ISysRoleService
|
||||
return roleMapper.selectRoleById(roleId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过角色权限字符查询角色。复用唯一性查询SQL,避免公开注册依赖固定角色ID。
|
||||
*
|
||||
* @param roleKey 角色权限字符
|
||||
* @return 角色信息
|
||||
*/
|
||||
@Override
|
||||
public SysRole selectRoleByRoleKey(String roleKey)
|
||||
{
|
||||
return roleMapper.checkRoleKeyUnique(roleKey);
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验角色名称是否唯一
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user