refactor: remove unused handlers and related files to streamline the server codebase

This commit is contained in:
lilong.129
2025-06-21 21:56:24 +08:00
parent c802327e39
commit a1c8b7fab3
14 changed files with 159 additions and 1042 deletions

View File

@@ -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"`
}