d597975b42
CI / changes (push) Successful in 38s
CI / ad (push) Successful in 3m1s
CI / admin (push) Successful in 34s
CI / bff (push) Successful in 29s
CI / chore (push) Successful in 34s
CI / equipment (push) Failing after 11s
CI / express (push) Successful in 27s
CI / factory (push) Successful in 32s
CI / payment (push) Successful in 29s
CI / product (push) Successful in 30s
CI / record (push) Successful in 30s
CI / sale (push) Successful in 30s
CI / task (push) Successful in 32s
CI / user (push) Successful in 31s
CI / wecom (push) Successful in 33s
36 lines
880 B
Go
36 lines
880 B
Go
package validator
|
|
|
|
import "lone-services/pkg/validate"
|
|
|
|
type BeansItemsValidator struct {
|
|
Page int `form:"page" json:"page"`
|
|
Size int `form:"size" json:"size"`
|
|
}
|
|
|
|
// GetMessage 提示消息
|
|
func (p BeansItemsValidator) GetMessage() validate.ValidatorMessages {
|
|
return validate.ValidatorMessages{}
|
|
}
|
|
|
|
type BeansImagesValidator struct {
|
|
Image string `form:"image" json:"image" validate:"required"`
|
|
Id int `form:"id" json:"id"`
|
|
}
|
|
|
|
// GetMessage 提示消息
|
|
func (p BeansImagesValidator) GetMessage() validate.ValidatorMessages {
|
|
return validate.ValidatorMessages{
|
|
"Image.required": "图片不能为空",
|
|
}
|
|
}
|
|
|
|
type BeansImagesItemsValidator struct {
|
|
Page int `form:"page" json:"page"`
|
|
Size int `form:"size" json:"size"`
|
|
}
|
|
|
|
// GetMessage 提示消息
|
|
func (p BeansImagesItemsValidator) GetMessage() validate.ValidatorMessages {
|
|
return validate.ValidatorMessages{}
|
|
}
|