You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
953 B
20 lines
953 B
8 months ago
|
package model
|
||
|
|
||
|
import "pure/global"
|
||
|
|
||
|
type Firmware struct {
|
||
|
global.MG_MODEL
|
||
|
Source string `gorm:"type:varchar(255);comment:来源" json:"source"` //来源(厂家)
|
||
|
Ver string `gorm:"type:varchar(255);comment:版本号" json:"ver"` //版本号
|
||
|
Url string `gorm:"type:varchar(255);comment:下载地址" json:"url"` //下载地址
|
||
|
Md5 string `gorm:"type:varchar(255);comment:md5" json:"md5"` //md5
|
||
|
Size int64 `gorm:"type:int;comment:大小" json:"size"` //大小
|
||
|
Status int `gorm:"type:int;comment:状态" json:"status"` //状态
|
||
|
UrgentRepair int `gorm:"type:int;comment:是否紧急修复" json:"urgent_repair"` //紧急修复:0:否 1:是
|
||
|
UpdateTime string `gorm:"type:varchar(255);comment:更新时间" json:"update_time"` //设定的预更新时间
|
||
|
}
|
||
|
|
||
|
func (f *Firmware) TableName() string {
|
||
|
return "firmware"
|
||
|
}
|