51 lines
1.6 KiB
Go
51 lines
1.6 KiB
Go
package proto
|
||
|
||
import (
|
||
"service/library/validator"
|
||
)
|
||
|
||
// api 查询
|
||
|
||
func (p *ApiListByMidReq) ProvideNotNullValue() (params []*validator.JsonParam) {
|
||
params = make([]*validator.JsonParam, 1)
|
||
params[0] = validator.NewInt64PtrParam("查询Mid不可为空!", p.Mid)
|
||
return params
|
||
}
|
||
|
||
func (p *ApiListExtByMidReq) ProvideNotNullValue() (params []*validator.JsonParam) {
|
||
params = make([]*validator.JsonParam, 1)
|
||
params[0] = validator.NewInt64PtrParam("查询Mid不可为空!", p.Uid)
|
||
return params
|
||
}
|
||
|
||
func (p *ApiListExtByMidsReq) ProvideNotNullValue() (params []*validator.JsonParam) {
|
||
params = make([]*validator.JsonParam, 1)
|
||
params[0] = validator.NewInt64SliceParam("查询Mids不可为空!", p.Mids)
|
||
return params
|
||
}
|
||
|
||
func (p *ApiListExtFuzzilyByUserIdReq) ProvideNotNullValue() (params []*validator.JsonParam) {
|
||
params = make([]*validator.JsonParam, 1)
|
||
params[0] = validator.NewInt64PtrParam("查询UserId不可为空!", p.UserId)
|
||
return params
|
||
}
|
||
|
||
func (p *ApiListExtFuzzilyByNameReq) ProvideNotNullValue() (params []*validator.JsonParam) {
|
||
params = make([]*validator.JsonParam, 1)
|
||
params[0] = validator.NewStringParam("查询UserId不可为空!", p.Name)
|
||
return params
|
||
}
|
||
|
||
func (p *ApiListStreamerWxIdReq) ProvideNotNullValue() (params []*validator.JsonParam) {
|
||
params = make([]*validator.JsonParam, 1)
|
||
params[0] = validator.NewInt64PtrParam("请输入欲查询微信id的Mid!", p.Mid)
|
||
return params
|
||
}
|
||
|
||
// api 更新
|
||
func (p *ApiUpdateReq) ProvideNotNullValue() (params []*validator.JsonParam) {
|
||
params = make([]*validator.JsonParam, 1)
|
||
params[0] = validator.NewInt64PtrParam("欲更新主播Mid不可为空!", p.Streamer.Mid)
|
||
return params
|
||
}
|