diff --git a/snowy-plugin/snowy-plugin-sys/src/main/java/vip/xiaonuo/sys/modular/user/service/SysUserService.java b/snowy-plugin/snowy-plugin-sys/src/main/java/vip/xiaonuo/sys/modular/user/service/SysUserService.java index 09617a68..6738de1d 100644 --- a/snowy-plugin/snowy-plugin-sys/src/main/java/vip/xiaonuo/sys/modular/user/service/SysUserService.java +++ b/snowy-plugin/snowy-plugin-sys/src/main/java/vip/xiaonuo/sys/modular/user/service/SysUserService.java @@ -486,4 +486,12 @@ public interface SysUserService extends IService { * @date 2023/6/25 11:03 **/ List getRoleListByIdList(SysUserIdListParam sysUserIdListParam); + + /** + * 根据id获取头像 + * + * @author xuyuxiang + * @date 2023/8/28 10:10 + **/ + String getAvatarById(SysUserIdParam sysUserIdParam); } diff --git a/snowy-plugin/snowy-plugin-sys/src/main/java/vip/xiaonuo/sys/modular/user/service/impl/SysUserServiceImpl.java b/snowy-plugin/snowy-plugin-sys/src/main/java/vip/xiaonuo/sys/modular/user/service/impl/SysUserServiceImpl.java index 71963542..a2817d95 100644 --- a/snowy-plugin/snowy-plugin-sys/src/main/java/vip/xiaonuo/sys/modular/user/service/impl/SysUserServiceImpl.java +++ b/snowy-plugin/snowy-plugin-sys/src/main/java/vip/xiaonuo/sys/modular/user/service/impl/SysUserServiceImpl.java @@ -1594,4 +1594,9 @@ public class SysUserServiceImpl extends ServiceImpl impl .in(SysRole::getId, sysUserIdListParam.getIdList()).orderByAsc(SysRole::getSortCode); return sysRoleService.list(lambdaQueryWrapper); } + + @Override + public String getAvatarById(SysUserIdParam sysUserIdParam) { + return this.detail(sysUserIdParam).getAvatar(); + } }