Documentation
¶
Index ¶
- func ConvertCommentReplyTypes(req *messagerpc.CommentDetails, usm map[string]*accountrpc.User) (out *types.CommentReply)
- func ConvertCommentTypes(in *messagerpc.CommentDetails, usm map[string]*accountrpc.User) (out *types.Comment)
- func ConvertCommentUserInfoToPb(in *accountrpc.User) (out *types.CommentUserInfo)
- type AddCommentLogic
- type FindCommentListLogic
- type FindCommentRecentListLogic
- type FindCommentReplyListLogic
- type LikeCommentLogic
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func NewLikeCommentLogic ¶
func NewLikeCommentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LikeCommentLogic
点赞评论
func (*LikeCommentLogic) LikeComment ¶
Click to show internal directories.
Click to hide internal directories.