by Robin at 20240703

This commit is contained in:
Leufolium 2024-07-03 16:43:58 +08:00
parent 6979bbc09f
commit 8822343f44
6 changed files with 8 additions and 8 deletions

View File

@ -9,10 +9,8 @@ func (p *ApiCreateReq) ProvideNotNullValue() (params []*validator.JsonParam) {
params = make([]*validator.JsonParam, 0) params = make([]*validator.JsonParam, 0)
params = append(params, validator.NewInt64PtrParam("请确认用户的Mid", p.StreamerAuthApprovalBasic.Mid)) params = append(params, validator.NewInt64PtrParam("请确认用户的Mid", p.StreamerAuthApprovalBasic.Mid))
params = append(params, validator.NewStructPtrParam("请设置您的头像", p.Avatar)) params = append(params, validator.NewStructPtrParam("请设置您的头像", p.Avatar))
params = append(params, validator.NewInt64PtrParam("请设置您的性别", p.Gender))
params = append(params, validator.NewStringPtrParam("请输入您的联系方式", p.ContactWay)) params = append(params, validator.NewStringPtrParam("请输入您的联系方式", p.ContactWay))
params = append(params, validator.NewStructPtrParam("请提供您的账号截图", p.AccountShot)) params = append(params, validator.NewStructPtrParam("请提供您的账号截图", p.AccountShot))
params = append(params, validator.NewInt64PtrParam("请提供您的全网粉丝量", p.Fans))
params = append(params, validator.NewStringPtrParam("请提供您的主营平台", p.MainPlatform)) params = append(params, validator.NewStringPtrParam("请提供您的主营平台", p.MainPlatform))
return return
} }

View File

@ -9,10 +9,8 @@ func (p *OpCreateReq) ProvideNotNullValue() (params []*validator.JsonParam) {
params = make([]*validator.JsonParam, 0) params = make([]*validator.JsonParam, 0)
params = append(params, validator.NewInt64PtrParam("请确认用户的Mid", p.StreamerAuthApprovalBasic.Mid)) params = append(params, validator.NewInt64PtrParam("请确认用户的Mid", p.StreamerAuthApprovalBasic.Mid))
params = append(params, validator.NewStructPtrParam("请设置您的头像", p.Avatar)) params = append(params, validator.NewStructPtrParam("请设置您的头像", p.Avatar))
params = append(params, validator.NewInt64PtrParam("请设置您的性别", p.Gender))
params = append(params, validator.NewStringPtrParam("请输入您的联系方式", p.ContactWay)) params = append(params, validator.NewStringPtrParam("请输入您的联系方式", p.ContactWay))
params = append(params, validator.NewStructPtrParam("请提供您的账号截图", p.AccountShot)) params = append(params, validator.NewStructPtrParam("请提供您的账号截图", p.AccountShot))
params = append(params, validator.NewInt64PtrParam("请提供您的全网粉丝量", p.Fans))
params = append(params, validator.NewStringPtrParam("请提供您的主营平台", p.MainPlatform)) params = append(params, validator.NewStringPtrParam("请提供您的主营平台", p.MainPlatform))
return return
} }

View File

@ -8,6 +8,8 @@ import (
func (p *ApiCreateReq) ProvideNotNullValue() (params []*validator.JsonParam) { func (p *ApiCreateReq) ProvideNotNullValue() (params []*validator.JsonParam) {
params = make([]*validator.JsonParam, 0) params = make([]*validator.JsonParam, 0)
params = append(params, validator.NewInt64PtrParam("请设置您的性别", p.Gender))
params = append(params, validator.NewInt64PtrParam("请提供您的全网粉丝量", p.Fans))
params = append(params, validator.NewStringPtrParam("请输入您的个性签名", p.Bio)) params = append(params, validator.NewStringPtrParam("请输入您的个性签名", p.Bio))
params = append(params, validator.NewStructPtrParam("请设置您的封面", p.Cover)) params = append(params, validator.NewStructPtrParam("请设置您的封面", p.Cover))
params = append(params, validator.NewStructPtrParam("请设置您的展示视频", p.Shorts)) params = append(params, validator.NewStructPtrParam("请设置您的展示视频", p.Shorts))

View File

@ -8,6 +8,8 @@ import (
func (p *OpCreateReq) ProvideNotNullValue() (params []*validator.JsonParam) { func (p *OpCreateReq) ProvideNotNullValue() (params []*validator.JsonParam) {
params = make([]*validator.JsonParam, 0) params = make([]*validator.JsonParam, 0)
params = append(params, validator.NewInt64PtrParam("请设置您的性别", p.Gender))
params = append(params, validator.NewInt64PtrParam("请提供您的全网粉丝量", p.Fans))
params = append(params, validator.NewStringPtrParam("请输入您的个性签名", p.Bio)) params = append(params, validator.NewStringPtrParam("请输入您的个性签名", p.Bio))
params = append(params, validator.NewStructPtrParam("请设置您的封面", p.Cover)) params = append(params, validator.NewStructPtrParam("请设置您的封面", p.Cover))
params = append(params, validator.NewStructPtrParam("请设置您的展示视频", p.Shorts)) params = append(params, validator.NewStructPtrParam("请设置您的展示视频", p.Shorts))

View File

@ -1962,8 +1962,6 @@ func (s *Service) OpApproveStreamerAuthApprovalBasic(ctx *gin.Context, req *stre
midList[i] = mid midList[i] = mid
streamerList[i] = &dbstruct.Streamer{ streamerList[i] = &dbstruct.Streamer{
Mid: streamerAuthApprovalBasic.Mid, Mid: streamerAuthApprovalBasic.Mid,
Gender: streamerAuthApprovalBasic.Gender,
Fans: streamerAuthApprovalBasic.Fans,
IsHided: goproto.Int64(1), IsHided: goproto.Int64(1),
} }
} }
@ -2115,6 +2113,8 @@ func (s *Service) OpApproveStreamerAuthApprovalDetails(ctx *gin.Context, req *st
for _, streamerAuthApprovalDetails := range list { for _, streamerAuthApprovalDetails := range list {
streamer := &dbstruct.Streamer{ streamer := &dbstruct.Streamer{
Mid: streamerAuthApprovalDetails.Mid, Mid: streamerAuthApprovalDetails.Mid,
Gender: streamerAuthApprovalDetails.Gender,
Fans: streamerAuthApprovalDetails.Fans,
Cover: streamerAuthApprovalDetails.Cover, Cover: streamerAuthApprovalDetails.Cover,
Shorts: streamerAuthApprovalDetails.Shorts, Shorts: streamerAuthApprovalDetails.Shorts,
Album: streamerAuthApprovalDetails.Album, Album: streamerAuthApprovalDetails.Album,

View File

@ -37,10 +37,8 @@ type StreamerAuthApprovalBasic struct {
Mid *int64 `json:"mid" bson:"mid"` // 用户表id Mid *int64 `json:"mid" bson:"mid"` // 用户表id
Avatar *MediaComponent `json:"avatar" bson:"avatar"` // 头像 Avatar *MediaComponent `json:"avatar" bson:"avatar"` // 头像
Name *string `json:"name" bson:"name"` // 昵称 Name *string `json:"name" bson:"name"` // 昵称
Gender *int64 `json:"gender" bson:"gender"` // 性别
ContactWay *string `json:"contact_way" bson:"contact_way"` // 联系方式 ContactWay *string `json:"contact_way" bson:"contact_way"` // 联系方式
AccountShot *MediaComponent `json:"account_shot" bson:"account_shot"` // 账号截图 AccountShot *MediaComponent `json:"account_shot" bson:"account_shot"` // 账号截图
Fans *int64 `json:"fans" bson:"fans"` // 全网粉丝
MainPlatform *string `json:"main_platform" bson:"main_platform"` // 主营平台 MainPlatform *string `json:"main_platform" bson:"main_platform"` // 主营平台
ApproveStatus *int64 `json:"approve_status" bson:"approve_status"` // 审批状态 ApproveStatus *int64 `json:"approve_status" bson:"approve_status"` // 审批状态
Remarks *string `json:"remarks" bson:"remarks"` // 备注 Remarks *string `json:"remarks" bson:"remarks"` // 备注
@ -66,6 +64,8 @@ func (p *StreamerAuthApprovalBasic) GetMid() int64 {
type StreamerAuthApprovalDetails struct { type StreamerAuthApprovalDetails struct {
Id *int64 `json:"id" bson:"_id"` // 女神认证审批完善表id Id *int64 `json:"id" bson:"_id"` // 女神认证审批完善表id
Mid *int64 `json:"mid" bson:"mid"` // 用户表id Mid *int64 `json:"mid" bson:"mid"` // 用户表id
Gender *int64 `json:"gender" bson:"gender"` // 性别
Fans *int64 `json:"fans" bson:"fans"` // 全网粉丝
Bio *string `json:"bio" bson:"bio"` // 个性签名 Bio *string `json:"bio" bson:"bio"` // 个性签名
Cover *MediaComponent `json:"cover" bson:"cover"` // 封面 Cover *MediaComponent `json:"cover" bson:"cover"` // 封面
Shorts *MediaComponent `json:"shorts" bson:"shorts"` // 展示视频 Shorts *MediaComponent `json:"shorts" bson:"shorts"` // 展示视频