feat: 添加oss api

This commit is contained in:
Blizzard
2025-10-11 15:13:58 +08:00
parent 237ac665e6
commit 7e282b36d7
21 changed files with 545 additions and 5 deletions
+20
View File
@@ -0,0 +1,20 @@
package system
import (
"time"
"gorm.io/gorm"
)
type Oss struct {
//global.BaseModel
Id string `gorm:"size:50;primaryKey" json:"id"` // 主键ID
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` // 删除时间
Name string `json:"name" form:"name" gorm:"column:name;comment:文件名"`
Url string `json:"url" form:"url" gorm:"column:url;comment:文件地址"`
Tag string `json:"tag" form:"tag" gorm:"column:tag;comment:文件标签"`
Key string `json:"key" form:"key" gorm:"column:key;comment:文件key"`
Suffix string `json:"suffix" form:"suffix" gorm:"column:suffix;comment:文件后缀"`
}