Add Database Functions
This commit is contained in:
parent
126070829c
commit
253b020733
22 changed files with 1076 additions and 119 deletions
|
@ -5,8 +5,8 @@ import (
|
|||
)
|
||||
|
||||
type User struct {
|
||||
Id string `json:"id,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
Password string `json:"password,omitempty"`
|
||||
Devices map[string]device.Device `json:"devices,omitempty"`
|
||||
Id string `json:"id,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
Password string `json:"password,omitempty"`
|
||||
Devices map[string]*device.Device `json:"devices,omitempty"`
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
package user
|
||||
|
||||
func New() user *User {
|
||||
|
||||
}
|
||||
func New() (user *User) {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue