fix changes from debug, edit groups return, add new connections func

This commit is contained in:
2026-04-05 12:55:36 +02:00
parent 8f5e405532
commit 9d279c9680
5 changed files with 48 additions and 75 deletions
+12 -22
View File
@@ -19,29 +19,19 @@ type User struct {
}
type Connection struct {
CreatedAt time.Time
With uint32
IsFromUser bool
IsAccepted bool
CreatedAt time.Time `json:"createdAt"`
With uint32 `json:"-"`
IsFromUser bool `json:"isFromUser"`
IsAccepted bool `json:"isAccepted"`
}
type Group struct {
Name string
CreatedAt time.Time
Id uint32
CreatorId uint32
OwnerId uint32
Users map[uint32]struct{}
Color [3]uint8
EnableUserColors bool
}
type GroupNoMembers struct {
Name string `json:"name"`
CreatedAt time.Time `json:"createdAt"`
Id uint32 `json:"id"`
CreatorId uint32 `json:"creatorId"`
OwnerId uint32 `json:"ownerId"`
Color [3]uint8 `json:"color"`
EnableUsersColors bool `json:"enableUsersColors"`
Name string `json:"name"`
CreatedAt time.Time `json:"createdAt"`
Id uint32 `json:"-"`
CreatorId uint32 `json:"creatorId"`
OwnerId uint32 `json:"ownerId"`
Users map[uint32]struct{} `json:"-"`
Color [3]uint8 `json:"color"`
EnableUserColors bool `json:"enableUserColors"`
}