24 lines
1.4 KiB
Go
24 lines
1.4 KiB
Go
package model
|
|
|
|
import "time"
|
|
|
|
// NeVersion 网元版本信息 ne_version
|
|
type NeVersion struct {
|
|
ID string `json:"id" gorm:"id"`
|
|
NeType string `json:"neType" gorm:"ne_type" binding:"required"` // 网元类型
|
|
NeId string `json:"neId" gorm:"ne_id" binding:"required"` // 网元ID
|
|
Version string `json:"version" gorm:"version"` // 当前版本
|
|
FilePath string `json:"filePath" gorm:"file_path"` // 当前软件包
|
|
PreVersion string `json:"preVersion" gorm:"pre_version"` // 上一版本
|
|
PreFile string `json:"preFile" gorm:"pre_file"` // 上一版本软件包
|
|
NewVersion string `json:"newVersion" gorm:"new_version"` // 下一版本
|
|
NewFile string `json:"newFile" gorm:"new_file"` // 下一版本软件包
|
|
Status string `json:"status" gorm:"status" binding:"oneof=Uploaded Inactive Active"` // 当前状态 (Uploaded下一版本上传 Inactive下一版本待激活 Active当前已激活)
|
|
UpdateTime time.Time `json:"updateTime" gorm:"update_time"` // 更新时间
|
|
}
|
|
|
|
// TableName 表名称
|
|
func (*NeVersion) TableName() string {
|
|
return "ne_version"
|
|
}
|