feat(用户身份): 通过用户名查询用户下第一个身份调整为内部调用(直接从getInfo获取)

This commit is contained in:
OTTO 2024-09-05 14:26:49 +08:00
parent 3e2a87bff5
commit 995062087e
1 changed files with 2 additions and 1 deletions

View File

@ -228,7 +228,8 @@ public class SysUserDeptRoleController extends BaseController {
/**
* 通过用户名查询用户下第一个身份
*/
@ApiOperation(value = "通过用户名查询用户下第一个身份")
@ApiOperation(value = "通过用户名查询用户下第一个身份", hidden = true)
@InnerAuth
@GetMapping("/getFirstUserIdentity/{userName}")
public R<SysUserDeptRole> getFirstUserIdentity(@PathVariable("userName") String userName) {
SysUserDeptRole userIdentity = sysUserDeptRoleService.getFirstSysUserDeptRoleByUserName(userName);