- Updated tags from 'network_data' to 'ne_data' for consistency and brevity. - Changed 'network_element' to 'ne' across various endpoints for improved readability. - Adjusted related descriptions in the tags section to reflect the new naming conventions.
28 lines
1.7 KiB
Go
28 lines
1.7 KiB
Go
package model
|
|
|
|
// NeVersion 网元版本信息 ne_version
|
|
type NeVersion struct {
|
|
ID int64 `json:"id" gorm:"column:id;primaryKey;autoIncrement"`
|
|
NeType string `json:"neType" gorm:"column:ne_type" binding:"required"` // 网元类型
|
|
NeId string `json:"neId" gorm:"column:ne_id" binding:"required"` // 网元ID
|
|
Name string `json:"name" gorm:"column:name"` // 当前包名
|
|
Version string `json:"version" gorm:"column:version" binding:"required"` // 当前版本
|
|
Path string `json:"path" gorm:"column:path" binding:"required"` // 当前软件包
|
|
PreName string `json:"preName" gorm:"column:pre_name"` // 上一版本包名
|
|
PreVersion string `json:"preVersion" gorm:"column:pre_version"` // 上一版本
|
|
PrePath string `json:"prePath" gorm:"column:pre_path"` // 上一版本软件包
|
|
NewName string `json:"newName" gorm:"column:new_name"` // 新版本包名
|
|
NewVersion string `json:"newVersion" gorm:"column:new_version"` // 新版本
|
|
NewPath string `json:"newPath" gorm:"column:new_path"` // 新版本软件包
|
|
Status string `json:"status" gorm:"column:status"` // 当前状态 1当前版本 2上一版本 3有新版本
|
|
CreateBy string `json:"createBy" gorm:"column:create_by"` // 创建者
|
|
CreateTime int64 `json:"createTime" gorm:"column:create_time"` // 创建时间
|
|
UpdateBy string `json:"updateBy" gorm:"column:update_by"` // 更新者
|
|
UpdateTime int64 `json:"updateTime" gorm:"column:update_time"` // 更新时间
|
|
}
|
|
|
|
// TableName 表名称
|
|
func (*NeVersion) TableName() string {
|
|
return "ne_version"
|
|
}
|