Some checks failed
CI / init (push) Has been cancelled
CI / Frontend node 18.16.0 (push) Has been cancelled
CI / Backend go (1.22) (push) Has been cancelled
CI / devops-test (1.22, 18.16.0) (push) Has been cancelled
CI / release-pr (push) Has been cancelled
CI / release-please (push) Has been cancelled
CI / devops-prod (1.22, 18.x) (push) Has been cancelled
CI / docker (push) Has been cancelled
19 lines
858 B
Go
19 lines
858 B
Go
package example
|
|
|
|
import (
|
|
"github.com/flipped-aurora/gin-vue-admin/server/global"
|
|
)
|
|
|
|
type ExaFileUploadAndDownload struct {
|
|
global.GVA_MODEL
|
|
Name string `json:"name" form:"name" gorm:"column:name;comment:文件名"` // 文件名
|
|
ClassId int `json:"classId" form:"classId" gorm:"default:0;type:int;column:class_id;comment:分类id;"` // 分类id
|
|
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:编号"` // 编号
|
|
}
|
|
|
|
func (ExaFileUploadAndDownload) TableName() string {
|
|
return "exa_file_upload_and_downloads"
|
|
}
|