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
407 B
17 lines
407 B
package quartermaster
|
|
|
|
type Group struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
type GroupService interface {
|
|
Group(int, *User) (*Group, error)
|
|
AddGroup(*Group, *User) (*Group, error)
|
|
UpdateGroup(*Group, *User) error
|
|
DeleteGroup(*Group, *User) error
|
|
GetItems(*Group, *User) ([]*Item, error)
|
|
GetGroups(*User) ([]*Group, error)
|
|
}
|