Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertCategoryPb ¶
func ConvertCategoryPb(in *types.CategoryNewReq) (out *articlerpc.CategoryNewReq)
func ConvertCategoryTypes ¶
func ConvertCategoryTypes(in *articlerpc.CategoryDetails) (out *types.CategoryBackDTO)
Types ¶
type AddCategoryLogic ¶
func NewAddCategoryLogic ¶
func NewAddCategoryLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AddCategoryLogic
创建文章分类
func (*AddCategoryLogic) AddCategory ¶
func (l *AddCategoryLogic) AddCategory(req *types.CategoryNewReq) (resp *types.CategoryBackDTO, err error)
type BatchDeleteCategoryLogic ¶
func NewBatchDeleteCategoryLogic ¶
func NewBatchDeleteCategoryLogic(ctx context.Context, svcCtx *svc.ServiceContext) *BatchDeleteCategoryLogic
批量删除文章分类
func (*BatchDeleteCategoryLogic) BatchDeleteCategory ¶
type DeleteCategoryLogic ¶
func NewDeleteCategoryLogic ¶
func NewDeleteCategoryLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteCategoryLogic
删除文章分类
func (*DeleteCategoryLogic) DeleteCategory ¶
type FindCategoryListLogic ¶
func NewFindCategoryListLogic ¶
func NewFindCategoryListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindCategoryListLogic
分页获取文章分类列表
func (*FindCategoryListLogic) FindCategoryList ¶
func (l *FindCategoryListLogic) FindCategoryList(req *types.CategoryQuery) (resp *types.PageResp, err error)
type UpdateCategoryLogic ¶
func NewUpdateCategoryLogic ¶
func NewUpdateCategoryLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateCategoryLogic
更新文章分类
func (*UpdateCategoryLogic) UpdateCategory ¶
func (l *UpdateCategoryLogic) UpdateCategory(req *types.CategoryNewReq) (resp *types.CategoryBackDTO, err error)
Click to show internal directories.
Click to hide internal directories.