Add Models, Add Database
This commit is contained in:
parent
8f90344870
commit
faee833481
21 changed files with 407 additions and 1 deletions
13
entities/room/room.go
Normal file
13
entities/room/room.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package room
|
||||
|
||||
import (
|
||||
"nutfactory.org/Matrix/entities/event"
|
||||
)
|
||||
|
||||
type Room struct {
|
||||
Id string `json:"id,omitempty"`
|
||||
Messages map[string]event.Event `json:"messages,omitempty"`
|
||||
State map[string]event.Event `json:"state,omitempty"`
|
||||
Members []string `json:"members,omitempty"`
|
||||
Version string `json:"version,omitempty"`
|
||||
}
|
0
entities/room/roomController.go
Normal file
0
entities/room/roomController.go
Normal file
Loading…
Add table
Add a link
Reference in a new issue