Browse Source

feat:返回性别

zhanghui 3 months ago
parent
commit
74bf7b39bd

+ 1 - 0
src/main/java/org/springblade/modules/api/controller/UserCenterController.java

@@ -104,6 +104,7 @@ public class UserCenterController extends BladeController {
 		vo.setAvatar(user.getAvatar());
 		vo.setRealName(user.getRealName());
 		vo.setName(user.getName());
+		vo.setSex(user.getSex());
 		vo.setSexDisplayName(DictCache.getValue(DictEnum.SEX, user.getSex()));
 		vo.setStateDisplayName(DictBizCache.getValue(DictBizEnum.USER_STATE, query.getState()));
 		vo.setUsername(user.getAccount());