feat: 内转请求的网元参数配置接口
This commit is contained in:
21
src/modules/network_element/model/ne_config.go
Normal file
21
src/modules/network_element/model/ne_config.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package model
|
||||
|
||||
// NeConfig 网元参数配置可用属性值
|
||||
type NeConfig struct {
|
||||
ID string `json:"id" gorm:"id"`
|
||||
NeType string `json:"neType" binding:"required" gorm:"ne_type"` // 网元类型
|
||||
NeId string `json:"-" gorm:"ne_id"`
|
||||
TopTag string `json:"topTag" binding:"required" gorm:"top_tag"`
|
||||
TopDisplay string `json:"topDisplay" binding:"required" gorm:"top_display"`
|
||||
Method string `json:"method" gorm:"method"` // 操作属性 get只读强制不可编辑删除 put可编辑 delete可删除 post可新增
|
||||
ParamJSONStr string `json:"-" gorm:"param_json"` // accesss属性控制:只读read-only/read/ro 读写read-write
|
||||
|
||||
// ====== 非数据库字段属性 ======
|
||||
|
||||
ParamData map[string]any `json:"paramData,omitempty" binding:"required" gorm:"-"` // 与ParamJSONStr配合转换
|
||||
}
|
||||
|
||||
// TableName 表名称
|
||||
func (*NeConfig) TableName() string {
|
||||
return "param_config"
|
||||
}
|
||||
Reference in New Issue
Block a user