add update group struct

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