commentrpc

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2023 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment = pb.Comment

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL