refactor: 将数据库从MongoDB迁移至PostgreSQL

This commit is contained in:
2026-03-18 13:17:59 +08:00
parent 16723e5b5e
commit 3ed275bd7e
14 changed files with 268 additions and 210 deletions

View File

@@ -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"`
}