feat: ota

This commit is contained in:
zzw
2026-09-22 16:47:38 +08:00
parent fdf5825d83
commit 08b67dba70
26 changed files with 1033 additions and 178 deletions
+11
View File
@@ -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 必传",
}
}