Documentation
¶
Index ¶
- Variables
- func RegisterCommentServiceServer(s *grpc.Server, srv CommentServiceServer)
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)
- func (m *Comment) GetCommentId() int64
- func (m *Comment) GetContent() string
- func (m *Comment) GetCreatedAt() uint32
- func (m *Comment) GetCreatorId() int64
- func (m *Comment) GetExtra() string
- func (m *Comment) GetFloor() uint32
- func (m *Comment) GetHate() int32
- func (m *Comment) GetLike() int32
- func (m *Comment) GetModifiedAt() uint32
- func (m *Comment) GetParentId() int64
- func (m *Comment) GetReCommentId() int64
- func (m *Comment) GetState() Comment_ECommentState
- func (m *Comment) GetTargetId() int64
- func (*Comment) ProtoMessage()
- func (m *Comment) Reset()
- func (m *Comment) String() string
- func (m *Comment) XXX_DiscardUnknown()
- func (m *Comment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Comment) XXX_Merge(src proto.Message)
- func (m *Comment) XXX_Size() int
- func (m *Comment) XXX_Unmarshal(b []byte) error
- type CommentServiceClient
- type CommentServiceServer
- type Comment_ECommentState
- type CreateCommentRequest
- func (*CreateCommentRequest) Descriptor() ([]byte, []int)
- func (m *CreateCommentRequest) GetAppId() string
- func (m *CreateCommentRequest) GetComment() *CreateCommentRequest_CommentCreateParams
- func (*CreateCommentRequest) ProtoMessage()
- func (m *CreateCommentRequest) Reset()
- func (m *CreateCommentRequest) String() string
- func (m *CreateCommentRequest) XXX_DiscardUnknown()
- func (m *CreateCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateCommentRequest) XXX_Merge(src proto.Message)
- func (m *CreateCommentRequest) XXX_Size() int
- func (m *CreateCommentRequest) XXX_Unmarshal(b []byte) error
- type CreateCommentRequest_CommentCreateParams
- func (*CreateCommentRequest_CommentCreateParams) Descriptor() ([]byte, []int)
- func (m *CreateCommentRequest_CommentCreateParams) GetContent() string
- func (m *CreateCommentRequest_CommentCreateParams) GetCreatorId() int64
- func (m *CreateCommentRequest_CommentCreateParams) GetExtra() string
- func (m *CreateCommentRequest_CommentCreateParams) GetParentId() int64
- func (m *CreateCommentRequest_CommentCreateParams) GetReCommentId() int64
- func (m *CreateCommentRequest_CommentCreateParams) GetTargetId() int64
- func (*CreateCommentRequest_CommentCreateParams) ProtoMessage()
- func (m *CreateCommentRequest_CommentCreateParams) Reset()
- func (m *CreateCommentRequest_CommentCreateParams) String() string
- func (m *CreateCommentRequest_CommentCreateParams) XXX_DiscardUnknown()
- func (m *CreateCommentRequest_CommentCreateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateCommentRequest_CommentCreateParams) XXX_Merge(src proto.Message)
- func (m *CreateCommentRequest_CommentCreateParams) XXX_Size() int
- func (m *CreateCommentRequest_CommentCreateParams) XXX_Unmarshal(b []byte) error
- type CreateCommentResponse
- func (*CreateCommentResponse) Descriptor() ([]byte, []int)
- func (m *CreateCommentResponse) GetAppId() string
- func (m *CreateCommentResponse) GetComment() *Comment
- func (*CreateCommentResponse) ProtoMessage()
- func (m *CreateCommentResponse) Reset()
- func (m *CreateCommentResponse) String() string
- func (m *CreateCommentResponse) XXX_DiscardUnknown()
- func (m *CreateCommentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateCommentResponse) XXX_Merge(src proto.Message)
- func (m *CreateCommentResponse) XXX_Size() int
- func (m *CreateCommentResponse) XXX_Unmarshal(b []byte) error
- type DeleteCommentRequest
- func (*DeleteCommentRequest) Descriptor() ([]byte, []int)
- func (m *DeleteCommentRequest) GetAppId() string
- func (m *DeleteCommentRequest) GetCommentId() int64
- func (*DeleteCommentRequest) ProtoMessage()
- func (m *DeleteCommentRequest) Reset()
- func (m *DeleteCommentRequest) String() string
- func (m *DeleteCommentRequest) XXX_DiscardUnknown()
- func (m *DeleteCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteCommentRequest) XXX_Merge(src proto.Message)
- func (m *DeleteCommentRequest) XXX_Size() int
- func (m *DeleteCommentRequest) XXX_Unmarshal(b []byte) error
- type DeleteCommentResponse
- func (*DeleteCommentResponse) Descriptor() ([]byte, []int)
- func (m *DeleteCommentResponse) GetAppId() string
- func (m *DeleteCommentResponse) GetCommentId() int64
- func (*DeleteCommentResponse) ProtoMessage()
- func (m *DeleteCommentResponse) Reset()
- func (m *DeleteCommentResponse) String() string
- func (m *DeleteCommentResponse) XXX_DiscardUnknown()
- func (m *DeleteCommentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteCommentResponse) XXX_Merge(src proto.Message)
- func (m *DeleteCommentResponse) XXX_Size() int
- func (m *DeleteCommentResponse) XXX_Unmarshal(b []byte) error
- type GetCommentByIdRequest
- func (*GetCommentByIdRequest) Descriptor() ([]byte, []int)
- func (m *GetCommentByIdRequest) GetCommentId() int64
- func (*GetCommentByIdRequest) ProtoMessage()
- func (m *GetCommentByIdRequest) Reset()
- func (m *GetCommentByIdRequest) String() string
- func (m *GetCommentByIdRequest) XXX_DiscardUnknown()
- func (m *GetCommentByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCommentByIdRequest) XXX_Merge(src proto.Message)
- func (m *GetCommentByIdRequest) XXX_Size() int
- func (m *GetCommentByIdRequest) XXX_Unmarshal(b []byte) error
- type GetCommentByIdResponse
- func (*GetCommentByIdResponse) Descriptor() ([]byte, []int)
- func (m *GetCommentByIdResponse) GetComment() *Comment
- func (*GetCommentByIdResponse) ProtoMessage()
- func (m *GetCommentByIdResponse) Reset()
- func (m *GetCommentByIdResponse) String() string
- func (m *GetCommentByIdResponse) XXX_DiscardUnknown()
- func (m *GetCommentByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCommentByIdResponse) XXX_Merge(src proto.Message)
- func (m *GetCommentByIdResponse) XXX_Size() int
- func (m *GetCommentByIdResponse) XXX_Unmarshal(b []byte) error
- type HateRequest
- func (*HateRequest) Descriptor() ([]byte, []int)
- func (m *HateRequest) GetCommentId() int64
- func (*HateRequest) ProtoMessage()
- func (m *HateRequest) Reset()
- func (m *HateRequest) String() string
- func (m *HateRequest) XXX_DiscardUnknown()
- func (m *HateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HateRequest) XXX_Merge(src proto.Message)
- func (m *HateRequest) XXX_Size() int
- func (m *HateRequest) XXX_Unmarshal(b []byte) error
- type HateResponse
- func (*HateResponse) Descriptor() ([]byte, []int)
- func (m *HateResponse) GetCommentId() int64
- func (*HateResponse) ProtoMessage()
- func (m *HateResponse) Reset()
- func (m *HateResponse) String() string
- func (m *HateResponse) XXX_DiscardUnknown()
- func (m *HateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HateResponse) XXX_Merge(src proto.Message)
- func (m *HateResponse) XXX_Size() int
- func (m *HateResponse) XXX_Unmarshal(b []byte) error
- type LikeRequest
- func (*LikeRequest) Descriptor() ([]byte, []int)
- func (m *LikeRequest) GetCommentId() int64
- func (*LikeRequest) ProtoMessage()
- func (m *LikeRequest) Reset()
- func (m *LikeRequest) String() string
- func (m *LikeRequest) XXX_DiscardUnknown()
- func (m *LikeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LikeRequest) XXX_Merge(src proto.Message)
- func (m *LikeRequest) XXX_Size() int
- func (m *LikeRequest) XXX_Unmarshal(b []byte) error
- type LikeResponse
- func (*LikeResponse) Descriptor() ([]byte, []int)
- func (m *LikeResponse) GetCommentId() int64
- func (*LikeResponse) ProtoMessage()
- func (m *LikeResponse) Reset()
- func (m *LikeResponse) String() string
- func (m *LikeResponse) XXX_DiscardUnknown()
- func (m *LikeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LikeResponse) XXX_Merge(src proto.Message)
- func (m *LikeResponse) XXX_Size() int
- func (m *LikeResponse) XXX_Unmarshal(b []byte) error
- type ListCommentsRequest
- func (*ListCommentsRequest) Descriptor() ([]byte, []int)
- func (m *ListCommentsRequest) GetAppId() string
- func (m *ListCommentsRequest) GetCreatorId() int64
- func (m *ListCommentsRequest) GetEndTime() uint32
- func (m *ListCommentsRequest) GetPage() int32
- func (m *ListCommentsRequest) GetPageSize() int32
- func (m *ListCommentsRequest) GetParentId() int64
- func (m *ListCommentsRequest) GetReCommentId() int64
- func (m *ListCommentsRequest) GetStartTime() uint32
- func (m *ListCommentsRequest) GetState() int32
- func (m *ListCommentsRequest) GetTargetId() int64
- func (*ListCommentsRequest) ProtoMessage()
- func (m *ListCommentsRequest) Reset()
- func (m *ListCommentsRequest) String() string
- func (m *ListCommentsRequest) XXX_DiscardUnknown()
- func (m *ListCommentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListCommentsRequest) XXX_Merge(src proto.Message)
- func (m *ListCommentsRequest) XXX_Size() int
- func (m *ListCommentsRequest) XXX_Unmarshal(b []byte) error
- type ListCommentsResponse
- func (*ListCommentsResponse) Descriptor() ([]byte, []int)
- func (m *ListCommentsResponse) GetAppId() string
- func (m *ListCommentsResponse) GetComments() []*Comment
- func (m *ListCommentsResponse) GetPage() int32
- func (m *ListCommentsResponse) GetPageSize() int32
- func (m *ListCommentsResponse) GetTotal() int64
- func (*ListCommentsResponse) ProtoMessage()
- func (m *ListCommentsResponse) Reset()
- func (m *ListCommentsResponse) String() string
- func (m *ListCommentsResponse) XXX_DiscardUnknown()
- func (m *ListCommentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListCommentsResponse) XXX_Merge(src proto.Message)
- func (m *ListCommentsResponse) XXX_Size() int
- func (m *ListCommentsResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedCommentServiceServer
- func (*UnimplementedCommentServiceServer) CreateComment(ctx context.Context, req *CreateCommentRequest) (*CreateCommentResponse, error)
- func (*UnimplementedCommentServiceServer) DeleteComment(ctx context.Context, req *DeleteCommentRequest) (*DeleteCommentResponse, error)
- func (*UnimplementedCommentServiceServer) GetCommentById(ctx context.Context, req *GetCommentByIdRequest) (*GetCommentByIdResponse, error)
- func (*UnimplementedCommentServiceServer) Hate(ctx context.Context, req *HateRequest) (*HateResponse, error)
- func (*UnimplementedCommentServiceServer) Like(ctx context.Context, req *LikeRequest) (*LikeResponse, error)
- func (*UnimplementedCommentServiceServer) ListComments(ctx context.Context, req *ListCommentsRequest) (*ListCommentsResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Comment_ECommentState_name = map[int32]string{
0: "UNKNOWN",
1: "SHOW",
2: "WITHDRAW",
}
View Source
var Comment_ECommentState_value = map[string]int32{
"UNKNOWN": 0,
"SHOW": 1,
"WITHDRAW": 2,
}
Functions ¶
func RegisterCommentServiceServer ¶
func RegisterCommentServiceServer(s *grpc.Server, srv CommentServiceServer)
Types ¶
type Comment ¶
type Comment struct { CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` TargetId int64 `protobuf:"varint,2,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` CreatorId int64 `protobuf:"varint,3,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"` ParentId int64 `protobuf:"varint,4,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` ReCommentId int64 `protobuf:"varint,5,opt,name=re_comment_id,json=reCommentId,proto3" json:"re_comment_id,omitempty"` Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` Extra string `protobuf:"bytes,7,opt,name=extra,proto3" json:"extra,omitempty"` Like int32 `protobuf:"varint,8,opt,name=like,proto3" json:"like,omitempty"` Hate int32 `protobuf:"varint,9,opt,name=hate,proto3" json:"hate,omitempty"` State Comment_ECommentState `protobuf:"varint,10,opt,name=state,proto3,enum=comment.Comment_ECommentState" json:"state,omitempty"` CreatedAt uint32 `protobuf:"varint,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` ModifiedAt uint32 `protobuf:"varint,12,opt,name=modified_at,json=modifiedAt,proto3" json:"modified_at,omitempty"` Floor uint32 `protobuf:"varint,13,opt,name=floor,proto3" json:"floor,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Comment) Descriptor ¶
func (*Comment) GetCommentId ¶
func (*Comment) GetContent ¶
func (*Comment) GetCreatedAt ¶
func (*Comment) GetCreatorId ¶
func (*Comment) GetModifiedAt ¶
func (*Comment) GetParentId ¶
func (*Comment) GetReCommentId ¶
func (*Comment) GetState ¶
func (m *Comment) GetState() Comment_ECommentState
func (*Comment) GetTargetId ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) XXX_DiscardUnknown ¶
func (m *Comment) XXX_DiscardUnknown()
func (*Comment) XXX_Marshal ¶
func (*Comment) XXX_Unmarshal ¶
type CommentServiceClient ¶
type CommentServiceClient interface { ListComments(ctx context.Context, in *ListCommentsRequest, opts ...grpc.CallOption) (*ListCommentsResponse, error) GetCommentById(ctx context.Context, in *GetCommentByIdRequest, opts ...grpc.CallOption) (*GetCommentByIdResponse, error) CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*CreateCommentResponse, error) DeleteComment(ctx context.Context, in *DeleteCommentRequest, opts ...grpc.CallOption) (*DeleteCommentResponse, error) Like(ctx context.Context, in *LikeRequest, opts ...grpc.CallOption) (*LikeResponse, error) Hate(ctx context.Context, in *HateRequest, opts ...grpc.CallOption) (*HateResponse, error) }
CommentServiceClient is the client API for CommentService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCommentServiceClient ¶
func NewCommentServiceClient(cc *grpc.ClientConn) CommentServiceClient
type CommentServiceServer ¶
type CommentServiceServer interface { ListComments(context.Context, *ListCommentsRequest) (*ListCommentsResponse, error) GetCommentById(context.Context, *GetCommentByIdRequest) (*GetCommentByIdResponse, error) CreateComment(context.Context, *CreateCommentRequest) (*CreateCommentResponse, error) DeleteComment(context.Context, *DeleteCommentRequest) (*DeleteCommentResponse, error) Like(context.Context, *LikeRequest) (*LikeResponse, error) Hate(context.Context, *HateRequest) (*HateResponse, error) }
CommentServiceServer is the server API for CommentService service.
type Comment_ECommentState ¶
type Comment_ECommentState int32
const ( Comment_UNKNOWN Comment_ECommentState = 0 Comment_SHOW Comment_ECommentState = 1 Comment_WITHDRAW Comment_ECommentState = 2 )
func (Comment_ECommentState) EnumDescriptor ¶
func (Comment_ECommentState) EnumDescriptor() ([]byte, []int)
func (Comment_ECommentState) String ¶
func (x Comment_ECommentState) String() string
type CreateCommentRequest ¶
type CreateCommentRequest struct { AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` Comment *CreateCommentRequest_CommentCreateParams `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateCommentRequest) Descriptor ¶
func (*CreateCommentRequest) Descriptor() ([]byte, []int)
func (*CreateCommentRequest) GetAppId ¶
func (m *CreateCommentRequest) GetAppId() string
func (*CreateCommentRequest) GetComment ¶
func (m *CreateCommentRequest) GetComment() *CreateCommentRequest_CommentCreateParams
func (*CreateCommentRequest) ProtoMessage ¶
func (*CreateCommentRequest) ProtoMessage()
func (*CreateCommentRequest) Reset ¶
func (m *CreateCommentRequest) Reset()
func (*CreateCommentRequest) String ¶
func (m *CreateCommentRequest) String() string
func (*CreateCommentRequest) XXX_DiscardUnknown ¶
func (m *CreateCommentRequest) XXX_DiscardUnknown()
func (*CreateCommentRequest) XXX_Marshal ¶
func (m *CreateCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateCommentRequest) XXX_Merge ¶
func (m *CreateCommentRequest) XXX_Merge(src proto.Message)
func (*CreateCommentRequest) XXX_Size ¶
func (m *CreateCommentRequest) XXX_Size() int
func (*CreateCommentRequest) XXX_Unmarshal ¶
func (m *CreateCommentRequest) XXX_Unmarshal(b []byte) error
type CreateCommentRequest_CommentCreateParams ¶
type CreateCommentRequest_CommentCreateParams struct { TargetId int64 `protobuf:"varint,1,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` CreatorId int64 `protobuf:"varint,2,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"` ParentId int64 `protobuf:"varint,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` ReCommentId int64 `protobuf:"varint,4,opt,name=re_comment_id,json=reCommentId,proto3" json:"re_comment_id,omitempty"` Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` Extra string `protobuf:"bytes,6,opt,name=extra,proto3" json:"extra,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateCommentRequest_CommentCreateParams) Descriptor ¶
func (*CreateCommentRequest_CommentCreateParams) Descriptor() ([]byte, []int)
func (*CreateCommentRequest_CommentCreateParams) GetContent ¶
func (m *CreateCommentRequest_CommentCreateParams) GetContent() string
func (*CreateCommentRequest_CommentCreateParams) GetCreatorId ¶
func (m *CreateCommentRequest_CommentCreateParams) GetCreatorId() int64
func (*CreateCommentRequest_CommentCreateParams) GetExtra ¶
func (m *CreateCommentRequest_CommentCreateParams) GetExtra() string
func (*CreateCommentRequest_CommentCreateParams) GetParentId ¶
func (m *CreateCommentRequest_CommentCreateParams) GetParentId() int64
func (*CreateCommentRequest_CommentCreateParams) GetReCommentId ¶
func (m *CreateCommentRequest_CommentCreateParams) GetReCommentId() int64
func (*CreateCommentRequest_CommentCreateParams) GetTargetId ¶
func (m *CreateCommentRequest_CommentCreateParams) GetTargetId() int64
func (*CreateCommentRequest_CommentCreateParams) ProtoMessage ¶
func (*CreateCommentRequest_CommentCreateParams) ProtoMessage()
func (*CreateCommentRequest_CommentCreateParams) Reset ¶
func (m *CreateCommentRequest_CommentCreateParams) Reset()
func (*CreateCommentRequest_CommentCreateParams) String ¶
func (m *CreateCommentRequest_CommentCreateParams) String() string
func (*CreateCommentRequest_CommentCreateParams) XXX_DiscardUnknown ¶
func (m *CreateCommentRequest_CommentCreateParams) XXX_DiscardUnknown()
func (*CreateCommentRequest_CommentCreateParams) XXX_Marshal ¶
func (m *CreateCommentRequest_CommentCreateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateCommentRequest_CommentCreateParams) XXX_Merge ¶
func (m *CreateCommentRequest_CommentCreateParams) XXX_Merge(src proto.Message)
func (*CreateCommentRequest_CommentCreateParams) XXX_Size ¶
func (m *CreateCommentRequest_CommentCreateParams) XXX_Size() int
func (*CreateCommentRequest_CommentCreateParams) XXX_Unmarshal ¶
func (m *CreateCommentRequest_CommentCreateParams) XXX_Unmarshal(b []byte) error
type CreateCommentResponse ¶
type CreateCommentResponse struct { AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` Comment *Comment `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateCommentResponse) Descriptor ¶
func (*CreateCommentResponse) Descriptor() ([]byte, []int)
func (*CreateCommentResponse) GetAppId ¶
func (m *CreateCommentResponse) GetAppId() string
func (*CreateCommentResponse) GetComment ¶
func (m *CreateCommentResponse) GetComment() *Comment
func (*CreateCommentResponse) ProtoMessage ¶
func (*CreateCommentResponse) ProtoMessage()
func (*CreateCommentResponse) Reset ¶
func (m *CreateCommentResponse) Reset()
func (*CreateCommentResponse) String ¶
func (m *CreateCommentResponse) String() string
func (*CreateCommentResponse) XXX_DiscardUnknown ¶
func (m *CreateCommentResponse) XXX_DiscardUnknown()
func (*CreateCommentResponse) XXX_Marshal ¶
func (m *CreateCommentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateCommentResponse) XXX_Merge ¶
func (m *CreateCommentResponse) XXX_Merge(src proto.Message)
func (*CreateCommentResponse) XXX_Size ¶
func (m *CreateCommentResponse) XXX_Size() int
func (*CreateCommentResponse) XXX_Unmarshal ¶
func (m *CreateCommentResponse) XXX_Unmarshal(b []byte) error
type DeleteCommentRequest ¶
type DeleteCommentRequest struct { AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` CommentId int64 `protobuf:"varint,2,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteCommentRequest) Descriptor ¶
func (*DeleteCommentRequest) Descriptor() ([]byte, []int)
func (*DeleteCommentRequest) GetAppId ¶
func (m *DeleteCommentRequest) GetAppId() string
func (*DeleteCommentRequest) GetCommentId ¶
func (m *DeleteCommentRequest) GetCommentId() int64
func (*DeleteCommentRequest) ProtoMessage ¶
func (*DeleteCommentRequest) ProtoMessage()
func (*DeleteCommentRequest) Reset ¶
func (m *DeleteCommentRequest) Reset()
func (*DeleteCommentRequest) String ¶
func (m *DeleteCommentRequest) String() string
func (*DeleteCommentRequest) XXX_DiscardUnknown ¶
func (m *DeleteCommentRequest) XXX_DiscardUnknown()
func (*DeleteCommentRequest) XXX_Marshal ¶
func (m *DeleteCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteCommentRequest) XXX_Merge ¶
func (m *DeleteCommentRequest) XXX_Merge(src proto.Message)
func (*DeleteCommentRequest) XXX_Size ¶
func (m *DeleteCommentRequest) XXX_Size() int
func (*DeleteCommentRequest) XXX_Unmarshal ¶
func (m *DeleteCommentRequest) XXX_Unmarshal(b []byte) error
type DeleteCommentResponse ¶
type DeleteCommentResponse struct { AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` CommentId int64 `protobuf:"varint,2,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteCommentResponse) Descriptor ¶
func (*DeleteCommentResponse) Descriptor() ([]byte, []int)
func (*DeleteCommentResponse) GetAppId ¶
func (m *DeleteCommentResponse) GetAppId() string
func (*DeleteCommentResponse) GetCommentId ¶
func (m *DeleteCommentResponse) GetCommentId() int64
func (*DeleteCommentResponse) ProtoMessage ¶
func (*DeleteCommentResponse) ProtoMessage()
func (*DeleteCommentResponse) Reset ¶
func (m *DeleteCommentResponse) Reset()
func (*DeleteCommentResponse) String ¶
func (m *DeleteCommentResponse) String() string
func (*DeleteCommentResponse) XXX_DiscardUnknown ¶
func (m *DeleteCommentResponse) XXX_DiscardUnknown()
func (*DeleteCommentResponse) XXX_Marshal ¶
func (m *DeleteCommentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteCommentResponse) XXX_Merge ¶
func (m *DeleteCommentResponse) XXX_Merge(src proto.Message)
func (*DeleteCommentResponse) XXX_Size ¶
func (m *DeleteCommentResponse) XXX_Size() int
func (*DeleteCommentResponse) XXX_Unmarshal ¶
func (m *DeleteCommentResponse) XXX_Unmarshal(b []byte) error
type GetCommentByIdRequest ¶
type GetCommentByIdRequest struct { CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetCommentByIdRequest) Descriptor ¶
func (*GetCommentByIdRequest) Descriptor() ([]byte, []int)
func (*GetCommentByIdRequest) GetCommentId ¶
func (m *GetCommentByIdRequest) GetCommentId() int64
func (*GetCommentByIdRequest) ProtoMessage ¶
func (*GetCommentByIdRequest) ProtoMessage()
func (*GetCommentByIdRequest) Reset ¶
func (m *GetCommentByIdRequest) Reset()
func (*GetCommentByIdRequest) String ¶
func (m *GetCommentByIdRequest) String() string
func (*GetCommentByIdRequest) XXX_DiscardUnknown ¶
func (m *GetCommentByIdRequest) XXX_DiscardUnknown()
func (*GetCommentByIdRequest) XXX_Marshal ¶
func (m *GetCommentByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetCommentByIdRequest) XXX_Merge ¶
func (m *GetCommentByIdRequest) XXX_Merge(src proto.Message)
func (*GetCommentByIdRequest) XXX_Size ¶
func (m *GetCommentByIdRequest) XXX_Size() int
func (*GetCommentByIdRequest) XXX_Unmarshal ¶
func (m *GetCommentByIdRequest) XXX_Unmarshal(b []byte) error
type GetCommentByIdResponse ¶
type GetCommentByIdResponse struct { Comment *Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetCommentByIdResponse) Descriptor ¶
func (*GetCommentByIdResponse) Descriptor() ([]byte, []int)
func (*GetCommentByIdResponse) GetComment ¶
func (m *GetCommentByIdResponse) GetComment() *Comment
func (*GetCommentByIdResponse) ProtoMessage ¶
func (*GetCommentByIdResponse) ProtoMessage()
func (*GetCommentByIdResponse) Reset ¶
func (m *GetCommentByIdResponse) Reset()
func (*GetCommentByIdResponse) String ¶
func (m *GetCommentByIdResponse) String() string
func (*GetCommentByIdResponse) XXX_DiscardUnknown ¶
func (m *GetCommentByIdResponse) XXX_DiscardUnknown()
func (*GetCommentByIdResponse) XXX_Marshal ¶
func (m *GetCommentByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetCommentByIdResponse) XXX_Merge ¶
func (m *GetCommentByIdResponse) XXX_Merge(src proto.Message)
func (*GetCommentByIdResponse) XXX_Size ¶
func (m *GetCommentByIdResponse) XXX_Size() int
func (*GetCommentByIdResponse) XXX_Unmarshal ¶
func (m *GetCommentByIdResponse) XXX_Unmarshal(b []byte) error
type HateRequest ¶
type HateRequest struct { CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HateRequest) Descriptor ¶
func (*HateRequest) Descriptor() ([]byte, []int)
func (*HateRequest) GetCommentId ¶
func (m *HateRequest) GetCommentId() int64
func (*HateRequest) ProtoMessage ¶
func (*HateRequest) ProtoMessage()
func (*HateRequest) Reset ¶
func (m *HateRequest) Reset()
func (*HateRequest) String ¶
func (m *HateRequest) String() string
func (*HateRequest) XXX_DiscardUnknown ¶
func (m *HateRequest) XXX_DiscardUnknown()
func (*HateRequest) XXX_Marshal ¶
func (m *HateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HateRequest) XXX_Merge ¶
func (m *HateRequest) XXX_Merge(src proto.Message)
func (*HateRequest) XXX_Size ¶
func (m *HateRequest) XXX_Size() int
func (*HateRequest) XXX_Unmarshal ¶
func (m *HateRequest) XXX_Unmarshal(b []byte) error
type HateResponse ¶
type HateResponse struct { CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HateResponse) Descriptor ¶
func (*HateResponse) Descriptor() ([]byte, []int)
func (*HateResponse) GetCommentId ¶
func (m *HateResponse) GetCommentId() int64
func (*HateResponse) ProtoMessage ¶
func (*HateResponse) ProtoMessage()
func (*HateResponse) Reset ¶
func (m *HateResponse) Reset()
func (*HateResponse) String ¶
func (m *HateResponse) String() string
func (*HateResponse) XXX_DiscardUnknown ¶
func (m *HateResponse) XXX_DiscardUnknown()
func (*HateResponse) XXX_Marshal ¶
func (m *HateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HateResponse) XXX_Merge ¶
func (m *HateResponse) XXX_Merge(src proto.Message)
func (*HateResponse) XXX_Size ¶
func (m *HateResponse) XXX_Size() int
func (*HateResponse) XXX_Unmarshal ¶
func (m *HateResponse) XXX_Unmarshal(b []byte) error
type LikeRequest ¶
type LikeRequest struct { CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LikeRequest) Descriptor ¶
func (*LikeRequest) Descriptor() ([]byte, []int)
func (*LikeRequest) GetCommentId ¶
func (m *LikeRequest) GetCommentId() int64
func (*LikeRequest) ProtoMessage ¶
func (*LikeRequest) ProtoMessage()
func (*LikeRequest) Reset ¶
func (m *LikeRequest) Reset()
func (*LikeRequest) String ¶
func (m *LikeRequest) String() string
func (*LikeRequest) XXX_DiscardUnknown ¶
func (m *LikeRequest) XXX_DiscardUnknown()
func (*LikeRequest) XXX_Marshal ¶
func (m *LikeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LikeRequest) XXX_Merge ¶
func (m *LikeRequest) XXX_Merge(src proto.Message)
func (*LikeRequest) XXX_Size ¶
func (m *LikeRequest) XXX_Size() int
func (*LikeRequest) XXX_Unmarshal ¶
func (m *LikeRequest) XXX_Unmarshal(b []byte) error
type LikeResponse ¶
type LikeResponse struct { CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LikeResponse) Descriptor ¶
func (*LikeResponse) Descriptor() ([]byte, []int)
func (*LikeResponse) GetCommentId ¶
func (m *LikeResponse) GetCommentId() int64
func (*LikeResponse) ProtoMessage ¶
func (*LikeResponse) ProtoMessage()
func (*LikeResponse) Reset ¶
func (m *LikeResponse) Reset()
func (*LikeResponse) String ¶
func (m *LikeResponse) String() string
func (*LikeResponse) XXX_DiscardUnknown ¶
func (m *LikeResponse) XXX_DiscardUnknown()
func (*LikeResponse) XXX_Marshal ¶
func (m *LikeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LikeResponse) XXX_Merge ¶
func (m *LikeResponse) XXX_Merge(src proto.Message)
func (*LikeResponse) XXX_Size ¶
func (m *LikeResponse) XXX_Size() int
func (*LikeResponse) XXX_Unmarshal ¶
func (m *LikeResponse) XXX_Unmarshal(b []byte) error
type ListCommentsRequest ¶
type ListCommentsRequest struct { AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` TargetId int64 `protobuf:"varint,2,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` CreatorId int64 `protobuf:"varint,5,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"` ParentId int64 `protobuf:"varint,6,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` State int32 `protobuf:"varint,7,opt,name=state,proto3" json:"state,omitempty"` StartTime uint32 `protobuf:"varint,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime uint32 `protobuf:"varint,9,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` ReCommentId int64 `protobuf:"varint,10,opt,name=re_comment_id,json=reCommentId,proto3" json:"re_comment_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListCommentsRequest) Descriptor ¶
func (*ListCommentsRequest) Descriptor() ([]byte, []int)
func (*ListCommentsRequest) GetAppId ¶
func (m *ListCommentsRequest) GetAppId() string
func (*ListCommentsRequest) GetCreatorId ¶
func (m *ListCommentsRequest) GetCreatorId() int64
func (*ListCommentsRequest) GetEndTime ¶
func (m *ListCommentsRequest) GetEndTime() uint32
func (*ListCommentsRequest) GetPage ¶
func (m *ListCommentsRequest) GetPage() int32
func (*ListCommentsRequest) GetPageSize ¶
func (m *ListCommentsRequest) GetPageSize() int32
func (*ListCommentsRequest) GetParentId ¶
func (m *ListCommentsRequest) GetParentId() int64
func (*ListCommentsRequest) GetReCommentId ¶
func (m *ListCommentsRequest) GetReCommentId() int64
func (*ListCommentsRequest) GetStartTime ¶
func (m *ListCommentsRequest) GetStartTime() uint32
func (*ListCommentsRequest) GetState ¶
func (m *ListCommentsRequest) GetState() int32
func (*ListCommentsRequest) GetTargetId ¶
func (m *ListCommentsRequest) GetTargetId() int64
func (*ListCommentsRequest) ProtoMessage ¶
func (*ListCommentsRequest) ProtoMessage()
func (*ListCommentsRequest) Reset ¶
func (m *ListCommentsRequest) Reset()
func (*ListCommentsRequest) String ¶
func (m *ListCommentsRequest) String() string
func (*ListCommentsRequest) XXX_DiscardUnknown ¶
func (m *ListCommentsRequest) XXX_DiscardUnknown()
func (*ListCommentsRequest) XXX_Marshal ¶
func (m *ListCommentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListCommentsRequest) XXX_Merge ¶
func (m *ListCommentsRequest) XXX_Merge(src proto.Message)
func (*ListCommentsRequest) XXX_Size ¶
func (m *ListCommentsRequest) XXX_Size() int
func (*ListCommentsRequest) XXX_Unmarshal ¶
func (m *ListCommentsRequest) XXX_Unmarshal(b []byte) error
type ListCommentsResponse ¶
type ListCommentsResponse struct { AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` Comments []*Comment `protobuf:"bytes,2,rep,name=comments,proto3" json:"comments,omitempty"` Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` Page int32 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListCommentsResponse) Descriptor ¶
func (*ListCommentsResponse) Descriptor() ([]byte, []int)
func (*ListCommentsResponse) GetAppId ¶
func (m *ListCommentsResponse) GetAppId() string
func (*ListCommentsResponse) GetComments ¶
func (m *ListCommentsResponse) GetComments() []*Comment
func (*ListCommentsResponse) GetPage ¶
func (m *ListCommentsResponse) GetPage() int32
func (*ListCommentsResponse) GetPageSize ¶
func (m *ListCommentsResponse) GetPageSize() int32
func (*ListCommentsResponse) GetTotal ¶
func (m *ListCommentsResponse) GetTotal() int64
func (*ListCommentsResponse) ProtoMessage ¶
func (*ListCommentsResponse) ProtoMessage()
func (*ListCommentsResponse) Reset ¶
func (m *ListCommentsResponse) Reset()
func (*ListCommentsResponse) String ¶
func (m *ListCommentsResponse) String() string
func (*ListCommentsResponse) XXX_DiscardUnknown ¶
func (m *ListCommentsResponse) XXX_DiscardUnknown()
func (*ListCommentsResponse) XXX_Marshal ¶
func (m *ListCommentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListCommentsResponse) XXX_Merge ¶
func (m *ListCommentsResponse) XXX_Merge(src proto.Message)
func (*ListCommentsResponse) XXX_Size ¶
func (m *ListCommentsResponse) XXX_Size() int
func (*ListCommentsResponse) XXX_Unmarshal ¶
func (m *ListCommentsResponse) XXX_Unmarshal(b []byte) error
type UnimplementedCommentServiceServer ¶
type UnimplementedCommentServiceServer struct { }
UnimplementedCommentServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCommentServiceServer) CreateComment ¶
func (*UnimplementedCommentServiceServer) CreateComment(ctx context.Context, req *CreateCommentRequest) (*CreateCommentResponse, error)
func (*UnimplementedCommentServiceServer) DeleteComment ¶
func (*UnimplementedCommentServiceServer) DeleteComment(ctx context.Context, req *DeleteCommentRequest) (*DeleteCommentResponse, error)
func (*UnimplementedCommentServiceServer) GetCommentById ¶
func (*UnimplementedCommentServiceServer) GetCommentById(ctx context.Context, req *GetCommentByIdRequest) (*GetCommentByIdResponse, error)
func (*UnimplementedCommentServiceServer) Hate ¶
func (*UnimplementedCommentServiceServer) Hate(ctx context.Context, req *HateRequest) (*HateResponse, error)
func (*UnimplementedCommentServiceServer) Like ¶
func (*UnimplementedCommentServiceServer) Like(ctx context.Context, req *LikeRequest) (*LikeResponse, error)
func (*UnimplementedCommentServiceServer) ListComments ¶
func (*UnimplementedCommentServiceServer) ListComments(ctx context.Context, req *ListCommentsRequest) (*ListCommentsResponse, error)
Click to show internal directories.
Click to hide internal directories.