[feat] MQTT Roles 字段调整
This commit is contained in:
parent
3a890cdcc6
commit
0e21627c9a
20
base/mqtt.go
20
base/mqtt.go
@ -1,16 +1,16 @@
|
|||||||
package base
|
package base
|
||||||
|
|
||||||
type Mqtt struct {
|
type Mqtt struct {
|
||||||
Uuid string `db:"uuid"`
|
Uuid string `db:"uuid"`
|
||||||
Code string `db:"code"`
|
Code string `db:"code"`
|
||||||
Name string `db:"name"`
|
Name string `db:"name"`
|
||||||
ResourceUuid string `db:"resource_uuid"`
|
ResourceUuid string `db:"resource_uuid"`
|
||||||
OwnedUser string `db:"owned_user"`
|
OwnedUser string `db:"owned_user"`
|
||||||
UpdatedAt string `db:"updated_at"`
|
UpdatedAt string `db:"updated_at"`
|
||||||
CreatedAt string `db:"created_at"`
|
CreatedAt string `db:"created_at"`
|
||||||
Enabled bool `db:"enabled"`
|
Enabled bool `db:"enabled"`
|
||||||
Roles []map[string]int64 `db:"roles"`
|
Roles map[string]int64 `db:"roles"`
|
||||||
Params []ResApiParam `db:"params"`
|
Params []ResApiParam `db:"params"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetMqtt func(code string) (Mqtt, bool)
|
type GetMqtt func(code string) (Mqtt, bool)
|
||||||
|
Loading…
Reference in New Issue
Block a user