Documentation ¶
Index ¶
- Variables
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)deprecated
- 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) String() string
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
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.
View Source
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" form:"id" query:"id"` FirstLevelId string `protobuf:"bytes,2,opt,name=firstLevelId,proto3" json:"firstLevelId" form:"firstLevelId" query:"firstLevelId"` Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text" form:"text" query:"text"` AuthorId string `protobuf:"bytes,4,opt,name=authorId,proto3" json:"authorId" form:"authorId" query:"authorId"` ReplyTo string `protobuf:"bytes,5,opt,name=replyTo,proto3" json:"replyTo" form:"replyTo" query:"replyTo"` Type CommentType `protobuf:"varint,6,opt,name=type,proto3,enum=platform.comment.CommentType" json:"type" form:"type" query:"type"` ParentId string `protobuf:"bytes,7,opt,name=parentId,proto3" json:"parentId" form:"parentId" query:"parentId"` UpdateAt int64 `protobuf:"varint,8,opt,name=updateAt,proto3" json:"updateAt" form:"updateAt" query:"updateAt"` CreateAt int64 `protobuf:"varint,9,opt,name=createAt,proto3" json:"createAt" form:"createAt" query:"createAt"` // 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 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
Click to show internal directories.
Click to hide internal directories.