fix changes from debug, edit groups return, add new connections func
This commit is contained in:
+12
-22
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user