Dan Anglin
0e186be66b
Create a BoltItem interface which is used to make the database fucntions more generic. As part of this change, the Status and Card types have migrated back into the board package.
18 lines
302 B
Go
18 lines
302 B
Go
package board
|
|
|
|
// Card represents a card on a Kanban board.
|
|
type Card struct {
|
|
ID int
|
|
Title string
|
|
Content string
|
|
}
|
|
|
|
// UpdateId updates the ID of the Card value.
|
|
func (c *Card) UpdateId(id int) {
|
|
c.ID = id
|
|
}
|
|
|
|
// Id returns the ID of the Card value.
|
|
func (c *Card) Id() int {
|
|
return c.ID
|
|
}
|