Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCommentRpcServer(s grpc.ServiceRegistrar, srv CommentRpcServer)
- type BatchResp
- type CommentDetails
- func (*CommentDetails) Descriptor() ([]byte, []int)deprecated
- func (x *CommentDetails) GetCommentContent() string
- func (x *CommentDetails) GetCreatedAt() int64
- func (x *CommentDetails) GetId() int64
- func (x *CommentDetails) GetIsReview() int64
- func (x *CommentDetails) GetLikeCount() int64
- func (x *CommentDetails) GetParentId() int64
- func (x *CommentDetails) GetReplyUserId() int64
- func (x *CommentDetails) GetSessionId() int64
- func (x *CommentDetails) GetStatus() int64
- func (x *CommentDetails) GetTopicId() int64
- func (x *CommentDetails) GetType() int64
- func (x *CommentDetails) GetUpdatedAt() int64
- func (x *CommentDetails) GetUserId() int64
- func (*CommentDetails) ProtoMessage()
- func (x *CommentDetails) ProtoReflect() protoreflect.Message
- func (x *CommentDetails) Reset()
- func (x *CommentDetails) String() string
- type CommentNewReq
- func (*CommentNewReq) Descriptor() ([]byte, []int)deprecated
- func (x *CommentNewReq) GetCommentContent() string
- func (x *CommentNewReq) GetIsReview() int64
- func (x *CommentNewReq) GetParentId() int64
- func (x *CommentNewReq) GetReplyUserId() int64
- func (x *CommentNewReq) GetSessionId() int64
- func (x *CommentNewReq) GetStatus() int64
- func (x *CommentNewReq) GetTopicId() int64
- func (x *CommentNewReq) GetType() int64
- func (x *CommentNewReq) GetUserId() int64
- func (*CommentNewReq) ProtoMessage()
- func (x *CommentNewReq) ProtoReflect() protoreflect.Message
- func (x *CommentNewReq) Reset()
- func (x *CommentNewReq) String() string
- type CommentRpcClient
- type CommentRpcServer
- type CountResp
- type EmptyReq
- type EmptyResp
- type FindCommentListReq
- func (*FindCommentListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindCommentListReq) GetPage() int64
- func (x *FindCommentListReq) GetPageSize() int64
- func (x *FindCommentListReq) GetParentId() int64
- func (x *FindCommentListReq) GetSessionId() int64
- func (x *FindCommentListReq) GetSorts() []string
- func (x *FindCommentListReq) GetTopicId() int64
- func (x *FindCommentListReq) GetType() int64
- func (*FindCommentListReq) ProtoMessage()
- func (x *FindCommentListReq) ProtoReflect() protoreflect.Message
- func (x *FindCommentListReq) Reset()
- func (x *FindCommentListReq) String() string
- type FindCommentListResp
- func (*FindCommentListResp) Descriptor() ([]byte, []int)deprecated
- func (x *FindCommentListResp) GetList() []*CommentDetails
- func (x *FindCommentListResp) GetTotal() int64
- func (*FindCommentListResp) ProtoMessage()
- func (x *FindCommentListResp) ProtoReflect() protoreflect.Message
- func (x *FindCommentListResp) Reset()
- func (x *FindCommentListResp) String() string
- type FindCommentReplyListReq
- func (*FindCommentReplyListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindCommentReplyListReq) GetPage() int64
- func (x *FindCommentReplyListReq) GetPageSize() int64
- func (x *FindCommentReplyListReq) GetParentId() int64
- func (x *FindCommentReplyListReq) GetSessionId() int64
- func (x *FindCommentReplyListReq) GetSorts() []string
- func (x *FindCommentReplyListReq) GetTopicId() int64
- func (x *FindCommentReplyListReq) GetType() int64
- func (*FindCommentReplyListReq) ProtoMessage()
- func (x *FindCommentReplyListReq) ProtoReflect() protoreflect.Message
- func (x *FindCommentReplyListReq) Reset()
- func (x *FindCommentReplyListReq) String() string
- type FindCommentReplyListResp
- func (*FindCommentReplyListResp) Descriptor() ([]byte, []int)deprecated
- func (x *FindCommentReplyListResp) GetList() []*CommentDetails
- func (x *FindCommentReplyListResp) GetTotal() int64
- func (*FindCommentReplyListResp) ProtoMessage()
- func (x *FindCommentReplyListResp) ProtoReflect() protoreflect.Message
- func (x *FindCommentReplyListResp) Reset()
- func (x *FindCommentReplyListResp) String() string
- type FindLikeCommentResp
- func (*FindLikeCommentResp) Descriptor() ([]byte, []int)deprecated
- func (x *FindLikeCommentResp) GetLikeCommentList() []int64
- func (*FindLikeCommentResp) ProtoMessage()
- func (x *FindLikeCommentResp) ProtoReflect() protoreflect.Message
- func (x *FindLikeCommentResp) Reset()
- func (x *FindLikeCommentResp) String() string
- type IdReq
- type IdsReq
- type UnimplementedCommentRpcServer
- func (UnimplementedCommentRpcServer) AddComment(context.Context, *CommentNewReq) (*CommentDetails, error)
- func (UnimplementedCommentRpcServer) DeleteComment(context.Context, *IdsReq) (*BatchResp, error)
- func (UnimplementedCommentRpcServer) FindCommentList(context.Context, *FindCommentListReq) (*FindCommentListResp, error)
- func (UnimplementedCommentRpcServer) FindCommentReplyList(context.Context, *FindCommentReplyListReq) (*FindCommentReplyListResp, error)
- func (UnimplementedCommentRpcServer) FindUserLikeComment(context.Context, *UserIdReq) (*FindLikeCommentResp, error)
- func (UnimplementedCommentRpcServer) GetComment(context.Context, *IdReq) (*CommentDetails, error)
- func (UnimplementedCommentRpcServer) LikeComment(context.Context, *IdReq) (*EmptyResp, error)
- func (UnimplementedCommentRpcServer) UpdateCommentContent(context.Context, *UpdateCommentContentReq) (*CommentDetails, error)
- func (UnimplementedCommentRpcServer) UpdateCommentReview(context.Context, *UpdateCommentReviewReq) (*CommentDetails, error)
- type UnsafeCommentRpcServer
- type UpdateCommentContentReq
- func (*UpdateCommentContentReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCommentContentReq) GetCommentContent() string
- func (x *UpdateCommentContentReq) GetId() int64
- func (x *UpdateCommentContentReq) GetIsReview() int64
- func (x *UpdateCommentContentReq) GetParentId() int64
- func (x *UpdateCommentContentReq) GetReplyUserId() int64
- func (x *UpdateCommentContentReq) GetSessionId() int64
- func (x *UpdateCommentContentReq) GetStatus() int64
- func (x *UpdateCommentContentReq) GetTopicId() int64
- func (x *UpdateCommentContentReq) GetType() int64
- func (x *UpdateCommentContentReq) GetUserId() int64
- func (*UpdateCommentContentReq) ProtoMessage()
- func (x *UpdateCommentContentReq) ProtoReflect() protoreflect.Message
- func (x *UpdateCommentContentReq) Reset()
- func (x *UpdateCommentContentReq) String() string
- type UpdateCommentReviewReq
- func (*UpdateCommentReviewReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCommentReviewReq) GetId() int64
- func (x *UpdateCommentReviewReq) GetIsReview() int64
- func (*UpdateCommentReviewReq) ProtoMessage()
- func (x *UpdateCommentReviewReq) ProtoReflect() protoreflect.Message
- func (x *UpdateCommentReviewReq) Reset()
- func (x *UpdateCommentReviewReq) String() string
- type UserIdReq
Constants ¶
const ( CommentRpc_AddComment_FullMethodName = "/commentrpc.CommentRpc/AddComment" CommentRpc_DeleteComment_FullMethodName = "/commentrpc.CommentRpc/DeleteComment" CommentRpc_GetComment_FullMethodName = "/commentrpc.CommentRpc/GetComment" CommentRpc_FindCommentList_FullMethodName = "/commentrpc.CommentRpc/FindCommentList" CommentRpc_FindCommentReplyList_FullMethodName = "/commentrpc.CommentRpc/FindCommentReplyList" CommentRpc_UpdateCommentReview_FullMethodName = "/commentrpc.CommentRpc/UpdateCommentReview" CommentRpc_UpdateCommentContent_FullMethodName = "/commentrpc.CommentRpc/UpdateCommentContent" CommentRpc_LikeComment_FullMethodName = "/commentrpc.CommentRpc/LikeComment" CommentRpc_FindUserLikeComment_FullMethodName = "/commentrpc.CommentRpc/FindUserLikeComment" )
Variables ¶
var CommentRpc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "commentrpc.CommentRpc", HandlerType: (*CommentRpcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddComment", Handler: _CommentRpc_AddComment_Handler, }, { MethodName: "DeleteComment", Handler: _CommentRpc_DeleteComment_Handler, }, { MethodName: "GetComment", Handler: _CommentRpc_GetComment_Handler, }, { MethodName: "FindCommentList", Handler: _CommentRpc_FindCommentList_Handler, }, { MethodName: "FindCommentReplyList", Handler: _CommentRpc_FindCommentReplyList_Handler, }, { MethodName: "UpdateCommentReview", Handler: _CommentRpc_UpdateCommentReview_Handler, }, { MethodName: "UpdateCommentContent", Handler: _CommentRpc_UpdateCommentContent_Handler, }, { MethodName: "LikeComment", Handler: _CommentRpc_LikeComment_Handler, }, { MethodName: "FindUserLikeComment", Handler: _CommentRpc_FindUserLikeComment_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "comment.proto", }
CommentRpc_ServiceDesc is the grpc.ServiceDesc for CommentRpc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_comment_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCommentRpcServer ¶
func RegisterCommentRpcServer(s grpc.ServiceRegistrar, srv CommentRpcServer)
Types ¶
type BatchResp ¶
type BatchResp struct { SuccessCount int64 `protobuf:"varint,1,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"` // contains filtered or unexported fields }
func (*BatchResp) Descriptor
deprecated
func (*BatchResp) GetSuccessCount ¶
func (*BatchResp) ProtoMessage ¶
func (*BatchResp) ProtoMessage()
func (*BatchResp) ProtoReflect ¶
func (x *BatchResp) ProtoReflect() protoreflect.Message
type CommentDetails ¶
type CommentDetails struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 主键 TopicId int64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` // 主题id ParentId int64 `protobuf:"varint,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` // 父评论id SessionId int64 `protobuf:"varint,4,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // 会话id UserId int64 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 评论用户id ReplyUserId int64 `protobuf:"varint,6,opt,name=reply_user_id,json=replyUserId,proto3" json:"reply_user_id,omitempty"` // 评论回复用户id CommentContent string `protobuf:"bytes,7,opt,name=comment_content,json=commentContent,proto3" json:"comment_content,omitempty"` // 评论内容 Type int64 `protobuf:"varint,8,opt,name=type,proto3" json:"type,omitempty"` // 评论类型 1.文章 2.友链 3.说说 Status int64 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"` // 状态 0.正常 1.已编辑 2.已删除 IsReview int64 `protobuf:"varint,10,opt,name=is_review,json=isReview,proto3" json:"is_review,omitempty"` // 是否审核 CreatedAt int64 `protobuf:"varint,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 评论时间 UpdatedAt int64 `protobuf:"varint,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 更新时间 LikeCount int64 `protobuf:"varint,13,opt,name=like_count,json=likeCount,proto3" json:"like_count,omitempty"` // 点赞数 // contains filtered or unexported fields }
func (*CommentDetails) Descriptor
deprecated
func (*CommentDetails) Descriptor() ([]byte, []int)
Deprecated: Use CommentDetails.ProtoReflect.Descriptor instead.
func (*CommentDetails) GetCommentContent ¶
func (x *CommentDetails) GetCommentContent() string
func (*CommentDetails) GetCreatedAt ¶
func (x *CommentDetails) GetCreatedAt() int64
func (*CommentDetails) GetId ¶
func (x *CommentDetails) GetId() int64
func (*CommentDetails) GetIsReview ¶
func (x *CommentDetails) GetIsReview() int64
func (*CommentDetails) GetLikeCount ¶
func (x *CommentDetails) GetLikeCount() int64
func (*CommentDetails) GetParentId ¶
func (x *CommentDetails) GetParentId() int64
func (*CommentDetails) GetReplyUserId ¶
func (x *CommentDetails) GetReplyUserId() int64
func (*CommentDetails) GetSessionId ¶
func (x *CommentDetails) GetSessionId() int64
func (*CommentDetails) GetStatus ¶
func (x *CommentDetails) GetStatus() int64
func (*CommentDetails) GetTopicId ¶
func (x *CommentDetails) GetTopicId() int64
func (*CommentDetails) GetType ¶
func (x *CommentDetails) GetType() int64
func (*CommentDetails) GetUpdatedAt ¶
func (x *CommentDetails) GetUpdatedAt() int64
func (*CommentDetails) GetUserId ¶
func (x *CommentDetails) GetUserId() int64
func (*CommentDetails) ProtoMessage ¶
func (*CommentDetails) ProtoMessage()
func (*CommentDetails) ProtoReflect ¶
func (x *CommentDetails) ProtoReflect() protoreflect.Message
func (*CommentDetails) Reset ¶
func (x *CommentDetails) Reset()
func (*CommentDetails) String ¶
func (x *CommentDetails) String() string
type CommentNewReq ¶
type CommentNewReq struct { TopicId int64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` // 主题id ParentId int64 `protobuf:"varint,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` // 父评论id SessionId int64 `protobuf:"varint,4,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // 会话id UserId int64 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 评论用户id ReplyUserId int64 `protobuf:"varint,6,opt,name=reply_user_id,json=replyUserId,proto3" json:"reply_user_id,omitempty"` // 评论回复用户id CommentContent string `protobuf:"bytes,7,opt,name=comment_content,json=commentContent,proto3" json:"comment_content,omitempty"` // 评论内容 Type int64 `protobuf:"varint,8,opt,name=type,proto3" json:"type,omitempty"` // 评论类型 1.文章 2.友链 3.说说 Status int64 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"` // 状态 0.正常 1.已编辑 2.已删除 IsReview int64 `protobuf:"varint,10,opt,name=is_review,json=isReview,proto3" json:"is_review,omitempty"` // 是否审核 // contains filtered or unexported fields }
************* blog 消息管理 *************
func (*CommentNewReq) Descriptor
deprecated
func (*CommentNewReq) Descriptor() ([]byte, []int)
Deprecated: Use CommentNewReq.ProtoReflect.Descriptor instead.
func (*CommentNewReq) GetCommentContent ¶
func (x *CommentNewReq) GetCommentContent() string
func (*CommentNewReq) GetIsReview ¶
func (x *CommentNewReq) GetIsReview() int64
func (*CommentNewReq) GetParentId ¶
func (x *CommentNewReq) GetParentId() int64
func (*CommentNewReq) GetReplyUserId ¶
func (x *CommentNewReq) GetReplyUserId() int64
func (*CommentNewReq) GetSessionId ¶
func (x *CommentNewReq) GetSessionId() int64
func (*CommentNewReq) GetStatus ¶
func (x *CommentNewReq) GetStatus() int64
func (*CommentNewReq) GetTopicId ¶
func (x *CommentNewReq) GetTopicId() int64
func (*CommentNewReq) GetType ¶
func (x *CommentNewReq) GetType() int64
func (*CommentNewReq) GetUserId ¶
func (x *CommentNewReq) GetUserId() int64
func (*CommentNewReq) ProtoMessage ¶
func (*CommentNewReq) ProtoMessage()
func (*CommentNewReq) ProtoReflect ¶
func (x *CommentNewReq) ProtoReflect() protoreflect.Message
func (*CommentNewReq) Reset ¶
func (x *CommentNewReq) Reset()
func (*CommentNewReq) String ¶
func (x *CommentNewReq) String() string
type CommentRpcClient ¶
type CommentRpcClient interface { // 创建评论 AddComment(ctx context.Context, in *CommentNewReq, opts ...grpc.CallOption) (*CommentDetails, error) // 删除评论 DeleteComment(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error) // 查询评论 GetComment(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*CommentDetails, error) // 查询评论列表 FindCommentList(ctx context.Context, in *FindCommentListReq, opts ...grpc.CallOption) (*FindCommentListResp, error) // 查询评论回复列表 FindCommentReplyList(ctx context.Context, in *FindCommentReplyListReq, opts ...grpc.CallOption) (*FindCommentReplyListResp, error) // 更新评论审核状态 UpdateCommentReview(ctx context.Context, in *UpdateCommentReviewReq, opts ...grpc.CallOption) (*CommentDetails, error) // 更新评论 UpdateCommentContent(ctx context.Context, in *UpdateCommentContentReq, opts ...grpc.CallOption) (*CommentDetails, error) // 点赞评论 LikeComment(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*EmptyResp, error) // 用户点赞的评论 FindUserLikeComment(ctx context.Context, in *UserIdReq, opts ...grpc.CallOption) (*FindLikeCommentResp, error) }
CommentRpcClient is the client API for CommentRpc service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewCommentRpcClient ¶
func NewCommentRpcClient(cc grpc.ClientConnInterface) CommentRpcClient
type CommentRpcServer ¶
type CommentRpcServer interface { // 创建评论 AddComment(context.Context, *CommentNewReq) (*CommentDetails, error) // 删除评论 DeleteComment(context.Context, *IdsReq) (*BatchResp, error) // 查询评论 GetComment(context.Context, *IdReq) (*CommentDetails, error) // 查询评论列表 FindCommentList(context.Context, *FindCommentListReq) (*FindCommentListResp, error) // 查询评论回复列表 FindCommentReplyList(context.Context, *FindCommentReplyListReq) (*FindCommentReplyListResp, error) // 更新评论审核状态 UpdateCommentReview(context.Context, *UpdateCommentReviewReq) (*CommentDetails, error) // 更新评论 UpdateCommentContent(context.Context, *UpdateCommentContentReq) (*CommentDetails, error) // 点赞评论 LikeComment(context.Context, *IdReq) (*EmptyResp, error) // 用户点赞的评论 FindUserLikeComment(context.Context, *UserIdReq) (*FindLikeCommentResp, error) // contains filtered or unexported methods }
CommentRpcServer is the server API for CommentRpc service. All implementations must embed UnimplementedCommentRpcServer for forward compatibility
type CountResp ¶
type CountResp struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*CountResp) Descriptor
deprecated
func (*CountResp) ProtoMessage ¶
func (*CountResp) ProtoMessage()
func (*CountResp) ProtoReflect ¶
func (x *CountResp) ProtoReflect() protoreflect.Message
type EmptyReq ¶
type EmptyReq struct {
// contains filtered or unexported fields
}
func (*EmptyReq) Descriptor
deprecated
func (*EmptyReq) ProtoMessage ¶
func (*EmptyReq) ProtoMessage()
func (*EmptyReq) ProtoReflect ¶
func (x *EmptyReq) ProtoReflect() protoreflect.Message
type EmptyResp ¶
type EmptyResp struct {
// contains filtered or unexported fields
}
func (*EmptyResp) Descriptor
deprecated
func (*EmptyResp) ProtoMessage ¶
func (*EmptyResp) ProtoMessage()
func (*EmptyResp) ProtoReflect ¶
func (x *EmptyResp) ProtoReflect() protoreflect.Message
type FindCommentListReq ¶
type FindCommentListReq struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Sorts []string `protobuf:"bytes,3,rep,name=sorts,proto3" json:"sorts,omitempty"` // 排序 TopicId int64 `protobuf:"varint,4,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` // 主题id ParentId int64 `protobuf:"varint,5,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` // 父评论id SessionId int64 `protobuf:"varint,6,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // 会话id Type int64 `protobuf:"varint,8,opt,name=type,proto3" json:"type,omitempty"` // 评论类型 1.文章 2.友链 3.说说 // contains filtered or unexported fields }
func (*FindCommentListReq) Descriptor
deprecated
func (*FindCommentListReq) Descriptor() ([]byte, []int)
Deprecated: Use FindCommentListReq.ProtoReflect.Descriptor instead.
func (*FindCommentListReq) GetPage ¶
func (x *FindCommentListReq) GetPage() int64
func (*FindCommentListReq) GetPageSize ¶
func (x *FindCommentListReq) GetPageSize() int64
func (*FindCommentListReq) GetParentId ¶
func (x *FindCommentListReq) GetParentId() int64
func (*FindCommentListReq) GetSessionId ¶
func (x *FindCommentListReq) GetSessionId() int64
func (*FindCommentListReq) GetSorts ¶
func (x *FindCommentListReq) GetSorts() []string
func (*FindCommentListReq) GetTopicId ¶
func (x *FindCommentListReq) GetTopicId() int64
func (*FindCommentListReq) GetType ¶
func (x *FindCommentListReq) GetType() int64
func (*FindCommentListReq) ProtoMessage ¶
func (*FindCommentListReq) ProtoMessage()
func (*FindCommentListReq) ProtoReflect ¶
func (x *FindCommentListReq) ProtoReflect() protoreflect.Message
func (*FindCommentListReq) Reset ¶
func (x *FindCommentListReq) Reset()
func (*FindCommentListReq) String ¶
func (x *FindCommentListReq) String() string
type FindCommentListResp ¶
type FindCommentListResp struct { List []*CommentDetails `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*FindCommentListResp) Descriptor
deprecated
func (*FindCommentListResp) Descriptor() ([]byte, []int)
Deprecated: Use FindCommentListResp.ProtoReflect.Descriptor instead.
func (*FindCommentListResp) GetList ¶
func (x *FindCommentListResp) GetList() []*CommentDetails
func (*FindCommentListResp) GetTotal ¶
func (x *FindCommentListResp) GetTotal() int64
func (*FindCommentListResp) ProtoMessage ¶
func (*FindCommentListResp) ProtoMessage()
func (*FindCommentListResp) ProtoReflect ¶
func (x *FindCommentListResp) ProtoReflect() protoreflect.Message
func (*FindCommentListResp) Reset ¶
func (x *FindCommentListResp) Reset()
func (*FindCommentListResp) String ¶
func (x *FindCommentListResp) String() string
type FindCommentReplyListReq ¶
type FindCommentReplyListReq struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Sorts []string `protobuf:"bytes,3,rep,name=sorts,proto3" json:"sorts,omitempty"` // 排序 TopicId int64 `protobuf:"varint,4,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` // 主题id ParentId int64 `protobuf:"varint,5,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` // 父评论id SessionId int64 `protobuf:"varint,6,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // 会话id Type int64 `protobuf:"varint,8,opt,name=type,proto3" json:"type,omitempty"` // 评论类型 1.文章 2.友链 3.说说 // contains filtered or unexported fields }
func (*FindCommentReplyListReq) Descriptor
deprecated
func (*FindCommentReplyListReq) Descriptor() ([]byte, []int)
Deprecated: Use FindCommentReplyListReq.ProtoReflect.Descriptor instead.
func (*FindCommentReplyListReq) GetPage ¶
func (x *FindCommentReplyListReq) GetPage() int64
func (*FindCommentReplyListReq) GetPageSize ¶
func (x *FindCommentReplyListReq) GetPageSize() int64
func (*FindCommentReplyListReq) GetParentId ¶
func (x *FindCommentReplyListReq) GetParentId() int64
func (*FindCommentReplyListReq) GetSessionId ¶
func (x *FindCommentReplyListReq) GetSessionId() int64
func (*FindCommentReplyListReq) GetSorts ¶
func (x *FindCommentReplyListReq) GetSorts() []string
func (*FindCommentReplyListReq) GetTopicId ¶
func (x *FindCommentReplyListReq) GetTopicId() int64
func (*FindCommentReplyListReq) GetType ¶
func (x *FindCommentReplyListReq) GetType() int64
func (*FindCommentReplyListReq) ProtoMessage ¶
func (*FindCommentReplyListReq) ProtoMessage()
func (*FindCommentReplyListReq) ProtoReflect ¶
func (x *FindCommentReplyListReq) ProtoReflect() protoreflect.Message
func (*FindCommentReplyListReq) Reset ¶
func (x *FindCommentReplyListReq) Reset()
func (*FindCommentReplyListReq) String ¶
func (x *FindCommentReplyListReq) String() string
type FindCommentReplyListResp ¶
type FindCommentReplyListResp struct { List []*CommentDetails `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*FindCommentReplyListResp) Descriptor
deprecated
func (*FindCommentReplyListResp) Descriptor() ([]byte, []int)
Deprecated: Use FindCommentReplyListResp.ProtoReflect.Descriptor instead.
func (*FindCommentReplyListResp) GetList ¶
func (x *FindCommentReplyListResp) GetList() []*CommentDetails
func (*FindCommentReplyListResp) GetTotal ¶
func (x *FindCommentReplyListResp) GetTotal() int64
func (*FindCommentReplyListResp) ProtoMessage ¶
func (*FindCommentReplyListResp) ProtoMessage()
func (*FindCommentReplyListResp) ProtoReflect ¶
func (x *FindCommentReplyListResp) ProtoReflect() protoreflect.Message
func (*FindCommentReplyListResp) Reset ¶
func (x *FindCommentReplyListResp) Reset()
func (*FindCommentReplyListResp) String ¶
func (x *FindCommentReplyListResp) String() string
type FindLikeCommentResp ¶
type FindLikeCommentResp struct { LikeCommentList []int64 `protobuf:"varint,1,rep,packed,name=like_comment_list,json=likeCommentList,proto3" json:"like_comment_list,omitempty"` // contains filtered or unexported fields }
func (*FindLikeCommentResp) Descriptor
deprecated
func (*FindLikeCommentResp) Descriptor() ([]byte, []int)
Deprecated: Use FindLikeCommentResp.ProtoReflect.Descriptor instead.
func (*FindLikeCommentResp) GetLikeCommentList ¶
func (x *FindLikeCommentResp) GetLikeCommentList() []int64
func (*FindLikeCommentResp) ProtoMessage ¶
func (*FindLikeCommentResp) ProtoMessage()
func (*FindLikeCommentResp) ProtoReflect ¶
func (x *FindLikeCommentResp) ProtoReflect() protoreflect.Message
func (*FindLikeCommentResp) Reset ¶
func (x *FindLikeCommentResp) Reset()
func (*FindLikeCommentResp) String ¶
func (x *FindLikeCommentResp) String() string
type IdReq ¶
type IdReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*IdReq) Descriptor
deprecated
func (*IdReq) ProtoMessage ¶
func (*IdReq) ProtoMessage()
func (*IdReq) ProtoReflect ¶
func (x *IdReq) ProtoReflect() protoreflect.Message
type IdsReq ¶
type IdsReq struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*IdsReq) Descriptor
deprecated
func (*IdsReq) ProtoMessage ¶
func (*IdsReq) ProtoMessage()
func (*IdsReq) ProtoReflect ¶
func (x *IdsReq) ProtoReflect() protoreflect.Message
type UnimplementedCommentRpcServer ¶
type UnimplementedCommentRpcServer struct { }
UnimplementedCommentRpcServer must be embedded to have forward compatible implementations.
func (UnimplementedCommentRpcServer) AddComment ¶
func (UnimplementedCommentRpcServer) AddComment(context.Context, *CommentNewReq) (*CommentDetails, error)
func (UnimplementedCommentRpcServer) DeleteComment ¶
func (UnimplementedCommentRpcServer) FindCommentList ¶
func (UnimplementedCommentRpcServer) FindCommentList(context.Context, *FindCommentListReq) (*FindCommentListResp, error)
func (UnimplementedCommentRpcServer) FindCommentReplyList ¶
func (UnimplementedCommentRpcServer) FindCommentReplyList(context.Context, *FindCommentReplyListReq) (*FindCommentReplyListResp, error)
func (UnimplementedCommentRpcServer) FindUserLikeComment ¶
func (UnimplementedCommentRpcServer) FindUserLikeComment(context.Context, *UserIdReq) (*FindLikeCommentResp, error)
func (UnimplementedCommentRpcServer) GetComment ¶
func (UnimplementedCommentRpcServer) GetComment(context.Context, *IdReq) (*CommentDetails, error)
func (UnimplementedCommentRpcServer) LikeComment ¶
func (UnimplementedCommentRpcServer) UpdateCommentContent ¶
func (UnimplementedCommentRpcServer) UpdateCommentContent(context.Context, *UpdateCommentContentReq) (*CommentDetails, error)
func (UnimplementedCommentRpcServer) UpdateCommentReview ¶
func (UnimplementedCommentRpcServer) UpdateCommentReview(context.Context, *UpdateCommentReviewReq) (*CommentDetails, error)
type UnsafeCommentRpcServer ¶
type UnsafeCommentRpcServer interface {
// contains filtered or unexported methods
}
UnsafeCommentRpcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CommentRpcServer will result in compilation errors.
type UpdateCommentContentReq ¶
type UpdateCommentContentReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 主键 TopicId int64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` // 主题id ParentId int64 `protobuf:"varint,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` // 父评论id SessionId int64 `protobuf:"varint,4,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // 会话id UserId int64 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 评论用户id ReplyUserId int64 `protobuf:"varint,6,opt,name=reply_user_id,json=replyUserId,proto3" json:"reply_user_id,omitempty"` // 评论回复用户id CommentContent string `protobuf:"bytes,7,opt,name=comment_content,json=commentContent,proto3" json:"comment_content,omitempty"` // 评论内容 Type int64 `protobuf:"varint,8,opt,name=type,proto3" json:"type,omitempty"` // 评论类型 1.文章 2.友链 3.说说 Status int64 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"` // 状态 0.正常 1.已编辑 2.已删除 IsReview int64 `protobuf:"varint,10,opt,name=is_review,json=isReview,proto3" json:"is_review,omitempty"` // 是否审核 // contains filtered or unexported fields }
func (*UpdateCommentContentReq) Descriptor
deprecated
func (*UpdateCommentContentReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCommentContentReq.ProtoReflect.Descriptor instead.
func (*UpdateCommentContentReq) GetCommentContent ¶
func (x *UpdateCommentContentReq) GetCommentContent() string
func (*UpdateCommentContentReq) GetId ¶
func (x *UpdateCommentContentReq) GetId() int64
func (*UpdateCommentContentReq) GetIsReview ¶
func (x *UpdateCommentContentReq) GetIsReview() int64
func (*UpdateCommentContentReq) GetParentId ¶
func (x *UpdateCommentContentReq) GetParentId() int64
func (*UpdateCommentContentReq) GetReplyUserId ¶
func (x *UpdateCommentContentReq) GetReplyUserId() int64
func (*UpdateCommentContentReq) GetSessionId ¶
func (x *UpdateCommentContentReq) GetSessionId() int64
func (*UpdateCommentContentReq) GetStatus ¶
func (x *UpdateCommentContentReq) GetStatus() int64
func (*UpdateCommentContentReq) GetTopicId ¶
func (x *UpdateCommentContentReq) GetTopicId() int64
func (*UpdateCommentContentReq) GetType ¶
func (x *UpdateCommentContentReq) GetType() int64
func (*UpdateCommentContentReq) GetUserId ¶
func (x *UpdateCommentContentReq) GetUserId() int64
func (*UpdateCommentContentReq) ProtoMessage ¶
func (*UpdateCommentContentReq) ProtoMessage()
func (*UpdateCommentContentReq) ProtoReflect ¶
func (x *UpdateCommentContentReq) ProtoReflect() protoreflect.Message
func (*UpdateCommentContentReq) Reset ¶
func (x *UpdateCommentContentReq) Reset()
func (*UpdateCommentContentReq) String ¶
func (x *UpdateCommentContentReq) String() string
type UpdateCommentReviewReq ¶
type UpdateCommentReviewReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 主键 IsReview int64 `protobuf:"varint,10,opt,name=is_review,json=isReview,proto3" json:"is_review,omitempty"` // 是否审核 // contains filtered or unexported fields }
func (*UpdateCommentReviewReq) Descriptor
deprecated
func (*UpdateCommentReviewReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCommentReviewReq.ProtoReflect.Descriptor instead.
func (*UpdateCommentReviewReq) GetId ¶
func (x *UpdateCommentReviewReq) GetId() int64
func (*UpdateCommentReviewReq) GetIsReview ¶
func (x *UpdateCommentReviewReq) GetIsReview() int64
func (*UpdateCommentReviewReq) ProtoMessage ¶
func (*UpdateCommentReviewReq) ProtoMessage()
func (*UpdateCommentReviewReq) ProtoReflect ¶
func (x *UpdateCommentReviewReq) ProtoReflect() protoreflect.Message
func (*UpdateCommentReviewReq) Reset ¶
func (x *UpdateCommentReviewReq) Reset()
func (*UpdateCommentReviewReq) String ¶
func (x *UpdateCommentReviewReq) String() string
type UserIdReq ¶
type UserIdReq struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*UserIdReq) Descriptor
deprecated
func (*UserIdReq) ProtoMessage ¶
func (*UserIdReq) ProtoMessage()
func (*UserIdReq) ProtoReflect ¶
func (x *UserIdReq) ProtoReflect() protoreflect.Message