comment

package
v0.0.0-...-1482656 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: GPL-2.0 Imports: 7 Imported by: 5

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

Deprecated: Use Comment.ProtoReflect.Descriptor instead.

func (*Comment) FastRead

func (x *Comment) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*Comment) FastWrite

func (x *Comment) FastWrite(buf []byte) (offset int)

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

func (x *Comment) Size() (n int)

func (*Comment) String

func (x *Comment) String() string

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

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

func (x *CountCommentByParentReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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

func (x *CountCommentByParentResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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

func (x *CreateCommentReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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

func (x *CreateCommentResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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

func (x *DeleteCommentByIdReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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

func (x *DeleteCommentByIdResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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

func (x *ListCommentByAuthorIdAndTypeReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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 (*ListCommentByAuthorIdAndTypeReq) GetType

func (*ListCommentByAuthorIdAndTypeReq) ProtoMessage

func (*ListCommentByAuthorIdAndTypeReq) ProtoMessage()

func (*ListCommentByAuthorIdAndTypeReq) ProtoReflect

func (*ListCommentByAuthorIdAndTypeReq) Reset

func (*ListCommentByAuthorIdAndTypeReq) Size

func (x *ListCommentByAuthorIdAndTypeReq) Size() (n int)

func (*ListCommentByAuthorIdAndTypeReq) 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) FastRead

func (x *ListCommentByAuthorIdAndTypeResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*ListCommentByAuthorIdAndTypeResp) FastWrite

func (x *ListCommentByAuthorIdAndTypeResp) FastWrite(buf []byte) (offset int)

func (*ListCommentByAuthorIdAndTypeResp) GetComments

func (x *ListCommentByAuthorIdAndTypeResp) GetComments() []*Comment

func (*ListCommentByAuthorIdAndTypeResp) GetTotal

func (*ListCommentByAuthorIdAndTypeResp) ProtoMessage

func (*ListCommentByAuthorIdAndTypeResp) ProtoMessage()

func (*ListCommentByAuthorIdAndTypeResp) ProtoReflect

func (*ListCommentByAuthorIdAndTypeResp) Reset

func (*ListCommentByAuthorIdAndTypeResp) Size

func (x *ListCommentByAuthorIdAndTypeResp) Size() (n int)

func (*ListCommentByAuthorIdAndTypeResp) 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) FastRead

func (x *ListCommentByParentReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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

func (x *ListCommentByParentResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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

func (x *ListCommentByReplyToAndTypeReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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 (*ListCommentByReplyToAndTypeReq) GetType

func (*ListCommentByReplyToAndTypeReq) ProtoMessage

func (*ListCommentByReplyToAndTypeReq) ProtoMessage()

func (*ListCommentByReplyToAndTypeReq) ProtoReflect

func (*ListCommentByReplyToAndTypeReq) Reset

func (x *ListCommentByReplyToAndTypeReq) Reset()

func (*ListCommentByReplyToAndTypeReq) Size

func (x *ListCommentByReplyToAndTypeReq) Size() (n int)

func (*ListCommentByReplyToAndTypeReq) 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) FastRead

func (x *ListCommentByReplyToAndTypeResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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 (*ListCommentByReplyToAndTypeResp) Reset

func (*ListCommentByReplyToAndTypeResp) Size

func (x *ListCommentByReplyToAndTypeResp) Size() (n int)

func (*ListCommentByReplyToAndTypeResp) 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) FastRead

func (x *RetrieveCommentByIdReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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

func (x *RetrieveCommentByIdResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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

func (x *UpdateCommentReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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

func (x *UpdateCommentResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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

Directories

Path Synopsis
Code generated by Kitex v0.9.1.
Code generated by Kitex v0.9.1.

Jump to

Keyboard shortcuts

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