category

package
v0.0.0-...-40c8909 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

type AddCategoryLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

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

type BatchDeleteCategoryLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewBatchDeleteCategoryLogic

func NewBatchDeleteCategoryLogic(ctx context.Context, svcCtx *svc.ServiceContext) *BatchDeleteCategoryLogic

批量删除文章分类

func (*BatchDeleteCategoryLogic) BatchDeleteCategory

func (l *BatchDeleteCategoryLogic) BatchDeleteCategory(req *types.IdsReq) (resp *types.BatchResp, err error)

type DeleteCategoryLogic

type DeleteCategoryLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteCategoryLogic

func NewDeleteCategoryLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteCategoryLogic

删除文章分类

func (*DeleteCategoryLogic) DeleteCategory

func (l *DeleteCategoryLogic) DeleteCategory(req *types.IdReq) (resp *types.BatchResp, err error)

type FindCategoryListLogic

type FindCategoryListLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

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

type UpdateCategoryLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

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)

Jump to

Keyboard shortcuts

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