service/api/proto/streamer/proto/not_null_def_api.go

51 lines
1.6 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"
)
// op 查询
func (p *OpListByMidReq) ProvideNotNullValue() (params []*validator.JsonParam) {
params = make([]*validator.JsonParam, 1)
params[0] = validator.NewInt64PtrParam("查询Mid不可为空", p.Mid)
return params
}
func (p *OpListExtByMidReq) ProvideNotNullValue() (params []*validator.JsonParam) {
params = make([]*validator.JsonParam, 1)
params[0] = validator.NewInt64PtrParam("查询Mid不可为空", p.Mid)
return params
}
func (p *OpListExtByMidsReq) ProvideNotNullValue() (params []*validator.JsonParam) {
params = make([]*validator.JsonParam, 1)
params[0] = validator.NewInt64SliceParam("查询Mids不可为空", p.Mids)
return params
}
func (p *OpListExtFuzzilyByUserIdReq) ProvideNotNullValue() (params []*validator.JsonParam) {
params = make([]*validator.JsonParam, 1)
params[0] = validator.NewInt64PtrParam("查询UserId不可为空", p.UserId)
return params
}
func (p *OpListExtFuzzilyByNameReq) ProvideNotNullValue() (params []*validator.JsonParam) {
params = make([]*validator.JsonParam, 1)
params[0] = validator.NewStringParam("查询UserId不可为空", p.Name)
return params
}
func (p *OpListStreamerWxIdReq) ProvideNotNullValue() (params []*validator.JsonParam) {
params = make([]*validator.JsonParam, 1)
params[0] = validator.NewInt64PtrParam("请输入欲查询微信id的Mid", p.Mid)
return params
}
// op 更新
func (p *OpUpdateReq) ProvideNotNullValue() (params []*validator.JsonParam) {
params = make([]*validator.JsonParam, 1)
params[0] = validator.NewInt64PtrParam("欲更新主播Mid不可为空", p.Streamer.Mid)
return params
}