change client to user
This commit is contained in:
+16
-16
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user