Documentation ¶
Index ¶
- Variables
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)deprecated
- func (x *Comment) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *Comment) FastWrite(buf []byte) (offset int)
- func (x *Comment) GetAuthorId() string
- func (x *Comment) GetCreateAt() int64
- func (x *Comment) GetFirstLevelId() string
- func (x *Comment) GetId() string
- func (x *Comment) GetParentId() string
- func (x *Comment) GetReplyTo() string
- func (x *Comment) GetText() string
- func (x *Comment) GetType() CommentType
- func (x *Comment) GetUpdateAt() int64
- func (*Comment) ProtoMessage()
- func (x *Comment) ProtoReflect() protoreflect.Message
- func (x *Comment) Reset()
- func (x *Comment) Size() (n int)
- func (x *Comment) String() string
- type CommentService
- type CommentType
- func (CommentType) Descriptor() protoreflect.EnumDescriptor
- func (x CommentType) Enum() *CommentType
- func (CommentType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CommentType) Number() protoreflect.EnumNumber
- func (x CommentType) String() string
- func (CommentType) Type() protoreflect.EnumType
- type CountCommentByParentReq
- func (*CountCommentByParentReq) Descriptor() ([]byte, []int)deprecated
- func (x *CountCommentByParentReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *CountCommentByParentReq) FastWrite(buf []byte) (offset int)
- func (x *CountCommentByParentReq) GetOnlyFirstLevel() bool
- func (x *CountCommentByParentReq) GetParentId() string
- func (x *CountCommentByParentReq) GetType() CommentType
- func (*CountCommentByParentReq) ProtoMessage()
- func (x *CountCommentByParentReq) ProtoReflect() protoreflect.Message
- func (x *CountCommentByParentReq) Reset()
- func (x *CountCommentByParentReq) Size() (n int)
- func (x *CountCommentByParentReq) String() string
- type CountCommentByParentResp
- func (*CountCommentByParentResp) Descriptor() ([]byte, []int)deprecated
- func (x *CountCommentByParentResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *CountCommentByParentResp) FastWrite(buf []byte) (offset int)
- func (x *CountCommentByParentResp) GetTotal() int64
- func (*CountCommentByParentResp) ProtoMessage()
- func (x *CountCommentByParentResp) ProtoReflect() protoreflect.Message
- func (x *CountCommentByParentResp) Reset()
- func (x *CountCommentByParentResp) Size() (n int)
- func (x *CountCommentByParentResp) String() string
- type CreateCommentReq
- func (*CreateCommentReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCommentReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *CreateCommentReq) FastWrite(buf []byte) (offset int)
- func (x *CreateCommentReq) GetAuthorId() string
- func (x *CreateCommentReq) GetFirstLevelId() string
- func (x *CreateCommentReq) GetParentId() string
- func (x *CreateCommentReq) GetReplyTo() string
- func (x *CreateCommentReq) GetText() string
- func (x *CreateCommentReq) GetType() CommentType
- func (*CreateCommentReq) ProtoMessage()
- func (x *CreateCommentReq) ProtoReflect() protoreflect.Message
- func (x *CreateCommentReq) Reset()
- func (x *CreateCommentReq) Size() (n int)
- func (x *CreateCommentReq) String() string
- type CreateCommentResp
- func (*CreateCommentResp) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCommentResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *CreateCommentResp) FastWrite(buf []byte) (offset int)
- func (x *CreateCommentResp) GetGetFish() bool
- func (x *CreateCommentResp) GetGetFishTimes() int64
- func (x *CreateCommentResp) GetId() string
- func (*CreateCommentResp) ProtoMessage()
- func (x *CreateCommentResp) ProtoReflect() protoreflect.Message
- func (x *CreateCommentResp) Reset()
- func (x *CreateCommentResp) Size() (n int)
- func (x *CreateCommentResp) String() string
- type DeleteCommentByIdReq
- func (*DeleteCommentByIdReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCommentByIdReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DeleteCommentByIdReq) FastWrite(buf []byte) (offset int)
- func (x *DeleteCommentByIdReq) GetId() string
- func (*DeleteCommentByIdReq) ProtoMessage()
- func (x *DeleteCommentByIdReq) ProtoReflect() protoreflect.Message
- func (x *DeleteCommentByIdReq) Reset()
- func (x *DeleteCommentByIdReq) Size() (n int)
- func (x *DeleteCommentByIdReq) String() string
- type DeleteCommentByIdResp
- func (*DeleteCommentByIdResp) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCommentByIdResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DeleteCommentByIdResp) FastWrite(buf []byte) (offset int)
- func (*DeleteCommentByIdResp) ProtoMessage()
- func (x *DeleteCommentByIdResp) ProtoReflect() protoreflect.Message
- func (x *DeleteCommentByIdResp) Reset()
- func (x *DeleteCommentByIdResp) Size() (n int)
- func (x *DeleteCommentByIdResp) String() string
- type ListCommentByAuthorIdAndTypeReq
- func (*ListCommentByAuthorIdAndTypeReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListCommentByAuthorIdAndTypeReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *ListCommentByAuthorIdAndTypeReq) FastWrite(buf []byte) (offset int)
- func (x *ListCommentByAuthorIdAndTypeReq) GetAuthorId() string
- func (x *ListCommentByAuthorIdAndTypeReq) GetLimit() int64
- func (x *ListCommentByAuthorIdAndTypeReq) GetSkip() int64
- func (x *ListCommentByAuthorIdAndTypeReq) GetType() CommentType
- func (*ListCommentByAuthorIdAndTypeReq) ProtoMessage()
- func (x *ListCommentByAuthorIdAndTypeReq) ProtoReflect() protoreflect.Message
- func (x *ListCommentByAuthorIdAndTypeReq) Reset()
- func (x *ListCommentByAuthorIdAndTypeReq) Size() (n int)
- func (x *ListCommentByAuthorIdAndTypeReq) String() string
- type ListCommentByAuthorIdAndTypeResp
- func (*ListCommentByAuthorIdAndTypeResp) Descriptor() ([]byte, []int)deprecated
- func (x *ListCommentByAuthorIdAndTypeResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *ListCommentByAuthorIdAndTypeResp) FastWrite(buf []byte) (offset int)
- func (x *ListCommentByAuthorIdAndTypeResp) GetComments() []*Comment
- func (x *ListCommentByAuthorIdAndTypeResp) GetTotal() int64
- func (*ListCommentByAuthorIdAndTypeResp) ProtoMessage()
- func (x *ListCommentByAuthorIdAndTypeResp) ProtoReflect() protoreflect.Message
- func (x *ListCommentByAuthorIdAndTypeResp) Reset()
- func (x *ListCommentByAuthorIdAndTypeResp) Size() (n int)
- func (x *ListCommentByAuthorIdAndTypeResp) String() string
- type ListCommentByParentReq
- func (*ListCommentByParentReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListCommentByParentReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *ListCommentByParentReq) FastWrite(buf []byte) (offset int)
- func (x *ListCommentByParentReq) GetId() string
- func (x *ListCommentByParentReq) GetLimit() int64
- func (x *ListCommentByParentReq) GetOnlyFirstLevel() bool
- func (x *ListCommentByParentReq) GetSkip() int64
- func (x *ListCommentByParentReq) GetType() CommentType
- func (*ListCommentByParentReq) ProtoMessage()
- func (x *ListCommentByParentReq) ProtoReflect() protoreflect.Message
- func (x *ListCommentByParentReq) Reset()
- func (x *ListCommentByParentReq) Size() (n int)
- func (x *ListCommentByParentReq) String() string
- type ListCommentByParentResp
- func (*ListCommentByParentResp) Descriptor() ([]byte, []int)deprecated
- func (x *ListCommentByParentResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *ListCommentByParentResp) FastWrite(buf []byte) (offset int)
- func (x *ListCommentByParentResp) GetComments() []*Comment
- func (x *ListCommentByParentResp) GetTotal() int64
- func (*ListCommentByParentResp) ProtoMessage()
- func (x *ListCommentByParentResp) ProtoReflect() protoreflect.Message
- func (x *ListCommentByParentResp) Reset()
- func (x *ListCommentByParentResp) Size() (n int)
- func (x *ListCommentByParentResp) String() string
- type ListCommentByReplyToAndTypeReq
- func (*ListCommentByReplyToAndTypeReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListCommentByReplyToAndTypeReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *ListCommentByReplyToAndTypeReq) FastWrite(buf []byte) (offset int)
- func (x *ListCommentByReplyToAndTypeReq) GetLimit() int64
- func (x *ListCommentByReplyToAndTypeReq) GetReplyTo() string
- func (x *ListCommentByReplyToAndTypeReq) GetSkip() int64
- func (x *ListCommentByReplyToAndTypeReq) GetType() CommentType
- func (*ListCommentByReplyToAndTypeReq) ProtoMessage()
- func (x *ListCommentByReplyToAndTypeReq) ProtoReflect() protoreflect.Message
- func (x *ListCommentByReplyToAndTypeReq) Reset()
- func (x *ListCommentByReplyToAndTypeReq) Size() (n int)
- func (x *ListCommentByReplyToAndTypeReq) String() string
- type ListCommentByReplyToAndTypeResp
- func (*ListCommentByReplyToAndTypeResp) Descriptor() ([]byte, []int)deprecated
- func (x *ListCommentByReplyToAndTypeResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *ListCommentByReplyToAndTypeResp) FastWrite(buf []byte) (offset int)
- func (x *ListCommentByReplyToAndTypeResp) GetComments() []*Comment
- func (x *ListCommentByReplyToAndTypeResp) GetTotal() int64
- func (*ListCommentByReplyToAndTypeResp) ProtoMessage()
- func (x *ListCommentByReplyToAndTypeResp) ProtoReflect() protoreflect.Message
- func (x *ListCommentByReplyToAndTypeResp) Reset()
- func (x *ListCommentByReplyToAndTypeResp) Size() (n int)
- func (x *ListCommentByReplyToAndTypeResp) String() string
- type RetrieveCommentByIdReq
- func (*RetrieveCommentByIdReq) Descriptor() ([]byte, []int)deprecated
- func (x *RetrieveCommentByIdReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *RetrieveCommentByIdReq) FastWrite(buf []byte) (offset int)
- func (x *RetrieveCommentByIdReq) GetId() string
- func (*RetrieveCommentByIdReq) ProtoMessage()
- func (x *RetrieveCommentByIdReq) ProtoReflect() protoreflect.Message
- func (x *RetrieveCommentByIdReq) Reset()
- func (x *RetrieveCommentByIdReq) Size() (n int)
- func (x *RetrieveCommentByIdReq) String() string
- type RetrieveCommentByIdResp
- func (*RetrieveCommentByIdResp) Descriptor() ([]byte, []int)deprecated
- func (x *RetrieveCommentByIdResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *RetrieveCommentByIdResp) FastWrite(buf []byte) (offset int)
- func (x *RetrieveCommentByIdResp) GetComment() *Comment
- func (*RetrieveCommentByIdResp) ProtoMessage()
- func (x *RetrieveCommentByIdResp) ProtoReflect() protoreflect.Message
- func (x *RetrieveCommentByIdResp) Reset()
- func (x *RetrieveCommentByIdResp) Size() (n int)
- func (x *RetrieveCommentByIdResp) String() string
- type UpdateCommentReq
- func (*UpdateCommentReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCommentReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *UpdateCommentReq) FastWrite(buf []byte) (offset int)
- func (x *UpdateCommentReq) GetId() string
- func (x *UpdateCommentReq) GetText() string
- func (*UpdateCommentReq) ProtoMessage()
- func (x *UpdateCommentReq) ProtoReflect() protoreflect.Message
- func (x *UpdateCommentReq) Reset()
- func (x *UpdateCommentReq) Size() (n int)
- func (x *UpdateCommentReq) String() string
- type UpdateCommentResp
- func (*UpdateCommentResp) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCommentResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *UpdateCommentResp) FastWrite(buf []byte) (offset int)
- func (*UpdateCommentResp) ProtoMessage()
- func (x *UpdateCommentResp) ProtoReflect() protoreflect.Message
- func (x *UpdateCommentResp) Reset()
- func (x *UpdateCommentResp) Size() (n int)
- func (x *UpdateCommentResp) String() string
Constants ¶
This section is empty.
Variables ¶
var ( CommentType_name = map[int32]string{ 0: "CommentType_Unknown", 1: "CommentType_Comment", 2: "CommentType_Post", 3: "CommentType_Moment", } CommentType_value = map[string]int32{ "CommentType_Unknown": 0, "CommentType_Comment": 1, "CommentType_Post": 2, "CommentType_Moment": 3, } )
Enum value maps for CommentType.
var File_platform_comment_comment_proto protoreflect.FileDescriptor
var File_platform_comment_common_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` FirstLevelId string `protobuf:"bytes,2,opt,name=firstLevelId,proto3" json:"firstLevelId,omitempty"` Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` AuthorId string `protobuf:"bytes,4,opt,name=authorId,proto3" json:"authorId,omitempty"` ReplyTo string `protobuf:"bytes,5,opt,name=replyTo,proto3" json:"replyTo,omitempty"` Type CommentType `protobuf:"varint,6,opt,name=type,proto3,enum=platform.comment.CommentType" json:"type,omitempty"` ParentId string `protobuf:"bytes,7,opt,name=parentId,proto3" json:"parentId,omitempty"` UpdateAt int64 `protobuf:"varint,8,opt,name=updateAt,proto3" json:"updateAt,omitempty"` CreateAt int64 `protobuf:"varint,9,opt,name=createAt,proto3" json:"createAt,omitempty"` // contains filtered or unexported fields }
func (*Comment) Descriptor
deprecated
func (*Comment) GetAuthorId ¶
func (*Comment) GetCreateAt ¶
func (*Comment) GetFirstLevelId ¶
func (*Comment) GetParentId ¶
func (*Comment) GetReplyTo ¶
func (*Comment) GetType ¶
func (x *Comment) GetType() CommentType
func (*Comment) GetUpdateAt ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
type CommentService ¶
type CommentService interface { CreateComment(ctx context.Context, req *CreateCommentReq) (res *CreateCommentResp, err error) UpdateComment(ctx context.Context, req *UpdateCommentReq) (res *UpdateCommentResp, err error) DeleteComment(ctx context.Context, req *DeleteCommentByIdReq) (res *DeleteCommentByIdResp, err error) ListCommentByParent(ctx context.Context, req *ListCommentByParentReq) (res *ListCommentByParentResp, err error) CountCommentByParent(ctx context.Context, req *CountCommentByParentReq) (res *CountCommentByParentResp, err error) RetrieveCommentById(ctx context.Context, req *RetrieveCommentByIdReq) (res *RetrieveCommentByIdResp, err error) ListCommentByAuthorIdAndType(ctx context.Context, req *ListCommentByAuthorIdAndTypeReq) (res *ListCommentByAuthorIdAndTypeResp, err error) ListCommentByReplyToAndType(ctx context.Context, req *ListCommentByReplyToAndTypeReq) (res *ListCommentByReplyToAndTypeResp, err error) }
type CommentType ¶
type CommentType int32
const ( CommentType_CommentType_Unknown CommentType = 0 CommentType_CommentType_Comment CommentType = 1 CommentType_CommentType_Post CommentType = 2 CommentType_CommentType_Moment CommentType = 3 )
func (CommentType) Descriptor ¶
func (CommentType) Descriptor() protoreflect.EnumDescriptor
func (CommentType) Enum ¶
func (x CommentType) Enum() *CommentType
func (CommentType) EnumDescriptor
deprecated
func (CommentType) EnumDescriptor() ([]byte, []int)
Deprecated: Use CommentType.Descriptor instead.
func (CommentType) Number ¶
func (x CommentType) Number() protoreflect.EnumNumber
func (CommentType) String ¶
func (x CommentType) String() string
func (CommentType) Type ¶
func (CommentType) Type() protoreflect.EnumType
type CountCommentByParentReq ¶
type CountCommentByParentReq struct { Type CommentType `protobuf:"varint,1,opt,name=type,proto3,enum=platform.comment.CommentType" json:"type,omitempty"` ParentId string `protobuf:"bytes,2,opt,name=parentId,proto3" json:"parentId,omitempty"` OnlyFirstLevel *bool `protobuf:"varint,3,opt,name=onlyFirstLevel,proto3,oneof" json:"onlyFirstLevel,omitempty"` // contains filtered or unexported fields }
func (*CountCommentByParentReq) Descriptor
deprecated
func (*CountCommentByParentReq) Descriptor() ([]byte, []int)
Deprecated: Use CountCommentByParentReq.ProtoReflect.Descriptor instead.
func (*CountCommentByParentReq) FastWrite ¶
func (x *CountCommentByParentReq) FastWrite(buf []byte) (offset int)
func (*CountCommentByParentReq) GetOnlyFirstLevel ¶
func (x *CountCommentByParentReq) GetOnlyFirstLevel() bool
func (*CountCommentByParentReq) GetParentId ¶
func (x *CountCommentByParentReq) GetParentId() string
func (*CountCommentByParentReq) GetType ¶
func (x *CountCommentByParentReq) GetType() CommentType
func (*CountCommentByParentReq) ProtoMessage ¶
func (*CountCommentByParentReq) ProtoMessage()
func (*CountCommentByParentReq) ProtoReflect ¶
func (x *CountCommentByParentReq) ProtoReflect() protoreflect.Message
func (*CountCommentByParentReq) Reset ¶
func (x *CountCommentByParentReq) Reset()
func (*CountCommentByParentReq) Size ¶
func (x *CountCommentByParentReq) Size() (n int)
func (*CountCommentByParentReq) String ¶
func (x *CountCommentByParentReq) String() string
type CountCommentByParentResp ¶
type CountCommentByParentResp struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*CountCommentByParentResp) Descriptor
deprecated
func (*CountCommentByParentResp) Descriptor() ([]byte, []int)
Deprecated: Use CountCommentByParentResp.ProtoReflect.Descriptor instead.
func (*CountCommentByParentResp) FastWrite ¶
func (x *CountCommentByParentResp) FastWrite(buf []byte) (offset int)
func (*CountCommentByParentResp) GetTotal ¶
func (x *CountCommentByParentResp) GetTotal() int64
func (*CountCommentByParentResp) ProtoMessage ¶
func (*CountCommentByParentResp) ProtoMessage()
func (*CountCommentByParentResp) ProtoReflect ¶
func (x *CountCommentByParentResp) ProtoReflect() protoreflect.Message
func (*CountCommentByParentResp) Reset ¶
func (x *CountCommentByParentResp) Reset()
func (*CountCommentByParentResp) Size ¶
func (x *CountCommentByParentResp) Size() (n int)
func (*CountCommentByParentResp) String ¶
func (x *CountCommentByParentResp) String() string
type CreateCommentReq ¶
type CreateCommentReq struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` FirstLevelId string `protobuf:"bytes,2,opt,name=firstLevelId,proto3" json:"firstLevelId,omitempty"` AuthorId string `protobuf:"bytes,3,opt,name=authorId,proto3" json:"authorId,omitempty"` ReplyTo string `protobuf:"bytes,4,opt,name=replyTo,proto3" json:"replyTo,omitempty"` Type CommentType `protobuf:"varint,5,opt,name=type,proto3,enum=platform.comment.CommentType" json:"type,omitempty"` ParentId string `protobuf:"bytes,6,opt,name=parentId,proto3" json:"parentId,omitempty"` // contains filtered or unexported fields }
func (*CreateCommentReq) Descriptor
deprecated
func (*CreateCommentReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateCommentReq.ProtoReflect.Descriptor instead.
func (*CreateCommentReq) FastWrite ¶
func (x *CreateCommentReq) FastWrite(buf []byte) (offset int)
func (*CreateCommentReq) GetAuthorId ¶
func (x *CreateCommentReq) GetAuthorId() string
func (*CreateCommentReq) GetFirstLevelId ¶
func (x *CreateCommentReq) GetFirstLevelId() string
func (*CreateCommentReq) GetParentId ¶
func (x *CreateCommentReq) GetParentId() string
func (*CreateCommentReq) GetReplyTo ¶
func (x *CreateCommentReq) GetReplyTo() string
func (*CreateCommentReq) GetText ¶
func (x *CreateCommentReq) GetText() string
func (*CreateCommentReq) GetType ¶
func (x *CreateCommentReq) GetType() CommentType
func (*CreateCommentReq) ProtoMessage ¶
func (*CreateCommentReq) ProtoMessage()
func (*CreateCommentReq) ProtoReflect ¶
func (x *CreateCommentReq) ProtoReflect() protoreflect.Message
func (*CreateCommentReq) Reset ¶
func (x *CreateCommentReq) Reset()
func (*CreateCommentReq) Size ¶
func (x *CreateCommentReq) Size() (n int)
func (*CreateCommentReq) String ¶
func (x *CreateCommentReq) String() string
type CreateCommentResp ¶
type CreateCommentResp struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` GetFish bool `protobuf:"varint,2,opt,name=getFish,proto3" json:"getFish,omitempty"` GetFishTimes int64 `protobuf:"varint,3,opt,name=getFishTimes,proto3" json:"getFishTimes,omitempty"` // contains filtered or unexported fields }
func (*CreateCommentResp) Descriptor
deprecated
func (*CreateCommentResp) Descriptor() ([]byte, []int)
Deprecated: Use CreateCommentResp.ProtoReflect.Descriptor instead.
func (*CreateCommentResp) FastWrite ¶
func (x *CreateCommentResp) FastWrite(buf []byte) (offset int)
func (*CreateCommentResp) GetGetFish ¶
func (x *CreateCommentResp) GetGetFish() bool
func (*CreateCommentResp) GetGetFishTimes ¶
func (x *CreateCommentResp) GetGetFishTimes() int64
func (*CreateCommentResp) GetId ¶
func (x *CreateCommentResp) GetId() string
func (*CreateCommentResp) ProtoMessage ¶
func (*CreateCommentResp) ProtoMessage()
func (*CreateCommentResp) ProtoReflect ¶
func (x *CreateCommentResp) ProtoReflect() protoreflect.Message
func (*CreateCommentResp) Reset ¶
func (x *CreateCommentResp) Reset()
func (*CreateCommentResp) Size ¶
func (x *CreateCommentResp) Size() (n int)
func (*CreateCommentResp) String ¶
func (x *CreateCommentResp) String() string
type DeleteCommentByIdReq ¶
type DeleteCommentByIdReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
根据 Id 删除评论
func (*DeleteCommentByIdReq) Descriptor
deprecated
func (*DeleteCommentByIdReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCommentByIdReq.ProtoReflect.Descriptor instead.
func (*DeleteCommentByIdReq) FastWrite ¶
func (x *DeleteCommentByIdReq) FastWrite(buf []byte) (offset int)
func (*DeleteCommentByIdReq) GetId ¶
func (x *DeleteCommentByIdReq) GetId() string
func (*DeleteCommentByIdReq) ProtoMessage ¶
func (*DeleteCommentByIdReq) ProtoMessage()
func (*DeleteCommentByIdReq) ProtoReflect ¶
func (x *DeleteCommentByIdReq) ProtoReflect() protoreflect.Message
func (*DeleteCommentByIdReq) Reset ¶
func (x *DeleteCommentByIdReq) Reset()
func (*DeleteCommentByIdReq) Size ¶
func (x *DeleteCommentByIdReq) Size() (n int)
func (*DeleteCommentByIdReq) String ¶
func (x *DeleteCommentByIdReq) String() string
type DeleteCommentByIdResp ¶
type DeleteCommentByIdResp struct {
// contains filtered or unexported fields
}
func (*DeleteCommentByIdResp) Descriptor
deprecated
func (*DeleteCommentByIdResp) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCommentByIdResp.ProtoReflect.Descriptor instead.
func (*DeleteCommentByIdResp) FastWrite ¶
func (x *DeleteCommentByIdResp) FastWrite(buf []byte) (offset int)
func (*DeleteCommentByIdResp) ProtoMessage ¶
func (*DeleteCommentByIdResp) ProtoMessage()
func (*DeleteCommentByIdResp) ProtoReflect ¶
func (x *DeleteCommentByIdResp) ProtoReflect() protoreflect.Message
func (*DeleteCommentByIdResp) Reset ¶
func (x *DeleteCommentByIdResp) Reset()
func (*DeleteCommentByIdResp) Size ¶
func (x *DeleteCommentByIdResp) Size() (n int)
func (*DeleteCommentByIdResp) String ¶
func (x *DeleteCommentByIdResp) String() string
type ListCommentByAuthorIdAndTypeReq ¶
type ListCommentByAuthorIdAndTypeReq struct { AuthorId string `protobuf:"bytes,1,opt,name=authorId,proto3" json:"authorId,omitempty"` Type CommentType `protobuf:"varint,2,opt,name=type,proto3,enum=platform.comment.CommentType" json:"type,omitempty"` Skip int64 `protobuf:"varint,3,opt,name=skip,proto3" json:"skip,omitempty"` Limit int64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*ListCommentByAuthorIdAndTypeReq) Descriptor
deprecated
func (*ListCommentByAuthorIdAndTypeReq) Descriptor() ([]byte, []int)
Deprecated: Use ListCommentByAuthorIdAndTypeReq.ProtoReflect.Descriptor instead.
func (*ListCommentByAuthorIdAndTypeReq) FastWrite ¶
func (x *ListCommentByAuthorIdAndTypeReq) FastWrite(buf []byte) (offset int)
func (*ListCommentByAuthorIdAndTypeReq) GetAuthorId ¶
func (x *ListCommentByAuthorIdAndTypeReq) GetAuthorId() string
func (*ListCommentByAuthorIdAndTypeReq) GetLimit ¶
func (x *ListCommentByAuthorIdAndTypeReq) GetLimit() int64
func (*ListCommentByAuthorIdAndTypeReq) GetSkip ¶
func (x *ListCommentByAuthorIdAndTypeReq) GetSkip() int64
func (*ListCommentByAuthorIdAndTypeReq) GetType ¶
func (x *ListCommentByAuthorIdAndTypeReq) GetType() CommentType
func (*ListCommentByAuthorIdAndTypeReq) ProtoMessage ¶
func (*ListCommentByAuthorIdAndTypeReq) ProtoMessage()
func (*ListCommentByAuthorIdAndTypeReq) ProtoReflect ¶
func (x *ListCommentByAuthorIdAndTypeReq) ProtoReflect() protoreflect.Message
func (*ListCommentByAuthorIdAndTypeReq) Reset ¶
func (x *ListCommentByAuthorIdAndTypeReq) Reset()
func (*ListCommentByAuthorIdAndTypeReq) Size ¶
func (x *ListCommentByAuthorIdAndTypeReq) Size() (n int)
func (*ListCommentByAuthorIdAndTypeReq) String ¶
func (x *ListCommentByAuthorIdAndTypeReq) String() string
type ListCommentByAuthorIdAndTypeResp ¶
type ListCommentByAuthorIdAndTypeResp struct { Comments []*Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListCommentByAuthorIdAndTypeResp) Descriptor
deprecated
func (*ListCommentByAuthorIdAndTypeResp) Descriptor() ([]byte, []int)
Deprecated: Use ListCommentByAuthorIdAndTypeResp.ProtoReflect.Descriptor instead.
func (*ListCommentByAuthorIdAndTypeResp) FastWrite ¶
func (x *ListCommentByAuthorIdAndTypeResp) FastWrite(buf []byte) (offset int)
func (*ListCommentByAuthorIdAndTypeResp) GetComments ¶
func (x *ListCommentByAuthorIdAndTypeResp) GetComments() []*Comment
func (*ListCommentByAuthorIdAndTypeResp) GetTotal ¶
func (x *ListCommentByAuthorIdAndTypeResp) GetTotal() int64
func (*ListCommentByAuthorIdAndTypeResp) ProtoMessage ¶
func (*ListCommentByAuthorIdAndTypeResp) ProtoMessage()
func (*ListCommentByAuthorIdAndTypeResp) ProtoReflect ¶
func (x *ListCommentByAuthorIdAndTypeResp) ProtoReflect() protoreflect.Message
func (*ListCommentByAuthorIdAndTypeResp) Reset ¶
func (x *ListCommentByAuthorIdAndTypeResp) Reset()
func (*ListCommentByAuthorIdAndTypeResp) Size ¶
func (x *ListCommentByAuthorIdAndTypeResp) Size() (n int)
func (*ListCommentByAuthorIdAndTypeResp) String ¶
func (x *ListCommentByAuthorIdAndTypeResp) String() string
type ListCommentByParentReq ¶
type ListCommentByParentReq struct { Type CommentType `protobuf:"varint,1,opt,name=type,proto3,enum=platform.comment.CommentType" json:"type,omitempty"` Id string `protobuf:"bytes,2,opt,name=Id,proto3" json:"Id,omitempty"` Skip int64 `protobuf:"varint,3,opt,name=skip,proto3" json:"skip,omitempty"` Limit int64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` OnlyFirstLevel *bool `protobuf:"varint,5,opt,name=onlyFirstLevel,proto3,oneof" json:"onlyFirstLevel,omitempty"` // 只加载一级评论 // contains filtered or unexported fields }
func (*ListCommentByParentReq) Descriptor
deprecated
func (*ListCommentByParentReq) Descriptor() ([]byte, []int)
Deprecated: Use ListCommentByParentReq.ProtoReflect.Descriptor instead.
func (*ListCommentByParentReq) FastWrite ¶
func (x *ListCommentByParentReq) FastWrite(buf []byte) (offset int)
func (*ListCommentByParentReq) GetId ¶
func (x *ListCommentByParentReq) GetId() string
func (*ListCommentByParentReq) GetLimit ¶
func (x *ListCommentByParentReq) GetLimit() int64
func (*ListCommentByParentReq) GetOnlyFirstLevel ¶
func (x *ListCommentByParentReq) GetOnlyFirstLevel() bool
func (*ListCommentByParentReq) GetSkip ¶
func (x *ListCommentByParentReq) GetSkip() int64
func (*ListCommentByParentReq) GetType ¶
func (x *ListCommentByParentReq) GetType() CommentType
func (*ListCommentByParentReq) ProtoMessage ¶
func (*ListCommentByParentReq) ProtoMessage()
func (*ListCommentByParentReq) ProtoReflect ¶
func (x *ListCommentByParentReq) ProtoReflect() protoreflect.Message
func (*ListCommentByParentReq) Reset ¶
func (x *ListCommentByParentReq) Reset()
func (*ListCommentByParentReq) Size ¶
func (x *ListCommentByParentReq) Size() (n int)
func (*ListCommentByParentReq) String ¶
func (x *ListCommentByParentReq) String() string
type ListCommentByParentResp ¶
type ListCommentByParentResp struct { Comments []*Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListCommentByParentResp) Descriptor
deprecated
func (*ListCommentByParentResp) Descriptor() ([]byte, []int)
Deprecated: Use ListCommentByParentResp.ProtoReflect.Descriptor instead.
func (*ListCommentByParentResp) FastWrite ¶
func (x *ListCommentByParentResp) FastWrite(buf []byte) (offset int)
func (*ListCommentByParentResp) GetComments ¶
func (x *ListCommentByParentResp) GetComments() []*Comment
func (*ListCommentByParentResp) GetTotal ¶
func (x *ListCommentByParentResp) GetTotal() int64
func (*ListCommentByParentResp) ProtoMessage ¶
func (*ListCommentByParentResp) ProtoMessage()
func (*ListCommentByParentResp) ProtoReflect ¶
func (x *ListCommentByParentResp) ProtoReflect() protoreflect.Message
func (*ListCommentByParentResp) Reset ¶
func (x *ListCommentByParentResp) Reset()
func (*ListCommentByParentResp) Size ¶
func (x *ListCommentByParentResp) Size() (n int)
func (*ListCommentByParentResp) String ¶
func (x *ListCommentByParentResp) String() string
type ListCommentByReplyToAndTypeReq ¶
type ListCommentByReplyToAndTypeReq struct { ReplyTo string `protobuf:"bytes,1,opt,name=replyTo,proto3" json:"replyTo,omitempty"` Type CommentType `protobuf:"varint,2,opt,name=type,proto3,enum=platform.comment.CommentType" json:"type,omitempty"` Skip int64 `protobuf:"varint,3,opt,name=skip,proto3" json:"skip,omitempty"` Limit int64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*ListCommentByReplyToAndTypeReq) Descriptor
deprecated
func (*ListCommentByReplyToAndTypeReq) Descriptor() ([]byte, []int)
Deprecated: Use ListCommentByReplyToAndTypeReq.ProtoReflect.Descriptor instead.
func (*ListCommentByReplyToAndTypeReq) FastWrite ¶
func (x *ListCommentByReplyToAndTypeReq) FastWrite(buf []byte) (offset int)
func (*ListCommentByReplyToAndTypeReq) GetLimit ¶
func (x *ListCommentByReplyToAndTypeReq) GetLimit() int64
func (*ListCommentByReplyToAndTypeReq) GetReplyTo ¶
func (x *ListCommentByReplyToAndTypeReq) GetReplyTo() string
func (*ListCommentByReplyToAndTypeReq) GetSkip ¶
func (x *ListCommentByReplyToAndTypeReq) GetSkip() int64
func (*ListCommentByReplyToAndTypeReq) GetType ¶
func (x *ListCommentByReplyToAndTypeReq) GetType() CommentType
func (*ListCommentByReplyToAndTypeReq) ProtoMessage ¶
func (*ListCommentByReplyToAndTypeReq) ProtoMessage()
func (*ListCommentByReplyToAndTypeReq) ProtoReflect ¶
func (x *ListCommentByReplyToAndTypeReq) ProtoReflect() protoreflect.Message
func (*ListCommentByReplyToAndTypeReq) Reset ¶
func (x *ListCommentByReplyToAndTypeReq) Reset()
func (*ListCommentByReplyToAndTypeReq) Size ¶
func (x *ListCommentByReplyToAndTypeReq) Size() (n int)
func (*ListCommentByReplyToAndTypeReq) String ¶
func (x *ListCommentByReplyToAndTypeReq) String() string
type ListCommentByReplyToAndTypeResp ¶
type ListCommentByReplyToAndTypeResp struct { Comments []*Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListCommentByReplyToAndTypeResp) Descriptor
deprecated
func (*ListCommentByReplyToAndTypeResp) Descriptor() ([]byte, []int)
Deprecated: Use ListCommentByReplyToAndTypeResp.ProtoReflect.Descriptor instead.
func (*ListCommentByReplyToAndTypeResp) FastWrite ¶
func (x *ListCommentByReplyToAndTypeResp) FastWrite(buf []byte) (offset int)
func (*ListCommentByReplyToAndTypeResp) GetComments ¶
func (x *ListCommentByReplyToAndTypeResp) GetComments() []*Comment
func (*ListCommentByReplyToAndTypeResp) GetTotal ¶
func (x *ListCommentByReplyToAndTypeResp) GetTotal() int64
func (*ListCommentByReplyToAndTypeResp) ProtoMessage ¶
func (*ListCommentByReplyToAndTypeResp) ProtoMessage()
func (*ListCommentByReplyToAndTypeResp) ProtoReflect ¶
func (x *ListCommentByReplyToAndTypeResp) ProtoReflect() protoreflect.Message
func (*ListCommentByReplyToAndTypeResp) Reset ¶
func (x *ListCommentByReplyToAndTypeResp) Reset()
func (*ListCommentByReplyToAndTypeResp) Size ¶
func (x *ListCommentByReplyToAndTypeResp) Size() (n int)
func (*ListCommentByReplyToAndTypeResp) String ¶
func (x *ListCommentByReplyToAndTypeResp) String() string
type RetrieveCommentByIdReq ¶
type RetrieveCommentByIdReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RetrieveCommentByIdReq) Descriptor
deprecated
func (*RetrieveCommentByIdReq) Descriptor() ([]byte, []int)
Deprecated: Use RetrieveCommentByIdReq.ProtoReflect.Descriptor instead.
func (*RetrieveCommentByIdReq) FastWrite ¶
func (x *RetrieveCommentByIdReq) FastWrite(buf []byte) (offset int)
func (*RetrieveCommentByIdReq) GetId ¶
func (x *RetrieveCommentByIdReq) GetId() string
func (*RetrieveCommentByIdReq) ProtoMessage ¶
func (*RetrieveCommentByIdReq) ProtoMessage()
func (*RetrieveCommentByIdReq) ProtoReflect ¶
func (x *RetrieveCommentByIdReq) ProtoReflect() protoreflect.Message
func (*RetrieveCommentByIdReq) Reset ¶
func (x *RetrieveCommentByIdReq) Reset()
func (*RetrieveCommentByIdReq) Size ¶
func (x *RetrieveCommentByIdReq) Size() (n int)
func (*RetrieveCommentByIdReq) String ¶
func (x *RetrieveCommentByIdReq) String() string
type RetrieveCommentByIdResp ¶
type RetrieveCommentByIdResp struct { Comment *Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*RetrieveCommentByIdResp) Descriptor
deprecated
func (*RetrieveCommentByIdResp) Descriptor() ([]byte, []int)
Deprecated: Use RetrieveCommentByIdResp.ProtoReflect.Descriptor instead.
func (*RetrieveCommentByIdResp) FastWrite ¶
func (x *RetrieveCommentByIdResp) FastWrite(buf []byte) (offset int)
func (*RetrieveCommentByIdResp) GetComment ¶
func (x *RetrieveCommentByIdResp) GetComment() *Comment
func (*RetrieveCommentByIdResp) ProtoMessage ¶
func (*RetrieveCommentByIdResp) ProtoMessage()
func (*RetrieveCommentByIdResp) ProtoReflect ¶
func (x *RetrieveCommentByIdResp) ProtoReflect() protoreflect.Message
func (*RetrieveCommentByIdResp) Reset ¶
func (x *RetrieveCommentByIdResp) Reset()
func (*RetrieveCommentByIdResp) Size ¶
func (x *RetrieveCommentByIdResp) Size() (n int)
func (*RetrieveCommentByIdResp) String ¶
func (x *RetrieveCommentByIdResp) String() string
type UpdateCommentReq ¶
type UpdateCommentReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
func (*UpdateCommentReq) Descriptor
deprecated
func (*UpdateCommentReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCommentReq.ProtoReflect.Descriptor instead.
func (*UpdateCommentReq) FastWrite ¶
func (x *UpdateCommentReq) FastWrite(buf []byte) (offset int)
func (*UpdateCommentReq) GetId ¶
func (x *UpdateCommentReq) GetId() string
func (*UpdateCommentReq) GetText ¶
func (x *UpdateCommentReq) GetText() string
func (*UpdateCommentReq) ProtoMessage ¶
func (*UpdateCommentReq) ProtoMessage()
func (*UpdateCommentReq) ProtoReflect ¶
func (x *UpdateCommentReq) ProtoReflect() protoreflect.Message
func (*UpdateCommentReq) Reset ¶
func (x *UpdateCommentReq) Reset()
func (*UpdateCommentReq) Size ¶
func (x *UpdateCommentReq) Size() (n int)
func (*UpdateCommentReq) String ¶
func (x *UpdateCommentReq) String() string
type UpdateCommentResp ¶
type UpdateCommentResp struct {
// contains filtered or unexported fields
}
func (*UpdateCommentResp) Descriptor
deprecated
func (*UpdateCommentResp) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCommentResp.ProtoReflect.Descriptor instead.
func (*UpdateCommentResp) FastWrite ¶
func (x *UpdateCommentResp) FastWrite(buf []byte) (offset int)
func (*UpdateCommentResp) ProtoMessage ¶
func (*UpdateCommentResp) ProtoMessage()
func (*UpdateCommentResp) ProtoReflect ¶
func (x *UpdateCommentResp) ProtoReflect() protoreflect.Message
func (*UpdateCommentResp) Reset ¶
func (x *UpdateCommentResp) Reset()
func (*UpdateCommentResp) Size ¶
func (x *UpdateCommentResp) Size() (n int)
func (*UpdateCommentResp) String ¶
func (x *UpdateCommentResp) String() string