Add Database Functions

This commit is contained in:
hoernschen 2020-10-01 17:45:57 +02:00
parent 126070829c
commit 253b020733
22 changed files with 1076 additions and 119 deletions

View file

@ -1,7 +1,7 @@
package device
type Device struct {
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Keys map[string]string `json:"keys,omitempty"`
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Keys map[string]*Key `json:"keys,omitempty"`
}

View file

@ -1,5 +1,5 @@
package device
func New() device *Device {
}
func New() (device *Device) {
return
}

7
entities/device/key.go Normal file
View file

@ -0,0 +1,7 @@
package device
type Key struct {
Id string `json:"id,omitempty"`
Type string `json:"type,omitempty"`
Key string `json:"key,omitempty"`
}