fix: face login
This commit is contained in:
@@ -29,15 +29,13 @@ func (p FaceBindValidator) GetMessage() validate.ValidatorMessages {
|
||||
}
|
||||
|
||||
type FaceLoginValidator struct {
|
||||
File []byte
|
||||
FilePath string `validate:"omitempty,max=512"`
|
||||
ClientCode string `validate:"omitempty,max=32"`
|
||||
File []byte `validate:"required,min=1"`
|
||||
}
|
||||
|
||||
func (p FaceLoginValidator) GetMessage() validate.ValidatorMessages {
|
||||
return validate.ValidatorMessages{
|
||||
"FilePath.max": "file_path 过长",
|
||||
"ClientCode.max": "client_code 过长",
|
||||
"File.required": "file 必传",
|
||||
"File.min": "file 必传",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user