refacotr: move pkg/server to root

This commit is contained in:
lilong.129
2025-02-06 11:28:34 +08:00
parent 1f063dd6f7
commit a578e92e00
10 changed files with 2 additions and 2 deletions

62
server/model.go Normal file
View File

@@ -0,0 +1,62 @@
package server
import "github.com/httprunner/httprunner/v5/pkg/uixt"
type HttpResponse struct {
Code int `json:"code"`
Message string `json:"msg"`
Result interface{} `json:"result,omitempty"`
}
type TapRequest struct {
X float64 `json:"x"`
Y float64 `json:"y"`
Text string `json:"text"`
Options *uixt.ActionOptions `json:"options,omitempty"`
}
type DragRequest struct {
FromX float64 `json:"from_x"`
FromY float64 `json:"from_y"`
ToX float64 `json:"to_x"`
ToY float64 `json:"to_y"`
Options *uixt.ActionOptions `json:"options,omitempty"`
}
type InputRequest struct {
Text string `json:"text"`
Frequency int `json:"frequency"` // only iOS
}
type ScreenRequest struct {
Options *uixt.ActionOptions `json:"options,omitempty"`
}
type KeycodeRequest struct {
Keycode int `json:"keycode"`
}
type AppClearRequest struct {
PackageName string `json:"packageName"`
}
type AppLaunchRequest struct {
PackageName string `json:"packageName"`
}
type AppTerminalRequest struct {
PackageName string `json:"packageName"`
}
type LoginRequest struct {
PackageName string `json:"packageName"`
PhoneNumber string `json:"phoneNumber"`
Captcha string `json:"captcha"`
Password string `json:"password"`
}
type LogoutRequest struct {
PackageName string `json:"packageName"`
}