mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-10 17:43:00 +08:00
41 lines
968 B
Go
41 lines
968 B
Go
package server
|
|
|
|
import (
|
|
"github.com/httprunner/httprunner/v5/uixt/option"
|
|
)
|
|
|
|
type uploadRequest struct {
|
|
X float64 `json:"x"`
|
|
Y float64 `json:"y"`
|
|
FileUrl string `json:"file_url"`
|
|
FileFormat string `json:"file_format"`
|
|
}
|
|
|
|
type PushMediaRequest struct {
|
|
ImageUrl string `json:"imageUrl" binding:"required_without=VideoUrl"`
|
|
VideoUrl string `json:"videoUrl" binding:"required_without=ImageUrl"`
|
|
}
|
|
|
|
type HttpResponse struct {
|
|
Code int `json:"errorCode"`
|
|
Message string `json:"errorMsg"`
|
|
Result interface{} `json:"result,omitempty"`
|
|
}
|
|
|
|
type ScreenRequest struct {
|
|
Options *option.ScreenOptions `json:"options,omitempty"`
|
|
}
|
|
|
|
type UploadRequest struct {
|
|
X float64 `json:"x"`
|
|
Y float64 `json:"y"`
|
|
FileUrl string `json:"file_url"`
|
|
FileFormat string `json:"file_format"`
|
|
}
|
|
|
|
type CreateBrowserRequest struct {
|
|
Timeout int `json:"timeout"`
|
|
Width int `json:"width"`
|
|
Height int `json:"height"`
|
|
}
|