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.
17 lines
450 B
17 lines
450 B
package quartermaster
|
|
|
|
type Category struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
type CategoryService interface {
|
|
Category(int, *User) (*Category, error)
|
|
AddCategory(*Category, *User) (*Category, error)
|
|
UpdateCategory(*Category, *User) error
|
|
DeleteCategory(*Category, *User) error
|
|
GetItems(*Category, *User) ([]*Item, error)
|
|
GetCategories(*User) ([]*Category, error)
|
|
}
|