2022-04-14 00:10:53 +02:00
|
|
|
package model
|
|
|
|
|
2022-12-14 09:51:53 +01: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
|
2022-04-14 00:10:53 +02:00
|
|
|
BoardIDs []string `json:"boardIDs"`
|
2022-12-14 09:51:53 +01: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"`
|
|
|
|
}
|