From 4942a1a1ad345241ecc29521cdbc6b5a6e47ff7f Mon Sep 17 00:00:00 2001 From: what Date: Fri, 19 Apr 2024 16:16:14 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20mqtt=20=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/mqtt.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 base/mqtt.go diff --git a/base/mqtt.go b/base/mqtt.go new file mode 100644 index 0000000..982d52d --- /dev/null +++ b/base/mqtt.go @@ -0,0 +1,15 @@ +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"` +} + +type GetMqtt func(code string) (Mqtt, bool)