This commit is contained in:
2024-08-23 13:15:28 +08:00
parent a3d49f8b91
commit 3f2dae8364
3 changed files with 13 additions and 1 deletions
+8
View File
@@ -30,6 +30,14 @@ func (r *User) GetUser(c *gin.Context) {
return
}
// 获取用户详情
userInfoDao := dao.UserInfoDao{}
_, err = userInfoDao.GetUserInfoByUserId(userId)
if err != nil || user == nil {
responses.FailWithMessage("用户数据错误", c)
return
}
g := dto.GetUserDto(user)
// 加载数据-生日