2025-12-26 13:59:02 +08:00
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-18 13:17:59 +08:00
|
|
|
type UploadFile struct {
|
|
|
|
|
TenantId uint64 `json:"tenantId"`
|
|
|
|
|
FileURL string `json:"fileURL"`
|
|
|
|
|
FileSize int `json:"fileSize"`
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-26 13:59:02 +08:00
|
|
|
// UploadFileRes 上传文件响应
|
|
|
|
|
type UploadFileRes struct {
|
|
|
|
|
FileURL string `json:"fileURL" dc:"上传地址"`
|
|
|
|
|
FileAddressPrefix string `json:"fileAddressPrefix"`
|
|
|
|
|
}
|