This commit is contained in:
2024-08-22 09:52:40 +08:00
parent 6901e97a59
commit c7b9542f95
4 changed files with 39 additions and 5 deletions
+8
View File
@@ -55,6 +55,14 @@ func (r *User) GetUserInfo(c *gin.Context) {
// 加载数据-预产期
g.LoadExpectedDate(userInfo.ExpectedDate)
// 处理身高
h, err := utils.StrToFloat64(userInfo.Height)
g.Height = h
// 处理体重
w, err := utils.StrToFloat64(userInfo.Weight)
g.Height = w
responses.OkWithData(g, c)
}