25 lines
641 B
Go
25 lines
641 B
Go
package dto
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
"github.com/gogf/gf/v2/net/ghttp"
|
|
)
|
|
|
|
// UploadFileReq 上传文件请求
|
|
type UploadFileReq struct {
|
|
g.Meta `path:"/uploadFile" method:"post" tags:"存储管理" summary:"上传文件" dc:"上传文件"`
|
|
File *ghttp.UploadFile `json:"file" type:"file"` // 文件URL
|
|
}
|
|
|
|
type UploadFile struct {
|
|
TenantId uint64 `json:"tenantId"`
|
|
FileURL string `json:"fileURL"`
|
|
FileSize int `json:"fileSize"`
|
|
}
|
|
|
|
// UploadFileRes 上传文件响应
|
|
type UploadFileRes struct {
|
|
FileURL string `json:"fileURL" dc:"上传地址"`
|
|
FileAddressPrefix string `json:"fileAddressPrefix"`
|
|
}
|