mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-24 13:43:12 +02:00
bc37e97ae9
* Applying migration changes * Fixing linter erros * Restoring userID * Updated user id length * Update server/app/category_boards.go * Skiped creating categories for boards belonging to DMs * Handled private group messages as well * fix sql error for insert_at * fix timestamp parsing Co-authored-by: Mattermod <mattermod@users.noreply.github.com> Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com> Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
50 lines
1.5 KiB
Go
50 lines
1.5 KiB
Go
package ws
|
|
|
|
import (
|
|
"github.com/mattermost/focalboard/server/model"
|
|
)
|
|
|
|
// UpdateCategoryMessage is sent on block updates.
|
|
type UpdateCategoryMessage struct {
|
|
Action string `json:"action"`
|
|
TeamID string `json:"teamId"`
|
|
Category *model.Category `json:"category,omitempty"`
|
|
BoardCategories *model.BoardCategoryWebsocketData `json:"blockCategories,omitempty"`
|
|
}
|
|
|
|
// UpdateBlockMsg is sent on block updates.
|
|
type UpdateBlockMsg struct {
|
|
Action string `json:"action"`
|
|
TeamID string `json:"teamId"`
|
|
Block model.Block `json:"block"`
|
|
}
|
|
|
|
// UpdateBoardMsg is sent on block updates.
|
|
type UpdateBoardMsg struct {
|
|
Action string `json:"action"`
|
|
TeamID string `json:"teamId"`
|
|
Board *model.Board `json:"board"`
|
|
}
|
|
|
|
// UpdateMemberMsg is sent on membership updates.
|
|
type UpdateMemberMsg struct {
|
|
Action string `json:"action"`
|
|
TeamID string `json:"teamId"`
|
|
Member *model.BoardMember `json:"member"`
|
|
}
|
|
|
|
// UpdateSubscription is sent on subscription updates.
|
|
type UpdateSubscription struct {
|
|
Action string `json:"action"`
|
|
Subscription *model.Subscription `json:"subscription"`
|
|
}
|
|
|
|
// WebsocketCommand is an incoming command from the client.
|
|
type WebsocketCommand struct {
|
|
Action string `json:"action"`
|
|
TeamID string `json:"teamId"`
|
|
Token string `json:"token"`
|
|
ReadToken string `json:"readToken"`
|
|
BlockIDs []string `json:"blockIds"`
|
|
}
|