1163 lines
		
	
	
		
			38 KiB
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			1163 lines
		
	
	
		
			38 KiB
		
	
	
	
		
			Go
		
	
	
	
| // Code generated by protoc-gen-go. DO NOT EDIT.
 | |
| // versions:
 | |
| // 	protoc-gen-go v1.36.8
 | |
| // 	protoc        (unknown)
 | |
| // source: post.proto
 | |
| 
 | |
| package cms
 | |
| 
 | |
| 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,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 ""
 | |
| }
 | |
| 
 | |
| // 根据KEY获取内容请求
 | |
| type GetPostByKeyRequest struct {
 | |
| 	state         protoimpl.MessageState `protogen:"open.v1"`
 | |
| 	Key           string                 `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` //<必传> 内容页的key
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| }
 | |
| 
 | |
| func (x *GetPostByKeyRequest) Reset() {
 | |
| 	*x = GetPostByKeyRequest{}
 | |
| 	mi := &file_post_proto_msgTypes[1]
 | |
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 	ms.StoreMessageInfo(mi)
 | |
| }
 | |
| 
 | |
| func (x *GetPostByKeyRequest) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*GetPostByKeyRequest) ProtoMessage() {}
 | |
| 
 | |
| func (x *GetPostByKeyRequest) 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 GetPostByKeyRequest.ProtoReflect.Descriptor instead.
 | |
| func (*GetPostByKeyRequest) Descriptor() ([]byte, []int) {
 | |
| 	return file_post_proto_rawDescGZIP(), []int{1}
 | |
| }
 | |
| 
 | |
| func (x *GetPostByKeyRequest) GetKey() string {
 | |
| 	if x != nil {
 | |
| 		return x.Key
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| // 文章
 | |
| type PostItem struct {
 | |
| 	state                  protoimpl.MessageState `protogen:"open.v1"`
 | |
| 	Identity               string                 `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`                               // 文章唯一标识
 | |
| 	OwnerId                int64                  `protobuf:"varint,2,opt,name=owner_id,proto3" json:"owner_id,omitempty"`                              // 作者ID
 | |
| 	OwnerIdentity          string                 `protobuf:"bytes,3,opt,name=owner_identity,proto3" json:"owner_identity,omitempty"`                   // 作者唯一标识
 | |
| 	CategoryIdentityArray  []string               `protobuf:"bytes,4,rep,name=category_identity_array,proto3" json:"category_identity_array,omitempty"` // <必传>,所属分类Identity 列表
 | |
| 	TagsIdentityArray      []string               `protobuf:"bytes,5,rep,name=tags_identity_array,proto3" json:"tags_identity_array,omitempty"`         // 标签集Identity 列表
 | |
| 	Title                  string                 `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"`                                     // <必传>,标题
 | |
| 	CoverPath              string                 `protobuf:"bytes,7,opt,name=cover_path,proto3" json:"cover_path,omitempty"`                           //封面
 | |
| 	Author                 string                 `protobuf:"bytes,8,opt,name=author,proto3" json:"author,omitempty"`                                   // 作者
 | |
| 	AuthorIdentity         string                 `protobuf:"bytes,9,opt,name=author_identity,proto3" json:"author_identity,omitempty"`
 | |
| 	Cms                    string                 `protobuf:"bytes,10,opt,name=Cms,proto3" json:"Cms,omitempty"`                                           // <必传>,内容
 | |
| 	TargetUrl              string                 `protobuf:"bytes,11,opt,name=target_url,proto3" json:"target_url,omitempty"`                             // 跳转目标地址
 | |
| 	SourceUrl              string                 `protobuf:"bytes,12,opt,name=source_url,proto3" json:"source_url,omitempty"`                             // 文章来源地址
 | |
| 	Hits                   int64                  `protobuf:"varint,13,opt,name=hits,proto3" json:"hits,omitempty"`                                        //点击量
 | |
| 	AccessoryIdentityArray []string               `protobuf:"bytes,14,rep,name=accessory_identity_array,proto3" json:"accessory_identity_array,omitempty"` //附件Identity 列表
 | |
| 	HasAccessory           bool                   `protobuf:"varint,15,opt,name=has_accessory,proto3" json:"has_accessory,omitempty"`                      //是否有附件,默认没有
 | |
| 	CreatedAt              string                 `protobuf:"bytes,16,opt,name=created_at,proto3" json:"created_at,omitempty"`                             // 创建时间
 | |
| 	UpdatedAt              string                 `protobuf:"bytes,17,opt,name=updated_at,proto3" json:"updated_at,omitempty"`                             //更新时间
 | |
| 	Description            string                 `protobuf:"bytes,18,opt,name=description,proto3" json:"description,omitempty"`                           //简介
 | |
| 	LikeHits               int64                  `protobuf:"varint,19,opt,name=like_hits,proto3" json:"like_hits,omitempty"`                              //点赞量
 | |
| 	UnlikeHits             int64                  `protobuf:"varint,20,opt,name=unlike_hits,proto3" json:"unlike_hits,omitempty"`                          //点踩量
 | |
| 	CommentHits            int64                  `protobuf:"varint,21,opt,name=comment_hits,proto3" json:"comment_hits,omitempty"`                        //评论量
 | |
| 	PostType               int32                  `protobuf:"varint,22,opt,name=post_type,proto3" json:"post_type,omitempty"`                              // 用户自定义文章类型
 | |
| 	Rights                 string                 `protobuf:"bytes,23,opt,name=rights,proto3" json:"rights,omitempty"`                                     //权限
 | |
| 	Key                    string                 `protobuf:"bytes,24,opt,name=key,proto3" json:"key,omitempty"`                                           // <必传>,文章key
 | |
| 	CategoryData           []*CategoryItem        `protobuf:"bytes,25,rep,name=category_data,proto3" json:"category_data,omitempty"`                       // 分类数据
 | |
| 	TagsData               []*TagsItem            `protobuf:"bytes,26,rep,name=tags_data,proto3" json:"tags_data,omitempty"`                               // 标签数据
 | |
| 	AccessoryData          []*AccessoryItem       `protobuf:"bytes,27,rep,name=accessory_data,proto3" json:"accessory_data,omitempty"`                     //附件数据
 | |
| 	unknownFields          protoimpl.UnknownFields
 | |
| 	sizeCache              protoimpl.SizeCache
 | |
| }
 | |
| 
 | |
| func (x *PostItem) Reset() {
 | |
| 	*x = PostItem{}
 | |
| 	mi := &file_post_proto_msgTypes[2]
 | |
| 	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[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 PostItem.ProtoReflect.Descriptor instead.
 | |
| func (*PostItem) Descriptor() ([]byte, []int) {
 | |
| 	return file_post_proto_rawDescGZIP(), []int{2}
 | |
| }
 | |
| 
 | |
| func (x *PostItem) GetIdentity() string {
 | |
| 	if x != nil {
 | |
| 		return x.Identity
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *PostItem) GetOwnerId() int64 {
 | |
| 	if x != nil {
 | |
| 		return x.OwnerId
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| func (x *PostItem) GetOwnerIdentity() string {
 | |
| 	if x != nil {
 | |
| 		return x.OwnerIdentity
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *PostItem) GetCategoryIdentityArray() []string {
 | |
| 	if x != nil {
 | |
| 		return x.CategoryIdentityArray
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (x *PostItem) GetTagsIdentityArray() []string {
 | |
| 	if x != nil {
 | |
| 		return x.TagsIdentityArray
 | |
| 	}
 | |
| 	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) GetAuthorIdentity() string {
 | |
| 	if x != nil {
 | |
| 		return x.AuthorIdentity
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *PostItem) GetCms() string {
 | |
| 	if x != nil {
 | |
| 		return x.Cms
 | |
| 	}
 | |
| 	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) GetAccessoryIdentityArray() []string {
 | |
| 	if x != nil {
 | |
| 		return x.AccessoryIdentityArray
 | |
| 	}
 | |
| 	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) GetPostType() int32 {
 | |
| 	if x != nil {
 | |
| 		return x.PostType
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| func (x *PostItem) GetRights() string {
 | |
| 	if x != nil {
 | |
| 		return x.Rights
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *PostItem) GetKey() string {
 | |
| 	if x != nil {
 | |
| 		return x.Key
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *PostItem) GetCategoryData() []*CategoryItem {
 | |
| 	if x != nil {
 | |
| 		return x.CategoryData
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (x *PostItem) GetTagsData() []*TagsItem {
 | |
| 	if x != nil {
 | |
| 		return x.TagsData
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (x *PostItem) GetAccessoryData() []*AccessoryItem {
 | |
| 	if x != nil {
 | |
| 		return x.AccessoryData
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| // 文章列表请求
 | |
| 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,proto3" json:"author_identity,omitempty"`     //发布者唯一标识,可选
 | |
| 	CategoryIdentity string                 `protobuf:"bytes,4,opt,name=category_identity,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[3]
 | |
| 	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[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 PostListRequest.ProtoReflect.Descriptor instead.
 | |
| func (*PostListRequest) Descriptor() ([]byte, []int) {
 | |
| 	return file_post_proto_rawDescGZIP(), []int{3}
 | |
| }
 | |
| 
 | |
| 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[4]
 | |
| 	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[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 PostListReply.ProtoReflect.Descriptor instead.
 | |
| func (*PostListReply) Descriptor() ([]byte, []int) {
 | |
| 	return file_post_proto_rawDescGZIP(), []int{4}
 | |
| }
 | |
| 
 | |
| 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,proto3" json:"author_identity,omitempty"` // 必传作者唯一标识
 | |
| 	unknownFields  protoimpl.UnknownFields
 | |
| 	sizeCache      protoimpl.SizeCache
 | |
| }
 | |
| 
 | |
| func (x *GetPostRequest) Reset() {
 | |
| 	*x = GetPostRequest{}
 | |
| 	mi := &file_post_proto_msgTypes[5]
 | |
| 	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[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 GetPostRequest.ProtoReflect.Descriptor instead.
 | |
| func (*GetPostRequest) Descriptor() ([]byte, []int) {
 | |
| 	return file_post_proto_rawDescGZIP(), []int{5}
 | |
| }
 | |
| 
 | |
| 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,proto3" json:"post_identity,omitempty"`    // 文章唯一标识
 | |
| 	ParentId      int64                  `protobuf:"varint,3,opt,name=parent_id,proto3" json:"parent_id,omitempty"`           // 为空表示顶级评论
 | |
| 	Cms           string                 `protobuf:"bytes,4,opt,name=Cms,proto3" json:"Cms,omitempty"`                        // 评论内容
 | |
| 	ReplyIdentity string                 `protobuf:"bytes,5,opt,name=reply_identity,proto3" json:"reply_identity,omitempty"`  // 回复者唯一 标识
 | |
| 	CreatedAt     string                 `protobuf:"bytes,6,opt,name=created_at,proto3" json:"created_at,omitempty"`          // 创建时间
 | |
| 	UpdatedAt     string                 `protobuf:"bytes,7,opt,name=updated_at,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,proto3" json:"like_hits,omitempty"`           // 点赞量
 | |
| 	UnlikeHits    int64                  `protobuf:"varint,10,opt,name=unlike_hits,proto3" json:"unlike_hits,omitempty"`      // 点踩量
 | |
| 	CommentHits   int64                  `protobuf:"varint,11,opt,name=comment_hits,proto3" json:"comment_hits,omitempty"`    // 评论量
 | |
| 	OwnerName     string                 `protobuf:"bytes,12,opt,name=owner_name,proto3" json:"owner_name,omitempty"`         // 作者名称
 | |
| 	OwnerIdentity string                 `protobuf:"bytes,13,opt,name=owner_identity,proto3" json:"owner_identity,omitempty"` //  作者标识
 | |
| 	Role          string                 `protobuf:"bytes,14,opt,name=role,proto3" json:"role,omitempty"`                     // 角色
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| }
 | |
| 
 | |
| func (x *CommentItem) Reset() {
 | |
| 	*x = CommentItem{}
 | |
| 	mi := &file_post_proto_msgTypes[6]
 | |
| 	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[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 CommentItem.ProtoReflect.Descriptor instead.
 | |
| func (*CommentItem) Descriptor() ([]byte, []int) {
 | |
| 	return file_post_proto_rawDescGZIP(), []int{6}
 | |
| }
 | |
| 
 | |
| 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) GetParentId() int64 {
 | |
| 	if x != nil {
 | |
| 		return x.ParentId
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| func (x *CommentItem) GetCms() string {
 | |
| 	if x != nil {
 | |
| 		return x.Cms
 | |
| 	}
 | |
| 	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
 | |
| }
 | |
| 
 | |
| func (x *CommentItem) GetOwnerName() string {
 | |
| 	if x != nil {
 | |
| 		return x.OwnerName
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *CommentItem) GetOwnerIdentity() string {
 | |
| 	if x != nil {
 | |
| 		return x.OwnerIdentity
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *CommentItem) GetRole() string {
 | |
| 	if x != nil {
 | |
| 		return x.Role
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| // 评论列表
 | |
| type CommentListRequest struct {
 | |
| 	state         protoimpl.MessageState `protogen:"open.v1"`
 | |
| 	PostIdentity  string                 `protobuf:"bytes,1,opt,name=post_identity,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[7]
 | |
| 	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[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 CommentListRequest.ProtoReflect.Descriptor instead.
 | |
| func (*CommentListRequest) Descriptor() ([]byte, []int) {
 | |
| 	return file_post_proto_rawDescGZIP(), []int{7}
 | |
| }
 | |
| 
 | |
| 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[8]
 | |
| 	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[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 CommentListResponse.ProtoReflect.Descriptor instead.
 | |
| func (*CommentListResponse) Descriptor() ([]byte, []int) {
 | |
| 	return file_post_proto_rawDescGZIP(), []int{8}
 | |
| }
 | |
| 
 | |
| 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,proto3" json:"post_identity,omitempty"` //必传 文章唯一标识
 | |
| 	OpIdentity    string                 `protobuf:"bytes,2,opt,name=op_identity,proto3" json:"op_identity,omitempty"`     // 必传 操作者唯一标识
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| }
 | |
| 
 | |
| func (x *PostOpIdentityRequest) Reset() {
 | |
| 	*x = PostOpIdentityRequest{}
 | |
| 	mi := &file_post_proto_msgTypes[9]
 | |
| 	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[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 PostOpIdentityRequest.ProtoReflect.Descriptor instead.
 | |
| func (*PostOpIdentityRequest) Descriptor() ([]byte, []int) {
 | |
| 	return file_post_proto_rawDescGZIP(), []int{9}
 | |
| }
 | |
| 
 | |
| 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,proto3" json:"comment_identity,omitempty"` //必填 评论唯一标识
 | |
| 	OpIdentity      string                 `protobuf:"bytes,2,opt,name=op_identity,proto3" json:"op_identity,omitempty"`           //必填 操作者唯一标识
 | |
| 	unknownFields   protoimpl.UnknownFields
 | |
| 	sizeCache       protoimpl.SizeCache
 | |
| }
 | |
| 
 | |
| func (x *CommentOpIdentityRequest) Reset() {
 | |
| 	*x = CommentOpIdentityRequest{}
 | |
| 	mi := &file_post_proto_msgTypes[10]
 | |
| 	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[10]
 | |
| 	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{10}
 | |
| }
 | |
| 
 | |
| 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\x03cms\x1a\fblocks.proto\"X\n" +
 | |
| 	"\x14DeleteCommentRequest\x12\x1a\n" +
 | |
| 	"\bidentity\x18\x01 \x01(\tR\bidentity\x12$\n" +
 | |
| 	"\rpost_identity\x18\x02 \x01(\tR\rpost_identity\"'\n" +
 | |
| 	"\x13GetPostByKeyRequest\x12\x10\n" +
 | |
| 	"\x03key\x18\x03 \x01(\tR\x03key\"\xc6\a\n" +
 | |
| 	"\bPostItem\x12\x1a\n" +
 | |
| 	"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1a\n" +
 | |
| 	"\bowner_id\x18\x02 \x01(\x03R\bowner_id\x12&\n" +
 | |
| 	"\x0eowner_identity\x18\x03 \x01(\tR\x0eowner_identity\x128\n" +
 | |
| 	"\x17category_identity_array\x18\x04 \x03(\tR\x17category_identity_array\x120\n" +
 | |
| 	"\x13tags_identity_array\x18\x05 \x03(\tR\x13tags_identity_array\x12\x14\n" +
 | |
| 	"\x05title\x18\x06 \x01(\tR\x05title\x12\x1e\n" +
 | |
| 	"\n" +
 | |
| 	"cover_path\x18\a \x01(\tR\n" +
 | |
| 	"cover_path\x12\x16\n" +
 | |
| 	"\x06author\x18\b \x01(\tR\x06author\x12(\n" +
 | |
| 	"\x0fauthor_identity\x18\t \x01(\tR\x0fauthor_identity\x12\x10\n" +
 | |
| 	"\x03Cms\x18\n" +
 | |
| 	" \x01(\tR\x03Cms\x12\x1e\n" +
 | |
| 	"\n" +
 | |
| 	"target_url\x18\v \x01(\tR\n" +
 | |
| 	"target_url\x12\x1e\n" +
 | |
| 	"\n" +
 | |
| 	"source_url\x18\f \x01(\tR\n" +
 | |
| 	"source_url\x12\x12\n" +
 | |
| 	"\x04hits\x18\r \x01(\x03R\x04hits\x12:\n" +
 | |
| 	"\x18accessory_identity_array\x18\x0e \x03(\tR\x18accessory_identity_array\x12$\n" +
 | |
| 	"\rhas_accessory\x18\x0f \x01(\bR\rhas_accessory\x12\x1e\n" +
 | |
| 	"\n" +
 | |
| 	"created_at\x18\x10 \x01(\tR\n" +
 | |
| 	"created_at\x12\x1e\n" +
 | |
| 	"\n" +
 | |
| 	"updated_at\x18\x11 \x01(\tR\n" +
 | |
| 	"updated_at\x12 \n" +
 | |
| 	"\vdescription\x18\x12 \x01(\tR\vdescription\x12\x1c\n" +
 | |
| 	"\tlike_hits\x18\x13 \x01(\x03R\tlike_hits\x12 \n" +
 | |
| 	"\vunlike_hits\x18\x14 \x01(\x03R\vunlike_hits\x12\"\n" +
 | |
| 	"\fcomment_hits\x18\x15 \x01(\x03R\fcomment_hits\x12\x1c\n" +
 | |
| 	"\tpost_type\x18\x16 \x01(\x05R\tpost_type\x12\x16\n" +
 | |
| 	"\x06rights\x18\x17 \x01(\tR\x06rights\x12\x10\n" +
 | |
| 	"\x03key\x18\x18 \x01(\tR\x03key\x127\n" +
 | |
| 	"\rcategory_data\x18\x19 \x03(\v2\x11.cms.CategoryItemR\rcategory_data\x12+\n" +
 | |
| 	"\ttags_data\x18\x1a \x03(\v2\r.cms.TagsItemR\ttags_data\x12:\n" +
 | |
| 	"\x0eaccessory_data\x18\x1b \x03(\v2\x12.cms.AccessoryItemR\x0eaccessory_data\"\xbf\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\x0fauthor_identity\x12,\n" +
 | |
| 	"\x11category_identity\x18\x04 \x01(\tR\x11category_identity\x12\x18\n" +
 | |
| 	"\akeyword\x18\x05 \x01(\tR\akeyword\x12\x12\n" +
 | |
| 	"\x04type\x18\x06 \x01(\x05R\x04type\"H\n" +
 | |
| 	"\rPostListReply\x12!\n" +
 | |
| 	"\x04data\x18\x01 \x03(\v2\r.cms.PostItemR\x04data\x12\x14\n" +
 | |
| 	"\x05count\x18\x02 \x01(\x03R\x05count\"V\n" +
 | |
| 	"\x0eGetPostRequest\x12\x1a\n" +
 | |
| 	"\bidentity\x18\x01 \x01(\tR\bidentity\x12(\n" +
 | |
| 	"\x0fauthor_identity\x18\x02 \x01(\tR\x0fauthor_identity\"\xcd\x03\n" +
 | |
| 	"\vCommentItem\x12\x1a\n" +
 | |
| 	"\bidentity\x18\x01 \x01(\tR\bidentity\x12$\n" +
 | |
| 	"\rpost_identity\x18\x02 \x01(\tR\rpost_identity\x12\x1c\n" +
 | |
| 	"\tparent_id\x18\x03 \x01(\x03R\tparent_id\x12\x10\n" +
 | |
| 	"\x03Cms\x18\x04 \x01(\tR\x03Cms\x12&\n" +
 | |
| 	"\x0ereply_identity\x18\x05 \x01(\tR\x0ereply_identity\x12\x1e\n" +
 | |
| 	"\n" +
 | |
| 	"created_at\x18\x06 \x01(\tR\n" +
 | |
| 	"created_at\x12\x1e\n" +
 | |
| 	"\n" +
 | |
| 	"updated_at\x18\a \x01(\tR\n" +
 | |
| 	"updated_at\x12$\n" +
 | |
| 	"\x04list\x18\b \x03(\v2\x10.cms.CommentItemR\x04list\x12\x1c\n" +
 | |
| 	"\tlike_hits\x18\t \x01(\x03R\tlike_hits\x12 \n" +
 | |
| 	"\vunlike_hits\x18\n" +
 | |
| 	" \x01(\x03R\vunlike_hits\x12\"\n" +
 | |
| 	"\fcomment_hits\x18\v \x01(\x03R\fcomment_hits\x12\x1e\n" +
 | |
| 	"\n" +
 | |
| 	"owner_name\x18\f \x01(\tR\n" +
 | |
| 	"owner_name\x12&\n" +
 | |
| 	"\x0eowner_identity\x18\r \x01(\tR\x0eowner_identity\x12\x12\n" +
 | |
| 	"\x04role\x18\x0e \x01(\tR\x04role\"b\n" +
 | |
| 	"\x12CommentListRequest\x12$\n" +
 | |
| 	"\rpost_identity\x18\x01 \x01(\tR\rpost_identity\x12\x12\n" +
 | |
| 	"\x04page\x18\x02 \x01(\x03R\x04page\x12\x12\n" +
 | |
| 	"\x04size\x18\x03 \x01(\x03R\x04size\"Q\n" +
 | |
| 	"\x13CommentListResponse\x12$\n" +
 | |
| 	"\x04list\x18\x01 \x03(\v2\x10.cms.CommentItemR\x04list\x12\x14\n" +
 | |
| 	"\x05count\x18\x02 \x01(\x03R\x05count\"_\n" +
 | |
| 	"\x15PostOpIdentityRequest\x12$\n" +
 | |
| 	"\rpost_identity\x18\x01 \x01(\tR\rpost_identity\x12 \n" +
 | |
| 	"\vop_identity\x18\x02 \x01(\tR\vop_identity\"h\n" +
 | |
| 	"\x18CommentOpIdentityRequest\x12*\n" +
 | |
| 	"\x10comment_identity\x18\x01 \x01(\tR\x10comment_identity\x12 \n" +
 | |
| 	"\vop_identity\x18\x02 \x01(\tR\vop_identity2\xf7\b\n" +
 | |
| 	"\x04Post\x123\n" +
 | |
| 	"\x05Fetch\x12\x14.cms.PostListRequest\x1a\x12.cms.PostListReply\"\x00\x125\n" +
 | |
| 	"\rGetByIdentity\x12\x13.cms.GetPostRequest\x1a\r.cms.PostItem\"\x00\x125\n" +
 | |
| 	"\bGetByKey\x12\x18.cms.GetPostByKeyRequest\x1a\r.cms.PostItem\"\x00\x122\n" +
 | |
| 	"\x06Search\x12\x12.cms.SearchRequest\x1a\x12.cms.PostListReply\"\x00\x12+\n" +
 | |
| 	"\x06Create\x12\r.cms.PostItem\x1a\x10.cms.StatusReply\"\x00\x12+\n" +
 | |
| 	"\x06Modify\x12\r.cms.PostItem\x1a\x10.cms.StatusReply\"\x00\x12/\n" +
 | |
| 	"\x06Delete\x12\x11.cms.IdentRequest\x1a\x10.cms.StatusReply\"\x00\x12>\n" +
 | |
| 	"\fIncrPostLike\x12\x1a.cms.PostOpIdentityRequest\x1a\x10.cms.StatusReply\"\x00\x12>\n" +
 | |
| 	"\fDescPostLike\x12\x1a.cms.PostOpIdentityRequest\x1a\x10.cms.StatusReply\"\x00\x12@\n" +
 | |
| 	"\x0eIncrPostUnlike\x12\x1a.cms.PostOpIdentityRequest\x1a\x10.cms.StatusReply\"\x00\x12@\n" +
 | |
| 	"\x0eDescPostUnlike\x12\x1a.cms.PostOpIdentityRequest\x1a\x10.cms.StatusReply\"\x00\x12B\n" +
 | |
| 	"\vCommentList\x12\x17.cms.CommentListRequest\x1a\x18.cms.CommentListResponse\"\x00\x122\n" +
 | |
| 	"\n" +
 | |
| 	"AddComment\x12\x10.cms.CommentItem\x1a\x10.cms.StatusReply\"\x00\x125\n" +
 | |
| 	"\rModifyComment\x12\x10.cms.CommentItem\x1a\x10.cms.StatusReply\"\x00\x12>\n" +
 | |
| 	"\rDeleteComment\x12\x19.cms.DeleteCommentRequest\x1a\x10.cms.StatusReply\"\x00\x12D\n" +
 | |
| 	"\x0fIncrCommentLike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x10.cms.StatusReply\"\x00\x12D\n" +
 | |
| 	"\x0fDescCommentLike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x10.cms.StatusReply\"\x00\x12F\n" +
 | |
| 	"\x11IncrCommentUnlike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x10.cms.StatusReply\"\x00\x12F\n" +
 | |
| 	"\x11DescCommentUnlike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x10.cms.StatusReply\"\x00B\aZ\x05.;cmsb\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, 11)
 | |
| var file_post_proto_goTypes = []any{
 | |
| 	(*DeleteCommentRequest)(nil),     // 0: cms.DeleteCommentRequest
 | |
| 	(*GetPostByKeyRequest)(nil),      // 1: cms.GetPostByKeyRequest
 | |
| 	(*PostItem)(nil),                 // 2: cms.PostItem
 | |
| 	(*PostListRequest)(nil),          // 3: cms.PostListRequest
 | |
| 	(*PostListReply)(nil),            // 4: cms.PostListReply
 | |
| 	(*GetPostRequest)(nil),           // 5: cms.GetPostRequest
 | |
| 	(*CommentItem)(nil),              // 6: cms.CommentItem
 | |
| 	(*CommentListRequest)(nil),       // 7: cms.CommentListRequest
 | |
| 	(*CommentListResponse)(nil),      // 8: cms.CommentListResponse
 | |
| 	(*PostOpIdentityRequest)(nil),    // 9: cms.PostOpIdentityRequest
 | |
| 	(*CommentOpIdentityRequest)(nil), // 10: cms.CommentOpIdentityRequest
 | |
| 	(*CategoryItem)(nil),             // 11: cms.CategoryItem
 | |
| 	(*TagsItem)(nil),                 // 12: cms.TagsItem
 | |
| 	(*AccessoryItem)(nil),            // 13: cms.AccessoryItem
 | |
| 	(*SearchRequest)(nil),            // 14: cms.SearchRequest
 | |
| 	(*IdentRequest)(nil),             // 15: cms.IdentRequest
 | |
| 	(*StatusReply)(nil),              // 16: cms.StatusReply
 | |
| }
 | |
| var file_post_proto_depIdxs = []int32{
 | |
| 	11, // 0: cms.PostItem.category_data:type_name -> cms.CategoryItem
 | |
| 	12, // 1: cms.PostItem.tags_data:type_name -> cms.TagsItem
 | |
| 	13, // 2: cms.PostItem.accessory_data:type_name -> cms.AccessoryItem
 | |
| 	2,  // 3: cms.PostListReply.data:type_name -> cms.PostItem
 | |
| 	6,  // 4: cms.CommentItem.list:type_name -> cms.CommentItem
 | |
| 	6,  // 5: cms.CommentListResponse.list:type_name -> cms.CommentItem
 | |
| 	3,  // 6: cms.Post.Fetch:input_type -> cms.PostListRequest
 | |
| 	5,  // 7: cms.Post.GetByIdentity:input_type -> cms.GetPostRequest
 | |
| 	1,  // 8: cms.Post.GetByKey:input_type -> cms.GetPostByKeyRequest
 | |
| 	14, // 9: cms.Post.Search:input_type -> cms.SearchRequest
 | |
| 	2,  // 10: cms.Post.Create:input_type -> cms.PostItem
 | |
| 	2,  // 11: cms.Post.Modify:input_type -> cms.PostItem
 | |
| 	15, // 12: cms.Post.Delete:input_type -> cms.IdentRequest
 | |
| 	9,  // 13: cms.Post.IncrPostLike:input_type -> cms.PostOpIdentityRequest
 | |
| 	9,  // 14: cms.Post.DescPostLike:input_type -> cms.PostOpIdentityRequest
 | |
| 	9,  // 15: cms.Post.IncrPostUnlike:input_type -> cms.PostOpIdentityRequest
 | |
| 	9,  // 16: cms.Post.DescPostUnlike:input_type -> cms.PostOpIdentityRequest
 | |
| 	7,  // 17: cms.Post.CommentList:input_type -> cms.CommentListRequest
 | |
| 	6,  // 18: cms.Post.AddComment:input_type -> cms.CommentItem
 | |
| 	6,  // 19: cms.Post.ModifyComment:input_type -> cms.CommentItem
 | |
| 	0,  // 20: cms.Post.DeleteComment:input_type -> cms.DeleteCommentRequest
 | |
| 	10, // 21: cms.Post.IncrCommentLike:input_type -> cms.CommentOpIdentityRequest
 | |
| 	10, // 22: cms.Post.DescCommentLike:input_type -> cms.CommentOpIdentityRequest
 | |
| 	10, // 23: cms.Post.IncrCommentUnlike:input_type -> cms.CommentOpIdentityRequest
 | |
| 	10, // 24: cms.Post.DescCommentUnlike:input_type -> cms.CommentOpIdentityRequest
 | |
| 	4,  // 25: cms.Post.Fetch:output_type -> cms.PostListReply
 | |
| 	2,  // 26: cms.Post.GetByIdentity:output_type -> cms.PostItem
 | |
| 	2,  // 27: cms.Post.GetByKey:output_type -> cms.PostItem
 | |
| 	4,  // 28: cms.Post.Search:output_type -> cms.PostListReply
 | |
| 	16, // 29: cms.Post.Create:output_type -> cms.StatusReply
 | |
| 	16, // 30: cms.Post.Modify:output_type -> cms.StatusReply
 | |
| 	16, // 31: cms.Post.Delete:output_type -> cms.StatusReply
 | |
| 	16, // 32: cms.Post.IncrPostLike:output_type -> cms.StatusReply
 | |
| 	16, // 33: cms.Post.DescPostLike:output_type -> cms.StatusReply
 | |
| 	16, // 34: cms.Post.IncrPostUnlike:output_type -> cms.StatusReply
 | |
| 	16, // 35: cms.Post.DescPostUnlike:output_type -> cms.StatusReply
 | |
| 	8,  // 36: cms.Post.CommentList:output_type -> cms.CommentListResponse
 | |
| 	16, // 37: cms.Post.AddComment:output_type -> cms.StatusReply
 | |
| 	16, // 38: cms.Post.ModifyComment:output_type -> cms.StatusReply
 | |
| 	16, // 39: cms.Post.DeleteComment:output_type -> cms.StatusReply
 | |
| 	16, // 40: cms.Post.IncrCommentLike:output_type -> cms.StatusReply
 | |
| 	16, // 41: cms.Post.DescCommentLike:output_type -> cms.StatusReply
 | |
| 	16, // 42: cms.Post.IncrCommentUnlike:output_type -> cms.StatusReply
 | |
| 	16, // 43: cms.Post.DescCommentUnlike:output_type -> cms.StatusReply
 | |
| 	25, // [25:44] is the sub-list for method output_type
 | |
| 	6,  // [6:25] is the sub-list for method input_type
 | |
| 	6,  // [6:6] is the sub-list for extension type_name
 | |
| 	6,  // [6:6] is the sub-list for extension extendee
 | |
| 	0,  // [0:6] 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:   11,
 | |
| 			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
 | |
| }
 |