You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
420 B
25 lines
420 B
5 years ago
|
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
|
||
|
}
|