77 lines
2.6 KiB
Go
77 lines
2.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 *OpListByMidsReq) ProvideNotNullValue() (params []*validator.JsonParam) {
|
||
params = make([]*validator.JsonParam, 1)
|
||
params[0] = validator.NewInt64SliceParam("查询Mids不可为空!", p.Mids)
|
||
return params
|
||
}
|
||
|
||
func (p *OpListByUserIdReq) ProvideNotNullValue() (params []*validator.JsonParam) {
|
||
params = make([]*validator.JsonParam, 1)
|
||
params[0] = validator.NewInt64PtrParam("查询UserId不可为空!", p.UserId)
|
||
return params
|
||
}
|
||
|
||
func (p *OpGetMobilePhoneByUserIdReq) ProvideNotNullValue() (params []*validator.JsonParam) {
|
||
params = make([]*validator.JsonParam, 1)
|
||
params[0] = validator.NewInt64PtrParam("查询UserId不可为空!", p.UserId)
|
||
return params
|
||
}
|
||
|
||
func (p *OpListFuzzilyByUserIdReq) ProvideNotNullValue() (params []*validator.JsonParam) {
|
||
params = make([]*validator.JsonParam, 1)
|
||
params[0] = validator.NewInt64PtrParam("查询UserId不可为空!", p.UserId)
|
||
return params
|
||
}
|
||
|
||
func (p *OpListFuzzilyByNameReq) ProvideNotNullValue() (params []*validator.JsonParam) {
|
||
params = make([]*validator.JsonParam, 1)
|
||
params[0] = validator.NewStringParam("查询UserId不可为空!", p.Name)
|
||
return params
|
||
}
|
||
|
||
func (p *OpListOthersByMidReq) ProvideNotNullValue() (params []*validator.JsonParam) {
|
||
params = make([]*validator.JsonParam, 1)
|
||
params[0] = validator.NewInt64PtrParam("查询Mid不可为空!", p.Mid)
|
||
return params
|
||
}
|
||
|
||
func (p *OpListOthersByMidsReq) ProvideNotNullValue() (params []*validator.JsonParam) {
|
||
params = make([]*validator.JsonParam, 1)
|
||
params[0] = validator.NewInt64SliceParam("查询Mids不可为空!", p.Mids)
|
||
return params
|
||
}
|
||
|
||
// op 更新
|
||
func (p *OpUpdateReq) ProvideNotNullValue() (params []*validator.JsonParam) {
|
||
params = make([]*validator.JsonParam, 1)
|
||
params[0] = validator.NewInt64PtrParam("欲更新账户Id不可为空!", p.Account.Mid)
|
||
return params
|
||
}
|
||
|
||
// op 按id更新
|
||
func (p *OpUpdateByIdsReq) ProvideNotNullValue() (params []*validator.JsonParam) {
|
||
params = make([]*validator.JsonParam, 1)
|
||
params[0] = validator.NewInt64SliceParam("欲更新账户Ids不可为空!", p.Ids)
|
||
return params
|
||
}
|
||
|
||
// op 经验增长
|
||
func (p *OpExpIncReq) ProvideNotNullValue() (params []*validator.JsonParam) {
|
||
params = make([]*validator.JsonParam, 2)
|
||
params[0] = validator.NewInt64PtrParam("欲进行增长经验的账户Id不可为空!", p.Mid)
|
||
params[1] = validator.NewInt64PtrParam("经验增量不可为空!", p.ExpIncrement)
|
||
return params
|
||
}
|