comment

package
v1.0.28 Latest Latest
Warning

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

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

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Comment.ProtoReflect.Descriptor instead.

func (*Comment) GetAuthorId

func (x *Comment) GetAuthorId() string

func (*Comment) GetCreateAt

func (x *Comment) GetCreateAt() int64

func (*Comment) GetFirstLevelId

func (x *Comment) GetFirstLevelId() string

func (*Comment) GetId

func (x *Comment) GetId() string

func (*Comment) GetParentId

func (x *Comment) GetParentId() string

func (*Comment) GetReplyTo

func (x *Comment) GetReplyTo() string

func (*Comment) GetText

func (x *Comment) GetText() string

func (*Comment) GetType

func (x *Comment) GetType() CommentType

func (*Comment) GetUpdateAt

func (x *Comment) GetUpdateAt() int64

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) ProtoReflect

func (x *Comment) ProtoReflect() protoreflect.Message

func (*Comment) Reset

func (x *Comment) Reset()

func (*Comment) String

func (x *Comment) String() string

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) 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

Jump to

Keyboard shortcuts

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