mirror of
https://github.com/kaaninchen/Laterna.git
synced 2026-09-17 19:12:48 +00:00
feat: toggle controller state on/off
This commit is contained in:
@@ -27,6 +27,7 @@ type HTTPResponse struct {
|
||||
type LampState struct {
|
||||
ID int `json:"id"`
|
||||
Color string `json:"color"`
|
||||
Active bool `json:"active"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
|
||||
@@ -45,3 +46,8 @@ type DeleteData struct {
|
||||
type CreateData struct {
|
||||
Created int `json:"created"`
|
||||
}
|
||||
|
||||
type ToggleController struct {
|
||||
ID int `json:"id"`
|
||||
Active bool `json:"active"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user