service/api/proto/accountpunishment/proto/not_null_def_op.go

21 lines
794 B
Go

package proto
import (
"service/library/validator"
)
// op 创建
func (p *OpCreateReq) ProvideNotNullValue() (params []*validator.JsonParam) {
params = make([]*validator.JsonParam, 0)
params = append(params, validator.NewInt64PtrParam("请填写欲进行处罚的账号mid", p.AccountPunishment.Mid))
params = append(params, validator.NewInt64PtrParam("请填写欲进行的处罚类型", p.AccountPunishment.Type))
params = append(params, validator.NewInt64PtrParam("请填写处罚时长", p.AccountPunishment.Duration))
return params
}
func (p *OpUnblockReq) ProvideNotNullValue() (params []*validator.JsonParam) {
params = make([]*validator.JsonParam, 0)
params = append(params, validator.NewInt64PtrParam("请填写欲进行解封的账号处罚表id", p.Id))
return params
}