新增检测用户信息是否补全
This commit is contained in:
parent
d40aafe627
commit
04b6469827
@ -26,7 +26,7 @@ type UserDto struct {
|
|||||||
LoginIp string `json:"login_ip"` // 登陆ip
|
LoginIp string `json:"login_ip"` // 登陆ip
|
||||||
CreatedAt model.LocalTime `json:"created_at"` // 创建时间
|
CreatedAt model.LocalTime `json:"created_at"` // 创建时间
|
||||||
UpdatedAt model.LocalTime `json:"updated_at"` // 更新时间
|
UpdatedAt model.LocalTime `json:"updated_at"` // 更新时间
|
||||||
IsCompleteInfo bool `json:"Is_complete_info"` // 信息是否完整(0:否 1:是)
|
IsCompleteInfo bool `json:"is_complete_info"` // 信息是否完整(0:否 1:是)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UserCheckDto 检测用户
|
// UserCheckDto 检测用户
|
||||||
|
|||||||
@ -940,5 +940,18 @@ func (r *UserService) CheckUserInfo(userInfo *model.UserInfo) bool {
|
|||||||
if userInfo.Height == "" {
|
if userInfo.Height == "" {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return false
|
|
||||||
|
if userInfo.Weight == "" {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
if userInfo.IsFamilyHistory == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
if userInfo.ProvinceId == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user