Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddCommentLogic ¶
func NewAddCommentLogic ¶
func NewAddCommentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AddCommentLogic
func (*AddCommentLogic) AddComment ¶
func (l *AddCommentLogic) AddComment(in *commentrpc.CommentNewReq) (*commentrpc.CommentDetails, error)
创建评论
type DeleteCommentLogic ¶
func NewDeleteCommentLogic ¶
func NewDeleteCommentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteCommentLogic
func (*DeleteCommentLogic) DeleteComment ¶
func (l *DeleteCommentLogic) DeleteComment(in *commentrpc.IdsReq) (*commentrpc.BatchResp, error)
删除评论
type FindCommentListLogic ¶
func NewFindCommentListLogic ¶
func NewFindCommentListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindCommentListLogic
func (*FindCommentListLogic) FindCommentList ¶
func (l *FindCommentListLogic) FindCommentList(in *commentrpc.FindCommentListReq) (*commentrpc.FindCommentListResp, error)
分页获取评论列表
type FindCommentReplyListLogic ¶
func NewFindCommentReplyListLogic ¶
func NewFindCommentReplyListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindCommentReplyListLogic
func (*FindCommentReplyListLogic) FindCommentReplyList ¶
func (l *FindCommentReplyListLogic) FindCommentReplyList(in *commentrpc.FindCommentReplyListReq) (*commentrpc.FindCommentReplyListResp, error)
查询评论回复列表
type FindTopicCommentCountsLogic ¶
func NewFindTopicCommentCountsLogic ¶
func NewFindTopicCommentCountsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindTopicCommentCountsLogic
func (*FindTopicCommentCountsLogic) FindTopicCommentCounts ¶
func (l *FindTopicCommentCountsLogic) FindTopicCommentCounts(in *commentrpc.IdsReq) (*commentrpc.FindTopicCommentCountsResp, error)
查询评论回复数量
type FindUserLikeCommentLogic ¶
func NewFindUserLikeCommentLogic ¶
func NewFindUserLikeCommentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindUserLikeCommentLogic
func (*FindUserLikeCommentLogic) FindUserLikeComment ¶
func (l *FindUserLikeCommentLogic) FindUserLikeComment(in *commentrpc.UserIdReq) (*commentrpc.FindLikeCommentResp, error)
用户点赞的评论
type GetCommentLogic ¶
func NewGetCommentLogic ¶
func NewGetCommentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetCommentLogic
func (*GetCommentLogic) GetComment ¶
func (l *GetCommentLogic) GetComment(in *commentrpc.IdReq) (*commentrpc.CommentDetails, error)
查询评论
type LikeCommentLogic ¶
func NewLikeCommentLogic ¶
func NewLikeCommentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LikeCommentLogic
func (*LikeCommentLogic) LikeComment ¶
func (l *LikeCommentLogic) LikeComment(in *commentrpc.IdReq) (*commentrpc.EmptyResp, error)
点赞评论
type UpdateCommentContentLogic ¶
func NewUpdateCommentContentLogic ¶
func NewUpdateCommentContentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateCommentContentLogic
func (*UpdateCommentContentLogic) UpdateCommentContent ¶
func (l *UpdateCommentContentLogic) UpdateCommentContent(in *commentrpc.UpdateCommentContentReq) (*commentrpc.CommentDetails, error)
更新评论
type UpdateCommentReviewLogic ¶
func NewUpdateCommentReviewLogic ¶
func NewUpdateCommentReviewLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateCommentReviewLogic
func (*UpdateCommentReviewLogic) UpdateCommentReview ¶
func (l *UpdateCommentReviewLogic) UpdateCommentReview(in *commentrpc.UpdateCommentReviewReq) (*commentrpc.BatchResp, error)
更新评论审核状态
Source Files
¶
Click to show internal directories.
Click to hide internal directories.