comment

package
v0.0.0-...-b32e05d Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertCommentReplyTypes

func ConvertCommentReplyTypes(req *messagerpc.CommentDetails, usm map[string]*accountrpc.User) (out *types.CommentReply)

func ConvertCommentTypes

func ConvertCommentTypes(in *messagerpc.CommentDetails, usm map[string]*accountrpc.User) (out *types.Comment)

func ConvertCommentUserInfoToPb

func ConvertCommentUserInfoToPb(in *accountrpc.User) (out *types.CommentUserInfo)

Types

type AddCommentLogic

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

func NewAddCommentLogic

func NewAddCommentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AddCommentLogic

创建评论

func (*AddCommentLogic) AddComment

func (l *AddCommentLogic) AddComment(req *types.CommentNewReq) (resp *types.Comment, err error)

type FindCommentListLogic

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

func NewFindCommentListLogic

func NewFindCommentListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindCommentListLogic

查询评论列表

func (*FindCommentListLogic) FindCommentList

func (l *FindCommentListLogic) FindCommentList(req *types.CommentQueryReq) (resp *types.PageResp, err error)

type FindCommentRecentListLogic

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

func NewFindCommentRecentListLogic

func NewFindCommentRecentListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindCommentRecentListLogic

查询最新评论回复列表

func (*FindCommentRecentListLogic) FindCommentRecentList

func (l *FindCommentRecentListLogic) FindCommentRecentList(req *types.CommentQueryReq) (resp *types.PageResp, err error)

type FindCommentReplyListLogic

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

func NewFindCommentReplyListLogic

func NewFindCommentReplyListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindCommentReplyListLogic

查询评论回复列表

func (*FindCommentReplyListLogic) FindCommentReplyList

func (l *FindCommentReplyListLogic) FindCommentReplyList(req *types.CommentQueryReq) (resp *types.PageResp, err error)

type LikeCommentLogic

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

func NewLikeCommentLogic

func NewLikeCommentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LikeCommentLogic

点赞评论

func (*LikeCommentLogic) LikeComment

func (l *LikeCommentLogic) LikeComment(req *types.IdReq) (resp *types.EmptyResp, err error)

Jump to

Keyboard shortcuts

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