refactor: centralize protobuf and remove go-zero

This commit is contained in:
2026-08-09 15:10:19 +08:00
parent 5cc5fd92ed
commit 4bbed3156c
357 changed files with 14208 additions and 19903 deletions

View File

@@ -1,12 +1,13 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc (unknown)
// source: post.proto
// protoc v7.35.0
// source: module/base/cms/proto/post.proto
package cms
import (
protobuf "bsm/full/protobuf"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
@@ -32,7 +33,7 @@ type DeleteCommentRequest struct {
func (x *DeleteCommentRequest) Reset() {
*x = DeleteCommentRequest{}
mi := &file_post_proto_msgTypes[0]
mi := &file_module_base_cms_proto_post_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -44,7 +45,7 @@ func (x *DeleteCommentRequest) String() string {
func (*DeleteCommentRequest) ProtoMessage() {}
func (x *DeleteCommentRequest) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[0]
mi := &file_module_base_cms_proto_post_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -57,7 +58,7 @@ func (x *DeleteCommentRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteCommentRequest.ProtoReflect.Descriptor instead.
func (*DeleteCommentRequest) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{0}
return file_module_base_cms_proto_post_proto_rawDescGZIP(), []int{0}
}
func (x *DeleteCommentRequest) GetIdentity() string {
@@ -84,7 +85,7 @@ type GetPostByKeyRequest struct {
func (x *GetPostByKeyRequest) Reset() {
*x = GetPostByKeyRequest{}
mi := &file_post_proto_msgTypes[1]
mi := &file_module_base_cms_proto_post_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -96,7 +97,7 @@ func (x *GetPostByKeyRequest) String() string {
func (*GetPostByKeyRequest) ProtoMessage() {}
func (x *GetPostByKeyRequest) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[1]
mi := &file_module_base_cms_proto_post_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -109,7 +110,7 @@ func (x *GetPostByKeyRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetPostByKeyRequest.ProtoReflect.Descriptor instead.
func (*GetPostByKeyRequest) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{1}
return file_module_base_cms_proto_post_proto_rawDescGZIP(), []int{1}
}
func (x *GetPostByKeyRequest) GetKey() string {
@@ -121,43 +122,41 @@ func (x *GetPostByKeyRequest) GetKey() string {
// 文章
type PostItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
SiteIdentity string `protobuf:"bytes,1,opt,name=site_identity,proto3" json:"site_identity,omitempty"`
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // 文章唯一标识
OwnerId int64 `protobuf:"varint,3,opt,name=owner_id,proto3" json:"owner_id,omitempty"` // 作者ID
OwnerIdentity string `protobuf:"bytes,4,opt,name=owner_identity,proto3" json:"owner_identity,omitempty"` // 作者唯一标识
CategoryIdentityArray []string `protobuf:"bytes,5,rep,name=category_identity_array,proto3" json:"category_identity_array,omitempty"` // <必传>,所属分类Identity 列表
TagsIdentityArray []string `protobuf:"bytes,6,rep,name=tags_identity_array,proto3" json:"tags_identity_array,omitempty"` // 标签集Identity 列表
Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"` // <必传>,标题
CoverPath string `protobuf:"bytes,8,opt,name=cover_path,proto3" json:"cover_path,omitempty"` //封面
Author string `protobuf:"bytes,9,opt,name=author,proto3" json:"author,omitempty"` // 作者
AuthorIdentity string `protobuf:"bytes,10,opt,name=author_identity,proto3" json:"author_identity,omitempty"`
Content string `protobuf:"bytes,11,opt,name=content,proto3" json:"content,omitempty"` // <必传>,内容
TargetUrl string `protobuf:"bytes,12,opt,name=target_url,proto3" json:"target_url,omitempty"` // 跳转目标地址
SourceUrl string `protobuf:"bytes,13,opt,name=source_url,proto3" json:"source_url,omitempty"` // 文章来源地址
Hits int64 `protobuf:"varint,14,opt,name=hits,proto3" json:"hits,omitempty"` //点击量
AccessoryIdentityArray []string `protobuf:"bytes,15,rep,name=accessory_identity_array,proto3" json:"accessory_identity_array,omitempty"` //附件Identity 列表
HasAccessory bool `protobuf:"varint,16,opt,name=has_accessory,proto3" json:"has_accessory,omitempty"` //是否有附件,默认没有
CreatedAt string `protobuf:"bytes,17,opt,name=created_at,proto3" json:"created_at,omitempty"` // 创建时间
UpdatedAt string `protobuf:"bytes,18,opt,name=updated_at,proto3" json:"updated_at,omitempty"` //更新时间
Description string `protobuf:"bytes,19,opt,name=description,proto3" json:"description,omitempty"` //简介
LikeHits int64 `protobuf:"varint,20,opt,name=like_hits,proto3" json:"like_hits,omitempty"` //点赞量
UnlikeHits int64 `protobuf:"varint,21,opt,name=unlike_hits,proto3" json:"unlike_hits,omitempty"` //点踩量
CommentHits int64 `protobuf:"varint,22,opt,name=comment_hits,proto3" json:"comment_hits,omitempty"` //评论量
PostType int32 `protobuf:"varint,23,opt,name=post_type,proto3" json:"post_type,omitempty"` // 用户自定义文章类型
Rights string `protobuf:"bytes,24,opt,name=rights,proto3" json:"rights,omitempty"` //权限
Key string `protobuf:"bytes,25,opt,name=key,proto3" json:"key,omitempty"` // <必传>,文章key
CategoryData []*CategoryItem `protobuf:"bytes,26,rep,name=category_data,proto3" json:"category_data,omitempty"` // 分类数据
TagsData []*TagsItem `protobuf:"bytes,27,rep,name=tags_data,proto3" json:"tags_data,omitempty"` // 标签数据
AccessoryData []*AccessoryItem `protobuf:"bytes,28,rep,name=accessory_data,proto3" json:"accessory_data,omitempty"` //附件数据
// ---- 以下字段来自 models.CmsPost为兼容保留旧字段号统一新增在末尾----
Lang string `protobuf:"bytes,29,opt,name=lang,proto3" json:"lang,omitempty"` // 语言
SourceOrigin string `protobuf:"bytes,30,opt,name=source_origin,proto3" json:"source_origin,omitempty"` // 来源方简称
ExtendUrl string `protobuf:"bytes,31,opt,name=extend_url,proto3" json:"extend_url,omitempty"` // 扩展:URL
ExtendData string `protobuf:"bytes,32,opt,name=extend_data,proto3" json:"extend_data,omitempty"` // 扩展:数据
ExtendImg string `protobuf:"bytes,33,opt,name=extend_img,proto3" json:"extend_img,omitempty"` // 扩展:图片
ExtendDesc string `protobuf:"bytes,34,opt,name=extend_desc,proto3" json:"extend_desc,omitempty"` // 扩展:描述
Published string `protobuf:"bytes,35,opt,name=published,proto3" json:"published,omitempty"` // 事件发生时间
state protoimpl.MessageState `protogen:"open.v1"`
SiteIdentity string `protobuf:"bytes,1,opt,name=site_identity,proto3" json:"site_identity,omitempty"`
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // 文章唯一标识
OwnerId int64 `protobuf:"varint,3,opt,name=owner_id,proto3" json:"owner_id,omitempty"` // 作者ID
OwnerIdentity string `protobuf:"bytes,4,opt,name=owner_identity,proto3" json:"owner_identity,omitempty"` // 作者唯一标识
CategoryIdentityArray []string `protobuf:"bytes,5,rep,name=category_identity_array,proto3" json:"category_identity_array,omitempty"` // <必传>,所属分类Identity 列表
TagsIdentityArray []string `protobuf:"bytes,6,rep,name=tags_identity_array,proto3" json:"tags_identity_array,omitempty"` // 标签集Identity 列表
Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"` // <必传>,标题
CoverPath string `protobuf:"bytes,8,opt,name=cover_path,proto3" json:"cover_path,omitempty"` //封面
Author string `protobuf:"bytes,9,opt,name=author,proto3" json:"author,omitempty"` // 作者
AuthorIdentity string `protobuf:"bytes,10,opt,name=author_identity,proto3" json:"author_identity,omitempty"`
Content string `protobuf:"bytes,11,opt,name=content,proto3" json:"content,omitempty"` // <必传>,内容
TargetUrl string `protobuf:"bytes,12,opt,name=target_url,proto3" json:"target_url,omitempty"` // 跳转目标地址
SourceUrl string `protobuf:"bytes,13,opt,name=source_url,proto3" json:"source_url,omitempty"` // 文章来源地址
Hits int64 `protobuf:"varint,14,opt,name=hits,proto3" json:"hits,omitempty"` //点击量
AccessoryIdentityArray []string `protobuf:"bytes,15,rep,name=accessory_identity_array,proto3" json:"accessory_identity_array,omitempty"` //附件Identity 列表
HasAccessory bool `protobuf:"varint,16,opt,name=has_accessory,proto3" json:"has_accessory,omitempty"` //是否有附件,默认没有
CreatedAt string `protobuf:"bytes,17,opt,name=created_at,proto3" json:"created_at,omitempty"` // 创建时间
UpdatedAt string `protobuf:"bytes,18,opt,name=updated_at,proto3" json:"updated_at,omitempty"` //更新时间
Description string `protobuf:"bytes,19,opt,name=description,proto3" json:"description,omitempty"` //简介
LikeHits int64 `protobuf:"varint,20,opt,name=like_hits,proto3" json:"like_hits,omitempty"` //点赞量
UnlikeHits int64 `protobuf:"varint,21,opt,name=unlike_hits,proto3" json:"unlike_hits,omitempty"` //点踩量
CommentHits int64 `protobuf:"varint,22,opt,name=comment_hits,proto3" json:"comment_hits,omitempty"` //评论量
PostType int32 `protobuf:"varint,23,opt,name=post_type,proto3" json:"post_type,omitempty"` // 用户自定义文章类型
Rights string `protobuf:"bytes,24,opt,name=rights,proto3" json:"rights,omitempty"` //权限
CategoryData []*protobuf.CmsCategoryItem `protobuf:"bytes,26,rep,name=category_data,proto3" json:"category_data,omitempty"` // 分类数据
TagsData []*protobuf.CmsTagsItem `protobuf:"bytes,27,rep,name=tags_data,proto3" json:"tags_data,omitempty"` // 标签数据
AccessoryData []*protobuf.CmsAccessoryItem `protobuf:"bytes,28,rep,name=accessory_data,proto3" json:"accessory_data,omitempty"` //附件数据
Lang string `protobuf:"bytes,29,opt,name=lang,proto3" json:"lang,omitempty"` // 语言
SourceOrigin string `protobuf:"bytes,30,opt,name=source_origin,proto3" json:"source_origin,omitempty"` // 来源方简称
ExtendUrl string `protobuf:"bytes,31,opt,name=extend_url,proto3" json:"extend_url,omitempty"` // 扩展URL
ExtendData string `protobuf:"bytes,32,opt,name=extend_data,proto3" json:"extend_data,omitempty"` // 扩展:数据
ExtendImg string `protobuf:"bytes,33,opt,name=extend_img,proto3" json:"extend_img,omitempty"` // 扩展:图片
ExtendDesc string `protobuf:"bytes,34,opt,name=extend_desc,proto3" json:"extend_desc,omitempty"` // 扩展:描述
Published string `protobuf:"bytes,35,opt,name=published,proto3" json:"published,omitempty"` // 事件发生时间
// 扩展文章唯一键值用于URL等
Hash string `protobuf:"bytes,36,opt,name=hash,proto3" json:"hash,omitempty"`
unknownFields protoimpl.UnknownFields
@@ -166,7 +165,7 @@ type PostItem struct {
func (x *PostItem) Reset() {
*x = PostItem{}
mi := &file_post_proto_msgTypes[2]
mi := &file_module_base_cms_proto_post_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -178,7 +177,7 @@ func (x *PostItem) String() string {
func (*PostItem) ProtoMessage() {}
func (x *PostItem) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[2]
mi := &file_module_base_cms_proto_post_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -191,7 +190,7 @@ func (x *PostItem) ProtoReflect() protoreflect.Message {
// Deprecated: Use PostItem.ProtoReflect.Descriptor instead.
func (*PostItem) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{2}
return file_module_base_cms_proto_post_proto_rawDescGZIP(), []int{2}
}
func (x *PostItem) GetSiteIdentity() string {
@@ -362,28 +361,21 @@ func (x *PostItem) GetRights() string {
return ""
}
func (x *PostItem) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *PostItem) GetCategoryData() []*CategoryItem {
func (x *PostItem) GetCategoryData() []*protobuf.CmsCategoryItem {
if x != nil {
return x.CategoryData
}
return nil
}
func (x *PostItem) GetTagsData() []*TagsItem {
func (x *PostItem) GetTagsData() []*protobuf.CmsTagsItem {
if x != nil {
return x.TagsData
}
return nil
}
func (x *PostItem) GetAccessoryData() []*AccessoryItem {
func (x *PostItem) GetAccessoryData() []*protobuf.CmsAccessoryItem {
if x != nil {
return x.AccessoryData
}
@@ -461,7 +453,7 @@ type PostListRequest struct {
func (x *PostListRequest) Reset() {
*x = PostListRequest{}
mi := &file_post_proto_msgTypes[3]
mi := &file_module_base_cms_proto_post_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -473,7 +465,7 @@ func (x *PostListRequest) String() string {
func (*PostListRequest) ProtoMessage() {}
func (x *PostListRequest) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[3]
mi := &file_module_base_cms_proto_post_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -486,7 +478,7 @@ func (x *PostListRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use PostListRequest.ProtoReflect.Descriptor instead.
func (*PostListRequest) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{3}
return file_module_base_cms_proto_post_proto_rawDescGZIP(), []int{3}
}
func (x *PostListRequest) GetPage() int64 {
@@ -542,7 +534,7 @@ type PostListReply struct {
func (x *PostListReply) Reset() {
*x = PostListReply{}
mi := &file_post_proto_msgTypes[4]
mi := &file_module_base_cms_proto_post_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -554,7 +546,7 @@ func (x *PostListReply) String() string {
func (*PostListReply) ProtoMessage() {}
func (x *PostListReply) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[4]
mi := &file_module_base_cms_proto_post_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -567,7 +559,7 @@ func (x *PostListReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use PostListReply.ProtoReflect.Descriptor instead.
func (*PostListReply) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{4}
return file_module_base_cms_proto_post_proto_rawDescGZIP(), []int{4}
}
func (x *PostListReply) GetData() []*PostItem {
@@ -595,7 +587,7 @@ type GetPostRequest struct {
func (x *GetPostRequest) Reset() {
*x = GetPostRequest{}
mi := &file_post_proto_msgTypes[5]
mi := &file_module_base_cms_proto_post_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -607,7 +599,7 @@ func (x *GetPostRequest) String() string {
func (*GetPostRequest) ProtoMessage() {}
func (x *GetPostRequest) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[5]
mi := &file_module_base_cms_proto_post_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -620,7 +612,7 @@ func (x *GetPostRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetPostRequest.ProtoReflect.Descriptor instead.
func (*GetPostRequest) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{5}
return file_module_base_cms_proto_post_proto_rawDescGZIP(), []int{5}
}
func (x *GetPostRequest) GetIdentity() string {
@@ -660,7 +652,7 @@ type CommentItem struct {
func (x *CommentItem) Reset() {
*x = CommentItem{}
mi := &file_post_proto_msgTypes[6]
mi := &file_module_base_cms_proto_post_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -672,7 +664,7 @@ func (x *CommentItem) String() string {
func (*CommentItem) ProtoMessage() {}
func (x *CommentItem) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[6]
mi := &file_module_base_cms_proto_post_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -685,7 +677,7 @@ func (x *CommentItem) ProtoReflect() protoreflect.Message {
// Deprecated: Use CommentItem.ProtoReflect.Descriptor instead.
func (*CommentItem) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{6}
return file_module_base_cms_proto_post_proto_rawDescGZIP(), []int{6}
}
func (x *CommentItem) GetIdentity() string {
@@ -798,7 +790,7 @@ type CommentListRequest struct {
func (x *CommentListRequest) Reset() {
*x = CommentListRequest{}
mi := &file_post_proto_msgTypes[7]
mi := &file_module_base_cms_proto_post_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -810,7 +802,7 @@ func (x *CommentListRequest) String() string {
func (*CommentListRequest) ProtoMessage() {}
func (x *CommentListRequest) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[7]
mi := &file_module_base_cms_proto_post_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -823,7 +815,7 @@ func (x *CommentListRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CommentListRequest.ProtoReflect.Descriptor instead.
func (*CommentListRequest) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{7}
return file_module_base_cms_proto_post_proto_rawDescGZIP(), []int{7}
}
func (x *CommentListRequest) GetPostIdentity() string {
@@ -858,7 +850,7 @@ type CommentListResponse struct {
func (x *CommentListResponse) Reset() {
*x = CommentListResponse{}
mi := &file_post_proto_msgTypes[8]
mi := &file_module_base_cms_proto_post_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -870,7 +862,7 @@ func (x *CommentListResponse) String() string {
func (*CommentListResponse) ProtoMessage() {}
func (x *CommentListResponse) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[8]
mi := &file_module_base_cms_proto_post_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -883,7 +875,7 @@ func (x *CommentListResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use CommentListResponse.ProtoReflect.Descriptor instead.
func (*CommentListResponse) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{8}
return file_module_base_cms_proto_post_proto_rawDescGZIP(), []int{8}
}
func (x *CommentListResponse) GetList() []*CommentItem {
@@ -911,7 +903,7 @@ type PostOpIdentityRequest struct {
func (x *PostOpIdentityRequest) Reset() {
*x = PostOpIdentityRequest{}
mi := &file_post_proto_msgTypes[9]
mi := &file_module_base_cms_proto_post_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -923,7 +915,7 @@ func (x *PostOpIdentityRequest) String() string {
func (*PostOpIdentityRequest) ProtoMessage() {}
func (x *PostOpIdentityRequest) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[9]
mi := &file_module_base_cms_proto_post_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -936,7 +928,7 @@ func (x *PostOpIdentityRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use PostOpIdentityRequest.ProtoReflect.Descriptor instead.
func (*PostOpIdentityRequest) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{9}
return file_module_base_cms_proto_post_proto_rawDescGZIP(), []int{9}
}
func (x *PostOpIdentityRequest) GetPostIdentity() string {
@@ -964,7 +956,7 @@ type CommentOpIdentityRequest struct {
func (x *CommentOpIdentityRequest) Reset() {
*x = CommentOpIdentityRequest{}
mi := &file_post_proto_msgTypes[10]
mi := &file_module_base_cms_proto_post_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -976,7 +968,7 @@ func (x *CommentOpIdentityRequest) String() string {
func (*CommentOpIdentityRequest) ProtoMessage() {}
func (x *CommentOpIdentityRequest) ProtoReflect() protoreflect.Message {
mi := &file_post_proto_msgTypes[10]
mi := &file_module_base_cms_proto_post_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -989,7 +981,7 @@ func (x *CommentOpIdentityRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CommentOpIdentityRequest.ProtoReflect.Descriptor instead.
func (*CommentOpIdentityRequest) Descriptor() ([]byte, []int) {
return file_post_proto_rawDescGZIP(), []int{10}
return file_module_base_cms_proto_post_proto_rawDescGZIP(), []int{10}
}
func (x *CommentOpIdentityRequest) GetCommentIdentity() string {
@@ -1006,12 +998,11 @@ func (x *CommentOpIdentityRequest) GetOpIdentity() string {
return ""
}
var File_post_proto protoreflect.FileDescriptor
var File_module_base_cms_proto_post_proto protoreflect.FileDescriptor
const file_post_proto_rawDesc = "" +
const file_module_base_cms_proto_post_proto_rawDesc = "" +
"\n" +
"\x13" +
"base/cms/post.proto\x12\x03cms\x1a\x10cms/blocks.proto\"X\n" +
" module/base/cms/proto/post.proto\x12\x03cms\x1a\x15protobuf/blocks.proto\"X\n" +
"\x14DeleteCommentRequest\x12\x1a\n" +
"\bidentity\x18\x01 \x01(\tR\bidentity\x12$\n" +
"\rpost_identity\x18\x02 \x01(\tR\rpost_identity\"'\n" +
@@ -1052,11 +1043,10 @@ const file_post_proto_rawDesc = "" +
"\vunlike_hits\x18\x15 \x01(\x03R\vunlike_hits\x12\"\n" +
"\fcomment_hits\x18\x16 \x01(\x03R\fcomment_hits\x12\x1c\n" +
"\tpost_type\x18\x17 \x01(\x05R\tpost_type\x12\x16\n" +
"\x06rights\x18\x18 \x01(\tR\x06rights\x12\x10\n" +
"\x03key\x18\x19 \x01(\tR\x03key\x127\n" +
"\rcategory_data\x18\x1a \x03(\v2\x11.cms.CategoryItemR\rcategory_data\x12+\n" +
"\ttags_data\x18\x1b \x03(\v2\r.cms.TagsItemR\ttags_data\x12:\n" +
"\x0eaccessory_data\x18\x1c \x03(\v2\x12.cms.AccessoryItemR\x0eaccessory_data\x12\x12\n" +
"\x06rights\x18\x18 \x01(\tR\x06rights\x12=\n" +
"\rcategory_data\x18\x1a \x03(\v2\x17.blocks.CmsCategoryItemR\rcategory_data\x121\n" +
"\ttags_data\x18\x1b \x03(\v2\x13.blocks.CmsTagsItemR\ttags_data\x12@\n" +
"\x0eaccessory_data\x18\x1c \x03(\v2\x18.blocks.CmsAccessoryItemR\x0eaccessory_data\x12\x12\n" +
"\x04lang\x18\x1d \x01(\tR\x04lang\x12$\n" +
"\rsource_origin\x18\x1e \x01(\tR\rsource_origin\x12\x1e\n" +
"\n" +
@@ -1116,75 +1106,75 @@ const file_post_proto_rawDesc = "" +
"\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" +
"\vop_identity\x18\x02 \x01(\tR\vop_identity2\xaa\t\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" +
"\bGetByKey\x12\x18.cms.GetPostByKeyRequest\x1a\r.cms.PostItem\"\x00\x128\n" +
"\x06Search\x12\x18.blocks.CmsSearchRequest\x1a\x12.cms.PostListReply\"\x00\x12.\n" +
"\x06Create\x12\r.cms.PostItem\x1a\x13.blocks.StatusReply\"\x00\x12.\n" +
"\x06Modify\x12\r.cms.PostItem\x1a\x13.blocks.StatusReply\"\x00\x125\n" +
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\"\x00\x12A\n" +
"\fIncrPostLike\x12\x1a.cms.PostOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12A\n" +
"\fDescPostLike\x12\x1a.cms.PostOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12C\n" +
"\x0eIncrPostUnlike\x12\x1a.cms.PostOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12C\n" +
"\x0eDescPostUnlike\x12\x1a.cms.PostOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12B\n" +
"\vCommentList\x12\x17.cms.CommentListRequest\x1a\x18.cms.CommentListResponse\"\x00\x125\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"
"AddComment\x12\x10.cms.CommentItem\x1a\x13.blocks.StatusReply\"\x00\x128\n" +
"\rModifyComment\x12\x10.cms.CommentItem\x1a\x13.blocks.StatusReply\"\x00\x12A\n" +
"\rDeleteComment\x12\x19.cms.DeleteCommentRequest\x1a\x13.blocks.StatusReply\"\x00\x12G\n" +
"\x0fIncrCommentLike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12G\n" +
"\x0fDescCommentLike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12I\n" +
"\x11IncrCommentUnlike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00\x12I\n" +
"\x11DescCommentUnlike\x12\x1d.cms.CommentOpIdentityRequest\x1a\x13.blocks.StatusReply\"\x00B!Z\x1fbsm/full/module/base/cms/pb;cmsb\x06proto3"
var (
file_post_proto_rawDescOnce sync.Once
file_post_proto_rawDescData []byte
file_module_base_cms_proto_post_proto_rawDescOnce sync.Once
file_module_base_cms_proto_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)))
func file_module_base_cms_proto_post_proto_rawDescGZIP() []byte {
file_module_base_cms_proto_post_proto_rawDescOnce.Do(func() {
file_module_base_cms_proto_post_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_base_cms_proto_post_proto_rawDesc), len(file_module_base_cms_proto_post_proto_rawDesc)))
})
return file_post_proto_rawDescData
return file_module_base_cms_proto_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_module_base_cms_proto_post_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_module_base_cms_proto_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
(*protobuf.CmsCategoryItem)(nil), // 11: blocks.CmsCategoryItem
(*protobuf.CmsTagsItem)(nil), // 12: blocks.CmsTagsItem
(*protobuf.CmsAccessoryItem)(nil), // 13: blocks.CmsAccessoryItem
(*protobuf.CmsSearchRequest)(nil), // 14: blocks.CmsSearchRequest
(*protobuf.IdentRequest)(nil), // 15: blocks.IdentRequest
(*protobuf.StatusReply)(nil), // 16: blocks.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
var file_module_base_cms_proto_post_proto_depIdxs = []int32{
11, // 0: cms.PostItem.category_data:type_name -> blocks.CmsCategoryItem
12, // 1: cms.PostItem.tags_data:type_name -> blocks.CmsTagsItem
13, // 2: cms.PostItem.accessory_data:type_name -> blocks.CmsAccessoryItem
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
14, // 9: cms.Post.Search:input_type -> blocks.CmsSearchRequest
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
15, // 12: cms.Post.Delete:input_type -> blocks.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
@@ -1201,21 +1191,21 @@ var file_post_proto_depIdxs = []int32{
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
16, // 29: cms.Post.Create:output_type -> blocks.StatusReply
16, // 30: cms.Post.Modify:output_type -> blocks.StatusReply
16, // 31: cms.Post.Delete:output_type -> blocks.StatusReply
16, // 32: cms.Post.IncrPostLike:output_type -> blocks.StatusReply
16, // 33: cms.Post.DescPostLike:output_type -> blocks.StatusReply
16, // 34: cms.Post.IncrPostUnlike:output_type -> blocks.StatusReply
16, // 35: cms.Post.DescPostUnlike:output_type -> blocks.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
16, // 37: cms.Post.AddComment:output_type -> blocks.StatusReply
16, // 38: cms.Post.ModifyComment:output_type -> blocks.StatusReply
16, // 39: cms.Post.DeleteComment:output_type -> blocks.StatusReply
16, // 40: cms.Post.IncrCommentLike:output_type -> blocks.StatusReply
16, // 41: cms.Post.DescCommentLike:output_type -> blocks.StatusReply
16, // 42: cms.Post.IncrCommentUnlike:output_type -> blocks.StatusReply
16, // 43: cms.Post.DescCommentUnlike:output_type -> blocks.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
@@ -1223,27 +1213,26 @@ var file_post_proto_depIdxs = []int32{
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 {
func init() { file_module_base_cms_proto_post_proto_init() }
func file_module_base_cms_proto_post_proto_init() {
if File_module_base_cms_proto_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)),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_base_cms_proto_post_proto_rawDesc), len(file_module_base_cms_proto_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,
GoTypes: file_module_base_cms_proto_post_proto_goTypes,
DependencyIndexes: file_module_base_cms_proto_post_proto_depIdxs,
MessageInfos: file_module_base_cms_proto_post_proto_msgTypes,
}.Build()
File_post_proto = out.File
file_post_proto_goTypes = nil
file_post_proto_depIdxs = nil
File_module_base_cms_proto_post_proto = out.File
file_module_base_cms_proto_post_proto_goTypes = nil
file_module_base_cms_proto_post_proto_depIdxs = nil
}