This commit is contained in:
PandaX
2024-02-01 13:44:51 +08:00
parent 81c073260f
commit 5c1f7f630e
10 changed files with 7 additions and 24 deletions

View File

@@ -20,8 +20,6 @@ type DeviceGroup struct {
Ext Ext `json:"ext" gorm:"type:json;comment:扩展"` //可扩展的kv map,承载设备组的外围信息
Children []DeviceGroup `json:"children" gorm:"-"` //子节点
RoleId int64 `gorm:"-"` // 角色数据权限
}
type DeviceGroupLabel struct {
@@ -47,7 +45,6 @@ type Device struct {
Ext Ext `json:"ext" gorm:"type:json;comment:扩展"` //可扩展的kv map,承载设备组的外围信息
Protocol string `json:"protocol" gorm:"-"`
RoleId int64 `gorm:"-"` // 角色数据权限
}
type DeviceRes struct {

View File

@@ -48,7 +48,6 @@ type Product struct {
DeviceType string `json:"deviceType" gorm:"type:varchar(64);comment:设备类型"` // 直连设备 网关设备 网关子设备 监控设备
RuleChainId string `json:"ruleChainId" gorm:"type:varchar(64);comment:规则链Id"` //可空,如果空就走根规则链
Status string `gorm:"type:varchar(1);comment:状态" json:"status"`
RoleId int64 `gorm:"-"` // 角色数据权限
}
type ProductRes struct {