logic

package
v0.0.0-...-29acfd5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context, svcCtx *svc.ServiceContext, l logx.Logger, commentModel *model.Comment) (*comment.Comment, error)

Types

type ApproveLogic

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

func NewApproveLogic

func NewApproveLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ApproveLogic

func (*ApproveLogic) Approve

func (l *ApproveLogic) Approve(in *comment.ApproveReq) (*comment.Comment, error)

type DeleteLogic

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

func NewDeleteLogic

func NewDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteLogic

func (*DeleteLogic) Delete

func (l *DeleteLogic) Delete(in *comment.DeleteReq) (*comment.EmptyResp, error)

type GetLogic

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

func NewGetLogic

func NewGetLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetLogic

func (*GetLogic) Get

func (l *GetLogic) Get(in *comment.GetReq) (*comment.Comment, error)

type ListByBlogLogic

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

func NewListByBlogLogic

func NewListByBlogLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListByBlogLogic

func (*ListByBlogLogic) ListByBlog

type ListLogic

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

func NewListLogic

func NewListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListLogic

func (*ListLogic) List

func (l *ListLogic) List(in *comment.ListReq) (*comment.ListResp, error)

type MarkAsSpamLogic

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

func NewMarkAsSpamLogic

func NewMarkAsSpamLogic(ctx context.Context, svcCtx *svc.ServiceContext) *MarkAsSpamLogic

func (*MarkAsSpamLogic) MarkAsSpam

func (l *MarkAsSpamLogic) MarkAsSpam(in *comment.MarkAsSpamReq) (*comment.Comment, error)

type RemoveContentLogic

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

func NewRemoveContentLogic

func NewRemoveContentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RemoveContentLogic

func (*RemoveContentLogic) RemoveContent

func (l *RemoveContentLogic) RemoveContent(in *comment.RemoveContentReq) (*comment.Comment, error)

Jump to

Keyboard shortcuts

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