Documentation ¶
Index ¶
- type CategoryRpcServer
- func (s *CategoryRpcServer) CreateCategory(ctx context.Context, in *blog.Category) (*blog.Category, error)
- func (s *CategoryRpcServer) DeleteCategory(ctx context.Context, in *blog.IdReq) (*blog.BatchResp, error)
- func (s *CategoryRpcServer) DeleteCategoryList(ctx context.Context, in *blog.IdsReq) (*blog.BatchResp, error)
- func (s *CategoryRpcServer) FindCategory(ctx context.Context, in *blog.IdReq) (*blog.Category, error)
- func (s *CategoryRpcServer) FindCategoryCount(ctx context.Context, in *blog.PageQuery) (*blog.CountResp, error)
- func (s *CategoryRpcServer) FindCategoryList(ctx context.Context, in *blog.PageQuery) (*blog.CategoryPageResp, error)
- func (s *CategoryRpcServer) FindCategoryListByIds(ctx context.Context, in *blog.IdsReq) (*blog.CategoryPageResp, error)
- func (s *CategoryRpcServer) UpdateCategory(ctx context.Context, in *blog.Category) (*blog.Category, error)
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)
更新文章分类
Click to show internal directories.
Click to hide internal directories.