Files
SOP/sop-sdk/sdk-go/common/IRequest.go
六如 403e8111f4 5.0
2024-12-22 23:09:46 +08:00

25 lines
420 B
Go
Executable File

package common
type RequestType string
const (
GET RequestType = "GET"
POST_JSON RequestType = "POST_JSON"
POST_FORM RequestType = "POST_FORM"
POST_UPLOAD RequestType = "POST_UPLOAD"
)
type Model struct {
// 业务参数
BizModel interface{}
// 上传文件
Files []UploadFile
}
type IRequest interface {
GetMethod() string
GetVersion() string
GetRequestType() RequestType
GetModel() Model
}