Documentation
¶
Index ¶
- type GroupService
- func (g *GroupService) Categories(ctx context.Context, id uint) ([]database.CategoryOut, error)
- func (g *GroupService) Create(ctx context.Context, data database.GroupIn) (string, error)
- func (g *GroupService) Delete(ctx context.Context, id uint) (string, error)
- func (g *GroupService) GetAll(context.Context) ([]database.GroupOutWithCategories, error)
- func (g *GroupService) GetByID(ctx context.Context, id uint) (database.GroupOut, error)
- func (g *GroupService) Update(ctx context.Context, id uint, data database.GroupIn) (string, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupService ¶
func (*GroupService) Categories ¶
func (g *GroupService) Categories(ctx context.Context, id uint) ([]database.CategoryOut, error)
func (*GroupService) GetAll ¶
func (g *GroupService) GetAll(context.Context) ([]database.GroupOutWithCategories, error)
type Service ¶
type Service interface { GetAll(ctx context.Context) ([]database.GroupOutWithCategories, error) Create(ctx context.Context, data database.GroupIn) (string, error) Update(ctx context.Context, id uint, data database.GroupIn) (string, error) Delete(ctx context.Context, id uint) (string, error) Categories(ctx context.Context, id uint) ([]database.CategoryOut, error) GetByID(ctx context.Context, id uint) (database.GroupOut, error) }
Click to show internal directories.
Click to hide internal directories.