[feat] mqtt 支持

This commit is contained in:
what 2024-04-19 16:16:14 +08:00
parent 40b987e7f5
commit 4942a1a1ad

15
base/mqtt.go Normal file
View File

@ -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)