Documentation ¶
Index ¶
- type CategoryService
- func (service *CategoryService) CreateCategory(_ context.Context, in *proto.CreateCategoryRequest) (*proto.CategoryResponse, error)
- func (service *CategoryService) CreateCategoryInBatch(stream proto.CategoryService_CreateCategoryInBatchServer) error
- func (service *CategoryService) DeleteCategoryInBatch(stream proto.CategoryService_DeleteCategoryInBatchServer) error
- func (service *CategoryService) FindAll(context.Context, *proto.Blank) (*proto.CategoryList, error)
- func (service *CategoryService) UpdateCategory(_ context.Context, in *proto.UpdateCategoryRequest) (*proto.CategoryResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryService ¶
type CategoryService struct { proto.UnimplementedCategoryServiceServer DB *database.CategoryDB }
func NewCategoryService ¶
func NewCategoryService(db *database.CategoryDB) *CategoryService
func (*CategoryService) CreateCategory ¶
func (service *CategoryService) CreateCategory(_ context.Context, in *proto.CreateCategoryRequest) (*proto.CategoryResponse, error)
func (*CategoryService) CreateCategoryInBatch ¶
func (service *CategoryService) CreateCategoryInBatch(stream proto.CategoryService_CreateCategoryInBatchServer) error
func (*CategoryService) DeleteCategoryInBatch ¶
func (service *CategoryService) DeleteCategoryInBatch(stream proto.CategoryService_DeleteCategoryInBatchServer) error
func (*CategoryService) FindAll ¶
func (service *CategoryService) FindAll(context.Context, *proto.Blank) (*proto.CategoryList, error)
func (*CategoryService) UpdateCategory ¶
func (service *CategoryService) UpdateCategory(_ context.Context, in *proto.UpdateCategoryRequest) (*proto.CategoryResponse, error)
Click to show internal directories.
Click to hide internal directories.