Add schedule for planner (#16091)
This commit is contained in:
parent
35c9452d76
commit
a35a705e48
33 changed files with 1771 additions and 421 deletions
9
api/plans.go
Normal file
9
api/plans.go
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
package api
|
||||
|
||||
type RepeatingPlanStruct struct {
|
||||
Weekdays []int `json:"weekdays"` // 0-6 (Sunday-Saturday)
|
||||
Time string `json:"time"` // HH:MM
|
||||
Tz string `json:"tz"` // timezone in IANA format
|
||||
Soc int `json:"soc"`
|
||||
Active bool `json:"active"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue