refactor: move model struct to types

This commit is contained in:
lilong.129
2025-05-24 23:31:12 +08:00
parent 02611d3d5a
commit f65d8aebbd
7 changed files with 41 additions and 39 deletions

View File

@@ -11,43 +11,11 @@ type uploadRequest struct {
FileFormat string `json:"file_format"`
}
type InputRequest struct {
Text string `json:"text" binding:"required"`
Frequency int `json:"frequency"` // only iOS
}
type DeleteRequest struct {
Count int `json:"count" binding:"required"`
}
type KeycodeRequest struct {
Keycode int `json:"keycode" binding:"required"`
}
type AppInstallRequest struct {
AppUrl string `json:"appUrl" binding:"required"`
MappingUrl string `json:"mappingUrl"`
ResourceMappingUrl string `json:"resourceMappingUrl"`
PackageName string `json:"packageName"`
}
type AppInfoRequest struct {
PackageName string `form:"packageName" binding:"required"`
}
type AppUninstallRequest struct {
PackageName string `json:"packageName" binding:"required"`
}
type PushMediaRequest struct {
ImageUrl string `json:"imageUrl" binding:"required_without=VideoUrl"`
VideoUrl string `json:"videoUrl" binding:"required_without=ImageUrl"`
}
type OperateRequest struct {
StepText string `json:"stepText" binding:"required"`
}
type HttpResponse struct {
Code int `json:"errorCode"`
Message string `json:"errorMsg"`