You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
372 B
16 lines
372 B
package quartermaster
|
|
|
|
type Category struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
type CategoryService interface {
|
|
Category(int) (*Category, error)
|
|
AddCategory(*Category) (*Category, error)
|
|
UpdateCategory(*Category) error
|
|
DeleteCategory(*Category) error
|
|
GetItems(*Category) ([]*Item, error)
|
|
}
|