protoc-gen-slc/pb/post.pb.go

1019 lines
33 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc v6.30.1
// source: post.proto
package content
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type DeleteCommentRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // 需要删除的评论的唯一标识
PostIdentity string `protobuf:"bytes,2,opt,name=post_identity,json=postIdentity,proto3" json:"post_identity,omitempty"` // 文章唯一标识
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeleteCommentRequest) Reset() {
*x = DeleteCommentRequest{}
mi := &file_post_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteCommentRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteCommentRequest) ProtoMessage() {}
func (x *DeleteCommentRequest) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteCommentRequest.ProtoReflect.Descriptor instead.
func (*DeleteCommentRequest) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{0}
}
func (x *DeleteCommentRequest) GetIdentity() string {
if x != nil {
return x.Identity
}
return ""
}
func (x *DeleteCommentRequest) GetPostIdentity() string {
if x != nil {
return x.PostIdentity
}
return ""
}
type PostItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // 文章唯一标识
PassportId int64 `protobuf:"varint,2,opt,name=passport_id,json=passportId,proto3" json:"passport_id,omitempty"` // 作者ID
PassportIdentity string `protobuf:"bytes,3,opt,name=passport_identity,json=passportIdentity,proto3" json:"passport_identity,omitempty"` // 作者唯一标识
CategoryIdentityList []string `protobuf:"bytes,4,rep,name=category_identity_list,json=categoryIdentityList,proto3" json:"category_identity_list,omitempty"` //所属分类Identity 列表
TagsIdentityList []string `protobuf:"bytes,5,rep,name=tags_identity_list,json=tagsIdentityList,proto3" json:"tags_identity_list,omitempty"` // 标签集
Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"`
CoverPath string `protobuf:"bytes,7,opt,name=cover_path,json=coverPath,proto3" json:"cover_path,omitempty"` //封面
Author string `protobuf:"bytes,8,opt,name=author,proto3" json:"author,omitempty"`
Content string `protobuf:"bytes,9,opt,name=content,proto3" json:"content,omitempty"`
TargetUrl string `protobuf:"bytes,10,opt,name=target_url,json=targetUrl,proto3" json:"target_url,omitempty"` // 跳转目标地址
SourceUrl string `protobuf:"bytes,11,opt,name=source_url,json=sourceUrl,proto3" json:"source_url,omitempty"` // 文章来源地址
Hits int64 `protobuf:"varint,12,opt,name=hits,proto3" json:"hits,omitempty"` //点击量
Accessory []string `protobuf:"bytes,13,rep,name=accessory,proto3" json:"accessory,omitempty"` //附件列表
HasAccessory bool `protobuf:"varint,14,opt,name=has_accessory,json=hasAccessory,proto3" json:"has_accessory,omitempty"` //是否有附件,默认没有
CreatedAt string `protobuf:"bytes,15,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt string `protobuf:"bytes,16,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
Description string `protobuf:"bytes,17,opt,name=description,proto3" json:"description,omitempty"` //简介
LikeHits int64 `protobuf:"varint,18,opt,name=like_hits,json=likeHits,proto3" json:"like_hits,omitempty"` //点赞量
UnlikeHits int64 `protobuf:"varint,19,opt,name=unlike_hits,json=unlikeHits,proto3" json:"unlike_hits,omitempty"` //点踩量
CommentHits int64 `protobuf:"varint,20,opt,name=comment_hits,json=commentHits,proto3" json:"comment_hits,omitempty"` //评论量
Type int32 `protobuf:"varint,22,opt,name=type,proto3" json:"type,omitempty"` // 用户自定义文章类型
Rights string `protobuf:"bytes,23,opt,name=rights,proto3" json:"rights,omitempty"` //权限
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PostItem) Reset() {
*x = PostItem{}
mi := &file_post_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PostItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PostItem) ProtoMessage() {}
func (x *PostItem) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PostItem.ProtoReflect.Descriptor instead.
func (*PostItem) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{1}
}
func (x *PostItem) GetIdentity() string {
if x != nil {
return x.Identity
}
return ""
}
func (x *PostItem) GetPassportId() int64 {
if x != nil {
return x.PassportId
}
return 0
}
func (x *PostItem) GetPassportIdentity() string {
if x != nil {
return x.PassportIdentity
}
return ""
}
func (x *PostItem) GetCategoryIdentityList() []string {
if x != nil {
return x.CategoryIdentityList
}
return nil
}
func (x *PostItem) GetTagsIdentityList() []string {
if x != nil {
return x.TagsIdentityList
}
return nil
}
func (x *PostItem) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *PostItem) GetCoverPath() string {
if x != nil {
return x.CoverPath
}
return ""
}
func (x *PostItem) GetAuthor() string {
if x != nil {
return x.Author
}
return ""
}
func (x *PostItem) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
func (x *PostItem) GetTargetUrl() string {
if x != nil {
return x.TargetUrl
}
return ""
}
func (x *PostItem) GetSourceUrl() string {
if x != nil {
return x.SourceUrl
}
return ""
}
func (x *PostItem) GetHits() int64 {
if x != nil {
return x.Hits
}
return 0
}
func (x *PostItem) GetAccessory() []string {
if x != nil {
return x.Accessory
}
return nil
}
func (x *PostItem) GetHasAccessory() bool {
if x != nil {
return x.HasAccessory
}
return false
}
func (x *PostItem) GetCreatedAt() string {
if x != nil {
return x.CreatedAt
}
return ""
}
func (x *PostItem) GetUpdatedAt() string {
if x != nil {
return x.UpdatedAt
}
return ""
}
func (x *PostItem) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *PostItem) GetLikeHits() int64 {
if x != nil {
return x.LikeHits
}
return 0
}
func (x *PostItem) GetUnlikeHits() int64 {
if x != nil {
return x.UnlikeHits
}
return 0
}
func (x *PostItem) GetCommentHits() int64 {
if x != nil {
return x.CommentHits
}
return 0
}
func (x *PostItem) GetType() int32 {
if x != nil {
return x.Type
}
return 0
}
func (x *PostItem) GetRights() string {
if x != nil {
return x.Rights
}
return ""
}
type PostListRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` // 页码,默认第一页
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // 单页显示数量,默认10,最多50
AuthorIdentity string `protobuf:"bytes,3,opt,name=author_identity,json=authorIdentity,proto3" json:"author_identity,omitempty"` //发布者唯一标识,可选
CategoryIdentity string `protobuf:"bytes,4,opt,name=category_identity,json=categoryIdentity,proto3" json:"category_identity,omitempty"` // 文章类型,可选
Keyword string `protobuf:"bytes,5,opt,name=keyword,proto3" json:"keyword,omitempty"` // 根据文章名称模糊查找
Type int32 `protobuf:"varint,6,opt,name=type,proto3" json:"type,omitempty"` // 根据用户自定义文章类型过滤,可选,默认0,全部查找
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PostListRequest) Reset() {
*x = PostListRequest{}
mi := &file_post_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PostListRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PostListRequest) ProtoMessage() {}
func (x *PostListRequest) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PostListRequest.ProtoReflect.Descriptor instead.
func (*PostListRequest) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{2}
}
func (x *PostListRequest) GetPage() int64 {
if x != nil {
return x.Page
}
return 0
}
func (x *PostListRequest) GetSize() int64 {
if x != nil {
return x.Size
}
return 0
}
func (x *PostListRequest) GetAuthorIdentity() string {
if x != nil {
return x.AuthorIdentity
}
return ""
}
func (x *PostListRequest) GetCategoryIdentity() string {
if x != nil {
return x.CategoryIdentity
}
return ""
}
func (x *PostListRequest) GetKeyword() string {
if x != nil {
return x.Keyword
}
return ""
}
func (x *PostListRequest) GetType() int32 {
if x != nil {
return x.Type
}
return 0
}
type PostListReply struct {
state protoimpl.MessageState `protogen:"open.v1"`
Data []*PostItem `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PostListReply) Reset() {
*x = PostListReply{}
mi := &file_post_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PostListReply) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PostListReply) ProtoMessage() {}
func (x *PostListReply) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PostListReply.ProtoReflect.Descriptor instead.
func (*PostListReply) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{3}
}
func (x *PostListReply) GetData() []*PostItem {
if x != nil {
return x.Data
}
return nil
}
func (x *PostListReply) GetCount() int64 {
if x != nil {
return x.Count
}
return 0
}
type GetPostRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // 必传
AuthorIdentity string `protobuf:"bytes,2,opt,name=author_identity,json=authorIdentity,proto3" json:"author_identity,omitempty"` // 必传
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetPostRequest) Reset() {
*x = GetPostRequest{}
mi := &file_post_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetPostRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPostRequest) ProtoMessage() {}
func (x *GetPostRequest) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetPostRequest.ProtoReflect.Descriptor instead.
func (*GetPostRequest) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{4}
}
func (x *GetPostRequest) GetIdentity() string {
if x != nil {
return x.Identity
}
return ""
}
func (x *GetPostRequest) GetAuthorIdentity() string {
if x != nil {
return x.AuthorIdentity
}
return ""
}
type CommentItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
PostIdentity string `protobuf:"bytes,2,opt,name=Post_identity,json=PostIdentity,proto3" json:"Post_identity,omitempty"`
ParentIdentity string `protobuf:"bytes,3,opt,name=parent_identity,json=parentIdentity,proto3" json:"parent_identity,omitempty"`
Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
ReplyIdentity string `protobuf:"bytes,5,opt,name=reply_identity,json=replyIdentity,proto3" json:"reply_identity,omitempty"` // 回复者唯一 标识
CreatedAt string `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt string `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
List []*CommentItem `protobuf:"bytes,8,rep,name=list,proto3" json:"list,omitempty"` //回复列表
LikeHits int64 `protobuf:"varint,9,opt,name=like_hits,json=likeHits,proto3" json:"like_hits,omitempty"` //点赞量
UnlikeHits int64 `protobuf:"varint,10,opt,name=unlike_hits,json=unlikeHits,proto3" json:"unlike_hits,omitempty"` //点踩量
CommentHits int64 `protobuf:"varint,11,opt,name=comment_hits,json=commentHits,proto3" json:"comment_hits,omitempty"` //评论量
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CommentItem) Reset() {
*x = CommentItem{}
mi := &file_post_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CommentItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CommentItem) ProtoMessage() {}
func (x *CommentItem) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CommentItem.ProtoReflect.Descriptor instead.
func (*CommentItem) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{5}
}
func (x *CommentItem) GetIdentity() string {
if x != nil {
return x.Identity
}
return ""
}
func (x *CommentItem) GetPostIdentity() string {
if x != nil {
return x.PostIdentity
}
return ""
}
func (x *CommentItem) GetParentIdentity() string {
if x != nil {
return x.ParentIdentity
}
return ""
}
func (x *CommentItem) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
func (x *CommentItem) GetReplyIdentity() string {
if x != nil {
return x.ReplyIdentity
}
return ""
}
func (x *CommentItem) GetCreatedAt() string {
if x != nil {
return x.CreatedAt
}
return ""
}
func (x *CommentItem) GetUpdatedAt() string {
if x != nil {
return x.UpdatedAt
}
return ""
}
func (x *CommentItem) GetList() []*CommentItem {
if x != nil {
return x.List
}
return nil
}
func (x *CommentItem) GetLikeHits() int64 {
if x != nil {
return x.LikeHits
}
return 0
}
func (x *CommentItem) GetUnlikeHits() int64 {
if x != nil {
return x.UnlikeHits
}
return 0
}
func (x *CommentItem) GetCommentHits() int64 {
if x != nil {
return x.CommentHits
}
return 0
}
type CommentListRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
PostIdentity string `protobuf:"bytes,1,opt,name=Post_identity,json=PostIdentity,proto3" json:"Post_identity,omitempty"` //必填
Page int64 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` // 页码,默认第一页
Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` // 单页显示数量,默认10,最多50
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CommentListRequest) Reset() {
*x = CommentListRequest{}
mi := &file_post_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CommentListRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CommentListRequest) ProtoMessage() {}
func (x *CommentListRequest) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CommentListRequest.ProtoReflect.Descriptor instead.
func (*CommentListRequest) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{6}
}
func (x *CommentListRequest) GetPostIdentity() string {
if x != nil {
return x.PostIdentity
}
return ""
}
func (x *CommentListRequest) GetPage() int64 {
if x != nil {
return x.Page
}
return 0
}
func (x *CommentListRequest) GetSize() int64 {
if x != nil {
return x.Size
}
return 0
}
type CommentListResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
List []*CommentItem `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CommentListResponse) Reset() {
*x = CommentListResponse{}
mi := &file_post_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CommentListResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CommentListResponse) ProtoMessage() {}
func (x *CommentListResponse) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CommentListResponse.ProtoReflect.Descriptor instead.
func (*CommentListResponse) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{7}
}
func (x *CommentListResponse) GetList() []*CommentItem {
if x != nil {
return x.List
}
return nil
}
func (x *CommentListResponse) GetCount() int64 {
if x != nil {
return x.Count
}
return 0
}
type PostOpIdentityRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
PostIdentity string `protobuf:"bytes,1,opt,name=post_identity,json=postIdentity,proto3" json:"post_identity,omitempty"` //必传
OpIdentity string `protobuf:"bytes,2,opt,name=op_identity,json=opIdentity,proto3" json:"op_identity,omitempty"` // 必传
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PostOpIdentityRequest) Reset() {
*x = PostOpIdentityRequest{}
mi := &file_post_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PostOpIdentityRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PostOpIdentityRequest) ProtoMessage() {}
func (x *PostOpIdentityRequest) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PostOpIdentityRequest.ProtoReflect.Descriptor instead.
func (*PostOpIdentityRequest) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{8}
}
func (x *PostOpIdentityRequest) GetPostIdentity() string {
if x != nil {
return x.PostIdentity
}
return ""
}
func (x *PostOpIdentityRequest) GetOpIdentity() string {
if x != nil {
return x.OpIdentity
}
return ""
}
type CommentOpIdentityRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
CommentIdentity string `protobuf:"bytes,1,opt,name=comment_identity,json=commentIdentity,proto3" json:"comment_identity,omitempty"` //必填
OpIdentity string `protobuf:"bytes,2,opt,name=op_identity,json=opIdentity,proto3" json:"op_identity,omitempty"` //必填
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CommentOpIdentityRequest) Reset() {
*x = CommentOpIdentityRequest{}
mi := &file_post_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CommentOpIdentityRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CommentOpIdentityRequest) ProtoMessage() {}
func (x *CommentOpIdentityRequest) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CommentOpIdentityRequest.ProtoReflect.Descriptor instead.
func (*CommentOpIdentityRequest) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{9}
}
func (x *CommentOpIdentityRequest) GetCommentIdentity() string {
if x != nil {
return x.CommentIdentity
}
return ""
}
func (x *CommentOpIdentityRequest) GetOpIdentity() string {
if x != nil {
return x.OpIdentity
}
return ""
}
var File_post_proto protoreflect.FileDescriptor
const file_post_proto_rawDesc = "" +
"\n" +
"\n" +
"post.proto\x12\acontent\x1a\fblocks.proto\"W\n" +
"\x14DeleteCommentRequest\x12\x1a\n" +
"\bidentity\x18\x01 \x01(\tR\bidentity\x12#\n" +
"\rpost_identity\x18\x02 \x01(\tR\fpostIdentity\"\xc1\x05\n" +
"\bPostItem\x12\x1a\n" +
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
"\vpassport_id\x18\x02 \x01(\x03R\n" +
"passportId\x12+\n" +
"\x11passport_identity\x18\x03 \x01(\tR\x10passportIdentity\x124\n" +
"\x16category_identity_list\x18\x04 \x03(\tR\x14categoryIdentityList\x12,\n" +
"\x12tags_identity_list\x18\x05 \x03(\tR\x10tagsIdentityList\x12\x14\n" +
"\x05title\x18\x06 \x01(\tR\x05title\x12\x1d\n" +
"\n" +
"cover_path\x18\a \x01(\tR\tcoverPath\x12\x16\n" +
"\x06author\x18\b \x01(\tR\x06author\x12\x18\n" +
"\acontent\x18\t \x01(\tR\acontent\x12\x1d\n" +
"\n" +
"target_url\x18\n" +
" \x01(\tR\ttargetUrl\x12\x1d\n" +
"\n" +
"source_url\x18\v \x01(\tR\tsourceUrl\x12\x12\n" +
"\x04hits\x18\f \x01(\x03R\x04hits\x12\x1c\n" +
"\taccessory\x18\r \x03(\tR\taccessory\x12#\n" +
"\rhas_accessory\x18\x0e \x01(\bR\fhasAccessory\x12\x1d\n" +
"\n" +
"created_at\x18\x0f \x01(\tR\tcreatedAt\x12\x1d\n" +
"\n" +
"updated_at\x18\x10 \x01(\tR\tupdatedAt\x12 \n" +
"\vdescription\x18\x11 \x01(\tR\vdescription\x12\x1b\n" +
"\tlike_hits\x18\x12 \x01(\x03R\blikeHits\x12\x1f\n" +
"\vunlike_hits\x18\x13 \x01(\x03R\n" +
"unlikeHits\x12!\n" +
"\fcomment_hits\x18\x14 \x01(\x03R\vcommentHits\x12\x12\n" +
"\x04type\x18\x16 \x01(\x05R\x04type\x12\x16\n" +
"\x06rights\x18\x17 \x01(\tR\x06rights\"\xbd\x01\n" +
"\x0fPostListRequest\x12\x12\n" +
"\x04page\x18\x01 \x01(\x03R\x04page\x12\x12\n" +
"\x04size\x18\x02 \x01(\x03R\x04size\x12'\n" +
"\x0fauthor_identity\x18\x03 \x01(\tR\x0eauthorIdentity\x12+\n" +
"\x11category_identity\x18\x04 \x01(\tR\x10categoryIdentity\x12\x18\n" +
"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x12\n" +
"\x04type\x18\x06 \x01(\x05R\x04type\"L\n" +
"\rPostListReply\x12%\n" +
"\x04data\x18\x01 \x03(\v2\x11.content.PostItemR\x04data\x12\x14\n" +
"\x05count\x18\x02 \x01(\x03R\x05count\"U\n" +
"\x0eGetPostRequest\x12\x1a\n" +
"\bidentity\x18\x01 \x01(\tR\bidentity\x12'\n" +
"\x0fauthor_identity\x18\x02 \x01(\tR\x0eauthorIdentity\"\x81\x03\n" +
"\vCommentItem\x12\x1a\n" +
"\bidentity\x18\x01 \x01(\tR\bidentity\x12#\n" +
"\rPost_identity\x18\x02 \x01(\tR\fPostIdentity\x12'\n" +
"\x0fparent_identity\x18\x03 \x01(\tR\x0eparentIdentity\x12\x18\n" +
"\acontent\x18\x04 \x01(\tR\acontent\x12%\n" +
"\x0ereply_identity\x18\x05 \x01(\tR\rreplyIdentity\x12\x1d\n" +
"\n" +
"created_at\x18\x06 \x01(\tR\tcreatedAt\x12\x1d\n" +
"\n" +
"updated_at\x18\a \x01(\tR\tupdatedAt\x12(\n" +
"\x04list\x18\b \x03(\v2\x14.content.CommentItemR\x04list\x12\x1b\n" +
"\tlike_hits\x18\t \x01(\x03R\blikeHits\x12\x1f\n" +
"\vunlike_hits\x18\n" +
" \x01(\x03R\n" +
"unlikeHits\x12!\n" +
"\fcomment_hits\x18\v \x01(\x03R\vcommentHits\"a\n" +
"\x12CommentListRequest\x12#\n" +
"\rPost_identity\x18\x01 \x01(\tR\fPostIdentity\x12\x12\n" +
"\x04page\x18\x02 \x01(\x03R\x04page\x12\x12\n" +
"\x04size\x18\x03 \x01(\x03R\x04size\"U\n" +
"\x13CommentListResponse\x12(\n" +
"\x04list\x18\x01 \x03(\v2\x14.content.CommentItemR\x04list\x12\x14\n" +
"\x05count\x18\x02 \x01(\x03R\x05count\"]\n" +
"\x15PostOpIdentityRequest\x12#\n" +
"\rpost_identity\x18\x01 \x01(\tR\fpostIdentity\x12\x1f\n" +
"\vop_identity\x18\x02 \x01(\tR\n" +
"opIdentity\"f\n" +
"\x18CommentOpIdentityRequest\x12)\n" +
"\x10comment_identity\x18\x01 \x01(\tR\x0fcommentIdentity\x12\x1f\n" +
"\vop_identity\x18\x02 \x01(\tR\n" +
"opIdentity2\x9a\t\n" +
"\x04Post\x12>\n" +
"\bPostList\x12\x18.content.PostListRequest\x1a\x16.content.PostListReply\"\x00\x127\n" +
"\aGetPost\x12\x17.content.GetPostRequest\x1a\x11.content.PostItem\"\x00\x124\n" +
"\aAddPost\x12\x11.content.PostItem\x1a\x14.content.StatusReply\"\x00\x127\n" +
"\n" +
"ModifyPost\x12\x11.content.PostItem\x1a\x14.content.StatusReply\"\x00\x12;\n" +
"\n" +
"DeletePost\x12\x15.content.IdentRequest\x1a\x14.content.StatusReply\"\x00\x12F\n" +
"\fIncrPostLike\x12\x1e.content.PostOpIdentityRequest\x1a\x14.content.StatusReply\"\x00\x12F\n" +
"\fDescPostLike\x12\x1e.content.PostOpIdentityRequest\x1a\x14.content.StatusReply\"\x00\x12H\n" +
"\x0eIncrPostUnlike\x12\x1e.content.PostOpIdentityRequest\x1a\x14.content.StatusReply\"\x00\x12H\n" +
"\x0eDescPostUnlike\x12\x1e.content.PostOpIdentityRequest\x1a\x14.content.StatusReply\"\x00\x12J\n" +
"\vCommentList\x12\x1b.content.CommentListRequest\x1a\x1c.content.CommentListResponse\"\x00\x12:\n" +
"\n" +
"AddComment\x12\x14.content.CommentItem\x1a\x14.content.StatusReply\"\x00\x12=\n" +
"\rModifyComment\x12\x14.content.CommentItem\x1a\x14.content.StatusReply\"\x00\x12F\n" +
"\rDeleteComment\x12\x1d.content.DeleteCommentRequest\x1a\x14.content.StatusReply\"\x00\x12L\n" +
"\x0fIncrCommentLike\x12!.content.CommentOpIdentityRequest\x1a\x14.content.StatusReply\"\x00\x12L\n" +
"\x0fDescCommentLike\x12!.content.CommentOpIdentityRequest\x1a\x14.content.StatusReply\"\x00\x12N\n" +
"\x11IncrCommentUnlike\x12!.content.CommentOpIdentityRequest\x1a\x14.content.StatusReply\"\x00\x12N\n" +
"\x11DescCommentUnlike\x12!.content.CommentOpIdentityRequest\x1a\x14.content.StatusReply\"\x00B\fZ\n" +
"./;contentb\x06proto3"
var (
file_post_proto_rawDescOnce sync.Once
file_post_proto_rawDescData []byte
)
func file_post_proto_rawDescGZIP() []byte {
file_post_proto_rawDescOnce.Do(func() {
file_post_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_post_proto_rawDesc), len(file_post_proto_rawDesc)))
})
return file_post_proto_rawDescData
}
var file_post_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_post_proto_goTypes = []any{
(*DeleteCommentRequest)(nil), // 0: content.DeleteCommentRequest
(*PostItem)(nil), // 1: content.PostItem
(*PostListRequest)(nil), // 2: content.PostListRequest
(*PostListReply)(nil), // 3: content.PostListReply
(*GetPostRequest)(nil), // 4: content.GetPostRequest
(*CommentItem)(nil), // 5: content.CommentItem
(*CommentListRequest)(nil), // 6: content.CommentListRequest
(*CommentListResponse)(nil), // 7: content.CommentListResponse
(*PostOpIdentityRequest)(nil), // 8: content.PostOpIdentityRequest
(*CommentOpIdentityRequest)(nil), // 9: content.CommentOpIdentityRequest
(*IdentRequest)(nil), // 10: content.IdentRequest
(*StatusReply)(nil), // 11: content.StatusReply
}
var file_post_proto_depIdxs = []int32{
1, // 0: content.PostListReply.data:type_name -> content.PostItem
5, // 1: content.CommentItem.list:type_name -> content.CommentItem
5, // 2: content.CommentListResponse.list:type_name -> content.CommentItem
2, // 3: content.Post.PostList:input_type -> content.PostListRequest
4, // 4: content.Post.GetPost:input_type -> content.GetPostRequest
1, // 5: content.Post.AddPost:input_type -> content.PostItem
1, // 6: content.Post.ModifyPost:input_type -> content.PostItem
10, // 7: content.Post.DeletePost:input_type -> content.IdentRequest
8, // 8: content.Post.IncrPostLike:input_type -> content.PostOpIdentityRequest
8, // 9: content.Post.DescPostLike:input_type -> content.PostOpIdentityRequest
8, // 10: content.Post.IncrPostUnlike:input_type -> content.PostOpIdentityRequest
8, // 11: content.Post.DescPostUnlike:input_type -> content.PostOpIdentityRequest
6, // 12: content.Post.CommentList:input_type -> content.CommentListRequest
5, // 13: content.Post.AddComment:input_type -> content.CommentItem
5, // 14: content.Post.ModifyComment:input_type -> content.CommentItem
0, // 15: content.Post.DeleteComment:input_type -> content.DeleteCommentRequest
9, // 16: content.Post.IncrCommentLike:input_type -> content.CommentOpIdentityRequest
9, // 17: content.Post.DescCommentLike:input_type -> content.CommentOpIdentityRequest
9, // 18: content.Post.IncrCommentUnlike:input_type -> content.CommentOpIdentityRequest
9, // 19: content.Post.DescCommentUnlike:input_type -> content.CommentOpIdentityRequest
3, // 20: content.Post.PostList:output_type -> content.PostListReply
1, // 21: content.Post.GetPost:output_type -> content.PostItem
11, // 22: content.Post.AddPost:output_type -> content.StatusReply
11, // 23: content.Post.ModifyPost:output_type -> content.StatusReply
11, // 24: content.Post.DeletePost:output_type -> content.StatusReply
11, // 25: content.Post.IncrPostLike:output_type -> content.StatusReply
11, // 26: content.Post.DescPostLike:output_type -> content.StatusReply
11, // 27: content.Post.IncrPostUnlike:output_type -> content.StatusReply
11, // 28: content.Post.DescPostUnlike:output_type -> content.StatusReply
7, // 29: content.Post.CommentList:output_type -> content.CommentListResponse
11, // 30: content.Post.AddComment:output_type -> content.StatusReply
11, // 31: content.Post.ModifyComment:output_type -> content.StatusReply
11, // 32: content.Post.DeleteComment:output_type -> content.StatusReply
11, // 33: content.Post.IncrCommentLike:output_type -> content.StatusReply
11, // 34: content.Post.DescCommentLike:output_type -> content.StatusReply
11, // 35: content.Post.IncrCommentUnlike:output_type -> content.StatusReply
11, // 36: content.Post.DescCommentUnlike:output_type -> content.StatusReply
20, // [20:37] is the sub-list for method output_type
3, // [3:20] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_post_proto_init() }
func file_post_proto_init() {
if File_post_proto != nil {
return
}
file_blocks_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_post_proto_rawDesc), len(file_post_proto_rawDesc)),
NumEnums: 0,
NumMessages: 10,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_post_proto_goTypes,
DependencyIndexes: file_post_proto_depIdxs,
MessageInfos: file_post_proto_msgTypes,
}.Build()
File_post_proto = out.File
file_post_proto_goTypes = nil
file_post_proto_depIdxs = nil
}