feat: 网元配置文件备份记录功能接口
This commit is contained in:
24
src/modules/network_element/model/ne_config_backup.go
Normal file
24
src/modules/network_element/model/ne_config_backup.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package model
|
||||
|
||||
// NeConfigBackup 网元配置文件备份记录 ne_config_backup
|
||||
type NeConfigBackup struct {
|
||||
ID string `json:"id" gorm:"column:id;primaryKey;autoIncrement"`
|
||||
NeType string `json:"neType" gorm:"ne_type"` // 网元类型
|
||||
NeId string `json:"neId" gorm:"ne_id"` // 网元ID
|
||||
Name string `json:"name" gorm:"name"` // 命名
|
||||
Version string `json:"version" gorm:"version"` // 网元版本
|
||||
Path string `json:"path" gorm:"path"` // 压缩包位置
|
||||
Remark string `json:"remark" gorm:"remark"` // 备注
|
||||
CreateBy string `json:"createBy" gorm:"create_by"` // 创建者
|
||||
CreateTime int64 `json:"createTime" gorm:"create_time"` // 创建时间
|
||||
UpdateBy string `json:"updateBy" gorm:"update_by"` // 更新者
|
||||
UpdateTime int64 `json:"updateTime" gorm:"update_time"` // 更新时间
|
||||
|
||||
// ====== 非数据库字段属性 ======
|
||||
|
||||
}
|
||||
|
||||
// TableName 表名称
|
||||
func (*NeConfigBackup) TableName() string {
|
||||
return "ne_config_backup"
|
||||
}
|
||||
Reference in New Issue
Block a user