add getting user

This commit is contained in:
2026-04-19 00:37:49 +02:00
parent a47654428c
commit a0140ec0a7
5 changed files with 50 additions and 14 deletions
+12 -12
View File
@@ -25,18 +25,18 @@ func (r Rgba) GetRandom() *Rgba {
}
type User struct {
Mu sync.RWMutex
Name string
Pronouns string
Description string
Avatar string
ProfileBg string
PasswordHash string
CreatedAt time.Time
WsConn *websocket.Conn
Id uuid.UUID
Connections map[uuid.UUID]*Connection
Color *Rgba
Mu sync.RWMutex `json:"-"`
Name string `json:"name"`
Pronouns string `json:"pronouns"`
Description string `json:"description"`
Avatar string `json:"avatar"`
ProfileBg string `json:"profileBg"`
PasswordHash string `json:"passwordHash"`
CreatedAt time.Time `json:"createdAt"`
WsConn *websocket.Conn `json:"-"`
Id uuid.UUID `json:"-"`
Connections map[uuid.UUID]*Connection `json:"-"`
Color *Rgba `json:"color"`
}
type UserProfileUpdateList struct {