package iot import "IotAdmin/common/models" type Group struct { ID int64 `gorm:"primary_key;auto_increment;not null;comment:ID"` ParentId int64 `gorm:"type:bigint;not null;comment:父ID"` Path string `gorm:"type:varchar(255);not null;comment:分组路径"` Name string `gorm:"type:varchar(255);not null;comment:分组名称"` Description string `gorm:"type:varchar(255);not null;comment:分组描述"` models.ControlBy models.ModelTime } func (Group) TableName() string { return "iot_group" }