v1

package
v0.0.0-...-aa6ffdd Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommentService_AddComment_FullMethodName                = "/comment.api.v1.CommentService/AddComment"
	CommentService_DelComment_FullMethodName                = "/comment.api.v1.CommentService/DelComment"
	CommentService_LikeAction_FullMethodName                = "/comment.api.v1.CommentService/LikeAction"
	CommentService_DislikeAction_FullMethodName             = "/comment.api.v1.CommentService/DislikeAction"
	CommentService_ReportComment_FullMethodName             = "/comment.api.v1.CommentService/ReportComment"
	CommentService_PinComment_FullMethodName                = "/comment.api.v1.CommentService/PinComment"
	CommentService_PageGetComment_FullMethodName            = "/comment.api.v1.CommentService/PageGetComment"
	CommentService_PageGetSubComment_FullMethodName         = "/comment.api.v1.CommentService/PageGetSubComment"
	CommentService_PageGetSubCommentV2_FullMethodName       = "/comment.api.v1.CommentService/PageGetSubCommentV2"
	CommentService_PageGetDetailedComment_FullMethodName    = "/comment.api.v1.CommentService/PageGetDetailedComment"
	CommentService_PageGetDetailedCommentV2_FullMethodName  = "/comment.api.v1.CommentService/PageGetDetailedCommentV2"
	CommentService_GetPinnedComment_FullMethodName          = "/comment.api.v1.CommentService/GetPinnedComment"
	CommentService_CountComment_FullMethodName              = "/comment.api.v1.CommentService/CountComment"
	CommentService_BatchCountComment_FullMethodName         = "/comment.api.v1.CommentService/BatchCountComment"
	CommentService_GetCommentLikeCount_FullMethodName       = "/comment.api.v1.CommentService/GetCommentLikeCount"
	CommentService_GetCommentDislikeCount_FullMethodName    = "/comment.api.v1.CommentService/GetCommentDislikeCount"
	CommentService_CheckUserOnObject_FullMethodName         = "/comment.api.v1.CommentService/CheckUserOnObject"
	CommentService_BatchCheckUserOnObject_FullMethodName    = "/comment.api.v1.CommentService/BatchCheckUserOnObject"
	CommentService_BatchCheckUserLikeComment_FullMethodName = "/comment.api.v1.CommentService/BatchCheckUserLikeComment"
	CommentService_BatchCheckCommentExist_FullMethodName    = "/comment.api.v1.CommentService/BatchCheckCommentExist"
	CommentService_GetComment_FullMethodName                = "/comment.api.v1.CommentService/GetComment"
	CommentService_GetCommentUser_FullMethodName            = "/comment.api.v1.CommentService/GetCommentUser"
)

Variables

View Source
var (
	CommentAction_name = map[int32]string{
		0: "COMMENT_ACTION_UNDO",
		1: "COMMENT_ACTION_DO",
	}
	CommentAction_value = map[string]int32{
		"COMMENT_ACTION_UNDO": 0,
		"COMMENT_ACTION_DO":   1,
	}
)

Enum value maps for CommentAction.

View Source
var (
	CommentType_name = map[int32]string{
		0: "TEXT",
		1: "IMAGE_TEXT",
		2: "CUSTOM_EMOJI",
	}
	CommentType_value = map[string]int32{
		"TEXT":         0,
		"IMAGE_TEXT":   1,
		"CUSTOM_EMOJI": 2,
	}
)

Enum value maps for CommentType.

View Source
var (
	SortType_name = map[int32]string{
		0: "ByTime",
		1: "ByTrend",
	}
	SortType_value = map[string]int32{
		"ByTime":  0,
		"ByTrend": 1,
	}
)

Enum value maps for SortType.

View Source
var CommentService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "comment.api.v1.CommentService",
	HandlerType: (*CommentServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddComment",
			Handler:    _CommentService_AddComment_Handler,
		},
		{
			MethodName: "DelComment",
			Handler:    _CommentService_DelComment_Handler,
		},
		{
			MethodName: "LikeAction",
			Handler:    _CommentService_LikeAction_Handler,
		},
		{
			MethodName: "DislikeAction",
			Handler:    _CommentService_DislikeAction_Handler,
		},
		{
			MethodName: "ReportComment",
			Handler:    _CommentService_ReportComment_Handler,
		},
		{
			MethodName: "PinComment",
			Handler:    _CommentService_PinComment_Handler,
		},
		{
			MethodName: "PageGetComment",
			Handler:    _CommentService_PageGetComment_Handler,
		},
		{
			MethodName: "PageGetSubComment",
			Handler:    _CommentService_PageGetSubComment_Handler,
		},
		{
			MethodName: "PageGetSubCommentV2",
			Handler:    _CommentService_PageGetSubCommentV2_Handler,
		},
		{
			MethodName: "PageGetDetailedComment",
			Handler:    _CommentService_PageGetDetailedComment_Handler,
		},
		{
			MethodName: "PageGetDetailedCommentV2",
			Handler:    _CommentService_PageGetDetailedCommentV2_Handler,
		},
		{
			MethodName: "GetPinnedComment",
			Handler:    _CommentService_GetPinnedComment_Handler,
		},
		{
			MethodName: "CountComment",
			Handler:    _CommentService_CountComment_Handler,
		},
		{
			MethodName: "BatchCountComment",
			Handler:    _CommentService_BatchCountComment_Handler,
		},
		{
			MethodName: "GetCommentLikeCount",
			Handler:    _CommentService_GetCommentLikeCount_Handler,
		},
		{
			MethodName: "GetCommentDislikeCount",
			Handler:    _CommentService_GetCommentDislikeCount_Handler,
		},
		{
			MethodName: "CheckUserOnObject",
			Handler:    _CommentService_CheckUserOnObject_Handler,
		},
		{
			MethodName: "BatchCheckUserOnObject",
			Handler:    _CommentService_BatchCheckUserOnObject_Handler,
		},
		{
			MethodName: "BatchCheckUserLikeComment",
			Handler:    _CommentService_BatchCheckUserLikeComment_Handler,
		},
		{
			MethodName: "BatchCheckCommentExist",
			Handler:    _CommentService_BatchCheckCommentExist_Handler,
		},
		{
			MethodName: "GetComment",
			Handler:    _CommentService_GetComment_Handler,
		},
		{
			MethodName: "GetCommentUser",
			Handler:    _CommentService_GetCommentUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/comment.proto",
}

CommentService_ServiceDesc is the grpc.ServiceDesc for CommentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_v1_comment_proto protoreflect.FileDescriptor

Functions

func RegisterCommentServiceServer

func RegisterCommentServiceServer(s grpc.ServiceRegistrar, srv CommentServiceServer)

Types

type AddCommentRequest

type AddCommentRequest struct {
	Type     CommentType        `protobuf:"varint,1,opt,name=type,proto3,enum=comment.api.v1.CommentType" json:"type,omitempty"` // 评论类型 0-纯文本 1-图文
	Oid      int64              `protobuf:"varint,2,opt,name=oid,proto3" json:"oid,omitempty"`                                   // 被评论对象id
	Content  string             `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`                            // 评论内容
	RootId   int64              `protobuf:"varint,4,opt,name=root_id,json=rootId,proto3" json:"root_id,omitempty"`               // 根评论id
	ParentId int64              `protobuf:"varint,5,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`         // 被回复的评论id
	ReplyUid int64              `protobuf:"varint,6,opt,name=reply_uid,json=replyUid,proto3" json:"reply_uid,omitempty"`         // 被回复的用户id
	Images   []*CommentReqImage `protobuf:"bytes,7,rep,name=images,proto3" json:"images,omitempty"`                              // 图片评论资源
	AtUsers  []*CommentAtUser   `protobuf:"bytes,8,rep,name=at_users,json=atUsers,proto3" json:"at_users,omitempty"`             // @用户列表
	// contains filtered or unexported fields
}

发布评论

func (*AddCommentRequest) Descriptor deprecated

func (*AddCommentRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddCommentRequest.ProtoReflect.Descriptor instead.

func (*AddCommentRequest) GetAtUsers

func (x *AddCommentRequest) GetAtUsers() []*CommentAtUser

func (*AddCommentRequest) GetContent

func (x *AddCommentRequest) GetContent() string

func (*AddCommentRequest) GetImages

func (x *AddCommentRequest) GetImages() []*CommentReqImage

func (*AddCommentRequest) GetOid

func (x *AddCommentRequest) GetOid() int64

func (*AddCommentRequest) GetParentId

func (x *AddCommentRequest) GetParentId() int64

func (*AddCommentRequest) GetReplyUid

func (x *AddCommentRequest) GetReplyUid() int64

func (*AddCommentRequest) GetRootId

func (x *AddCommentRequest) GetRootId() int64

func (*AddCommentRequest) GetType

func (x *AddCommentRequest) GetType() CommentType

func (*AddCommentRequest) ProtoMessage

func (*AddCommentRequest) ProtoMessage()

func (*AddCommentRequest) ProtoReflect

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

func (*AddCommentRequest) Reset

func (x *AddCommentRequest) Reset()

func (*AddCommentRequest) String

func (x *AddCommentRequest) String() string

type AddCommentResponse

type AddCommentResponse struct {
	CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` // 评论id
	// contains filtered or unexported fields
}

func (*AddCommentResponse) Descriptor deprecated

func (*AddCommentResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddCommentResponse.ProtoReflect.Descriptor instead.

func (*AddCommentResponse) GetCommentId

func (x *AddCommentResponse) GetCommentId() int64

func (*AddCommentResponse) ProtoMessage

func (*AddCommentResponse) ProtoMessage()

func (*AddCommentResponse) ProtoReflect

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

func (*AddCommentResponse) Reset

func (x *AddCommentResponse) Reset()

func (*AddCommentResponse) String

func (x *AddCommentResponse) String() string

type BatchCheckCommentExistRequest

type BatchCheckCommentExistRequest struct {
	Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchCheckCommentExistRequest) Descriptor deprecated

func (*BatchCheckCommentExistRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchCheckCommentExistRequest.ProtoReflect.Descriptor instead.

func (*BatchCheckCommentExistRequest) GetIds

func (x *BatchCheckCommentExistRequest) GetIds() []int64

func (*BatchCheckCommentExistRequest) ProtoMessage

func (*BatchCheckCommentExistRequest) ProtoMessage()

func (*BatchCheckCommentExistRequest) ProtoReflect

func (*BatchCheckCommentExistRequest) Reset

func (x *BatchCheckCommentExistRequest) Reset()

func (*BatchCheckCommentExistRequest) String

type BatchCheckCommentExistResponse

type BatchCheckCommentExistResponse struct {
	Existence map[int64]bool `` /* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BatchCheckCommentExistResponse) Descriptor deprecated

func (*BatchCheckCommentExistResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchCheckCommentExistResponse.ProtoReflect.Descriptor instead.

func (*BatchCheckCommentExistResponse) GetExistence

func (x *BatchCheckCommentExistResponse) GetExistence() map[int64]bool

func (*BatchCheckCommentExistResponse) ProtoMessage

func (*BatchCheckCommentExistResponse) ProtoMessage()

func (*BatchCheckCommentExistResponse) ProtoReflect

func (*BatchCheckCommentExistResponse) Reset

func (x *BatchCheckCommentExistResponse) Reset()

func (*BatchCheckCommentExistResponse) String

type BatchCheckUserLikeCommentRequest

type BatchCheckUserLikeCommentRequest struct {
	Mappings map[int64]*BatchCheckUserLikeCommentRequest_CommentIdList `` /* 158-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BatchCheckUserLikeCommentRequest) Descriptor deprecated

func (*BatchCheckUserLikeCommentRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchCheckUserLikeCommentRequest.ProtoReflect.Descriptor instead.

func (*BatchCheckUserLikeCommentRequest) GetMappings

func (*BatchCheckUserLikeCommentRequest) ProtoMessage

func (*BatchCheckUserLikeCommentRequest) ProtoMessage()

func (*BatchCheckUserLikeCommentRequest) ProtoReflect

func (*BatchCheckUserLikeCommentRequest) Reset

func (*BatchCheckUserLikeCommentRequest) String

type BatchCheckUserLikeCommentRequest_CommentIdList

type BatchCheckUserLikeCommentRequest_CommentIdList struct {
	Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

mappings => {uid: [rid1, rid2, ..., ridN]}

func (*BatchCheckUserLikeCommentRequest_CommentIdList) Descriptor deprecated

Deprecated: Use BatchCheckUserLikeCommentRequest_CommentIdList.ProtoReflect.Descriptor instead.

func (*BatchCheckUserLikeCommentRequest_CommentIdList) GetIds

func (*BatchCheckUserLikeCommentRequest_CommentIdList) ProtoMessage

func (*BatchCheckUserLikeCommentRequest_CommentIdList) ProtoReflect

func (*BatchCheckUserLikeCommentRequest_CommentIdList) Reset

func (*BatchCheckUserLikeCommentRequest_CommentIdList) String

type BatchCheckUserLikeCommentResponse

type BatchCheckUserLikeCommentResponse struct {
	Results map[int64]*BatchCheckUserLikeCommentResponse_CommentLikedList `` /* 156-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BatchCheckUserLikeCommentResponse) Descriptor deprecated

func (*BatchCheckUserLikeCommentResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchCheckUserLikeCommentResponse.ProtoReflect.Descriptor instead.

func (*BatchCheckUserLikeCommentResponse) GetResults

func (*BatchCheckUserLikeCommentResponse) ProtoMessage

func (*BatchCheckUserLikeCommentResponse) ProtoMessage()

func (*BatchCheckUserLikeCommentResponse) ProtoReflect

func (*BatchCheckUserLikeCommentResponse) Reset

func (*BatchCheckUserLikeCommentResponse) String

type BatchCheckUserLikeCommentResponse_CommentLikedList

type BatchCheckUserLikeCommentResponse_CommentLikedList struct {
	List []*CommentLiked `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

results => {uid: [{comment_id, liked}, {comment_id, liked}, ..., {comment_id, liked}]}

func (*BatchCheckUserLikeCommentResponse_CommentLikedList) Descriptor deprecated

Deprecated: Use BatchCheckUserLikeCommentResponse_CommentLikedList.ProtoReflect.Descriptor instead.

func (*BatchCheckUserLikeCommentResponse_CommentLikedList) GetList

func (*BatchCheckUserLikeCommentResponse_CommentLikedList) ProtoMessage

func (*BatchCheckUserLikeCommentResponse_CommentLikedList) ProtoReflect

func (*BatchCheckUserLikeCommentResponse_CommentLikedList) Reset

func (*BatchCheckUserLikeCommentResponse_CommentLikedList) String

type BatchCheckUserOnObjectRequest

type BatchCheckUserOnObjectRequest struct {
	Mappings map[int64]*BatchCheckUserOnObjectRequest_Objects `` /* 158-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BatchCheckUserOnObjectRequest) Descriptor deprecated

func (*BatchCheckUserOnObjectRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchCheckUserOnObjectRequest.ProtoReflect.Descriptor instead.

func (*BatchCheckUserOnObjectRequest) GetMappings

func (*BatchCheckUserOnObjectRequest) ProtoMessage

func (*BatchCheckUserOnObjectRequest) ProtoMessage()

func (*BatchCheckUserOnObjectRequest) ProtoReflect

func (*BatchCheckUserOnObjectRequest) Reset

func (x *BatchCheckUserOnObjectRequest) Reset()

func (*BatchCheckUserOnObjectRequest) String

type BatchCheckUserOnObjectRequest_Objects

type BatchCheckUserOnObjectRequest_Objects struct {
	Oids []int64 `protobuf:"varint,1,rep,packed,name=oids,proto3" json:"oids,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchCheckUserOnObjectRequest_Objects) Descriptor deprecated

func (*BatchCheckUserOnObjectRequest_Objects) Descriptor() ([]byte, []int)

Deprecated: Use BatchCheckUserOnObjectRequest_Objects.ProtoReflect.Descriptor instead.

func (*BatchCheckUserOnObjectRequest_Objects) GetOids

func (*BatchCheckUserOnObjectRequest_Objects) ProtoMessage

func (*BatchCheckUserOnObjectRequest_Objects) ProtoMessage()

func (*BatchCheckUserOnObjectRequest_Objects) ProtoReflect

func (*BatchCheckUserOnObjectRequest_Objects) Reset

func (*BatchCheckUserOnObjectRequest_Objects) String

type BatchCheckUserOnObjectResponse

type BatchCheckUserOnObjectResponse struct {
	Results map[int64]*OidCommentedList `` /* 156-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BatchCheckUserOnObjectResponse) Descriptor deprecated

func (*BatchCheckUserOnObjectResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchCheckUserOnObjectResponse.ProtoReflect.Descriptor instead.

func (*BatchCheckUserOnObjectResponse) GetResults

func (*BatchCheckUserOnObjectResponse) ProtoMessage

func (*BatchCheckUserOnObjectResponse) ProtoMessage()

func (*BatchCheckUserOnObjectResponse) ProtoReflect

func (*BatchCheckUserOnObjectResponse) Reset

func (x *BatchCheckUserOnObjectResponse) Reset()

func (*BatchCheckUserOnObjectResponse) String

type BatchCountCommentRequest

type BatchCountCommentRequest struct {
	Oids []int64 `protobuf:"varint,1,rep,packed,name=oids,proto3" json:"oids,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchCountCommentRequest) Descriptor deprecated

func (*BatchCountCommentRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchCountCommentRequest.ProtoReflect.Descriptor instead.

func (*BatchCountCommentRequest) GetOids

func (x *BatchCountCommentRequest) GetOids() []int64

func (*BatchCountCommentRequest) ProtoMessage

func (*BatchCountCommentRequest) ProtoMessage()

func (*BatchCountCommentRequest) ProtoReflect

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

func (*BatchCountCommentRequest) Reset

func (x *BatchCountCommentRequest) Reset()

func (*BatchCountCommentRequest) String

func (x *BatchCountCommentRequest) String() string

type BatchCountCommentResponse

type BatchCountCommentResponse struct {
	Numbers map[int64]int64 `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BatchCountCommentResponse) Descriptor deprecated

func (*BatchCountCommentResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchCountCommentResponse.ProtoReflect.Descriptor instead.

func (*BatchCountCommentResponse) GetNumbers

func (x *BatchCountCommentResponse) GetNumbers() map[int64]int64

func (*BatchCountCommentResponse) ProtoMessage

func (*BatchCountCommentResponse) ProtoMessage()

func (*BatchCountCommentResponse) ProtoReflect

func (*BatchCountCommentResponse) Reset

func (x *BatchCountCommentResponse) Reset()

func (*BatchCountCommentResponse) String

func (x *BatchCountCommentResponse) String() string

type CheckUserOnObjectRequest

type CheckUserOnObjectRequest struct {
	Oid int64 `protobuf:"varint,1,opt,name=oid,proto3" json:"oid,omitempty"` // 被评论对象id
	Uid int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` // 用户id
	// contains filtered or unexported fields
}

func (*CheckUserOnObjectRequest) Descriptor deprecated

func (*CheckUserOnObjectRequest) Descriptor() ([]byte, []int)

Deprecated: Use CheckUserOnObjectRequest.ProtoReflect.Descriptor instead.

func (*CheckUserOnObjectRequest) GetOid

func (x *CheckUserOnObjectRequest) GetOid() int64

func (*CheckUserOnObjectRequest) GetUid

func (x *CheckUserOnObjectRequest) GetUid() int64

func (*CheckUserOnObjectRequest) ProtoMessage

func (*CheckUserOnObjectRequest) ProtoMessage()

func (*CheckUserOnObjectRequest) ProtoReflect

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

func (*CheckUserOnObjectRequest) Reset

func (x *CheckUserOnObjectRequest) Reset()

func (*CheckUserOnObjectRequest) String

func (x *CheckUserOnObjectRequest) String() string

type CheckUserOnObjectResponse

type CheckUserOnObjectResponse struct {
	Result *OidCommented `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckUserOnObjectResponse) Descriptor deprecated

func (*CheckUserOnObjectResponse) Descriptor() ([]byte, []int)

Deprecated: Use CheckUserOnObjectResponse.ProtoReflect.Descriptor instead.

func (*CheckUserOnObjectResponse) GetResult

func (x *CheckUserOnObjectResponse) GetResult() *OidCommented

func (*CheckUserOnObjectResponse) ProtoMessage

func (*CheckUserOnObjectResponse) ProtoMessage()

func (*CheckUserOnObjectResponse) ProtoReflect

func (*CheckUserOnObjectResponse) Reset

func (x *CheckUserOnObjectResponse) Reset()

func (*CheckUserOnObjectResponse) String

func (x *CheckUserOnObjectResponse) String() string

type CommentAction

type CommentAction int32
const (
	CommentAction_COMMENT_ACTION_UNDO CommentAction = 0
	CommentAction_COMMENT_ACTION_DO   CommentAction = 1
)

func (CommentAction) Descriptor

func (CommentAction) Enum

func (x CommentAction) Enum() *CommentAction

func (CommentAction) EnumDescriptor deprecated

func (CommentAction) EnumDescriptor() ([]byte, []int)

Deprecated: Use CommentAction.Descriptor instead.

func (CommentAction) Number

func (CommentAction) String

func (x CommentAction) String() string

func (CommentAction) Type

type CommentAtUser

type CommentAtUser struct {
	Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Uid      int64  `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

func (*CommentAtUser) Descriptor deprecated

func (*CommentAtUser) Descriptor() ([]byte, []int)

Deprecated: Use CommentAtUser.ProtoReflect.Descriptor instead.

func (*CommentAtUser) GetNickname

func (x *CommentAtUser) GetNickname() string

func (*CommentAtUser) GetUid

func (x *CommentAtUser) GetUid() int64

func (*CommentAtUser) ProtoMessage

func (*CommentAtUser) ProtoMessage()

func (*CommentAtUser) ProtoReflect

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

func (*CommentAtUser) Reset

func (x *CommentAtUser) Reset()

func (*CommentAtUser) String

func (x *CommentAtUser) String() string

type CommentItem

type CommentItem struct {
	Id        int64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                     // 评论id
	Oid       int64               `protobuf:"varint,2,opt,name=oid,proto3" json:"oid,omitempty"`                                   // 被评论对象id
	Type      CommentType         `protobuf:"varint,3,opt,name=type,proto3,enum=comment.api.v1.CommentType" json:"type,omitempty"` // 评论类型
	Content   string              `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`                            // 评论内容
	Uid       int64               `protobuf:"varint,5,opt,name=uid,proto3" json:"uid,omitempty"`                                   // 评论发表用户uid
	RootId    int64               `protobuf:"varint,6,opt,name=root_id,json=rootId,proto3" json:"root_id,omitempty"`               // 根评论id
	ParentId  int64               `protobuf:"varint,7,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`         // 父评论id
	Ruid      int64               `protobuf:"varint,8,opt,name=ruid,proto3" json:"ruid,omitempty"`                                 // 被回复的用户id
	LikeCount int64               `protobuf:"varint,9,opt,name=like_count,json=likeCount,proto3" json:"like_count,omitempty"`      // 点赞数
	HateCount int64               `protobuf:"varint,10,opt,name=hate_count,json=hateCount,proto3" json:"hate_count,omitempty"`     // 点踩数
	Ctime     int64               `protobuf:"varint,11,opt,name=ctime,proto3" json:"ctime,omitempty"`                              // 发布时间
	Mtime     int64               `protobuf:"varint,12,opt,name=mtime,proto3" json:"mtime,omitempty"`                              // 修改时间
	Ip        string              `protobuf:"bytes,13,opt,name=ip,proto3" json:"ip,omitempty"`                                     // 发布时ip地址
	IsPin     bool                `protobuf:"varint,14,opt,name=is_pin,json=isPin,proto3" json:"is_pin,omitempty"`                 // 是否为置顶评论
	SubsCount int64               `protobuf:"varint,15,opt,name=subs_count,json=subsCount,proto3" json:"subs_count,omitempty"`     // 子评论数
	Images    []*CommentItemImage `protobuf:"bytes,16,rep,name=images,proto3" json:"images,omitempty"`                             // 评论图片资源
	AtUsers   []*CommentAtUser    `protobuf:"bytes,17,rep,name=at_users,json=atUsers,proto3" json:"at_users,omitempty"`            // @用户列表
	// contains filtered or unexported fields
}

评论实体

func (*CommentItem) Descriptor deprecated

func (*CommentItem) Descriptor() ([]byte, []int)

Deprecated: Use CommentItem.ProtoReflect.Descriptor instead.

func (*CommentItem) GetAtUsers

func (x *CommentItem) GetAtUsers() []*CommentAtUser

func (*CommentItem) GetContent

func (x *CommentItem) GetContent() string

func (*CommentItem) GetCtime

func (x *CommentItem) GetCtime() int64

func (*CommentItem) GetHateCount

func (x *CommentItem) GetHateCount() int64

func (*CommentItem) GetId

func (x *CommentItem) GetId() int64

func (*CommentItem) GetImages

func (x *CommentItem) GetImages() []*CommentItemImage

func (*CommentItem) GetIp

func (x *CommentItem) GetIp() string

func (*CommentItem) GetIsPin

func (x *CommentItem) GetIsPin() bool

func (*CommentItem) GetLikeCount

func (x *CommentItem) GetLikeCount() int64

func (*CommentItem) GetMtime

func (x *CommentItem) GetMtime() int64

func (*CommentItem) GetOid

func (x *CommentItem) GetOid() int64

func (*CommentItem) GetParentId

func (x *CommentItem) GetParentId() int64

func (*CommentItem) GetRootId

func (x *CommentItem) GetRootId() int64

func (*CommentItem) GetRuid

func (x *CommentItem) GetRuid() int64

func (*CommentItem) GetSubsCount

func (x *CommentItem) GetSubsCount() int64

func (*CommentItem) GetType

func (x *CommentItem) GetType() CommentType

func (*CommentItem) GetUid

func (x *CommentItem) GetUid() int64

func (*CommentItem) ProtoMessage

func (*CommentItem) ProtoMessage()

func (*CommentItem) ProtoReflect

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

func (*CommentItem) Reset

func (x *CommentItem) Reset()

func (*CommentItem) String

func (x *CommentItem) String() string

type CommentItemImage

type CommentItemImage struct {
	Key  string                `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Meta *CommentItemImageMeta `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*CommentItemImage) Descriptor deprecated

func (*CommentItemImage) Descriptor() ([]byte, []int)

Deprecated: Use CommentItemImage.ProtoReflect.Descriptor instead.

func (*CommentItemImage) GetKey

func (x *CommentItemImage) GetKey() string

func (*CommentItemImage) GetMeta

func (x *CommentItemImage) GetMeta() *CommentItemImageMeta

func (*CommentItemImage) ProtoMessage

func (*CommentItemImage) ProtoMessage()

func (*CommentItemImage) ProtoReflect

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

func (*CommentItemImage) Reset

func (x *CommentItemImage) Reset()

func (*CommentItemImage) String

func (x *CommentItemImage) String() string

type CommentItemImageMeta

type CommentItemImageMeta struct {
	Width  uint32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"`
	Height uint32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Format string `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"`
	Type   string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*CommentItemImageMeta) Descriptor deprecated

func (*CommentItemImageMeta) Descriptor() ([]byte, []int)

Deprecated: Use CommentItemImageMeta.ProtoReflect.Descriptor instead.

func (*CommentItemImageMeta) GetFormat

func (x *CommentItemImageMeta) GetFormat() string

func (*CommentItemImageMeta) GetHeight

func (x *CommentItemImageMeta) GetHeight() uint32

func (*CommentItemImageMeta) GetType

func (x *CommentItemImageMeta) GetType() string

func (*CommentItemImageMeta) GetWidth

func (x *CommentItemImageMeta) GetWidth() uint32

func (*CommentItemImageMeta) ProtoMessage

func (*CommentItemImageMeta) ProtoMessage()

func (*CommentItemImageMeta) ProtoReflect

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

func (*CommentItemImageMeta) Reset

func (x *CommentItemImageMeta) Reset()

func (*CommentItemImageMeta) String

func (x *CommentItemImageMeta) String() string

type CommentLiked

type CommentLiked struct {
	CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
	Liked     bool  `protobuf:"varint,2,opt,name=liked,proto3" json:"liked,omitempty"`
	// contains filtered or unexported fields
}

func (*CommentLiked) Descriptor deprecated

func (*CommentLiked) Descriptor() ([]byte, []int)

Deprecated: Use CommentLiked.ProtoReflect.Descriptor instead.

func (*CommentLiked) GetCommentId

func (x *CommentLiked) GetCommentId() int64

func (*CommentLiked) GetLiked

func (x *CommentLiked) GetLiked() bool

func (*CommentLiked) ProtoMessage

func (*CommentLiked) ProtoMessage()

func (*CommentLiked) ProtoReflect

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

func (*CommentLiked) Reset

func (x *CommentLiked) Reset()

func (*CommentLiked) String

func (x *CommentLiked) String() string

type CommentReqImage

type CommentReqImage struct {
	StoreKey string `protobuf:"bytes,1,opt,name=store_key,json=storeKey,proto3" json:"store_key,omitempty"`
	Width    uint32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"`
	Height   uint32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	Format   string `protobuf:"bytes,4,opt,name=format,proto3" json:"format,omitempty"`
	// contains filtered or unexported fields
}

图片评论

func (*CommentReqImage) Descriptor deprecated

func (*CommentReqImage) Descriptor() ([]byte, []int)

Deprecated: Use CommentReqImage.ProtoReflect.Descriptor instead.

func (*CommentReqImage) GetFormat

func (x *CommentReqImage) GetFormat() string

func (*CommentReqImage) GetHeight

func (x *CommentReqImage) GetHeight() uint32

func (*CommentReqImage) GetStoreKey

func (x *CommentReqImage) GetStoreKey() string

func (*CommentReqImage) GetWidth

func (x *CommentReqImage) GetWidth() uint32

func (*CommentReqImage) ProtoMessage

func (*CommentReqImage) ProtoMessage()

func (*CommentReqImage) ProtoReflect

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

func (*CommentReqImage) Reset

func (x *CommentReqImage) Reset()

func (*CommentReqImage) String

func (x *CommentReqImage) String() string

type CommentServiceClient

type CommentServiceClient interface {
	// 发表评论
	AddComment(ctx context.Context, in *AddCommentRequest, opts ...grpc.CallOption) (*AddCommentResponse, error)
	// 删除评论
	DelComment(ctx context.Context, in *DelCommentRequest, opts ...grpc.CallOption) (*DelCommentResponse, error)
	// 赞
	LikeAction(ctx context.Context, in *LikeActionRequest, opts ...grpc.CallOption) (*LikeActionResponse, error)
	// 踩
	DislikeAction(ctx context.Context, in *DislikeActionRequest, opts ...grpc.CallOption) (*DislikeActionResponse, error)
	// 举报
	ReportComment(ctx context.Context, in *ReportCommentRequest, opts ...grpc.CallOption) (*ReportCommentResponse, error)
	// 置顶评论
	PinComment(ctx context.Context, in *PinCommentRequest, opts ...grpc.CallOption) (*PinCommentResponse, error)
	// 获取主评论信息
	PageGetComment(ctx context.Context, in *PageGetCommentRequest, opts ...grpc.CallOption) (*PageGetCommentResponse, error)
	// 获取子评论信息
	PageGetSubComment(ctx context.Context, in *PageGetSubCommentRequest, opts ...grpc.CallOption) (*PageGetSubCommentResponse, error)
	// 分页获取子评论信息
	PageGetSubCommentV2(ctx context.Context, in *PageGetSubCommentV2Request, opts ...grpc.CallOption) (*PageGetSubCommentV2Response, error)
	// 获取主评论详细信息
	PageGetDetailedComment(ctx context.Context, in *PageGetDetailedCommentRequest, opts ...grpc.CallOption) (*PageGetDetailedCommentResponse, error)
	PageGetDetailedCommentV2(ctx context.Context, in *PageGetDetailedCommentV2Request, opts ...grpc.CallOption) (*PageGetDetailedCommentV2Response, error)
	// 获取置顶评论
	GetPinnedComment(ctx context.Context, in *GetPinnedCommentRequest, opts ...grpc.CallOption) (*GetPinnedCommentResponse, error)
	// 获取某个被评对象的评论数
	CountComment(ctx context.Context, in *CountCommentRequest, opts ...grpc.CallOption) (*CountCommentResponse, error)
	// 获取多个被评论对象的评论数
	BatchCountComment(ctx context.Context, in *BatchCountCommentRequest, opts ...grpc.CallOption) (*BatchCountCommentResponse, error)
	// 获取某条评论的点赞数
	GetCommentLikeCount(ctx context.Context, in *GetCommentLikeCountRequest, opts ...grpc.CallOption) (*GetCommentLikeCountResponse, error)
	// 获取某条评论的点踩数
	GetCommentDislikeCount(ctx context.Context, in *GetCommentDislikeCountRequest, opts ...grpc.CallOption) (*GetCommentDislikeCountResponse, error)
	// 获取某个用户是否评论了某个对象
	CheckUserOnObject(ctx context.Context, in *CheckUserOnObjectRequest, opts ...grpc.CallOption) (*CheckUserOnObjectResponse, error)
	// 批量检查某个用户是否评论了某个对象
	BatchCheckUserOnObject(ctx context.Context, in *BatchCheckUserOnObjectRequest, opts ...grpc.CallOption) (*BatchCheckUserOnObjectResponse, error)
	// 批量检查某个用户是否点赞了某些评论
	BatchCheckUserLikeComment(ctx context.Context, in *BatchCheckUserLikeCommentRequest, opts ...grpc.CallOption) (*BatchCheckUserLikeCommentResponse, error)
	// 批量检查评论是否存在
	BatchCheckCommentExist(ctx context.Context, in *BatchCheckCommentExistRequest, opts ...grpc.CallOption) (*BatchCheckCommentExistResponse, error)
	// 按照id获取评论
	GetComment(ctx context.Context, in *GetCommentRequest, opts ...grpc.CallOption) (*GetCommentResponse, error)
	// 获取评论作者
	GetCommentUser(ctx context.Context, in *GetCommentUserRequest, opts ...grpc.CallOption) (*GetCommentUserResponse, error)
}

CommentServiceClient is the client API for CommentService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type CommentServiceServer

type CommentServiceServer interface {
	// 发表评论
	AddComment(context.Context, *AddCommentRequest) (*AddCommentResponse, error)
	// 删除评论
	DelComment(context.Context, *DelCommentRequest) (*DelCommentResponse, error)
	// 赞
	LikeAction(context.Context, *LikeActionRequest) (*LikeActionResponse, error)
	// 踩
	DislikeAction(context.Context, *DislikeActionRequest) (*DislikeActionResponse, error)
	// 举报
	ReportComment(context.Context, *ReportCommentRequest) (*ReportCommentResponse, error)
	// 置顶评论
	PinComment(context.Context, *PinCommentRequest) (*PinCommentResponse, error)
	// 获取主评论信息
	PageGetComment(context.Context, *PageGetCommentRequest) (*PageGetCommentResponse, error)
	// 获取子评论信息
	PageGetSubComment(context.Context, *PageGetSubCommentRequest) (*PageGetSubCommentResponse, error)
	// 分页获取子评论信息
	PageGetSubCommentV2(context.Context, *PageGetSubCommentV2Request) (*PageGetSubCommentV2Response, error)
	// 获取主评论详细信息
	PageGetDetailedComment(context.Context, *PageGetDetailedCommentRequest) (*PageGetDetailedCommentResponse, error)
	PageGetDetailedCommentV2(context.Context, *PageGetDetailedCommentV2Request) (*PageGetDetailedCommentV2Response, error)
	// 获取置顶评论
	GetPinnedComment(context.Context, *GetPinnedCommentRequest) (*GetPinnedCommentResponse, error)
	// 获取某个被评对象的评论数
	CountComment(context.Context, *CountCommentRequest) (*CountCommentResponse, error)
	// 获取多个被评论对象的评论数
	BatchCountComment(context.Context, *BatchCountCommentRequest) (*BatchCountCommentResponse, error)
	// 获取某条评论的点赞数
	GetCommentLikeCount(context.Context, *GetCommentLikeCountRequest) (*GetCommentLikeCountResponse, error)
	// 获取某条评论的点踩数
	GetCommentDislikeCount(context.Context, *GetCommentDislikeCountRequest) (*GetCommentDislikeCountResponse, error)
	// 获取某个用户是否评论了某个对象
	CheckUserOnObject(context.Context, *CheckUserOnObjectRequest) (*CheckUserOnObjectResponse, error)
	// 批量检查某个用户是否评论了某个对象
	BatchCheckUserOnObject(context.Context, *BatchCheckUserOnObjectRequest) (*BatchCheckUserOnObjectResponse, error)
	// 批量检查某个用户是否点赞了某些评论
	BatchCheckUserLikeComment(context.Context, *BatchCheckUserLikeCommentRequest) (*BatchCheckUserLikeCommentResponse, error)
	// 批量检查评论是否存在
	BatchCheckCommentExist(context.Context, *BatchCheckCommentExistRequest) (*BatchCheckCommentExistResponse, error)
	// 按照id获取评论
	GetComment(context.Context, *GetCommentRequest) (*GetCommentResponse, error)
	// 获取评论作者
	GetCommentUser(context.Context, *GetCommentUserRequest) (*GetCommentUserResponse, error)
	// contains filtered or unexported methods
}

CommentServiceServer is the server API for CommentService service. All implementations must embed UnimplementedCommentServiceServer for forward compatibility.

type CommentType

type CommentType int32
const (
	CommentType_TEXT         CommentType = 0 // 纯文本(默认)
	CommentType_IMAGE_TEXT   CommentType = 1 // 图文
	CommentType_CUSTOM_EMOJI CommentType = 2 // 自定义表情
)

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 CountCommentRequest

type CountCommentRequest struct {
	Oid int64 `protobuf:"varint,1,opt,name=oid,proto3" json:"oid,omitempty"` // 被评论对象id
	// contains filtered or unexported fields
}

获取被评论对象的评论数量

func (*CountCommentRequest) Descriptor deprecated

func (*CountCommentRequest) Descriptor() ([]byte, []int)

Deprecated: Use CountCommentRequest.ProtoReflect.Descriptor instead.

func (*CountCommentRequest) GetOid

func (x *CountCommentRequest) GetOid() int64

func (*CountCommentRequest) ProtoMessage

func (*CountCommentRequest) ProtoMessage()

func (*CountCommentRequest) ProtoReflect

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

func (*CountCommentRequest) Reset

func (x *CountCommentRequest) Reset()

func (*CountCommentRequest) String

func (x *CountCommentRequest) String() string

type CountCommentResponse

type CountCommentResponse struct {
	Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // 评论数量
	// contains filtered or unexported fields
}

func (*CountCommentResponse) Descriptor deprecated

func (*CountCommentResponse) Descriptor() ([]byte, []int)

Deprecated: Use CountCommentResponse.ProtoReflect.Descriptor instead.

func (*CountCommentResponse) GetCount

func (x *CountCommentResponse) GetCount() int64

func (*CountCommentResponse) ProtoMessage

func (*CountCommentResponse) ProtoMessage()

func (*CountCommentResponse) ProtoReflect

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

func (*CountCommentResponse) Reset

func (x *CountCommentResponse) Reset()

func (*CountCommentResponse) String

func (x *CountCommentResponse) String() string

type DelCommentRequest

type DelCommentRequest struct {
	CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` // 评论id
	Oid       int64 `protobuf:"varint,2,opt,name=oid,proto3" json:"oid,omitempty"`                              // 评论对象id
	// contains filtered or unexported fields
}

删除评论

func (*DelCommentRequest) Descriptor deprecated

func (*DelCommentRequest) Descriptor() ([]byte, []int)

Deprecated: Use DelCommentRequest.ProtoReflect.Descriptor instead.

func (*DelCommentRequest) GetCommentId

func (x *DelCommentRequest) GetCommentId() int64

func (*DelCommentRequest) GetOid

func (x *DelCommentRequest) GetOid() int64

func (*DelCommentRequest) ProtoMessage

func (*DelCommentRequest) ProtoMessage()

func (*DelCommentRequest) ProtoReflect

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

func (*DelCommentRequest) Reset

func (x *DelCommentRequest) Reset()

func (*DelCommentRequest) String

func (x *DelCommentRequest) String() string

type DelCommentResponse

type DelCommentResponse struct {
	// contains filtered or unexported fields
}

func (*DelCommentResponse) Descriptor deprecated

func (*DelCommentResponse) Descriptor() ([]byte, []int)

Deprecated: Use DelCommentResponse.ProtoReflect.Descriptor instead.

func (*DelCommentResponse) ProtoMessage

func (*DelCommentResponse) ProtoMessage()

func (*DelCommentResponse) ProtoReflect

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

func (*DelCommentResponse) Reset

func (x *DelCommentResponse) Reset()

func (*DelCommentResponse) String

func (x *DelCommentResponse) String() string

type DetailedCommentItem

type DetailedCommentItem struct {
	Root        *CommentItem        `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"`                                  // 主评论本身的信息
	SubComments *DetailedSubComment `protobuf:"bytes,2,opt,name=sub_comments,json=subComments,proto3" json:"sub_comments,omitempty"` // 子评论的信息
	// contains filtered or unexported fields
}

详细的主评论的详细信息,会包含子评论

func (*DetailedCommentItem) Descriptor deprecated

func (*DetailedCommentItem) Descriptor() ([]byte, []int)

Deprecated: Use DetailedCommentItem.ProtoReflect.Descriptor instead.

func (*DetailedCommentItem) GetRoot

func (x *DetailedCommentItem) GetRoot() *CommentItem

func (*DetailedCommentItem) GetSubComments

func (x *DetailedCommentItem) GetSubComments() *DetailedSubComment

func (*DetailedCommentItem) ProtoMessage

func (*DetailedCommentItem) ProtoMessage()

func (*DetailedCommentItem) ProtoReflect

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

func (*DetailedCommentItem) Reset

func (x *DetailedCommentItem) Reset()

func (*DetailedCommentItem) String

func (x *DetailedCommentItem) String() string

type DetailedCommentItemV2

type DetailedCommentItemV2 struct {
	Root        *CommentItem          `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"`                                  // 主评论本身的信息
	SubComments *DetailedSubCommentV2 `protobuf:"bytes,2,opt,name=sub_comments,json=subComments,proto3" json:"sub_comments,omitempty"` // 子评论的信息
	// contains filtered or unexported fields
}

详细的主评论的详细信息,会包含子评论

func (*DetailedCommentItemV2) Descriptor deprecated

func (*DetailedCommentItemV2) Descriptor() ([]byte, []int)

Deprecated: Use DetailedCommentItemV2.ProtoReflect.Descriptor instead.

func (*DetailedCommentItemV2) GetRoot

func (x *DetailedCommentItemV2) GetRoot() *CommentItem

func (*DetailedCommentItemV2) GetSubComments

func (x *DetailedCommentItemV2) GetSubComments() *DetailedSubCommentV2

func (*DetailedCommentItemV2) ProtoMessage

func (*DetailedCommentItemV2) ProtoMessage()

func (*DetailedCommentItemV2) ProtoReflect

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

func (*DetailedCommentItemV2) Reset

func (x *DetailedCommentItemV2) Reset()

func (*DetailedCommentItemV2) String

func (x *DetailedCommentItemV2) String() string

type DetailedSubComment

type DetailedSubComment struct {
	Items      []*CommentItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // 子评论的信息
	NextCursor int64          `protobuf:"varint,2,opt,name=next_cursor,json=nextCursor,proto3" json:"next_cursor,omitempty"`
	HasNext    bool           `protobuf:"varint,3,opt,name=has_next,json=hasNext,proto3" json:"has_next,omitempty"`
	// contains filtered or unexported fields
}

代表主评论的子评论信息

func (*DetailedSubComment) Descriptor deprecated

func (*DetailedSubComment) Descriptor() ([]byte, []int)

Deprecated: Use DetailedSubComment.ProtoReflect.Descriptor instead.

func (*DetailedSubComment) GetHasNext

func (x *DetailedSubComment) GetHasNext() bool

func (*DetailedSubComment) GetItems

func (x *DetailedSubComment) GetItems() []*CommentItem

func (*DetailedSubComment) GetNextCursor

func (x *DetailedSubComment) GetNextCursor() int64

func (*DetailedSubComment) ProtoMessage

func (*DetailedSubComment) ProtoMessage()

func (*DetailedSubComment) ProtoReflect

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

func (*DetailedSubComment) Reset

func (x *DetailedSubComment) Reset()

func (*DetailedSubComment) String

func (x *DetailedSubComment) String() string

type DetailedSubCommentV2

type DetailedSubCommentV2 struct {
	Items []*CommentItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`  // 子评论的信息
	Total int64          `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // 子评论总数量
	// contains filtered or unexported fields
}

代表主评论的子评论信息

func (*DetailedSubCommentV2) Descriptor deprecated

func (*DetailedSubCommentV2) Descriptor() ([]byte, []int)

Deprecated: Use DetailedSubCommentV2.ProtoReflect.Descriptor instead.

func (*DetailedSubCommentV2) GetItems

func (x *DetailedSubCommentV2) GetItems() []*CommentItem

func (*DetailedSubCommentV2) GetTotal

func (x *DetailedSubCommentV2) GetTotal() int64

func (*DetailedSubCommentV2) ProtoMessage

func (*DetailedSubCommentV2) ProtoMessage()

func (*DetailedSubCommentV2) ProtoReflect

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

func (*DetailedSubCommentV2) Reset

func (x *DetailedSubCommentV2) Reset()

func (*DetailedSubCommentV2) String

func (x *DetailedSubCommentV2) String() string

type DislikeActionRequest

type DislikeActionRequest struct {
	CommentId int64         `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`            // 评论id
	Action    CommentAction `protobuf:"varint,2,opt,name=action,proto3,enum=comment.api.v1.CommentAction" json:"action,omitempty"` // 取消点踩还是点踩
	// contains filtered or unexported fields
}

点踩/取消点踩

func (*DislikeActionRequest) Descriptor deprecated

func (*DislikeActionRequest) Descriptor() ([]byte, []int)

Deprecated: Use DislikeActionRequest.ProtoReflect.Descriptor instead.

func (*DislikeActionRequest) GetAction

func (x *DislikeActionRequest) GetAction() CommentAction

func (*DislikeActionRequest) GetCommentId

func (x *DislikeActionRequest) GetCommentId() int64

func (*DislikeActionRequest) ProtoMessage

func (*DislikeActionRequest) ProtoMessage()

func (*DislikeActionRequest) ProtoReflect

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

func (*DislikeActionRequest) Reset

func (x *DislikeActionRequest) Reset()

func (*DislikeActionRequest) String

func (x *DislikeActionRequest) String() string

type DislikeActionResponse

type DislikeActionResponse struct {
	// contains filtered or unexported fields
}

func (*DislikeActionResponse) Descriptor deprecated

func (*DislikeActionResponse) Descriptor() ([]byte, []int)

Deprecated: Use DislikeActionResponse.ProtoReflect.Descriptor instead.

func (*DislikeActionResponse) ProtoMessage

func (*DislikeActionResponse) ProtoMessage()

func (*DislikeActionResponse) ProtoReflect

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

func (*DislikeActionResponse) Reset

func (x *DislikeActionResponse) Reset()

func (*DislikeActionResponse) String

func (x *DislikeActionResponse) String() string

type GetCommentDislikeCountRequest

type GetCommentDislikeCountRequest struct {
	CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` // 评论id
	// contains filtered or unexported fields
}

func (*GetCommentDislikeCountRequest) Descriptor deprecated

func (*GetCommentDislikeCountRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCommentDislikeCountRequest.ProtoReflect.Descriptor instead.

func (*GetCommentDislikeCountRequest) GetCommentId

func (x *GetCommentDislikeCountRequest) GetCommentId() int64

func (*GetCommentDislikeCountRequest) ProtoMessage

func (*GetCommentDislikeCountRequest) ProtoMessage()

func (*GetCommentDislikeCountRequest) ProtoReflect

func (*GetCommentDislikeCountRequest) Reset

func (x *GetCommentDislikeCountRequest) Reset()

func (*GetCommentDislikeCountRequest) String

type GetCommentDislikeCountResponse

type GetCommentDislikeCountResponse struct {
	CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
	Count     int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // 点赞数量
	// contains filtered or unexported fields
}

func (*GetCommentDislikeCountResponse) Descriptor deprecated

func (*GetCommentDislikeCountResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCommentDislikeCountResponse.ProtoReflect.Descriptor instead.

func (*GetCommentDislikeCountResponse) GetCommentId

func (x *GetCommentDislikeCountResponse) GetCommentId() int64

func (*GetCommentDislikeCountResponse) GetCount

func (x *GetCommentDislikeCountResponse) GetCount() int64

func (*GetCommentDislikeCountResponse) ProtoMessage

func (*GetCommentDislikeCountResponse) ProtoMessage()

func (*GetCommentDislikeCountResponse) ProtoReflect

func (*GetCommentDislikeCountResponse) Reset

func (x *GetCommentDislikeCountResponse) Reset()

func (*GetCommentDislikeCountResponse) String

type GetCommentLikeCountRequest

type GetCommentLikeCountRequest struct {
	CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` // 评论id
	// contains filtered or unexported fields
}

func (*GetCommentLikeCountRequest) Descriptor deprecated

func (*GetCommentLikeCountRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCommentLikeCountRequest.ProtoReflect.Descriptor instead.

func (*GetCommentLikeCountRequest) GetCommentId

func (x *GetCommentLikeCountRequest) GetCommentId() int64

func (*GetCommentLikeCountRequest) ProtoMessage

func (*GetCommentLikeCountRequest) ProtoMessage()

func (*GetCommentLikeCountRequest) ProtoReflect

func (*GetCommentLikeCountRequest) Reset

func (x *GetCommentLikeCountRequest) Reset()

func (*GetCommentLikeCountRequest) String

func (x *GetCommentLikeCountRequest) String() string

type GetCommentLikeCountResponse

type GetCommentLikeCountResponse struct {
	CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
	Count     int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // 点赞数量
	// contains filtered or unexported fields
}

func (*GetCommentLikeCountResponse) Descriptor deprecated

func (*GetCommentLikeCountResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCommentLikeCountResponse.ProtoReflect.Descriptor instead.

func (*GetCommentLikeCountResponse) GetCommentId

func (x *GetCommentLikeCountResponse) GetCommentId() int64

func (*GetCommentLikeCountResponse) GetCount

func (x *GetCommentLikeCountResponse) GetCount() int64

func (*GetCommentLikeCountResponse) ProtoMessage

func (*GetCommentLikeCountResponse) ProtoMessage()

func (*GetCommentLikeCountResponse) ProtoReflect

func (*GetCommentLikeCountResponse) Reset

func (x *GetCommentLikeCountResponse) Reset()

func (*GetCommentLikeCountResponse) String

func (x *GetCommentLikeCountResponse) String() string

type GetCommentRequest

type GetCommentRequest struct {
	CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCommentRequest) Descriptor deprecated

func (*GetCommentRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCommentRequest.ProtoReflect.Descriptor instead.

func (*GetCommentRequest) GetCommentId

func (x *GetCommentRequest) GetCommentId() int64

func (*GetCommentRequest) ProtoMessage

func (*GetCommentRequest) ProtoMessage()

func (*GetCommentRequest) ProtoReflect

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

func (*GetCommentRequest) Reset

func (x *GetCommentRequest) Reset()

func (*GetCommentRequest) String

func (x *GetCommentRequest) String() string

type GetCommentResponse

type GetCommentResponse struct {

	// 返回的可能是主评论也可能是子评论取决于请求的commentId
	Item *CommentItem `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCommentResponse) Descriptor deprecated

func (*GetCommentResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCommentResponse.ProtoReflect.Descriptor instead.

func (*GetCommentResponse) GetItem

func (x *GetCommentResponse) GetItem() *CommentItem

func (*GetCommentResponse) ProtoMessage

func (*GetCommentResponse) ProtoMessage()

func (*GetCommentResponse) ProtoReflect

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

func (*GetCommentResponse) Reset

func (x *GetCommentResponse) Reset()

func (*GetCommentResponse) String

func (x *GetCommentResponse) String() string

type GetCommentUserRequest

type GetCommentUserRequest struct {
	CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCommentUserRequest) Descriptor deprecated

func (*GetCommentUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCommentUserRequest.ProtoReflect.Descriptor instead.

func (*GetCommentUserRequest) GetCommentId

func (x *GetCommentUserRequest) GetCommentId() int64

func (*GetCommentUserRequest) ProtoMessage

func (*GetCommentUserRequest) ProtoMessage()

func (*GetCommentUserRequest) ProtoReflect

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

func (*GetCommentUserRequest) Reset

func (x *GetCommentUserRequest) Reset()

func (*GetCommentUserRequest) String

func (x *GetCommentUserRequest) String() string

type GetCommentUserResponse

type GetCommentUserResponse struct {
	Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCommentUserResponse) Descriptor deprecated

func (*GetCommentUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCommentUserResponse.ProtoReflect.Descriptor instead.

func (*GetCommentUserResponse) GetUid

func (x *GetCommentUserResponse) GetUid() int64

func (*GetCommentUserResponse) ProtoMessage

func (*GetCommentUserResponse) ProtoMessage()

func (*GetCommentUserResponse) ProtoReflect

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

func (*GetCommentUserResponse) Reset

func (x *GetCommentUserResponse) Reset()

func (*GetCommentUserResponse) String

func (x *GetCommentUserResponse) String() string

type GetPinnedCommentRequest

type GetPinnedCommentRequest struct {
	Oid int64 `protobuf:"varint,1,opt,name=oid,proto3" json:"oid,omitempty"` // 被评论对象id
	// contains filtered or unexported fields
}

获取置顶评论

func (*GetPinnedCommentRequest) Descriptor deprecated

func (*GetPinnedCommentRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetPinnedCommentRequest.ProtoReflect.Descriptor instead.

func (*GetPinnedCommentRequest) GetOid

func (x *GetPinnedCommentRequest) GetOid() int64

func (*GetPinnedCommentRequest) ProtoMessage

func (*GetPinnedCommentRequest) ProtoMessage()

func (*GetPinnedCommentRequest) ProtoReflect

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

func (*GetPinnedCommentRequest) Reset

func (x *GetPinnedCommentRequest) Reset()

func (*GetPinnedCommentRequest) String

func (x *GetPinnedCommentRequest) String() string

type GetPinnedCommentResponse

type GetPinnedCommentResponse struct {
	Item *DetailedCommentItem `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` // 置顶评论信息
	// contains filtered or unexported fields
}

func (*GetPinnedCommentResponse) Descriptor deprecated

func (*GetPinnedCommentResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetPinnedCommentResponse.ProtoReflect.Descriptor instead.

func (*GetPinnedCommentResponse) GetItem

func (*GetPinnedCommentResponse) ProtoMessage

func (*GetPinnedCommentResponse) ProtoMessage()

func (*GetPinnedCommentResponse) ProtoReflect

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

func (*GetPinnedCommentResponse) Reset

func (x *GetPinnedCommentResponse) Reset()

func (*GetPinnedCommentResponse) String

func (x *GetPinnedCommentResponse) String() string

type LikeActionRequest

type LikeActionRequest struct {
	CommentId int64         `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`            // 评论id
	Action    CommentAction `protobuf:"varint,2,opt,name=action,proto3,enum=comment.api.v1.CommentAction" json:"action,omitempty"` // 取消点赞还是点赞
	// contains filtered or unexported fields
}

点赞/取消点赞

func (*LikeActionRequest) Descriptor deprecated

func (*LikeActionRequest) Descriptor() ([]byte, []int)

Deprecated: Use LikeActionRequest.ProtoReflect.Descriptor instead.

func (*LikeActionRequest) GetAction

func (x *LikeActionRequest) GetAction() CommentAction

func (*LikeActionRequest) GetCommentId

func (x *LikeActionRequest) GetCommentId() int64

func (*LikeActionRequest) ProtoMessage

func (*LikeActionRequest) ProtoMessage()

func (*LikeActionRequest) ProtoReflect

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

func (*LikeActionRequest) Reset

func (x *LikeActionRequest) Reset()

func (*LikeActionRequest) String

func (x *LikeActionRequest) String() string

type LikeActionResponse

type LikeActionResponse struct {
	// contains filtered or unexported fields
}

func (*LikeActionResponse) Descriptor deprecated

func (*LikeActionResponse) Descriptor() ([]byte, []int)

Deprecated: Use LikeActionResponse.ProtoReflect.Descriptor instead.

func (*LikeActionResponse) ProtoMessage

func (*LikeActionResponse) ProtoMessage()

func (*LikeActionResponse) ProtoReflect

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

func (*LikeActionResponse) Reset

func (x *LikeActionResponse) Reset()

func (*LikeActionResponse) String

func (x *LikeActionResponse) String() string

type OidCommented

type OidCommented struct {
	Oid       int64 `protobuf:"varint,1,opt,name=oid,proto3" json:"oid,omitempty"`
	Commented bool  `protobuf:"varint,2,opt,name=commented,proto3" json:"commented,omitempty"`
	// contains filtered or unexported fields
}

func (*OidCommented) Descriptor deprecated

func (*OidCommented) Descriptor() ([]byte, []int)

Deprecated: Use OidCommented.ProtoReflect.Descriptor instead.

func (*OidCommented) GetCommented

func (x *OidCommented) GetCommented() bool

func (*OidCommented) GetOid

func (x *OidCommented) GetOid() int64

func (*OidCommented) ProtoMessage

func (*OidCommented) ProtoMessage()

func (*OidCommented) ProtoReflect

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

func (*OidCommented) Reset

func (x *OidCommented) Reset()

func (*OidCommented) String

func (x *OidCommented) String() string

type OidCommentedList

type OidCommentedList struct {
	List []*OidCommented `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*OidCommentedList) Descriptor deprecated

func (*OidCommentedList) Descriptor() ([]byte, []int)

Deprecated: Use OidCommentedList.ProtoReflect.Descriptor instead.

func (*OidCommentedList) GetList

func (x *OidCommentedList) GetList() []*OidCommented

func (*OidCommentedList) ProtoMessage

func (*OidCommentedList) ProtoMessage()

func (*OidCommentedList) ProtoReflect

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

func (*OidCommentedList) Reset

func (x *OidCommentedList) Reset()

func (*OidCommentedList) String

func (x *OidCommentedList) String() string

type PageGetCommentRequest

type PageGetCommentRequest struct {
	Oid    int64    `protobuf:"varint,1,opt,name=oid,proto3" json:"oid,omitempty"`
	Cursor int64    `protobuf:"varint,2,opt,name=cursor,proto3" json:"cursor,omitempty"`                                            // 起始游标
	SortBy SortType `protobuf:"varint,3,opt,name=sort_by,json=sortBy,proto3,enum=comment.api.v1.SortType" json:"sort_by,omitempty"` // 排序方式
	// contains filtered or unexported fields
}

获取评论

func (*PageGetCommentRequest) Descriptor deprecated

func (*PageGetCommentRequest) Descriptor() ([]byte, []int)

Deprecated: Use PageGetCommentRequest.ProtoReflect.Descriptor instead.

func (*PageGetCommentRequest) GetCursor

func (x *PageGetCommentRequest) GetCursor() int64

func (*PageGetCommentRequest) GetOid

func (x *PageGetCommentRequest) GetOid() int64

func (*PageGetCommentRequest) GetSortBy

func (x *PageGetCommentRequest) GetSortBy() SortType

func (*PageGetCommentRequest) ProtoMessage

func (*PageGetCommentRequest) ProtoMessage()

func (*PageGetCommentRequest) ProtoReflect

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

func (*PageGetCommentRequest) Reset

func (x *PageGetCommentRequest) Reset()

func (*PageGetCommentRequest) String

func (x *PageGetCommentRequest) String() string

type PageGetCommentResponse

type PageGetCommentResponse struct {
	Comments   []*CommentItem `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"`                        // 评论数据
	NextCursor int64          `protobuf:"varint,2,opt,name=next_cursor,json=nextCursor,proto3" json:"next_cursor,omitempty"` // 分页获取下一次请求的游标
	HasNext    bool           `protobuf:"varint,3,opt,name=has_next,json=hasNext,proto3" json:"has_next,omitempty"`          // 是否还有数据
	// contains filtered or unexported fields
}

func (*PageGetCommentResponse) Descriptor deprecated

func (*PageGetCommentResponse) Descriptor() ([]byte, []int)

Deprecated: Use PageGetCommentResponse.ProtoReflect.Descriptor instead.

func (*PageGetCommentResponse) GetComments

func (x *PageGetCommentResponse) GetComments() []*CommentItem

func (*PageGetCommentResponse) GetHasNext

func (x *PageGetCommentResponse) GetHasNext() bool

func (*PageGetCommentResponse) GetNextCursor

func (x *PageGetCommentResponse) GetNextCursor() int64

func (*PageGetCommentResponse) ProtoMessage

func (*PageGetCommentResponse) ProtoMessage()

func (*PageGetCommentResponse) ProtoReflect

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

func (*PageGetCommentResponse) Reset

func (x *PageGetCommentResponse) Reset()

func (*PageGetCommentResponse) String

func (x *PageGetCommentResponse) String() string

type PageGetDetailedCommentRequest

type PageGetDetailedCommentRequest struct {
	Oid    int64    `protobuf:"varint,1,opt,name=oid,proto3" json:"oid,omitempty"`
	Cursor int64    `protobuf:"varint,2,opt,name=cursor,proto3" json:"cursor,omitempty"`                                            // 起始游标
	SortBy SortType `protobuf:"varint,3,opt,name=sort_by,json=sortBy,proto3,enum=comment.api.v1.SortType" json:"sort_by,omitempty"` // 排序方式
	// contains filtered or unexported fields
}

func (*PageGetDetailedCommentRequest) Descriptor deprecated

func (*PageGetDetailedCommentRequest) Descriptor() ([]byte, []int)

Deprecated: Use PageGetDetailedCommentRequest.ProtoReflect.Descriptor instead.

func (*PageGetDetailedCommentRequest) GetCursor

func (x *PageGetDetailedCommentRequest) GetCursor() int64

func (*PageGetDetailedCommentRequest) GetOid

func (*PageGetDetailedCommentRequest) GetSortBy

func (x *PageGetDetailedCommentRequest) GetSortBy() SortType

func (*PageGetDetailedCommentRequest) ProtoMessage

func (*PageGetDetailedCommentRequest) ProtoMessage()

func (*PageGetDetailedCommentRequest) ProtoReflect

func (*PageGetDetailedCommentRequest) Reset

func (x *PageGetDetailedCommentRequest) Reset()

func (*PageGetDetailedCommentRequest) String

type PageGetDetailedCommentResponse

type PageGetDetailedCommentResponse struct {
	Comments   []*DetailedCommentItem `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"` // 主评论
	NextCursor int64                  `protobuf:"varint,2,opt,name=next_cursor,json=nextCursor,proto3" json:"next_cursor,omitempty"`
	HasNext    bool                   `protobuf:"varint,3,opt,name=has_next,json=hasNext,proto3" json:"has_next,omitempty"`
	// contains filtered or unexported fields
}

func (*PageGetDetailedCommentResponse) Descriptor deprecated

func (*PageGetDetailedCommentResponse) Descriptor() ([]byte, []int)

Deprecated: Use PageGetDetailedCommentResponse.ProtoReflect.Descriptor instead.

func (*PageGetDetailedCommentResponse) GetComments

func (*PageGetDetailedCommentResponse) GetHasNext

func (x *PageGetDetailedCommentResponse) GetHasNext() bool

func (*PageGetDetailedCommentResponse) GetNextCursor

func (x *PageGetDetailedCommentResponse) GetNextCursor() int64

func (*PageGetDetailedCommentResponse) ProtoMessage

func (*PageGetDetailedCommentResponse) ProtoMessage()

func (*PageGetDetailedCommentResponse) ProtoReflect

func (*PageGetDetailedCommentResponse) Reset

func (x *PageGetDetailedCommentResponse) Reset()

func (*PageGetDetailedCommentResponse) String

type PageGetDetailedCommentV2Request

type PageGetDetailedCommentV2Request struct {
	Oid    int64    `protobuf:"varint,1,opt,name=oid,proto3" json:"oid,omitempty"`
	Cursor int64    `protobuf:"varint,2,opt,name=cursor,proto3" json:"cursor,omitempty"`                                            // 起始游标
	SortBy SortType `protobuf:"varint,3,opt,name=sort_by,json=sortBy,proto3,enum=comment.api.v1.SortType" json:"sort_by,omitempty"` // 排序方式
	// contains filtered or unexported fields
}

func (*PageGetDetailedCommentV2Request) Descriptor deprecated

func (*PageGetDetailedCommentV2Request) Descriptor() ([]byte, []int)

Deprecated: Use PageGetDetailedCommentV2Request.ProtoReflect.Descriptor instead.

func (*PageGetDetailedCommentV2Request) GetCursor

func (x *PageGetDetailedCommentV2Request) GetCursor() int64

func (*PageGetDetailedCommentV2Request) GetOid

func (*PageGetDetailedCommentV2Request) GetSortBy

func (*PageGetDetailedCommentV2Request) ProtoMessage

func (*PageGetDetailedCommentV2Request) ProtoMessage()

func (*PageGetDetailedCommentV2Request) ProtoReflect

func (*PageGetDetailedCommentV2Request) Reset

func (*PageGetDetailedCommentV2Request) String

type PageGetDetailedCommentV2Response

type PageGetDetailedCommentV2Response struct {
	RootComments []*DetailedCommentItemV2 `protobuf:"bytes,1,rep,name=root_comments,json=rootComments,proto3" json:"root_comments,omitempty"` // 主评论
	NextCursor   int64                    `protobuf:"varint,2,opt,name=next_cursor,json=nextCursor,proto3" json:"next_cursor,omitempty"`
	HasNext      bool                     `protobuf:"varint,3,opt,name=has_next,json=hasNext,proto3" json:"has_next,omitempty"`
	// contains filtered or unexported fields
}

func (*PageGetDetailedCommentV2Response) Descriptor deprecated

func (*PageGetDetailedCommentV2Response) Descriptor() ([]byte, []int)

Deprecated: Use PageGetDetailedCommentV2Response.ProtoReflect.Descriptor instead.

func (*PageGetDetailedCommentV2Response) GetHasNext

func (x *PageGetDetailedCommentV2Response) GetHasNext() bool

func (*PageGetDetailedCommentV2Response) GetNextCursor

func (x *PageGetDetailedCommentV2Response) GetNextCursor() int64

func (*PageGetDetailedCommentV2Response) GetRootComments

func (*PageGetDetailedCommentV2Response) ProtoMessage

func (*PageGetDetailedCommentV2Response) ProtoMessage()

func (*PageGetDetailedCommentV2Response) ProtoReflect

func (*PageGetDetailedCommentV2Response) Reset

func (*PageGetDetailedCommentV2Response) String

type PageGetSubCommentRequest

type PageGetSubCommentRequest struct {
	Oid    int64 `protobuf:"varint,1,opt,name=oid,proto3" json:"oid,omitempty"`                     // 被评论对象id
	RootId int64 `protobuf:"varint,2,opt,name=root_id,json=rootId,proto3" json:"root_id,omitempty"` // 主评论id
	Cursor int64 `protobuf:"varint,3,opt,name=cursor,proto3" json:"cursor,omitempty"`               // 起始游标
	// contains filtered or unexported fields
}

获取子评论

func (*PageGetSubCommentRequest) Descriptor deprecated

func (*PageGetSubCommentRequest) Descriptor() ([]byte, []int)

Deprecated: Use PageGetSubCommentRequest.ProtoReflect.Descriptor instead.

func (*PageGetSubCommentRequest) GetCursor

func (x *PageGetSubCommentRequest) GetCursor() int64

func (*PageGetSubCommentRequest) GetOid

func (x *PageGetSubCommentRequest) GetOid() int64

func (*PageGetSubCommentRequest) GetRootId

func (x *PageGetSubCommentRequest) GetRootId() int64

func (*PageGetSubCommentRequest) ProtoMessage

func (*PageGetSubCommentRequest) ProtoMessage()

func (*PageGetSubCommentRequest) ProtoReflect

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

func (*PageGetSubCommentRequest) Reset

func (x *PageGetSubCommentRequest) Reset()

func (*PageGetSubCommentRequest) String

func (x *PageGetSubCommentRequest) String() string

type PageGetSubCommentResponse

type PageGetSubCommentResponse struct {
	Comments   []*CommentItem `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"`
	NextCursor int64          `protobuf:"varint,2,opt,name=next_cursor,json=nextCursor,proto3" json:"next_cursor,omitempty"`
	HasNext    bool           `protobuf:"varint,3,opt,name=has_next,json=hasNext,proto3" json:"has_next,omitempty"`
	// contains filtered or unexported fields
}

func (*PageGetSubCommentResponse) Descriptor deprecated

func (*PageGetSubCommentResponse) Descriptor() ([]byte, []int)

Deprecated: Use PageGetSubCommentResponse.ProtoReflect.Descriptor instead.

func (*PageGetSubCommentResponse) GetComments

func (x *PageGetSubCommentResponse) GetComments() []*CommentItem

func (*PageGetSubCommentResponse) GetHasNext

func (x *PageGetSubCommentResponse) GetHasNext() bool

func (*PageGetSubCommentResponse) GetNextCursor

func (x *PageGetSubCommentResponse) GetNextCursor() int64

func (*PageGetSubCommentResponse) ProtoMessage

func (*PageGetSubCommentResponse) ProtoMessage()

func (*PageGetSubCommentResponse) ProtoReflect

func (*PageGetSubCommentResponse) Reset

func (x *PageGetSubCommentResponse) Reset()

func (*PageGetSubCommentResponse) String

func (x *PageGetSubCommentResponse) String() string

type PageGetSubCommentV2Request

type PageGetSubCommentV2Request struct {
	Oid    int64 `protobuf:"varint,1,opt,name=oid,proto3" json:"oid,omitempty"`                     // 被评论对象id
	RootId int64 `protobuf:"varint,2,opt,name=root_id,json=rootId,proto3" json:"root_id,omitempty"` // 主评论id
	Page   int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
	Count  int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*PageGetSubCommentV2Request) Descriptor deprecated

func (*PageGetSubCommentV2Request) Descriptor() ([]byte, []int)

Deprecated: Use PageGetSubCommentV2Request.ProtoReflect.Descriptor instead.

func (*PageGetSubCommentV2Request) GetCount

func (x *PageGetSubCommentV2Request) GetCount() int32

func (*PageGetSubCommentV2Request) GetOid

func (x *PageGetSubCommentV2Request) GetOid() int64

func (*PageGetSubCommentV2Request) GetPage

func (x *PageGetSubCommentV2Request) GetPage() int32

func (*PageGetSubCommentV2Request) GetRootId

func (x *PageGetSubCommentV2Request) GetRootId() int64

func (*PageGetSubCommentV2Request) ProtoMessage

func (*PageGetSubCommentV2Request) ProtoMessage()

func (*PageGetSubCommentV2Request) ProtoReflect

func (*PageGetSubCommentV2Request) Reset

func (x *PageGetSubCommentV2Request) Reset()

func (*PageGetSubCommentV2Request) String

func (x *PageGetSubCommentV2Request) String() string

type PageGetSubCommentV2Response

type PageGetSubCommentV2Response struct {
	Comments []*CommentItem `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 (*PageGetSubCommentV2Response) Descriptor deprecated

func (*PageGetSubCommentV2Response) Descriptor() ([]byte, []int)

Deprecated: Use PageGetSubCommentV2Response.ProtoReflect.Descriptor instead.

func (*PageGetSubCommentV2Response) GetComments

func (x *PageGetSubCommentV2Response) GetComments() []*CommentItem

func (*PageGetSubCommentV2Response) GetTotal

func (x *PageGetSubCommentV2Response) GetTotal() int64

func (*PageGetSubCommentV2Response) ProtoMessage

func (*PageGetSubCommentV2Response) ProtoMessage()

func (*PageGetSubCommentV2Response) ProtoReflect

func (*PageGetSubCommentV2Response) Reset

func (x *PageGetSubCommentV2Response) Reset()

func (*PageGetSubCommentV2Response) String

func (x *PageGetSubCommentV2Response) String() string

type PinCommentRequest

type PinCommentRequest struct {
	Oid       int64         `protobuf:"varint,1,opt,name=oid,proto3" json:"oid,omitempty"`                              // 被评论对象id
	CommentId int64         `protobuf:"varint,2,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` // 评论id
	Action    CommentAction `protobuf:"varint,3,opt,name=action,proto3,enum=comment.api.v1.CommentAction" json:"action,omitempty"`
	// contains filtered or unexported fields
}

置顶

func (*PinCommentRequest) Descriptor deprecated

func (*PinCommentRequest) Descriptor() ([]byte, []int)

Deprecated: Use PinCommentRequest.ProtoReflect.Descriptor instead.

func (*PinCommentRequest) GetAction

func (x *PinCommentRequest) GetAction() CommentAction

func (*PinCommentRequest) GetCommentId

func (x *PinCommentRequest) GetCommentId() int64

func (*PinCommentRequest) GetOid

func (x *PinCommentRequest) GetOid() int64

func (*PinCommentRequest) ProtoMessage

func (*PinCommentRequest) ProtoMessage()

func (*PinCommentRequest) ProtoReflect

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

func (*PinCommentRequest) Reset

func (x *PinCommentRequest) Reset()

func (*PinCommentRequest) String

func (x *PinCommentRequest) String() string

type PinCommentResponse

type PinCommentResponse struct {
	// contains filtered or unexported fields
}

func (*PinCommentResponse) Descriptor deprecated

func (*PinCommentResponse) Descriptor() ([]byte, []int)

Deprecated: Use PinCommentResponse.ProtoReflect.Descriptor instead.

func (*PinCommentResponse) ProtoMessage

func (*PinCommentResponse) ProtoMessage()

func (*PinCommentResponse) ProtoReflect

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

func (*PinCommentResponse) Reset

func (x *PinCommentResponse) Reset()

func (*PinCommentResponse) String

func (x *PinCommentResponse) String() string

type ReportCommentRequest

type ReportCommentRequest struct {
	// contains filtered or unexported fields
}

举报

func (*ReportCommentRequest) Descriptor deprecated

func (*ReportCommentRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReportCommentRequest.ProtoReflect.Descriptor instead.

func (*ReportCommentRequest) ProtoMessage

func (*ReportCommentRequest) ProtoMessage()

func (*ReportCommentRequest) ProtoReflect

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

func (*ReportCommentRequest) Reset

func (x *ReportCommentRequest) Reset()

func (*ReportCommentRequest) String

func (x *ReportCommentRequest) String() string

type ReportCommentResponse

type ReportCommentResponse struct {
	// contains filtered or unexported fields
}

func (*ReportCommentResponse) Descriptor deprecated

func (*ReportCommentResponse) Descriptor() ([]byte, []int)

Deprecated: Use ReportCommentResponse.ProtoReflect.Descriptor instead.

func (*ReportCommentResponse) ProtoMessage

func (*ReportCommentResponse) ProtoMessage()

func (*ReportCommentResponse) ProtoReflect

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

func (*ReportCommentResponse) Reset

func (x *ReportCommentResponse) Reset()

func (*ReportCommentResponse) String

func (x *ReportCommentResponse) String() string

type SortType

type SortType int32
const (
	SortType_ByTime  SortType = 0 // 按照发布时间排序
	SortType_ByTrend SortType = 1 // 按照热度排序
)

func (SortType) Descriptor

func (SortType) Descriptor() protoreflect.EnumDescriptor

func (SortType) Enum

func (x SortType) Enum() *SortType

func (SortType) EnumDescriptor deprecated

func (SortType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SortType.Descriptor instead.

func (SortType) Number

func (x SortType) Number() protoreflect.EnumNumber

func (SortType) String

func (x SortType) String() string

func (SortType) Type

type UnimplementedCommentServiceServer

type UnimplementedCommentServiceServer struct{}

UnimplementedCommentServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedCommentServiceServer) AddComment

func (UnimplementedCommentServiceServer) BatchCountComment

func (UnimplementedCommentServiceServer) CheckUserOnObject

func (UnimplementedCommentServiceServer) CountComment

func (UnimplementedCommentServiceServer) DelComment

func (UnimplementedCommentServiceServer) DislikeAction

func (UnimplementedCommentServiceServer) GetComment

func (UnimplementedCommentServiceServer) GetCommentLikeCount

func (UnimplementedCommentServiceServer) GetCommentUser

func (UnimplementedCommentServiceServer) GetPinnedComment

func (UnimplementedCommentServiceServer) LikeAction

func (UnimplementedCommentServiceServer) PageGetComment

func (UnimplementedCommentServiceServer) PageGetSubComment

func (UnimplementedCommentServiceServer) PageGetSubCommentV2

func (UnimplementedCommentServiceServer) PinComment

func (UnimplementedCommentServiceServer) ReportComment

type UnsafeCommentServiceServer

type UnsafeCommentServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeCommentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CommentServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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