mid chat group ccreation implementation

This commit is contained in:
2026-03-12 22:54:31 +01:00
parent b7b5788f98
commit eeea54492b
3 changed files with 131 additions and 17 deletions
+14 -2
View File
@@ -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
}