4
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ type UserCheckDto struct {
|
||||
NameStatus int `json:"name_status"` // 昵称填写状态(0:否 1:是)
|
||||
}
|
||||
|
||||
// GetUserDto 详情-问题
|
||||
// GetUserDto 详情
|
||||
func GetUserDto(m *model.User) *UserDto {
|
||||
return &UserDto{
|
||||
UserId: fmt.Sprintf("%d", m.UserId),
|
||||
|
||||
+2
-4
@@ -10,8 +10,8 @@ import (
|
||||
type UserInfoDto struct {
|
||||
UserInfoId string `json:"user_info_id"` // 主键id
|
||||
UserId string `json:"user_id"` // 用户id
|
||||
Height string `json:"height"` // 身高(cm)
|
||||
Weight string `json:"weight"` // 体重(kg)
|
||||
Height *float64 `json:"height"` // 身高(cm)
|
||||
Weight *float64 `json:"weight"` // 体重(kg)
|
||||
NationId string `json:"nation_id"` // 民族id
|
||||
IsFamilyHistory *int `json:"is_family_history"` // 是否存在家族病史(0:未知 1:是 2:否)
|
||||
IsPregnant *int `json:"is_pregnant"` // 是否怀孕(1:无计划 2:计划中 3:已怀孕 4:家有宝宝)
|
||||
@@ -31,8 +31,6 @@ func GetUserInfoDto(m *model.UserInfo) *UserInfoDto {
|
||||
return &UserInfoDto{
|
||||
UserInfoId: fmt.Sprintf("%d", m.UserInfoId),
|
||||
UserId: fmt.Sprintf("%d", m.UserInfoId),
|
||||
Height: m.Height,
|
||||
Weight: m.Weight,
|
||||
NationId: fmt.Sprintf("%d", m.NationId),
|
||||
IsFamilyHistory: m.IsFamilyHistory,
|
||||
IsPregnant: m.IsPregnant,
|
||||
|
||||
Reference in New Issue
Block a user