add update group struct

This commit is contained in:
2026-04-12 13:59:20 +02:00
parent 989b10ac4e
commit 18ebfd0416
+4
View File
@@ -78,14 +78,18 @@ type Message struct {
} }
type Group struct { type Group struct {
Mu sync.RWMutex `json:"-"`
Name string `json:"name"` Name string `json:"name"`
CreatedAt time.Time `json:"createdAt"` CreatedAt time.Time `json:"createdAt"`
MessagesBuff [MaxDirectMsgCache]*Message `json:"-"`
NextBuffIdx uint32 `json:"-"`
Id uint32 `json:"-"` Id uint32 `json:"-"`
CreatorId uint32 `json:"creatorId"` CreatorId uint32 `json:"creatorId"`
OwnerId uint32 `json:"ownerId"` OwnerId uint32 `json:"ownerId"`
Users map[uint32]struct{} `json:"-"` Users map[uint32]struct{} `json:"-"`
Color [3]uint8 `json:"color"` Color [3]uint8 `json:"color"`
EnableUserColors bool `json:"enableUserColors"` EnableUserColors bool `json:"enableUserColors"`
HaveMessageBuffOverflowed bool `json:"-"`
} }
type LoginReturn struct { type LoginReturn struct {