mid chat group ccreation implementation
This commit is contained in:
+14
-2
@@ -1,12 +1,16 @@
|
||||
package main
|
||||
|
||||
import "github.com/coder/websocket"
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/coder/websocket"
|
||||
)
|
||||
|
||||
type User struct {
|
||||
Id uint32
|
||||
Name string
|
||||
Password string
|
||||
Color string
|
||||
Id uint32
|
||||
IsPasswordHashed bool
|
||||
}
|
||||
type Client struct {
|
||||
@@ -15,4 +19,12 @@ type Client struct {
|
||||
}
|
||||
|
||||
type ChatGroup struct {
|
||||
Members []User
|
||||
CreatedAt time.Time
|
||||
Name string
|
||||
Id uint32
|
||||
CreatorId uint32
|
||||
OwnerId uint32
|
||||
Color [3]byte
|
||||
EnableUserColors bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user