mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-11 10:00:23 +08:00
refactor: remove unused handlers and related files to streamline the server codebase
This commit is contained in:
@@ -1,40 +1,7 @@
|
||||
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"`
|
||||
Code int `json:"code"`
|
||||
Message string `json:"message"`
|
||||
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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user