add getting user
This commit is contained in:
+12
-12
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user