初始化项目框架,完成部分接口开发
This commit is contained in:
47
internal/model/upload.go
Normal file
47
internal/model/upload.go
Normal file
@ -0,0 +1,47 @@
|
||||
package model
|
||||
|
||||
import "github.com/gogf/gf/v2/net/ghttp"
|
||||
|
||||
type UploadIn struct {
|
||||
File *ghttp.UploadFile
|
||||
Type string
|
||||
}
|
||||
|
||||
type UploadOut struct {
|
||||
Url string
|
||||
}
|
||||
type OssOutput struct {
|
||||
Url string
|
||||
}
|
||||
|
||||
type OssBytesInput struct {
|
||||
Bytes []byte
|
||||
Name string
|
||||
}
|
||||
|
||||
type OssGetFileInput struct {
|
||||
FilePath string
|
||||
Name string
|
||||
}
|
||||
|
||||
type OssUploadFileInput struct {
|
||||
Filename string
|
||||
File *ghttp.UploadFile
|
||||
}
|
||||
|
||||
type SMSCodeIn struct {
|
||||
Phone string
|
||||
Code string
|
||||
}
|
||||
|
||||
type SMSCodeOut struct {
|
||||
Success bool
|
||||
}
|
||||
|
||||
type CaptchaIn struct {
|
||||
Name string
|
||||
}
|
||||
|
||||
type CaptchaOut struct {
|
||||
Success bool
|
||||
}
|
||||
Reference in New Issue
Block a user