feat: wecom curd
This commit is contained in:
@@ -182,3 +182,16 @@ func (p StatusValidator) GetMessage() validate.ValidatorMessages {
|
||||
"Reason.max": "理由长度不能超过255",
|
||||
}
|
||||
}
|
||||
|
||||
type NamesByIdsValidator struct {
|
||||
Ids []int64 `validate:"required,min=1,dive,gt=0"`
|
||||
}
|
||||
|
||||
func (p NamesByIdsValidator) GetMessage() validate.ValidatorMessages {
|
||||
return validate.ValidatorMessages{
|
||||
"Ids.required": "ids不能为空",
|
||||
"Ids.min": "ids不能为空",
|
||||
"Ids.dive": "id无效",
|
||||
"Ids.gt": "id必须大于0",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user