[feat]网关子设备,直接上传,自动创建设备模型,无需手动创建

This commit is contained in:
PandaX
2023-10-17 11:14:18 +08:00
parent f26c5a2647
commit 55e399e5cb
23 changed files with 1457 additions and 74 deletions

View File

@@ -47,9 +47,9 @@ type Product struct {
ProtocolName string `json:"protocolName" gorm:"type:varchar(64);comment:协议名称"` //MQTT COAP WebSocket LwM2M
DeviceType string `json:"deviceType" gorm:"type:varchar(64);comment:设备类型"` // 直连设备 网关设备 网关子设备 监控设备
RuleChainId string `json:"ruleChainId" gorm:"type:varchar(64);comment:规则链Id"` //可空,如果空就走根规则链
Status string `gorm:"status;type:varchar(1);comment:状态" json:"status"`
RoleId int64 `gorm:"-"` // 角色数据权限
Status string `gorm:"type:varchar(1);comment:状态" json:"status"`
IsDefault string `gorm:"type:varchar(1);comment:是否默认" json:"isDefault"`
RoleId int64 `gorm:"-"` // 角色数据权限
}
type ProductRes struct {