service

package
v0.0.0-...-d2cdecb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryService

type CategoryService interface {
	GetCategory(ctx context.Context, req *api.GetCategoryRequest) (*api.GetCategoryResponse, error)
	ListCategories(ctx context.Context, req *api.ListCategoriesRequest) (*api.ListCategoriesResponse, error)
	CreateCategory(ctx context.Context, req *api.CreateCategoryRequest, name string, desc string) (*api.CreateCategoryResponse, error)
	UpdateCategory(ctx context.Context, req *api.UpdateCategoryRequest, name string, desc string) (*api.UpdateCategoryResponse, error)
	DeleteCategory(ctx context.Context, req *api.DeleteCategoryRequest) (*api.DeleteCategoryResponse, error)
}

func NewCategoryService

func NewCategoryService(repo repository.CategoryRepository, logger *logger.Log) CategoryService

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL