51 lines
1.6 KiB
Go
51 lines
1.6 KiB
Go
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
|
||
}
|