feat: toggle controller state on/off

This commit is contained in:
Kaaninchen
2026-08-03 18:50:22 +02:00
parent 67162359ed
commit 3f470096ce
7 changed files with 86 additions and 11 deletions
+6
View File
@@ -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"`
}