v1

package
v0.0.0-...-8b2e73b Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReplyService_AddReply_FullMethodName               = "/comment.sdk.v1.ReplyService/AddReply"
	ReplyService_DelReply_FullMethodName               = "/comment.sdk.v1.ReplyService/DelReply"
	ReplyService_LikeAction_FullMethodName             = "/comment.sdk.v1.ReplyService/LikeAction"
	ReplyService_DislikeAction_FullMethodName          = "/comment.sdk.v1.ReplyService/DislikeAction"
	ReplyService_ReportReply_FullMethodName            = "/comment.sdk.v1.ReplyService/ReportReply"
	ReplyService_PinReply_FullMethodName               = "/comment.sdk.v1.ReplyService/PinReply"
	ReplyService_PageGetReply_FullMethodName           = "/comment.sdk.v1.ReplyService/PageGetReply"
	ReplyService_PageGetSubReply_FullMethodName        = "/comment.sdk.v1.ReplyService/PageGetSubReply"
	ReplyService_PageGetDetailedReply_FullMethodName   = "/comment.sdk.v1.ReplyService/PageGetDetailedReply"
	ReplyService_GetPinnedReply_FullMethodName         = "/comment.sdk.v1.ReplyService/GetPinnedReply"
	ReplyService_CountReply_FullMethodName             = "/comment.sdk.v1.ReplyService/CountReply"
	ReplyService_BatchCountReply_FullMethodName        = "/comment.sdk.v1.ReplyService/BatchCountReply"
	ReplyService_GetReplyLikeCount_FullMethodName      = "/comment.sdk.v1.ReplyService/GetReplyLikeCount"
	ReplyService_GetReplyDislikeCount_FullMethodName   = "/comment.sdk.v1.ReplyService/GetReplyDislikeCount"
	ReplyService_CheckUserOnObject_FullMethodName      = "/comment.sdk.v1.ReplyService/CheckUserOnObject"
	ReplyService_BatchCheckUserOnObject_FullMethodName = "/comment.sdk.v1.ReplyService/BatchCheckUserOnObject"
)

Variables

View Source
var (
	ReplyAction_name = map[int32]string{
		0: "REPLY_ACTION_UNDO",
		1: "REPLY_ACTION_DO",
	}
	ReplyAction_value = map[string]int32{
		"REPLY_ACTION_UNDO": 0,
		"REPLY_ACTION_DO":   1,
	}
)

Enum value maps for ReplyAction.

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 File_v1_reply_proto protoreflect.FileDescriptor
View Source
var ReplyService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "comment.sdk.v1.ReplyService",
	HandlerType: (*ReplyServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddReply",
			Handler:    _ReplyService_AddReply_Handler,
		},
		{
			MethodName: "DelReply",
			Handler:    _ReplyService_DelReply_Handler,
		},
		{
			MethodName: "LikeAction",
			Handler:    _ReplyService_LikeAction_Handler,
		},
		{
			MethodName: "DislikeAction",
			Handler:    _ReplyService_DislikeAction_Handler,
		},
		{
			MethodName: "ReportReply",
			Handler:    _ReplyService_ReportReply_Handler,
		},
		{
			MethodName: "PinReply",
			Handler:    _ReplyService_PinReply_Handler,
		},
		{
			MethodName: "PageGetReply",
			Handler:    _ReplyService_PageGetReply_Handler,
		},
		{
			MethodName: "PageGetSubReply",
			Handler:    _ReplyService_PageGetSubReply_Handler,
		},
		{
			MethodName: "PageGetDetailedReply",
			Handler:    _ReplyService_PageGetDetailedReply_Handler,
		},
		{
			MethodName: "GetPinnedReply",
			Handler:    _ReplyService_GetPinnedReply_Handler,
		},
		{
			MethodName: "CountReply",
			Handler:    _ReplyService_CountReply_Handler,
		},
		{
			MethodName: "BatchCountReply",
			Handler:    _ReplyService_BatchCountReply_Handler,
		},
		{
			MethodName: "GetReplyLikeCount",
			Handler:    _ReplyService_GetReplyLikeCount_Handler,
		},
		{
			MethodName: "GetReplyDislikeCount",
			Handler:    _ReplyService_GetReplyDislikeCount_Handler,
		},
		{
			MethodName: "CheckUserOnObject",
			Handler:    _ReplyService_CheckUserOnObject_Handler,
		},
		{
			MethodName: "BatchCheckUserOnObject",
			Handler:    _ReplyService_BatchCheckUserOnObject_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/reply.proto",
}

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

Functions

func RegisterReplyServiceServer

func RegisterReplyServiceServer(s grpc.ServiceRegistrar, srv ReplyServiceServer)

Types

type AddReplyRequest

type AddReplyRequest struct {
	ReplyType uint32 `protobuf:"varint,1,opt,name=reply_type,json=replyType,proto3" json:"reply_type,omitempty"` // 评论类型
	Oid       uint64 `protobuf:"varint,2,opt,name=oid,proto3" json:"oid,omitempty"`                              // 被评论对象id
	Content   string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`                       // 评论内容
	RootId    uint64 `protobuf:"varint,4,opt,name=root_id,json=rootId,proto3" json:"root_id,omitempty"`          // 根评论id
	ParentId  uint64 `protobuf:"varint,5,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`    // 被回复的评论id
	ReplyUid  uint64 `protobuf:"varint,6,opt,name=reply_uid,json=replyUid,proto3" json:"reply_uid,omitempty"`    // 被回复的用户id
	// contains filtered or unexported fields
}

发布评论

func (*AddReplyRequest) Descriptor deprecated

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

Deprecated: Use AddReplyRequest.ProtoReflect.Descriptor instead.

func (*AddReplyRequest) GetContent

func (x *AddReplyRequest) GetContent() string

func (*AddReplyRequest) GetOid

func (x *AddReplyRequest) GetOid() uint64

func (*AddReplyRequest) GetParentId

func (x *AddReplyRequest) GetParentId() uint64

func (*AddReplyRequest) GetReplyType

func (x *AddReplyRequest) GetReplyType() uint32

func (*AddReplyRequest) GetReplyUid

func (x *AddReplyRequest) GetReplyUid() uint64

func (*AddReplyRequest) GetRootId

func (x *AddReplyRequest) GetRootId() uint64

func (*AddReplyRequest) ProtoMessage

func (*AddReplyRequest) ProtoMessage()

func (*AddReplyRequest) ProtoReflect

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

func (*AddReplyRequest) Reset

func (x *AddReplyRequest) Reset()

func (*AddReplyRequest) String

func (x *AddReplyRequest) String() string

type AddReplyResponse

type AddReplyResponse struct {
	ReplyId uint64 `protobuf:"varint,1,opt,name=reply_id,json=replyId,proto3" json:"reply_id,omitempty"` // 评论id
	// contains filtered or unexported fields
}

func (*AddReplyResponse) Descriptor deprecated

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

Deprecated: Use AddReplyResponse.ProtoReflect.Descriptor instead.

func (*AddReplyResponse) GetReplyId

func (x *AddReplyResponse) GetReplyId() uint64

func (*AddReplyResponse) ProtoMessage

func (*AddReplyResponse) ProtoMessage()

func (*AddReplyResponse) ProtoReflect

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

func (*AddReplyResponse) Reset

func (x *AddReplyResponse) Reset()

func (*AddReplyResponse) String

func (x *AddReplyResponse) String() string

type BatchCheckUserOnObjectRequest

type BatchCheckUserOnObjectRequest struct {
	Mappings map[uint64]*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 []uint64 `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[uint64]*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 BatchCountReplyRequest

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

func (*BatchCountReplyRequest) Descriptor deprecated

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

Deprecated: Use BatchCountReplyRequest.ProtoReflect.Descriptor instead.

func (*BatchCountReplyRequest) GetOids

func (x *BatchCountReplyRequest) GetOids() []uint64

func (*BatchCountReplyRequest) ProtoMessage

func (*BatchCountReplyRequest) ProtoMessage()

func (*BatchCountReplyRequest) ProtoReflect

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

func (*BatchCountReplyRequest) Reset

func (x *BatchCountReplyRequest) Reset()

func (*BatchCountReplyRequest) String

func (x *BatchCountReplyRequest) String() string

type BatchCountReplyResponse

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

func (*BatchCountReplyResponse) Descriptor deprecated

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

Deprecated: Use BatchCountReplyResponse.ProtoReflect.Descriptor instead.

func (*BatchCountReplyResponse) GetNumbers

func (x *BatchCountReplyResponse) GetNumbers() map[uint64]uint64

func (*BatchCountReplyResponse) ProtoMessage

func (*BatchCountReplyResponse) ProtoMessage()

func (*BatchCountReplyResponse) ProtoReflect

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

func (*BatchCountReplyResponse) Reset

func (x *BatchCountReplyResponse) Reset()

func (*BatchCountReplyResponse) String

func (x *BatchCountReplyResponse) String() string

type CheckUserOnObjectRequest

type CheckUserOnObjectRequest struct {
	Oid uint64 `protobuf:"varint,1,opt,name=oid,proto3" json:"oid,omitempty"` // 被评论对象id
	Uid uint64 `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() uint64

func (*CheckUserOnObjectRequest) GetUid

func (x *CheckUserOnObjectRequest) GetUid() uint64

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 CountReplyRequest

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

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

func (*CountReplyRequest) Descriptor deprecated

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

Deprecated: Use CountReplyRequest.ProtoReflect.Descriptor instead.

func (*CountReplyRequest) GetOid

func (x *CountReplyRequest) GetOid() uint64

func (*CountReplyRequest) ProtoMessage

func (*CountReplyRequest) ProtoMessage()

func (*CountReplyRequest) ProtoReflect

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

func (*CountReplyRequest) Reset

func (x *CountReplyRequest) Reset()

func (*CountReplyRequest) String

func (x *CountReplyRequest) String() string

type CountReplyResponse

type CountReplyResponse struct {
	NumReply uint64 `protobuf:"varint,1,opt,name=num_reply,json=numReply,proto3" json:"num_reply,omitempty"` // 评论数量
	// contains filtered or unexported fields
}

func (*CountReplyResponse) Descriptor deprecated

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

Deprecated: Use CountReplyResponse.ProtoReflect.Descriptor instead.

func (*CountReplyResponse) GetNumReply

func (x *CountReplyResponse) GetNumReply() uint64

func (*CountReplyResponse) ProtoMessage

func (*CountReplyResponse) ProtoMessage()

func (*CountReplyResponse) ProtoReflect

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

func (*CountReplyResponse) Reset

func (x *CountReplyResponse) Reset()

func (*CountReplyResponse) String

func (x *CountReplyResponse) String() string

type DelReplyRequest

type DelReplyRequest struct {
	ReplyId uint64 `protobuf:"varint,1,opt,name=reply_id,json=replyId,proto3" json:"reply_id,omitempty"` // 评论id
	// contains filtered or unexported fields
}

删除评论

func (*DelReplyRequest) Descriptor deprecated

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

Deprecated: Use DelReplyRequest.ProtoReflect.Descriptor instead.

func (*DelReplyRequest) GetReplyId

func (x *DelReplyRequest) GetReplyId() uint64

func (*DelReplyRequest) ProtoMessage

func (*DelReplyRequest) ProtoMessage()

func (*DelReplyRequest) ProtoReflect

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

func (*DelReplyRequest) Reset

func (x *DelReplyRequest) Reset()

func (*DelReplyRequest) String

func (x *DelReplyRequest) String() string

type DelReplyResponse

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

func (*DelReplyResponse) Descriptor deprecated

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

Deprecated: Use DelReplyResponse.ProtoReflect.Descriptor instead.

func (*DelReplyResponse) ProtoMessage

func (*DelReplyResponse) ProtoMessage()

func (*DelReplyResponse) ProtoReflect

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

func (*DelReplyResponse) Reset

func (x *DelReplyResponse) Reset()

func (*DelReplyResponse) String

func (x *DelReplyResponse) String() string

type DetailedReplyItem

type DetailedReplyItem struct {
	Root       *ReplyItem        `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"`                               // 主评论本身的信息
	SubReplies *DetailedSubReply `protobuf:"bytes,2,opt,name=sub_replies,json=subReplies,proto3" json:"sub_replies,omitempty"` // 子评论的信息
	// contains filtered or unexported fields
}

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

func (*DetailedReplyItem) Descriptor deprecated

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

Deprecated: Use DetailedReplyItem.ProtoReflect.Descriptor instead.

func (*DetailedReplyItem) GetRoot

func (x *DetailedReplyItem) GetRoot() *ReplyItem

func (*DetailedReplyItem) GetSubReplies

func (x *DetailedReplyItem) GetSubReplies() *DetailedSubReply

func (*DetailedReplyItem) ProtoMessage

func (*DetailedReplyItem) ProtoMessage()

func (*DetailedReplyItem) ProtoReflect

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

func (*DetailedReplyItem) Reset

func (x *DetailedReplyItem) Reset()

func (*DetailedReplyItem) String

func (x *DetailedReplyItem) String() string

type DetailedSubReply

type DetailedSubReply struct {
	Items      []*ReplyItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // 子评论的信息
	NextCursor uint64       `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 (*DetailedSubReply) Descriptor deprecated

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

Deprecated: Use DetailedSubReply.ProtoReflect.Descriptor instead.

func (*DetailedSubReply) GetHasNext

func (x *DetailedSubReply) GetHasNext() bool

func (*DetailedSubReply) GetItems

func (x *DetailedSubReply) GetItems() []*ReplyItem

func (*DetailedSubReply) GetNextCursor

func (x *DetailedSubReply) GetNextCursor() uint64

func (*DetailedSubReply) ProtoMessage

func (*DetailedSubReply) ProtoMessage()

func (*DetailedSubReply) ProtoReflect

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

func (*DetailedSubReply) Reset

func (x *DetailedSubReply) Reset()

func (*DetailedSubReply) String

func (x *DetailedSubReply) String() string

type DislikeActionRequest

type DislikeActionRequest struct {
	ReplyId uint64      `protobuf:"varint,1,opt,name=reply_id,json=replyId,proto3" json:"reply_id,omitempty"`                // 评论id
	Action  ReplyAction `protobuf:"varint,2,opt,name=action,proto3,enum=comment.sdk.v1.ReplyAction" 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() ReplyAction

func (*DislikeActionRequest) GetReplyId

func (x *DislikeActionRequest) GetReplyId() uint64

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 GetPinnedReplyRequest

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

获取置顶评论

func (*GetPinnedReplyRequest) Descriptor deprecated

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

Deprecated: Use GetPinnedReplyRequest.ProtoReflect.Descriptor instead.

func (*GetPinnedReplyRequest) GetOid

func (x *GetPinnedReplyRequest) GetOid() uint64

func (*GetPinnedReplyRequest) ProtoMessage

func (*GetPinnedReplyRequest) ProtoMessage()

func (*GetPinnedReplyRequest) ProtoReflect

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

func (*GetPinnedReplyRequest) Reset

func (x *GetPinnedReplyRequest) Reset()

func (*GetPinnedReplyRequest) String

func (x *GetPinnedReplyRequest) String() string

type GetPinnedReplyResponse

type GetPinnedReplyResponse struct {
	Reply *DetailedReplyItem `protobuf:"bytes,1,opt,name=reply,proto3" json:"reply,omitempty"` // 置顶评论信息
	// contains filtered or unexported fields
}

func (*GetPinnedReplyResponse) Descriptor deprecated

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

Deprecated: Use GetPinnedReplyResponse.ProtoReflect.Descriptor instead.

func (*GetPinnedReplyResponse) GetReply

func (*GetPinnedReplyResponse) ProtoMessage

func (*GetPinnedReplyResponse) ProtoMessage()

func (*GetPinnedReplyResponse) ProtoReflect

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

func (*GetPinnedReplyResponse) Reset

func (x *GetPinnedReplyResponse) Reset()

func (*GetPinnedReplyResponse) String

func (x *GetPinnedReplyResponse) String() string

type GetReplyDislikeCountRequest

type GetReplyDislikeCountRequest struct {
	ReplyId uint64 `protobuf:"varint,1,opt,name=reply_id,json=replyId,proto3" json:"reply_id,omitempty"` // 评论id
	// contains filtered or unexported fields
}

func (*GetReplyDislikeCountRequest) Descriptor deprecated

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

Deprecated: Use GetReplyDislikeCountRequest.ProtoReflect.Descriptor instead.

func (*GetReplyDislikeCountRequest) GetReplyId

func (x *GetReplyDislikeCountRequest) GetReplyId() uint64

func (*GetReplyDislikeCountRequest) ProtoMessage

func (*GetReplyDislikeCountRequest) ProtoMessage()

func (*GetReplyDislikeCountRequest) ProtoReflect

func (*GetReplyDislikeCountRequest) Reset

func (x *GetReplyDislikeCountRequest) Reset()

func (*GetReplyDislikeCountRequest) String

func (x *GetReplyDislikeCountRequest) String() string

type GetReplyDislikeCountResponse

type GetReplyDislikeCountResponse struct {
	ReplyId uint64 `protobuf:"varint,1,opt,name=reply_id,json=replyId,proto3" json:"reply_id,omitempty"`
	Count   uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // 点赞数量
	// contains filtered or unexported fields
}

func (*GetReplyDislikeCountResponse) Descriptor deprecated

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

Deprecated: Use GetReplyDislikeCountResponse.ProtoReflect.Descriptor instead.

func (*GetReplyDislikeCountResponse) GetCount

func (x *GetReplyDislikeCountResponse) GetCount() uint64

func (*GetReplyDislikeCountResponse) GetReplyId

func (x *GetReplyDislikeCountResponse) GetReplyId() uint64

func (*GetReplyDislikeCountResponse) ProtoMessage

func (*GetReplyDislikeCountResponse) ProtoMessage()

func (*GetReplyDislikeCountResponse) ProtoReflect

func (*GetReplyDislikeCountResponse) Reset

func (x *GetReplyDislikeCountResponse) Reset()

func (*GetReplyDislikeCountResponse) String

type GetReplyLikeCountRequest

type GetReplyLikeCountRequest struct {
	ReplyId uint64 `protobuf:"varint,1,opt,name=reply_id,json=replyId,proto3" json:"reply_id,omitempty"` // 评论id
	// contains filtered or unexported fields
}

func (*GetReplyLikeCountRequest) Descriptor deprecated

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

Deprecated: Use GetReplyLikeCountRequest.ProtoReflect.Descriptor instead.

func (*GetReplyLikeCountRequest) GetReplyId

func (x *GetReplyLikeCountRequest) GetReplyId() uint64

func (*GetReplyLikeCountRequest) ProtoMessage

func (*GetReplyLikeCountRequest) ProtoMessage()

func (*GetReplyLikeCountRequest) ProtoReflect

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

func (*GetReplyLikeCountRequest) Reset

func (x *GetReplyLikeCountRequest) Reset()

func (*GetReplyLikeCountRequest) String

func (x *GetReplyLikeCountRequest) String() string

type GetReplyLikeCountResponse

type GetReplyLikeCountResponse struct {
	ReplyId uint64 `protobuf:"varint,1,opt,name=reply_id,json=replyId,proto3" json:"reply_id,omitempty"`
	Count   uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // 点赞数量
	// contains filtered or unexported fields
}

func (*GetReplyLikeCountResponse) Descriptor deprecated

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

Deprecated: Use GetReplyLikeCountResponse.ProtoReflect.Descriptor instead.

func (*GetReplyLikeCountResponse) GetCount

func (x *GetReplyLikeCountResponse) GetCount() uint64

func (*GetReplyLikeCountResponse) GetReplyId

func (x *GetReplyLikeCountResponse) GetReplyId() uint64

func (*GetReplyLikeCountResponse) ProtoMessage

func (*GetReplyLikeCountResponse) ProtoMessage()

func (*GetReplyLikeCountResponse) ProtoReflect

func (*GetReplyLikeCountResponse) Reset

func (x *GetReplyLikeCountResponse) Reset()

func (*GetReplyLikeCountResponse) String

func (x *GetReplyLikeCountResponse) String() string

type LikeActionRequest

type LikeActionRequest struct {
	ReplyId uint64      `protobuf:"varint,1,opt,name=reply_id,json=replyId,proto3" json:"reply_id,omitempty"`                // 评论id
	Action  ReplyAction `protobuf:"varint,2,opt,name=action,proto3,enum=comment.sdk.v1.ReplyAction" 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() ReplyAction

func (*LikeActionRequest) GetReplyId

func (x *LikeActionRequest) GetReplyId() uint64

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       uint64 `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() uint64

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 PageGetDetailedReplyRequest

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

func (*PageGetDetailedReplyRequest) Descriptor deprecated

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

Deprecated: Use PageGetDetailedReplyRequest.ProtoReflect.Descriptor instead.

func (*PageGetDetailedReplyRequest) GetCursor

func (x *PageGetDetailedReplyRequest) GetCursor() uint64

func (*PageGetDetailedReplyRequest) GetOid

func (x *PageGetDetailedReplyRequest) GetOid() uint64

func (*PageGetDetailedReplyRequest) GetSortBy

func (x *PageGetDetailedReplyRequest) GetSortBy() SortType

func (*PageGetDetailedReplyRequest) ProtoMessage

func (*PageGetDetailedReplyRequest) ProtoMessage()

func (*PageGetDetailedReplyRequest) ProtoReflect

func (*PageGetDetailedReplyRequest) Reset

func (x *PageGetDetailedReplyRequest) Reset()

func (*PageGetDetailedReplyRequest) String

func (x *PageGetDetailedReplyRequest) String() string

type PageGetDetailedReplyResponse

type PageGetDetailedReplyResponse struct {
	Replies    []*DetailedReplyItem `protobuf:"bytes,1,rep,name=replies,proto3" json:"replies,omitempty"` // 主评论
	NextCursor uint64               `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 (*PageGetDetailedReplyResponse) Descriptor deprecated

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

Deprecated: Use PageGetDetailedReplyResponse.ProtoReflect.Descriptor instead.

func (*PageGetDetailedReplyResponse) GetHasNext

func (x *PageGetDetailedReplyResponse) GetHasNext() bool

func (*PageGetDetailedReplyResponse) GetNextCursor

func (x *PageGetDetailedReplyResponse) GetNextCursor() uint64

func (*PageGetDetailedReplyResponse) GetReplies

func (*PageGetDetailedReplyResponse) ProtoMessage

func (*PageGetDetailedReplyResponse) ProtoMessage()

func (*PageGetDetailedReplyResponse) ProtoReflect

func (*PageGetDetailedReplyResponse) Reset

func (x *PageGetDetailedReplyResponse) Reset()

func (*PageGetDetailedReplyResponse) String

type PageGetReplyRequest

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

获取评论

func (*PageGetReplyRequest) Descriptor deprecated

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

Deprecated: Use PageGetReplyRequest.ProtoReflect.Descriptor instead.

func (*PageGetReplyRequest) GetCursor

func (x *PageGetReplyRequest) GetCursor() uint64

func (*PageGetReplyRequest) GetOid

func (x *PageGetReplyRequest) GetOid() uint64

func (*PageGetReplyRequest) GetSortBy

func (x *PageGetReplyRequest) GetSortBy() SortType

func (*PageGetReplyRequest) ProtoMessage

func (*PageGetReplyRequest) ProtoMessage()

func (*PageGetReplyRequest) ProtoReflect

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

func (*PageGetReplyRequest) Reset

func (x *PageGetReplyRequest) Reset()

func (*PageGetReplyRequest) String

func (x *PageGetReplyRequest) String() string

type PageGetReplyResponse

type PageGetReplyResponse struct {
	Replies    []*ReplyItem `protobuf:"bytes,1,rep,name=replies,proto3" json:"replies,omitempty"`                          // 评论数据
	NextCursor uint64       `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 (*PageGetReplyResponse) Descriptor deprecated

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

Deprecated: Use PageGetReplyResponse.ProtoReflect.Descriptor instead.

func (*PageGetReplyResponse) GetHasNext

func (x *PageGetReplyResponse) GetHasNext() bool

func (*PageGetReplyResponse) GetNextCursor

func (x *PageGetReplyResponse) GetNextCursor() uint64

func (*PageGetReplyResponse) GetReplies

func (x *PageGetReplyResponse) GetReplies() []*ReplyItem

func (*PageGetReplyResponse) ProtoMessage

func (*PageGetReplyResponse) ProtoMessage()

func (*PageGetReplyResponse) ProtoReflect

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

func (*PageGetReplyResponse) Reset

func (x *PageGetReplyResponse) Reset()

func (*PageGetReplyResponse) String

func (x *PageGetReplyResponse) String() string

type PageGetSubReplyRequest

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

获取子评论

func (*PageGetSubReplyRequest) Descriptor deprecated

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

Deprecated: Use PageGetSubReplyRequest.ProtoReflect.Descriptor instead.

func (*PageGetSubReplyRequest) GetCursor

func (x *PageGetSubReplyRequest) GetCursor() uint64

func (*PageGetSubReplyRequest) GetOid

func (x *PageGetSubReplyRequest) GetOid() uint64

func (*PageGetSubReplyRequest) GetRootId

func (x *PageGetSubReplyRequest) GetRootId() uint64

func (*PageGetSubReplyRequest) ProtoMessage

func (*PageGetSubReplyRequest) ProtoMessage()

func (*PageGetSubReplyRequest) ProtoReflect

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

func (*PageGetSubReplyRequest) Reset

func (x *PageGetSubReplyRequest) Reset()

func (*PageGetSubReplyRequest) String

func (x *PageGetSubReplyRequest) String() string

type PageGetSubReplyResponse

type PageGetSubReplyResponse struct {
	Replies    []*ReplyItem `protobuf:"bytes,1,rep,name=replies,proto3" json:"replies,omitempty"`
	NextCursor uint64       `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 (*PageGetSubReplyResponse) Descriptor deprecated

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

Deprecated: Use PageGetSubReplyResponse.ProtoReflect.Descriptor instead.

func (*PageGetSubReplyResponse) GetHasNext

func (x *PageGetSubReplyResponse) GetHasNext() bool

func (*PageGetSubReplyResponse) GetNextCursor

func (x *PageGetSubReplyResponse) GetNextCursor() uint64

func (*PageGetSubReplyResponse) GetReplies

func (x *PageGetSubReplyResponse) GetReplies() []*ReplyItem

func (*PageGetSubReplyResponse) ProtoMessage

func (*PageGetSubReplyResponse) ProtoMessage()

func (*PageGetSubReplyResponse) ProtoReflect

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

func (*PageGetSubReplyResponse) Reset

func (x *PageGetSubReplyResponse) Reset()

func (*PageGetSubReplyResponse) String

func (x *PageGetSubReplyResponse) String() string

type PinReplyRequest

type PinReplyRequest struct {
	Oid    uint64      `protobuf:"varint,1,opt,name=oid,proto3" json:"oid,omitempty"` // 被评论对象id
	Rid    uint64      `protobuf:"varint,2,opt,name=rid,proto3" json:"rid,omitempty"` // 评论id
	Action ReplyAction `protobuf:"varint,3,opt,name=action,proto3,enum=comment.sdk.v1.ReplyAction" json:"action,omitempty"`
	// contains filtered or unexported fields
}

置顶

func (*PinReplyRequest) Descriptor deprecated

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

Deprecated: Use PinReplyRequest.ProtoReflect.Descriptor instead.

func (*PinReplyRequest) GetAction

func (x *PinReplyRequest) GetAction() ReplyAction

func (*PinReplyRequest) GetOid

func (x *PinReplyRequest) GetOid() uint64

func (*PinReplyRequest) GetRid

func (x *PinReplyRequest) GetRid() uint64

func (*PinReplyRequest) ProtoMessage

func (*PinReplyRequest) ProtoMessage()

func (*PinReplyRequest) ProtoReflect

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

func (*PinReplyRequest) Reset

func (x *PinReplyRequest) Reset()

func (*PinReplyRequest) String

func (x *PinReplyRequest) String() string

type PinReplyResponse

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

func (*PinReplyResponse) Descriptor deprecated

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

Deprecated: Use PinReplyResponse.ProtoReflect.Descriptor instead.

func (*PinReplyResponse) ProtoMessage

func (*PinReplyResponse) ProtoMessage()

func (*PinReplyResponse) ProtoReflect

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

func (*PinReplyResponse) Reset

func (x *PinReplyResponse) Reset()

func (*PinReplyResponse) String

func (x *PinReplyResponse) String() string

type ReplyAction

type ReplyAction int32
const (
	ReplyAction_REPLY_ACTION_UNDO ReplyAction = 0
	ReplyAction_REPLY_ACTION_DO   ReplyAction = 1
)

func (ReplyAction) Descriptor

func (ReplyAction) Enum

func (x ReplyAction) Enum() *ReplyAction

func (ReplyAction) EnumDescriptor deprecated

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

Deprecated: Use ReplyAction.Descriptor instead.

func (ReplyAction) Number

func (x ReplyAction) Number() protoreflect.EnumNumber

func (ReplyAction) String

func (x ReplyAction) String() string

func (ReplyAction) Type

type ReplyItem

type ReplyItem struct {
	Id        uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                 // 评论id
	Oid       uint64 `protobuf:"varint,2,opt,name=oid,proto3" json:"oid,omitempty"`                               // 被评论对象id
	ReplyType uint32 `protobuf:"varint,3,opt,name=reply_type,json=replyType,proto3" json:"reply_type,omitempty"`  // 评论类型
	Content   string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`                        // 评论内容
	Uid       uint64 `protobuf:"varint,5,opt,name=uid,proto3" json:"uid,omitempty"`                               // 评论发表用户uid
	RootId    uint64 `protobuf:"varint,6,opt,name=root_id,json=rootId,proto3" json:"root_id,omitempty"`           // 根评论id
	ParentId  uint64 `protobuf:"varint,7,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`     // 父评论id
	Ruid      uint64 `protobuf:"varint,8,opt,name=ruid,proto3" json:"ruid,omitempty"`                             // 被回复的用户id
	LikeCount uint64 `protobuf:"varint,9,opt,name=like_count,json=likeCount,proto3" json:"like_count,omitempty"`  // 点赞数
	HateCount uint64 `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 uint64 `protobuf:"varint,15,opt,name=subs_count,json=subsCount,proto3" json:"subs_count,omitempty"` // 子评论数
	// contains filtered or unexported fields
}

评论实体

func (*ReplyItem) Descriptor deprecated

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

Deprecated: Use ReplyItem.ProtoReflect.Descriptor instead.

func (*ReplyItem) GetContent

func (x *ReplyItem) GetContent() string

func (*ReplyItem) GetCtime

func (x *ReplyItem) GetCtime() int64

func (*ReplyItem) GetHateCount

func (x *ReplyItem) GetHateCount() uint64

func (*ReplyItem) GetId

func (x *ReplyItem) GetId() uint64

func (*ReplyItem) GetIp

func (x *ReplyItem) GetIp() string

func (*ReplyItem) GetIsPin

func (x *ReplyItem) GetIsPin() bool

func (*ReplyItem) GetLikeCount

func (x *ReplyItem) GetLikeCount() uint64

func (*ReplyItem) GetMtime

func (x *ReplyItem) GetMtime() int64

func (*ReplyItem) GetOid

func (x *ReplyItem) GetOid() uint64

func (*ReplyItem) GetParentId

func (x *ReplyItem) GetParentId() uint64

func (*ReplyItem) GetReplyType

func (x *ReplyItem) GetReplyType() uint32

func (*ReplyItem) GetRootId

func (x *ReplyItem) GetRootId() uint64

func (*ReplyItem) GetRuid

func (x *ReplyItem) GetRuid() uint64

func (*ReplyItem) GetSubsCount

func (x *ReplyItem) GetSubsCount() uint64

func (*ReplyItem) GetUid

func (x *ReplyItem) GetUid() uint64

func (*ReplyItem) ProtoMessage

func (*ReplyItem) ProtoMessage()

func (*ReplyItem) ProtoReflect

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

func (*ReplyItem) Reset

func (x *ReplyItem) Reset()

func (*ReplyItem) String

func (x *ReplyItem) String() string

type ReplyServiceClient

type ReplyServiceClient interface {
	// 发表评论
	AddReply(ctx context.Context, in *AddReplyRequest, opts ...grpc.CallOption) (*AddReplyResponse, error)
	// 删除评论
	DelReply(ctx context.Context, in *DelReplyRequest, opts ...grpc.CallOption) (*DelReplyResponse, error)
	// 赞
	LikeAction(ctx context.Context, in *LikeActionRequest, opts ...grpc.CallOption) (*LikeActionResponse, error)
	// 踩
	DislikeAction(ctx context.Context, in *DislikeActionRequest, opts ...grpc.CallOption) (*DislikeActionResponse, error)
	// 举报
	ReportReply(ctx context.Context, in *ReportReplyRequest, opts ...grpc.CallOption) (*ReportReplyResponse, error)
	// 置顶评论
	PinReply(ctx context.Context, in *PinReplyRequest, opts ...grpc.CallOption) (*PinReplyResponse, error)
	// 获取主评论信息
	PageGetReply(ctx context.Context, in *PageGetReplyRequest, opts ...grpc.CallOption) (*PageGetReplyResponse, error)
	// 获取子评论信息
	PageGetSubReply(ctx context.Context, in *PageGetSubReplyRequest, opts ...grpc.CallOption) (*PageGetSubReplyResponse, error)
	// 获取主评论详细信息
	PageGetDetailedReply(ctx context.Context, in *PageGetDetailedReplyRequest, opts ...grpc.CallOption) (*PageGetDetailedReplyResponse, error)
	// 获取置顶评论
	GetPinnedReply(ctx context.Context, in *GetPinnedReplyRequest, opts ...grpc.CallOption) (*GetPinnedReplyResponse, error)
	// 获取某个被评对象的评论数
	CountReply(ctx context.Context, in *CountReplyRequest, opts ...grpc.CallOption) (*CountReplyResponse, error)
	// 获取多个被评论对象的评论数
	BatchCountReply(ctx context.Context, in *BatchCountReplyRequest, opts ...grpc.CallOption) (*BatchCountReplyResponse, error)
	// 获取某条评论的点赞数
	GetReplyLikeCount(ctx context.Context, in *GetReplyLikeCountRequest, opts ...grpc.CallOption) (*GetReplyLikeCountResponse, error)
	// 获取某条评论的点踩数
	GetReplyDislikeCount(ctx context.Context, in *GetReplyDislikeCountRequest, opts ...grpc.CallOption) (*GetReplyDislikeCountResponse, error)
	// 获取某个用户是否评论了某个对象
	CheckUserOnObject(ctx context.Context, in *CheckUserOnObjectRequest, opts ...grpc.CallOption) (*CheckUserOnObjectResponse, error)
	BatchCheckUserOnObject(ctx context.Context, in *BatchCheckUserOnObjectRequest, opts ...grpc.CallOption) (*BatchCheckUserOnObjectResponse, error)
}

ReplyServiceClient is the client API for ReplyService 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 ReplyServiceServer

type ReplyServiceServer interface {
	// 发表评论
	AddReply(context.Context, *AddReplyRequest) (*AddReplyResponse, error)
	// 删除评论
	DelReply(context.Context, *DelReplyRequest) (*DelReplyResponse, error)
	// 赞
	LikeAction(context.Context, *LikeActionRequest) (*LikeActionResponse, error)
	// 踩
	DislikeAction(context.Context, *DislikeActionRequest) (*DislikeActionResponse, error)
	// 举报
	ReportReply(context.Context, *ReportReplyRequest) (*ReportReplyResponse, error)
	// 置顶评论
	PinReply(context.Context, *PinReplyRequest) (*PinReplyResponse, error)
	// 获取主评论信息
	PageGetReply(context.Context, *PageGetReplyRequest) (*PageGetReplyResponse, error)
	// 获取子评论信息
	PageGetSubReply(context.Context, *PageGetSubReplyRequest) (*PageGetSubReplyResponse, error)
	// 获取主评论详细信息
	PageGetDetailedReply(context.Context, *PageGetDetailedReplyRequest) (*PageGetDetailedReplyResponse, error)
	// 获取置顶评论
	GetPinnedReply(context.Context, *GetPinnedReplyRequest) (*GetPinnedReplyResponse, error)
	// 获取某个被评对象的评论数
	CountReply(context.Context, *CountReplyRequest) (*CountReplyResponse, error)
	// 获取多个被评论对象的评论数
	BatchCountReply(context.Context, *BatchCountReplyRequest) (*BatchCountReplyResponse, error)
	// 获取某条评论的点赞数
	GetReplyLikeCount(context.Context, *GetReplyLikeCountRequest) (*GetReplyLikeCountResponse, error)
	// 获取某条评论的点踩数
	GetReplyDislikeCount(context.Context, *GetReplyDislikeCountRequest) (*GetReplyDislikeCountResponse, error)
	// 获取某个用户是否评论了某个对象
	CheckUserOnObject(context.Context, *CheckUserOnObjectRequest) (*CheckUserOnObjectResponse, error)
	BatchCheckUserOnObject(context.Context, *BatchCheckUserOnObjectRequest) (*BatchCheckUserOnObjectResponse, error)
	// contains filtered or unexported methods
}

ReplyServiceServer is the server API for ReplyService service. All implementations must embed UnimplementedReplyServiceServer for forward compatibility.

type ReportReplyRequest

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

举报

func (*ReportReplyRequest) Descriptor deprecated

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

Deprecated: Use ReportReplyRequest.ProtoReflect.Descriptor instead.

func (*ReportReplyRequest) ProtoMessage

func (*ReportReplyRequest) ProtoMessage()

func (*ReportReplyRequest) ProtoReflect

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

func (*ReportReplyRequest) Reset

func (x *ReportReplyRequest) Reset()

func (*ReportReplyRequest) String

func (x *ReportReplyRequest) String() string

type ReportReplyResponse

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

func (*ReportReplyResponse) Descriptor deprecated

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

Deprecated: Use ReportReplyResponse.ProtoReflect.Descriptor instead.

func (*ReportReplyResponse) ProtoMessage

func (*ReportReplyResponse) ProtoMessage()

func (*ReportReplyResponse) ProtoReflect

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

func (*ReportReplyResponse) Reset

func (x *ReportReplyResponse) Reset()

func (*ReportReplyResponse) String

func (x *ReportReplyResponse) 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 UnimplementedReplyServiceServer

type UnimplementedReplyServiceServer struct{}

UnimplementedReplyServiceServer 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 (UnimplementedReplyServiceServer) AddReply

func (UnimplementedReplyServiceServer) BatchCountReply

func (UnimplementedReplyServiceServer) CheckUserOnObject

func (UnimplementedReplyServiceServer) CountReply

func (UnimplementedReplyServiceServer) DelReply

func (UnimplementedReplyServiceServer) DislikeAction

func (UnimplementedReplyServiceServer) GetPinnedReply

func (UnimplementedReplyServiceServer) GetReplyLikeCount

func (UnimplementedReplyServiceServer) LikeAction

func (UnimplementedReplyServiceServer) PageGetReply

func (UnimplementedReplyServiceServer) PageGetSubReply

func (UnimplementedReplyServiceServer) PinReply

func (UnimplementedReplyServiceServer) ReportReply

type UnsafeReplyServiceServer

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

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

Jump to

Keyboard shortcuts

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