refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc (unknown)
|
||||
// source: site.proto
|
||||
// protoc v7.35.0
|
||||
// source: module/base/cms/proto/site.proto
|
||||
|
||||
package cms
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
@@ -34,7 +35,7 @@ type SiteListReply struct {
|
||||
|
||||
func (x *SiteListReply) Reset() {
|
||||
*x = SiteListReply{}
|
||||
mi := &file_site_proto_msgTypes[0]
|
||||
mi := &file_module_base_cms_proto_site_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -46,7 +47,7 @@ func (x *SiteListReply) String() string {
|
||||
func (*SiteListReply) ProtoMessage() {}
|
||||
|
||||
func (x *SiteListReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_site_proto_msgTypes[0]
|
||||
mi := &file_module_base_cms_proto_site_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -59,7 +60,7 @@ func (x *SiteListReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use SiteListReply.ProtoReflect.Descriptor instead.
|
||||
func (*SiteListReply) Descriptor() ([]byte, []int) {
|
||||
return file_site_proto_rawDescGZIP(), []int{0}
|
||||
return file_module_base_cms_proto_site_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *SiteListReply) GetData() []*SiteItem {
|
||||
@@ -95,7 +96,7 @@ type SiteItem struct {
|
||||
|
||||
func (x *SiteItem) Reset() {
|
||||
*x = SiteItem{}
|
||||
mi := &file_site_proto_msgTypes[1]
|
||||
mi := &file_module_base_cms_proto_site_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -107,7 +108,7 @@ func (x *SiteItem) String() string {
|
||||
func (*SiteItem) ProtoMessage() {}
|
||||
|
||||
func (x *SiteItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_site_proto_msgTypes[1]
|
||||
mi := &file_module_base_cms_proto_site_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -120,7 +121,7 @@ func (x *SiteItem) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use SiteItem.ProtoReflect.Descriptor instead.
|
||||
func (*SiteItem) Descriptor() ([]byte, []int) {
|
||||
return file_site_proto_rawDescGZIP(), []int{1}
|
||||
return file_module_base_cms_proto_site_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *SiteItem) GetId() int64 {
|
||||
@@ -193,12 +194,11 @@ func (x *SiteItem) GetConfigs() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_site_proto protoreflect.FileDescriptor
|
||||
var File_module_base_cms_proto_site_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_site_proto_rawDesc = "" +
|
||||
const file_module_base_cms_proto_site_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x13" +
|
||||
"base/cms/site.proto\x12\x03cms\x1a\x10cms/blocks.proto\"H\n" +
|
||||
" module/base/cms/proto/site.proto\x12\x03cms\x1a\x15protobuf/blocks.proto\"H\n" +
|
||||
"\rSiteListReply\x12!\n" +
|
||||
"\x04data\x18\x01 \x03(\v2\r.cms.SiteItemR\x04data\x12\x14\n" +
|
||||
"\x05count\x18\x02 \x01(\x03R\x05count\"\x82\x02\n" +
|
||||
@@ -213,47 +213,46 @@ const file_site_proto_rawDesc = "" +
|
||||
"\x03seo\x18\b \x01(\tR\x03seo\x12\x14\n" +
|
||||
"\x05theme\x18\t \x01(\tR\x05theme\x12\x18\n" +
|
||||
"\aconfigs\x18\n" +
|
||||
" \x01(\tR\aconfigs2\xe7\x01\n" +
|
||||
"\x04Site\x12)\n" +
|
||||
"\x05Fetch\x12\n" +
|
||||
".cms.Empty\x1a\x12.cms.SiteListReply\"\x00\x12)\n" +
|
||||
"\x03Get\x12\x11.cms.IdentRequest\x1a\r.cms.SiteItem\"\x00\x12+\n" +
|
||||
"\x06Create\x12\r.cms.SiteItem\x1a\x10.cms.StatusReply\"\x00\x12+\n" +
|
||||
"\x06Modify\x12\r.cms.SiteItem\x1a\x10.cms.StatusReply\"\x00\x12/\n" +
|
||||
"\x06Delete\x12\x11.cms.IdentRequest\x1a\x10.cms.StatusReply\"\x00B\aZ\x05.;cmsb\x06proto3"
|
||||
" \x01(\tR\aconfigs2\xf9\x01\n" +
|
||||
"\x04Site\x12,\n" +
|
||||
"\x05Fetch\x12\r.blocks.Empty\x1a\x12.cms.SiteListReply\"\x00\x12,\n" +
|
||||
"\x03Get\x12\x14.blocks.IdentRequest\x1a\r.cms.SiteItem\"\x00\x12.\n" +
|
||||
"\x06Create\x12\r.cms.SiteItem\x1a\x13.blocks.StatusReply\"\x00\x12.\n" +
|
||||
"\x06Modify\x12\r.cms.SiteItem\x1a\x13.blocks.StatusReply\"\x00\x125\n" +
|
||||
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\"\x00B!Z\x1fbsm/full/module/base/cms/pb;cmsb\x06proto3"
|
||||
|
||||
var (
|
||||
file_site_proto_rawDescOnce sync.Once
|
||||
file_site_proto_rawDescData []byte
|
||||
file_module_base_cms_proto_site_proto_rawDescOnce sync.Once
|
||||
file_module_base_cms_proto_site_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_site_proto_rawDescGZIP() []byte {
|
||||
file_site_proto_rawDescOnce.Do(func() {
|
||||
file_site_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_site_proto_rawDesc), len(file_site_proto_rawDesc)))
|
||||
func file_module_base_cms_proto_site_proto_rawDescGZIP() []byte {
|
||||
file_module_base_cms_proto_site_proto_rawDescOnce.Do(func() {
|
||||
file_module_base_cms_proto_site_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_base_cms_proto_site_proto_rawDesc), len(file_module_base_cms_proto_site_proto_rawDesc)))
|
||||
})
|
||||
return file_site_proto_rawDescData
|
||||
return file_module_base_cms_proto_site_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_site_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_site_proto_goTypes = []any{
|
||||
(*SiteListReply)(nil), // 0: cms.SiteListReply
|
||||
(*SiteItem)(nil), // 1: cms.SiteItem
|
||||
(*Empty)(nil), // 2: cms.Empty
|
||||
(*IdentRequest)(nil), // 3: cms.IdentRequest
|
||||
(*StatusReply)(nil), // 4: cms.StatusReply
|
||||
var file_module_base_cms_proto_site_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_module_base_cms_proto_site_proto_goTypes = []any{
|
||||
(*SiteListReply)(nil), // 0: cms.SiteListReply
|
||||
(*SiteItem)(nil), // 1: cms.SiteItem
|
||||
(*protobuf.Empty)(nil), // 2: blocks.Empty
|
||||
(*protobuf.IdentRequest)(nil), // 3: blocks.IdentRequest
|
||||
(*protobuf.StatusReply)(nil), // 4: blocks.StatusReply
|
||||
}
|
||||
var file_site_proto_depIdxs = []int32{
|
||||
var file_module_base_cms_proto_site_proto_depIdxs = []int32{
|
||||
1, // 0: cms.SiteListReply.data:type_name -> cms.SiteItem
|
||||
2, // 1: cms.Site.Fetch:input_type -> cms.Empty
|
||||
3, // 2: cms.Site.Get:input_type -> cms.IdentRequest
|
||||
2, // 1: cms.Site.Fetch:input_type -> blocks.Empty
|
||||
3, // 2: cms.Site.Get:input_type -> blocks.IdentRequest
|
||||
1, // 3: cms.Site.Create:input_type -> cms.SiteItem
|
||||
1, // 4: cms.Site.Modify:input_type -> cms.SiteItem
|
||||
3, // 5: cms.Site.Delete:input_type -> cms.IdentRequest
|
||||
3, // 5: cms.Site.Delete:input_type -> blocks.IdentRequest
|
||||
0, // 6: cms.Site.Fetch:output_type -> cms.SiteListReply
|
||||
1, // 7: cms.Site.Get:output_type -> cms.SiteItem
|
||||
4, // 8: cms.Site.Create:output_type -> cms.StatusReply
|
||||
4, // 9: cms.Site.Modify:output_type -> cms.StatusReply
|
||||
4, // 10: cms.Site.Delete:output_type -> cms.StatusReply
|
||||
4, // 8: cms.Site.Create:output_type -> blocks.StatusReply
|
||||
4, // 9: cms.Site.Modify:output_type -> blocks.StatusReply
|
||||
4, // 10: cms.Site.Delete:output_type -> blocks.StatusReply
|
||||
6, // [6:11] is the sub-list for method output_type
|
||||
1, // [1:6] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
@@ -261,27 +260,26 @@ var file_site_proto_depIdxs = []int32{
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_site_proto_init() }
|
||||
func file_site_proto_init() {
|
||||
if File_site_proto != nil {
|
||||
func init() { file_module_base_cms_proto_site_proto_init() }
|
||||
func file_module_base_cms_proto_site_proto_init() {
|
||||
if File_module_base_cms_proto_site_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_site_proto_rawDesc), len(file_site_proto_rawDesc)),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_base_cms_proto_site_proto_rawDesc), len(file_module_base_cms_proto_site_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_site_proto_goTypes,
|
||||
DependencyIndexes: file_site_proto_depIdxs,
|
||||
MessageInfos: file_site_proto_msgTypes,
|
||||
GoTypes: file_module_base_cms_proto_site_proto_goTypes,
|
||||
DependencyIndexes: file_module_base_cms_proto_site_proto_depIdxs,
|
||||
MessageInfos: file_module_base_cms_proto_site_proto_msgTypes,
|
||||
}.Build()
|
||||
File_site_proto = out.File
|
||||
file_site_proto_goTypes = nil
|
||||
file_site_proto_depIdxs = nil
|
||||
File_module_base_cms_proto_site_proto = out.File
|
||||
file_module_base_cms_proto_site_proto_goTypes = nil
|
||||
file_module_base_cms_proto_site_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user