mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
3.2.0
This commit is contained in:
24
sop-sdk/sdk-go/common/IRequest.go
Normal file
24
sop-sdk/sdk-go/common/IRequest.go
Normal file
@@ -0,0 +1,24 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user