logic

package
v0.0.0-...-d16b773 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MIT, MIT Imports: 9 Imported by: 0

Documentation

Index

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

func (*UserLogic) Login

func (l *UserLogic) Login(userReq *pb.UserRequest) (string, error)

func (*UserLogic) Register

func (l *UserLogic) Register(userReq *pb.UserRequest) error

Jump to

Keyboard shortcuts

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