service

package
v0.0.0-...-a2c21a8 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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 (*CategoryService) GetCategory

func (s *CategoryService) GetCategory(ctx context.Context, req *pb.GetCategoryRequest) (*pb.Category, error)

获取文章类目详情

func (*CategoryService) ListCategory

查询文章类目列表

func (*CategoryService) UpdateCategory

func (s *CategoryService) UpdateCategory(ctx context.Context, req *pb.Category) (*pb.UpdateCategoryReply, error)

更新文章类目

Jump to

Keyboard shortcuts

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