Add Database Functions
This commit is contained in:
parent
126070829c
commit
253b020733
22 changed files with 1076 additions and 119 deletions
|
@ -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"`
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
package device
|
||||
|
||||
func New() device *Device {
|
||||
|
||||
}
|
||||
func New() (device *Device) {
|
||||
return
|
||||
}
|
||||
|
|
7
entities/device/key.go
Normal file
7
entities/device/key.go
Normal 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"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue