From 724940f86294dbd4881d5f7ba0c217e93c766c10 Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Fri, 14 Jul 2023 11:49:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=AF=E5=90=A6=E6=96=B0=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cv/user_cv/user.go | 5 ----- domain/service/user_s/user.go | 2 -- 2 files changed, 7 deletions(-) diff --git a/cv/user_cv/user.go b/cv/user_cv/user.go index 394bb0f..6e09de7 100644 --- a/cv/user_cv/user.go +++ b/cv/user_cv/user.go @@ -6,7 +6,6 @@ import ( "git.hilo.cn/hilo-common/mylogrus" "git.hilo.cn/hilo-common/resource/mysql" "git.hilo.cn/hilo-common/rpc" - "git.hilo.cn/hilo-common/utils" "gorm.io/gorm" "hilo-user/_const/enum/country_e" "hilo-user/_const/enum/cp_e" @@ -98,8 +97,6 @@ type CvUserBase struct { IsVip bool `json:"isVip"` //是否是官方人员 IsOfficialStaff bool `json:"isOfficialStaff"` - //是否新用户(注册7天内) - IsNew bool `json:"isNew"` //VIP用户过期时间(只有自己查询自己,才返回) VipExpireTime *int64 `json:"vipExpireTime"` Svip rpc.CvSvip `json:"svip"` // svip结构,等级+权限 @@ -218,7 +215,6 @@ func GetUserBases(userIds []mysql.ID, myUserId mysql.ID) ([]*CvUserBase, error) Level: nobles[user.ID].Level, EndTime: nobles[user.ID].EndTime.Unix(), }, - IsNew: utils.IsNewUser(user.Birthday), } if cvUserBase.Noble.Level <= 0 { cvUserBase.Noble.EndTime = 0 @@ -308,7 +304,6 @@ func GetUserBasesForCp(userIds []mysql.ID) ([]*CvUserBase, error) { Level: nobles[user.ID].Level, EndTime: nobles[user.ID].EndTime.Unix(), }, - IsNew: utils.IsNewUser(user.Birthday), } if cvUserBase.Noble.Level <= 0 { cvUserBase.Noble.EndTime = 0 diff --git a/domain/service/user_s/user.go b/domain/service/user_s/user.go index 1ea4bbb..de797c4 100644 --- a/domain/service/user_s/user.go +++ b/domain/service/user_s/user.go @@ -5,7 +5,6 @@ import ( "git.hilo.cn/hilo-common/mycontext" "git.hilo.cn/hilo-common/resource/mysql" "git.hilo.cn/hilo-common/rpc" - "git.hilo.cn/hilo-common/utils" "gorm.io/gorm" "hilo-user/_const/enum/user_e" "hilo-user/cv/headwear_cv" @@ -294,7 +293,6 @@ func userToDetailOne(model *domain.Model, user *user_m.User, myUserId mysql.ID, MedalInfo: IfLogoutMedalInfo(IfLogout(user.LogoutTime), []medal_cv.CvMedal{}, medalInfo), Headwear: IfLogoutHeadwear(IfLogout(user.LogoutTime), nil, headwear), Ride: IfLogoutRide(IfLogout(user.LogoutTime), property_cv.CvProperty{}, ride), - IsNew: utils.IsNewUser(user.Birthday), }, IsPush: TypeToUint8(&user.IsPush), IsLike: &isLike, -- 2.22.0