mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-11 18:11:21 +08:00
refactor: move model struct to types
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user