新增了获取用户数据-详情信息,获取用户数据-病例。修改了获取用户列表-基本信息-分页,用户信息是否完善字段

This commit is contained in:
2024-08-26 11:32:18 +08:00
parent d5881671af
commit 87bcb6e755
17 changed files with 731 additions and 26 deletions
+26
View File
@@ -4,6 +4,7 @@ import (
"errors"
"fmt"
"hepa-calc-admin-api/api/dao"
"hepa-calc-admin-api/api/model"
"hepa-calc-admin-api/extend/aliyun"
"io"
"math/rand"
@@ -67,3 +68,28 @@ func (r *UserService) CheckUserBuyOrderMember(userId int64) bool {
return true
}
// CheckUserInfo 检测用户信息是否补全
func (r *UserService) CheckUserInfo(userInfo *model.UserInfo) bool {
if userInfo == nil {
return false
}
if userInfo.Height == "" {
return false
}
if userInfo.Weight == "" {
return false
}
if userInfo.IsFamilyHistory == nil {
return false
}
if userInfo.ProvinceId == "" {
return false
}
return true
}