contracts/base/mqtt.go

17 lines
543 B
Go
Raw Normal View History

2024-04-19 16:16:14 +08:00
package base
type Mqtt struct {
2024-04-19 23:20:03 +08:00
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"`
2024-04-19 16:16:14 +08:00
}
type GetMqtt func(code string) (Mqtt, bool)