service/api/proto/imageaudittask/proto/not_null_def.go

18 lines
537 B
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 (
"fmt"
"service/library/validator"
)
// op 人工批量审核通过
func (p *OpPassBatchReq) ProvideNotNullValue() (params []*validator.JsonParam) {
params = make([]*validator.JsonParam, 1+len(p.ImageAuditTasks))
params[0] = validator.NewStructSliceParam("请提供欲人工审核通过的任务!", len(p.ImageAuditTasks))
for i, item := range p.ImageAuditTasks {
params[1+i] = validator.NewStructPtrParam(fmt.Sprintf("欲审核通过的第%v个任务非空校验失败", i), item)
}
return params
}