Documentation ¶
Index ¶
- func NewCategoryService(bz *biz.CategoryUsecase) pb.CategoryServiceServer
- type CategoryService
- func (s *CategoryService) CreateCategory(ctx context.Context, req *pb.Category) (*pb.CreateCategoryReply, error)
- func (s *CategoryService) DeleteCategory(ctx context.Context, req *pb.DeleteCategoryRequest) (*pb.DeleteCategoryReply, error)
- func (s *CategoryService) GetCategory(ctx context.Context, req *pb.GetCategoryRequest) (*pb.Category, error)
- func (s *CategoryService) ListCategory(ctx context.Context, req *pb.ListCategoryRequest) (*pb.ListCategoryReply, error)
- func (s *CategoryService) UpdateCategory(ctx context.Context, req *pb.Category) (*pb.UpdateCategoryReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCategoryService ¶
func NewCategoryService(bz *biz.CategoryUsecase) pb.CategoryServiceServer
Types ¶
type CategoryService ¶
type CategoryService struct { pb.UnimplementedCategoryServiceServer // contains filtered or unexported fields }
func (*CategoryService) CreateCategory ¶
func (s *CategoryService) CreateCategory(ctx context.Context, req *pb.Category) (*pb.CreateCategoryReply, error)
创建文章类目
func (*CategoryService) DeleteCategory ¶
func (s *CategoryService) DeleteCategory(ctx context.Context, req *pb.DeleteCategoryRequest) (*pb.DeleteCategoryReply, error)
批量删除文章类目
func (*CategoryService) GetCategory ¶
func (s *CategoryService) GetCategory(ctx context.Context, req *pb.GetCategoryRequest) (*pb.Category, error)
获取文章类目详情
func (*CategoryService) ListCategory ¶
func (s *CategoryService) ListCategory(ctx context.Context, req *pb.ListCategoryRequest) (*pb.ListCategoryReply, error)
查询文章类目列表
func (*CategoryService) UpdateCategory ¶
func (s *CategoryService) UpdateCategory(ctx context.Context, req *pb.Category) (*pb.UpdateCategoryReply, error)
更新文章类目
Click to show internal directories.
Click to hide internal directories.