package model import ( "sundynix-micro-go/common/model" ) // SundynixOss OSS文件表 type SundynixOss struct { model.BaseModel Name string `json:"name" gorm:"column:name;comment:文件名"` Url string `json:"url" gorm:"column:url;comment:文件地址"` Tag string `json:"tag" gorm:"column:tag;comment:文件标签"` Key string `json:"key" gorm:"column:key;comment:文件key"` Suffix string `json:"suffix" gorm:"column:suffix;comment:文件后缀"` MD5 string `json:"md5" gorm:"column:md5;comment:文件md5"` } // TableName 指定表名 func (SundynixOss) TableName() string { return "sundynix_oss" }