refactor: 将数据库从MongoDB迁移至PostgreSQL
This commit is contained in:
@@ -11,6 +11,12 @@ type UploadFileReq struct {
|
||||
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:"上传地址"`
|
||||
@@ -18,8 +24,8 @@ type UploadFileRes struct {
|
||||
}
|
||||
|
||||
type TenantOssTotal struct {
|
||||
TenantId interface{} `json:"tenantId"`
|
||||
UsedOssSize int `json:"usedOssSize"`
|
||||
TotalOssSize int `json:"totalOssSize"`
|
||||
Updater interface{} `json:"updater"`
|
||||
TenantId uint64 `json:"tenantId"`
|
||||
UsedOssSize int `json:"usedOssSize"`
|
||||
TotalOssSize int `json:"totalOssSize"`
|
||||
Updater string `json:"updater"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user