Add Models, Add Database
This commit is contained in:
parent
8f90344870
commit
faee833481
21 changed files with 407 additions and 1 deletions
12
entities/user/user.go
Normal file
12
entities/user/user.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package user
|
||||
|
||||
import (
|
||||
"nutfactory.org/Matrix/entities/device"
|
||||
)
|
||||
|
||||
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"`
|
||||
}
|
0
entities/user/userController.go
Normal file
0
entities/user/userController.go
Normal file
Loading…
Add table
Add a link
Reference in a new issue