2019-12-01 22:12:13 +01:00
|
|
|
package repository
|
|
|
|
|
|
|
|
type BoardRepository interface {
|
|
|
|
List() ([]*Board, error)
|
|
|
|
Get(BoardID) (*Board, error)
|
|
|
|
Save(*Board) error
|
|
|
|
Delete(BoardID) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type BoardID string
|
|
|
|
|
|
|
|
type Board struct {
|
|
|
|
ID BoardID `json:"id"`
|
|
|
|
Title string `json:"title"`
|
|
|
|
Description string `json:"description"`
|
|
|
|
Lanes []*BoardLane `json:"lanes"`
|
|
|
|
Projects []string `json:"projects"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type BoardLaneID string
|
|
|
|
|
|
|
|
type BoardLane struct {
|
2020-04-30 15:43:40 +02:00
|
|
|
ID BoardLaneID `json:"id"`
|
|
|
|
Title string `json:"title"`
|
|
|
|
IssueLabel string `json:"issueLabel"`
|
|
|
|
CollectRemainingIssues bool `json:"collectRemainingIssues"`
|
2019-12-01 22:12:13 +01:00
|
|
|
}
|