2022-04-14 00:10:53 +02:00
|
|
|
package model
|
|
|
|
|
2022-12-14 10:51:53 +02:00
|
|
|
const CategoryBoardsSortOrderGap = 10
|
|
|
|
|
2022-04-15 19:21:10 +02:00
|
|
|
// CategoryBoards is a board category and associated boards
|
|
|
|
// swagger:model
|
2022-04-14 00:10:53 +02:00
|
|
|
type CategoryBoards struct {
|
|
|
|
Category
|
2022-04-15 19:21:10 +02:00
|
|
|
|
|
|
|
// The IDs of boards in this category
|
|
|
|
// required: true
|
2023-01-24 12:11:54 +02:00
|
|
|
BoardMetadata []CategoryBoardMetadata `json:"boardMetadata"`
|
2022-12-14 10:51:53 +02:00
|
|
|
|
|
|
|
// The relative sort order of this board in its category
|
|
|
|
// required: true
|
|
|
|
SortOrder int `json:"sortOrder"`
|
2022-04-14 00:10:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type BoardCategoryWebsocketData struct {
|
|
|
|
BoardID string `json:"boardID"`
|
|
|
|
CategoryID string `json:"categoryID"`
|
2023-01-24 12:11:54 +02:00
|
|
|
Hidden bool `json:"hidden"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type CategoryBoardMetadata struct {
|
|
|
|
BoardID string `json:"boardID"`
|
|
|
|
Hidden bool `json:"hidden"`
|
2022-04-14 00:10:53 +02:00
|
|
|
}
|