feat: 新增网元主机命令接口
This commit is contained in:
20
src/modules/network_element/model/ne_host_cmd.go
Normal file
20
src/modules/network_element/model/ne_host_cmd.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package model
|
||||
|
||||
// NeHostCmd 网元主机命令表 ne_host_cmd
|
||||
type NeHostCmd struct {
|
||||
CmdID string `json:"cmdId" gorm:"column:cmd_id"` // 命令主键
|
||||
CmdType string `json:"cmdType" gorm:"column:cmd_type"` // 命令类型
|
||||
GroupID string `json:"groupId" gorm:"column:group_id"` // 分组(0默认)
|
||||
Title string `json:"title" gorm:"column:title" binding:"required"` // 标题名称
|
||||
Command string `json:"command" gorm:"column:command" binding:"required"` // 命令字符串
|
||||
Remark string `json:"remark" gorm:"column:remark"` // 备注
|
||||
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 (*NeHostCmd) TableName() string {
|
||||
return "ne_host_cmd"
|
||||
}
|
||||
Reference in New Issue
Block a user