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)