4444
This commit is contained in:
parent
a3d49f8b91
commit
3f2dae8364
@ -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)
|
||||
|
||||
// 加载数据-生日
|
||||
|
||||
@ -31,7 +31,6 @@ func GetUserInfoDto(m *model.UserInfo) *UserInfoDto {
|
||||
return &UserInfoDto{
|
||||
UserInfoId: fmt.Sprintf("%d", m.UserInfoId),
|
||||
UserId: fmt.Sprintf("%d", m.UserInfoId),
|
||||
NationId: fmt.Sprintf("%d", *m.NationId),
|
||||
IsFamilyHistory: m.IsFamilyHistory,
|
||||
IsPregnant: m.IsPregnant,
|
||||
ProvinceId: m.ProvinceId,
|
||||
|
||||
@ -926,3 +926,8 @@ func (r *UserService) PutUser(userId int64, req requests.PutUser) (bool, error)
|
||||
tx.Commit()
|
||||
return true, nil
|
||||
}
|
||||
|
||||
// CheckUserInfo 检测用户信息是否补全
|
||||
func (r *UserService) CheckUserInfo(userId int64) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user