server

package
v0.0.0-...-09fef34 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryRpcServer

type CategoryRpcServer struct {
	blog.UnimplementedCategoryRpcServer
	// contains filtered or unexported fields
}

func NewCategoryRpcServer

func NewCategoryRpcServer(svcCtx *svc.ServiceContext) *CategoryRpcServer

func (*CategoryRpcServer) CreateCategory

func (s *CategoryRpcServer) CreateCategory(ctx context.Context, in *blog.Category) (*blog.Category, error)

创建文章分类

func (*CategoryRpcServer) DeleteCategory

func (s *CategoryRpcServer) DeleteCategory(ctx context.Context, in *blog.IdReq) (*blog.BatchResp, error)

删除文章分类

func (*CategoryRpcServer) DeleteCategoryList

func (s *CategoryRpcServer) DeleteCategoryList(ctx context.Context, in *blog.IdsReq) (*blog.BatchResp, error)

批量删除文章分类

func (*CategoryRpcServer) FindCategory

func (s *CategoryRpcServer) FindCategory(ctx context.Context, in *blog.IdReq) (*blog.Category, error)

查询文章分类

func (*CategoryRpcServer) FindCategoryCount

func (s *CategoryRpcServer) FindCategoryCount(ctx context.Context, in *blog.PageQuery) (*blog.CountResp, error)

查询文章分类数量

func (*CategoryRpcServer) FindCategoryList

func (s *CategoryRpcServer) FindCategoryList(ctx context.Context, in *blog.PageQuery) (*blog.CategoryPageResp, error)

查询文章分类列表

func (*CategoryRpcServer) FindCategoryListByIds

func (s *CategoryRpcServer) FindCategoryListByIds(ctx context.Context, in *blog.IdsReq) (*blog.CategoryPageResp, error)

查询文章分类列表(通过ids)

func (*CategoryRpcServer) UpdateCategory

func (s *CategoryRpcServer) UpdateCategory(ctx context.Context, in *blog.Category) (*blog.Category, error)

更新文章分类

Jump to

Keyboard shortcuts

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