insert routes to main and driver
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
package models
|
||||
|
||||
type JsonData struct {
|
||||
Set *[]Set `json:"set,omitempty"`
|
||||
Set *[]Set `json:"set,omitempty"`
|
||||
Create *[]Bus `json:"create,omitempty"`
|
||||
}
|
||||
|
||||
func NewRequest() *JsonData {
|
||||
@@ -9,7 +10,7 @@ func NewRequest() *JsonData {
|
||||
|
||||
}
|
||||
|
||||
func (r *JsonData) AddSet(bus, address uint, value uint8) {
|
||||
func (r *JsonData) AddSet(bus string, address uint, value uint8) {
|
||||
if r.Set == nil {
|
||||
r.Set = &[]Set{}
|
||||
}
|
||||
|
Reference in New Issue
Block a user