From 0e21627c9a2595c7f3c04beab877a14059641dbe Mon Sep 17 00:00:00 2001 From: what Date: Fri, 19 Apr 2024 23:20:03 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20MQTT=20Roles=20=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/mqtt.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/base/mqtt.go b/base/mqtt.go index 7678f2f..ca03d94 100644 --- a/base/mqtt.go +++ b/base/mqtt.go @@ -1,16 +1,16 @@ package base type Mqtt struct { - Uuid string `db:"uuid"` - Code string `db:"code"` - Name string `db:"name"` - ResourceUuid string `db:"resource_uuid"` - OwnedUser string `db:"owned_user"` - UpdatedAt string `db:"updated_at"` - CreatedAt string `db:"created_at"` - Enabled bool `db:"enabled"` - Roles []map[string]int64 `db:"roles"` - Params []ResApiParam `db:"params"` + Uuid string `db:"uuid"` + Code string `db:"code"` + Name string `db:"name"` + ResourceUuid string `db:"resource_uuid"` + OwnedUser string `db:"owned_user"` + UpdatedAt string `db:"updated_at"` + CreatedAt string `db:"created_at"` + Enabled bool `db:"enabled"` + Roles map[string]int64 `db:"roles"` + Params []ResApiParam `db:"params"` } type GetMqtt func(code string) (Mqtt, bool)