// 自动生成模板Contract package test import ( "srm/global" ) // Contract 结构体 type Contract struct { global.GVA_MODEL SupplierID *int `json:"supplierID" form:"supplierID" gorm:"column:supplier_id;comment:供应商id;"` FileName string `json:"fileName" form:"fileName" gorm:"column:file_name;comment:文件名称;size:255;"` FileContent []byte `json:"-" form:"fileContent" gorm:"type:mediumblob;column:file_content;comment:文件内容;"` FileType string `json:"-" form:"fileType" gorm:"column:file_type;comment:文件类型;size:255;"` } // TableName Contract 表名 func (Contract) TableName() string { return "srm_contract" }