add update group struct
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user