service/api/proto/streamerauthapproval/proto/not_null_def_api.go

47 lines
2.4 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package proto
import (
"service/library/validator"
)
// api 创建
func (p *ApiCreateReq) ProvideNotNullValue() (params []*validator.JsonParam) {
params = make([]*validator.JsonParam, 20)
params[0] = validator.NewInt64PtrParam("请确认用户的Mid", p.StreamerAuthApproval.Mid)
params[1] = validator.NewStructPtrParam("请设置您的头像", p.Avatar)
params[2] = validator.NewInt64PtrParam("请设置您的性别", p.Gender)
params[3] = validator.NewStringPtrParam("请输入您的联系方式", p.ContactWay)
//params[4] = validator.NewStringPtrParam("请输入您的微信号", p.WechatContact)
params[4] = validator.NewStringPtrParam("请输入您的个性签名", p.Bio)
params[5] = validator.NewStructPtrParam("请设置您的封面", p.Cover)
params[6] = validator.NewStructPtrParam("请设置您的展示视频", p.Shorts)
params[7] = validator.NewStructPtrParam("请设置您的相册", p.Album)
params[8] = validator.NewInt64PtrParam("请输入您的年龄", p.Age)
params[9] = validator.NewInt64PtrParam("请输入您的身高", p.Height)
params[10] = validator.NewInt64PtrParam("请输入您的体重", p.Weight)
params[11] = validator.NewStringPtrParam("请输入您的星座", p.Constellation)
params[12] = validator.NewStringPtrParam("请输入您的所在城市", p.City)
params[13] = validator.NewStringSlicePtrParam("请设置您的主播标签", p.Tag)
params[14] = validator.NewInt64PtrParam("请设置您的微信添加方式", p.WechatLockType)
params[15] = validator.NewStructPtrParam("请提供您的账号截图", p.AccountShot)
params[16] = validator.NewInt64PtrParam("请提供您的全网粉丝量", p.Fans)
params[17] = validator.NewStringPtrParam("请提供您的主营平台", p.MainPlatform)
params[18] = validator.NewInt64PtrParam("请输入您的微信价格", p.WechatCoinPrice)
params[19] = validator.NewStringPtrParam("请输入您的自动回复消息", p.AutoResponseMessage)
return
}
// api 删除
func (p *ApiDeleteReq) ProvideNotNullValue() (params []*validator.JsonParam) {
params = make([]*validator.JsonParam, 1)
params[0] = validator.NewInt64PtrParam("欲删除的女神认证审核Mid为空", p.Mid)
return params
}
// api 列表
func (p *ApiListReq) ProvideNotNullValue() (params []*validator.JsonParam) {
params = make([]*validator.JsonParam, 1)
params[0] = validator.NewInt64PtrParam("欲查询的女神认证审核Mid为空", p.Mid)
return params
}