mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
58 lines
1.2 KiB
Go
58 lines
1.2 KiB
Go
package server
|
|
|
|
import "github.com/httprunner/httprunner/v4/hrp/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 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"`
|
|
}
|
|
|
|
type LogoutRequest struct {
|
|
PackageName string `json:"packageName"`
|
|
}
|