Documentation ¶
Index ¶
- type CommentRpcServer
- func (s *CommentRpcServer) AddComment(ctx context.Context, in *commentrpc.CommentNewReq) (*commentrpc.CommentDetails, error)
- func (s *CommentRpcServer) DeleteComment(ctx context.Context, in *commentrpc.IdsReq) (*commentrpc.BatchResp, error)
- func (s *CommentRpcServer) FindCommentList(ctx context.Context, in *commentrpc.FindCommentListReq) (*commentrpc.FindCommentListResp, error)
- func (s *CommentRpcServer) FindCommentReplyList(ctx context.Context, in *commentrpc.FindCommentReplyListReq) (*commentrpc.FindCommentReplyListResp, error)
- func (s *CommentRpcServer) FindTopicCommentCounts(ctx context.Context, in *commentrpc.IdsReq) (*commentrpc.FindTopicCommentCountsResp, error)
- func (s *CommentRpcServer) FindUserLikeComment(ctx context.Context, in *commentrpc.UserIdReq) (*commentrpc.FindLikeCommentResp, error)
- func (s *CommentRpcServer) GetComment(ctx context.Context, in *commentrpc.IdReq) (*commentrpc.CommentDetails, error)
- func (s *CommentRpcServer) LikeComment(ctx context.Context, in *commentrpc.IdReq) (*commentrpc.EmptyResp, error)
- func (s *CommentRpcServer) UpdateCommentContent(ctx context.Context, in *commentrpc.UpdateCommentContentReq) (*commentrpc.CommentDetails, error)
- func (s *CommentRpcServer) UpdateCommentReview(ctx context.Context, in *commentrpc.UpdateCommentReviewReq) (*commentrpc.BatchResp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentRpcServer ¶
type CommentRpcServer struct { commentrpc.UnimplementedCommentRpcServer // contains filtered or unexported fields }
func NewCommentRpcServer ¶
func NewCommentRpcServer(svcCtx *svc.ServiceContext) *CommentRpcServer
func (*CommentRpcServer) AddComment ¶
func (s *CommentRpcServer) AddComment(ctx context.Context, in *commentrpc.CommentNewReq) (*commentrpc.CommentDetails, error)
创建评论
func (*CommentRpcServer) DeleteComment ¶
func (s *CommentRpcServer) DeleteComment(ctx context.Context, in *commentrpc.IdsReq) (*commentrpc.BatchResp, error)
删除评论
func (*CommentRpcServer) FindCommentList ¶
func (s *CommentRpcServer) FindCommentList(ctx context.Context, in *commentrpc.FindCommentListReq) (*commentrpc.FindCommentListResp, error)
查询评论列表
func (*CommentRpcServer) FindCommentReplyList ¶
func (s *CommentRpcServer) FindCommentReplyList(ctx context.Context, in *commentrpc.FindCommentReplyListReq) (*commentrpc.FindCommentReplyListResp, error)
查询评论回复列表
func (*CommentRpcServer) FindTopicCommentCounts ¶
func (s *CommentRpcServer) FindTopicCommentCounts(ctx context.Context, in *commentrpc.IdsReq) (*commentrpc.FindTopicCommentCountsResp, error)
查询评论回复数量
func (*CommentRpcServer) FindUserLikeComment ¶
func (s *CommentRpcServer) FindUserLikeComment(ctx context.Context, in *commentrpc.UserIdReq) (*commentrpc.FindLikeCommentResp, error)
用户点赞的评论
func (*CommentRpcServer) GetComment ¶
func (s *CommentRpcServer) GetComment(ctx context.Context, in *commentrpc.IdReq) (*commentrpc.CommentDetails, error)
查询评论
func (*CommentRpcServer) LikeComment ¶
func (s *CommentRpcServer) LikeComment(ctx context.Context, in *commentrpc.IdReq) (*commentrpc.EmptyResp, error)
点赞评论
func (*CommentRpcServer) UpdateCommentContent ¶
func (s *CommentRpcServer) UpdateCommentContent(ctx context.Context, in *commentrpc.UpdateCommentContentReq) (*commentrpc.CommentDetails, error)
更新评论
func (*CommentRpcServer) UpdateCommentReview ¶
func (s *CommentRpcServer) UpdateCommentReview(ctx context.Context, in *commentrpc.UpdateCommentReviewReq) (*commentrpc.BatchResp, error)
更新评论审核状态
Click to show internal directories.
Click to hide internal directories.