feat: ota
This commit is contained in:
@@ -51,3 +51,14 @@ type VersionItemsValidator struct {
|
||||
Size int `form:"size" json:"size"`
|
||||
Type uint8 `form:"type" json:"type"`
|
||||
}
|
||||
|
||||
type ApiVersionValidator struct {
|
||||
Type int32 `form:"type" json:"type" validate:"required"`
|
||||
Version string `form:"version" json:"version"`
|
||||
}
|
||||
|
||||
func (p ApiVersionValidator) GetMessage() validate.ValidatorMessages {
|
||||
return validate.ValidatorMessages{
|
||||
"Type.required": "Type 必传",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user