feat: analysis admin
This commit is contained in:
@@ -28,6 +28,19 @@ func (p FaceBindValidator) GetMessage() validate.ValidatorMessages {
|
||||
}
|
||||
}
|
||||
|
||||
type FaceLoginValidator struct {
|
||||
File []byte
|
||||
FilePath string `validate:"omitempty,max=512"`
|
||||
ClientCode string `validate:"omitempty,max=32"`
|
||||
}
|
||||
|
||||
func (p FaceLoginValidator) GetMessage() validate.ValidatorMessages {
|
||||
return validate.ValidatorMessages{
|
||||
"FilePath.max": "file_path 过长",
|
||||
"ClientCode.max": "client_code 过长",
|
||||
}
|
||||
}
|
||||
|
||||
type AgreementInfoValidator struct {
|
||||
Type int32 `validate:"required,gt=0"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user