feat: product.

This commit is contained in:
2026-05-01 07:46:48 +08:00
parent 79515007b7
commit 7b43ccf42f
10 changed files with 1070 additions and 1 deletions
+4 -1
View File
@@ -7,7 +7,10 @@ import (
// Gateway 代表一个物联网网关设备
type Gateway struct {
gorm.Model
ID uint `gorm:"primaryKey" json:"id"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
// MAC地址是网关的唯一标识
MAC string `gorm:"size:32;uniqueIndex;not null" json:"mac"`