This commit is contained in:
tanghc
2020-06-17 10:36:22 +08:00
parent f66e2f8891
commit 6406f023db
41 changed files with 1195 additions and 2 deletions

View 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
}