mirror of https://gitee.com/xiaonuobase/snowy
【新增】userCenter全局控制器中增加获取头像api
parent
a04edce750
commit
ebcdd75204
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue