Files
novel_server/internal/model/upload.go

48 lines
582 B
Go

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
}