Documentation ¶
Index ¶
- type ArticleLogic
- type CategoryLogic
- func (l *CategoryLogic) Create(ctx context.Context, categoryReq *pb.CategoryRequest) error
- func (l *CategoryLogic) Delete(ctx context.Context, id, userId uint) error
- func (l *CategoryLogic) FindByUserIdAndIsDeleted(ctx context.Context, userId uint, isDeleted int32) ([]*pb.CategoryReply, error)
- func (l *CategoryLogic) GetByIdAndUserId(ctx context.Context, id, userId uint) (*pb.CategoryReply, error)
- func (l *CategoryLogic) UnDelete(ctx context.Context, id, userId uint) error
- func (l *CategoryLogic) Update(ctx context.Context, categoryReq *pb.CategoryRequest) error
- type UserLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleLogic ¶
type ArticleLogic struct {
// contains filtered or unexported fields
}
func NewArticleLogic ¶
func NewArticleLogic(logger log.Logger, articleService *service.ArticleService) *ArticleLogic
func (*ArticleLogic) Create ¶
func (l *ArticleLogic) Create(ctx context.Context, articleReq *pb.ArticleRequest) error
type CategoryLogic ¶
type CategoryLogic struct {
// contains filtered or unexported fields
}
func NewCategoryLogic ¶
func NewCategoryLogic(logger log.Logger, categoryService *service.CategoryService) *CategoryLogic
func (*CategoryLogic) Create ¶
func (l *CategoryLogic) Create(ctx context.Context, categoryReq *pb.CategoryRequest) error
func (*CategoryLogic) Delete ¶
func (l *CategoryLogic) Delete(ctx context.Context, id, userId uint) error
func (*CategoryLogic) FindByUserIdAndIsDeleted ¶
func (l *CategoryLogic) FindByUserIdAndIsDeleted(ctx context.Context, userId uint, isDeleted int32) ( []*pb.CategoryReply, error)
func (*CategoryLogic) GetByIdAndUserId ¶
func (l *CategoryLogic) GetByIdAndUserId(ctx context.Context, id, userId uint) (*pb.CategoryReply, error)
func (*CategoryLogic) UnDelete ¶
func (l *CategoryLogic) UnDelete(ctx context.Context, id, userId uint) error
func (*CategoryLogic) Update ¶
func (l *CategoryLogic) Update(ctx context.Context, categoryReq *pb.CategoryRequest) error
type UserLogic ¶
type UserLogic struct {
// contains filtered or unexported fields
}
func NewUserLogic ¶
func NewUserLogic(logger log.Logger, userService *service.UserService) *UserLogic
Click to show internal directories.
Click to hide internal directories.