【新增】userCenter全局控制器中增加获取头像api

master
俞宝山 2025-01-12 17:44:56 +08:00
parent a04edce750
commit ebcdd75204
2 changed files with 13 additions and 0 deletions

View File

@ -486,4 +486,12 @@ public interface SysUserService extends IService<SysUser> {
* @date 2023/6/25 11:03
**/
List<SysRole> getRoleListByIdList(SysUserIdListParam sysUserIdListParam);
/**
* id
*
* @author xuyuxiang
* @date 2023/8/28 10:10
**/
String getAvatarById(SysUserIdParam sysUserIdParam);
}

View File

@ -1594,4 +1594,9 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
.in(SysRole::getId, sysUserIdListParam.getIdList()).orderByAsc(SysRole::getSortCode);
return sysRoleService.list(lambdaQueryWrapper);
}
@Override
public String getAvatarById(SysUserIdParam sysUserIdParam) {
return this.detail(sysUserIdParam).getAvatar();
}
}