change client to user

This commit is contained in:
2026-04-03 19:33:26 +02:00
parent 8d97e28dde
commit bd1168aef7
8 changed files with 212 additions and 213 deletions
+16 -16
View File
@@ -6,7 +6,7 @@ import (
"github.com/coder/websocket"
)
type Client struct {
type User struct {
Name string
Pronouns string
PasswordHash string
@@ -18,22 +18,22 @@ type Client struct {
}
type Group struct {
Name string
CreatedAt time.Time
Id uint32
CreatorId uint32
OwnerId uint32
Clients map[uint32]struct{}
Color [3]uint8
EnableClientColors bool
Name string
CreatedAt time.Time
Id uint32
CreatorId uint32
OwnerId uint32
Users map[uint32]struct{}
Color [3]uint8
EnableUserColors bool
}
type GroupNoMembers struct {
Name string `json:"name"`
CreatedAt time.Time `json:"createdAt"`
Id uint32 `json:"id"`
CreatorId uint32 `json:"creatorId"`
OwnerId uint32 `json:"ownerId"`
Color [3]uint8 `json:"color"`
EnableClientsColors bool `json:"enableClientsColors"`
Name string `json:"name"`
CreatedAt time.Time `json:"createdAt"`
Id uint32 `json:"id"`
CreatorId uint32 `json:"creatorId"`
OwnerId uint32 `json:"ownerId"`
Color [3]uint8 `json:"color"`
EnableUsersColors bool `json:"enableUsersColors"`
}