Documentation ¶
Index ¶
- type Comment
- type CommentRpc
- type CountCommentByParentRequest
- type CountCommentByParentResponse
- type CreateCommentRequest
- type CreateCommentResponse
- type DeleteCommentByIdRequest
- type DeleteCommentByIdResponse
- type ListCommentByAuthorIdAndTypeRequest
- type ListCommentByAuthorIdAndTypeResponse
- type ListCommentByParentRequest
- type ListCommentByParentResponse
- type ListCommentByReplyToAndTypeRequest
- type ListCommentByReplyToAndTypeResponse
- type RetrieveCommentByIdRequest
- type RetrieveCommentByIdResponse
- type UpdateCommentRequest
- type UpdateCommentResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentRpc ¶
type CommentRpc interface { // 创建 CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*CreateCommentResponse, error) // 修改 UpdateComment(ctx context.Context, in *UpdateCommentRequest, opts ...grpc.CallOption) (*UpdateCommentResponse, error) // 删除 DeleteComment(ctx context.Context, in *DeleteCommentByIdRequest, opts ...grpc.CallOption) (*DeleteCommentByIdResponse, error) // 根据 parentId 查找 ListCommentByParent(ctx context.Context, in *ListCommentByParentRequest, opts ...grpc.CallOption) (*ListCommentByParentResponse, error) // 根据 parentId 统计 CountCommentByParent(ctx context.Context, in *CountCommentByParentRequest, opts ...grpc.CallOption) (*CountCommentByParentResponse, error) // 根据 id 查找 RetrieveCommentById(ctx context.Context, in *RetrieveCommentByIdRequest, opts ...grpc.CallOption) (*RetrieveCommentByIdResponse, error) // 根据 authorId & type 查找 ListCommentByAuthorIdAndType(ctx context.Context, in *ListCommentByAuthorIdAndTypeRequest, opts ...grpc.CallOption) (*ListCommentByAuthorIdAndTypeResponse, error) // 根据 replyTo & type 查找 ListCommentByReplyToAndType(ctx context.Context, in *ListCommentByReplyToAndTypeRequest, opts ...grpc.CallOption) (*ListCommentByReplyToAndTypeResponse, error) }
func NewCommentRpc ¶
func NewCommentRpc(cli zrpc.Client) CommentRpc
type CountCommentByParentRequest ¶ added in v1.0.3
type CountCommentByParentRequest = pb.CountCommentByParentRequest
type CountCommentByParentResponse ¶ added in v1.0.3
type CountCommentByParentResponse = pb.CountCommentByParentResponse
type CreateCommentRequest ¶
type CreateCommentRequest = pb.CreateCommentRequest
type CreateCommentResponse ¶
type CreateCommentResponse = pb.CreateCommentResponse
type DeleteCommentByIdRequest ¶
type DeleteCommentByIdRequest = pb.DeleteCommentByIdRequest
type DeleteCommentByIdResponse ¶
type DeleteCommentByIdResponse = pb.DeleteCommentByIdResponse
type ListCommentByAuthorIdAndTypeRequest ¶
type ListCommentByAuthorIdAndTypeRequest = pb.ListCommentByAuthorIdAndTypeRequest
type ListCommentByAuthorIdAndTypeResponse ¶
type ListCommentByAuthorIdAndTypeResponse = pb.ListCommentByAuthorIdAndTypeResponse
type ListCommentByParentRequest ¶
type ListCommentByParentRequest = pb.ListCommentByParentRequest
type ListCommentByParentResponse ¶
type ListCommentByParentResponse = pb.ListCommentByParentResponse
type ListCommentByReplyToAndTypeRequest ¶
type ListCommentByReplyToAndTypeRequest = pb.ListCommentByReplyToAndTypeRequest
type ListCommentByReplyToAndTypeResponse ¶
type ListCommentByReplyToAndTypeResponse = pb.ListCommentByReplyToAndTypeResponse
type RetrieveCommentByIdRequest ¶
type RetrieveCommentByIdRequest = pb.RetrieveCommentByIdRequest
type RetrieveCommentByIdResponse ¶
type RetrieveCommentByIdResponse = pb.RetrieveCommentByIdResponse
type UpdateCommentRequest ¶
type UpdateCommentRequest = pb.UpdateCommentRequest
type UpdateCommentResponse ¶
type UpdateCommentResponse = pb.UpdateCommentResponse
Click to show internal directories.
Click to hide internal directories.