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.8
// protoc (unknown)
// source: category.proto
// protoc-gen-go v1.36.11
// protoc v7.35.0
// source: module/ec/mall/proto/category.proto
package mall
import (
protobuf "bsm/full/protobuf"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
@@ -33,7 +34,7 @@ type CategoryFetchRequest struct {
func (x *CategoryFetchRequest) Reset() {
*x = CategoryFetchRequest{}
mi := &file_category_proto_msgTypes[0]
mi := &file_module_ec_mall_proto_category_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -45,7 +46,7 @@ func (x *CategoryFetchRequest) String() string {
func (*CategoryFetchRequest) ProtoMessage() {}
func (x *CategoryFetchRequest) ProtoReflect() protoreflect.Message {
mi := &file_category_proto_msgTypes[0]
mi := &file_module_ec_mall_proto_category_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -58,7 +59,7 @@ func (x *CategoryFetchRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CategoryFetchRequest.ProtoReflect.Descriptor instead.
func (*CategoryFetchRequest) Descriptor() ([]byte, []int) {
return file_category_proto_rawDescGZIP(), []int{0}
return file_module_ec_mall_proto_category_proto_rawDescGZIP(), []int{0}
}
func (x *CategoryFetchRequest) GetTypes() string {
@@ -99,7 +100,7 @@ type CategoryReply struct {
func (x *CategoryReply) Reset() {
*x = CategoryReply{}
mi := &file_category_proto_msgTypes[1]
mi := &file_module_ec_mall_proto_category_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -111,7 +112,7 @@ func (x *CategoryReply) String() string {
func (*CategoryReply) ProtoMessage() {}
func (x *CategoryReply) ProtoReflect() protoreflect.Message {
mi := &file_category_proto_msgTypes[1]
mi := &file_module_ec_mall_proto_category_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -124,7 +125,7 @@ func (x *CategoryReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use CategoryReply.ProtoReflect.Descriptor instead.
func (*CategoryReply) Descriptor() ([]byte, []int) {
return file_category_proto_rawDescGZIP(), []int{1}
return file_module_ec_mall_proto_category_proto_rawDescGZIP(), []int{1}
}
func (x *CategoryReply) GetCount() int64 {
@@ -162,7 +163,7 @@ type CategoryItem struct {
func (x *CategoryItem) Reset() {
*x = CategoryItem{}
mi := &file_category_proto_msgTypes[2]
mi := &file_module_ec_mall_proto_category_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -174,7 +175,7 @@ func (x *CategoryItem) String() string {
func (*CategoryItem) ProtoMessage() {}
func (x *CategoryItem) ProtoReflect() protoreflect.Message {
mi := &file_category_proto_msgTypes[2]
mi := &file_module_ec_mall_proto_category_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -187,7 +188,7 @@ func (x *CategoryItem) ProtoReflect() protoreflect.Message {
// Deprecated: Use CategoryItem.ProtoReflect.Descriptor instead.
func (*CategoryItem) Descriptor() ([]byte, []int) {
return file_category_proto_rawDescGZIP(), []int{2}
return file_module_ec_mall_proto_category_proto_rawDescGZIP(), []int{2}
}
func (x *CategoryItem) GetId() int64 {
@@ -281,11 +282,11 @@ func (x *CategoryItem) GetKeys() string {
return ""
}
var File_category_proto protoreflect.FileDescriptor
var File_module_ec_mall_proto_category_proto protoreflect.FileDescriptor
const file_category_proto_rawDesc = "" +
const file_module_ec_mall_proto_category_proto_rawDesc = "" +
"\n" +
"\x16ec/mall/category.proto\x12\x04mall\x1a\x11mall/blocks.proto\"\x80\x01\n" +
"#module/ec/mall/proto/category.proto\x12\x04mall\x1a\x15protobuf/blocks.proto\"\x80\x01\n" +
"\x14CategoryFetchRequest\x12\x14\n" +
"\x05types\x18\x01 \x01(\tR\x05types\x12\x1a\n" +
"\bkeywords\x18\x02 \x01(\tR\bkeywords\x12\x0e\n" +
@@ -312,44 +313,44 @@ const file_category_proto_rawDesc = "" +
"\n" +
"categories\x18\f \x03(\v2\x12.mall.CategoryItemR\n" +
"categories\x12\x12\n" +
"\x04keys\x18\r \x01(\tR\x04keys2\xdf\x01\n" +
"\x04keys\x18\r \x01(\tR\x04keys2\xff\x01\n" +
"\bCategory\x12:\n" +
"\x05Fetch\x12\x1a.mall.CategoryFetchRequest\x1a\x13.mall.CategoryReply\"\x00\x121\n" +
"\x06Create\x12\x12.mall.CategoryItem\x1a\x11.mall.StatusReply\"\x00\x121\n" +
"\x06Delete\x12\x12.mall.IdentRequest\x1a\x11.mall.StatusReply\"\x00\x121\n" +
"\x06Modify\x12\x12.mall.CategoryItem\x1a\x11.mall.StatusReply\"\x00B\bZ\x06.;mallb\x06proto3"
"\x05Fetch\x12\x1a.mall.CategoryFetchRequest\x1a\x13.mall.CategoryReply\"\x00\x12;\n" +
"\x06Create\x12\x12.mall.CategoryItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12=\n" +
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12;\n" +
"\x06Modify\x12\x12.mall.CategoryItem\x1a\x1b.blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
var (
file_category_proto_rawDescOnce sync.Once
file_category_proto_rawDescData []byte
file_module_ec_mall_proto_category_proto_rawDescOnce sync.Once
file_module_ec_mall_proto_category_proto_rawDescData []byte
)
func file_category_proto_rawDescGZIP() []byte {
file_category_proto_rawDescOnce.Do(func() {
file_category_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_category_proto_rawDesc), len(file_category_proto_rawDesc)))
func file_module_ec_mall_proto_category_proto_rawDescGZIP() []byte {
file_module_ec_mall_proto_category_proto_rawDescOnce.Do(func() {
file_module_ec_mall_proto_category_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_ec_mall_proto_category_proto_rawDesc), len(file_module_ec_mall_proto_category_proto_rawDesc)))
})
return file_category_proto_rawDescData
return file_module_ec_mall_proto_category_proto_rawDescData
}
var file_category_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_category_proto_goTypes = []any{
(*CategoryFetchRequest)(nil), // 0: mall.CategoryFetchRequest
(*CategoryReply)(nil), // 1: mall.CategoryReply
(*CategoryItem)(nil), // 2: mall.CategoryItem
(*IdentRequest)(nil), // 3: mall.IdentRequest
(*StatusReply)(nil), // 4: mall.StatusReply
var file_module_ec_mall_proto_category_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_module_ec_mall_proto_category_proto_goTypes = []any{
(*CategoryFetchRequest)(nil), // 0: mall.CategoryFetchRequest
(*CategoryReply)(nil), // 1: mall.CategoryReply
(*CategoryItem)(nil), // 2: mall.CategoryItem
(*protobuf.IdentRequest)(nil), // 3: blocks.IdentRequest
(*protobuf.IdentityStatusReply)(nil), // 4: blocks.IdentityStatusReply
}
var file_category_proto_depIdxs = []int32{
var file_module_ec_mall_proto_category_proto_depIdxs = []int32{
2, // 0: mall.CategoryReply.data:type_name -> mall.CategoryItem
2, // 1: mall.CategoryItem.categories:type_name -> mall.CategoryItem
0, // 2: mall.Category.Fetch:input_type -> mall.CategoryFetchRequest
2, // 3: mall.Category.Create:input_type -> mall.CategoryItem
3, // 4: mall.Category.Delete:input_type -> mall.IdentRequest
3, // 4: mall.Category.Delete:input_type -> blocks.IdentRequest
2, // 5: mall.Category.Modify:input_type -> mall.CategoryItem
1, // 6: mall.Category.Fetch:output_type -> mall.CategoryReply
4, // 7: mall.Category.Create:output_type -> mall.StatusReply
4, // 8: mall.Category.Delete:output_type -> mall.StatusReply
4, // 9: mall.Category.Modify:output_type -> mall.StatusReply
4, // 7: mall.Category.Create:output_type -> blocks.IdentityStatusReply
4, // 8: mall.Category.Delete:output_type -> blocks.IdentityStatusReply
4, // 9: mall.Category.Modify:output_type -> blocks.IdentityStatusReply
6, // [6:10] is the sub-list for method output_type
2, // [2:6] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
@@ -357,27 +358,26 @@ var file_category_proto_depIdxs = []int32{
0, // [0:2] is the sub-list for field type_name
}
func init() { file_category_proto_init() }
func file_category_proto_init() {
if File_category_proto != nil {
func init() { file_module_ec_mall_proto_category_proto_init() }
func file_module_ec_mall_proto_category_proto_init() {
if File_module_ec_mall_proto_category_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_category_proto_rawDesc), len(file_category_proto_rawDesc)),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_ec_mall_proto_category_proto_rawDesc), len(file_module_ec_mall_proto_category_proto_rawDesc)),
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_category_proto_goTypes,
DependencyIndexes: file_category_proto_depIdxs,
MessageInfos: file_category_proto_msgTypes,
GoTypes: file_module_ec_mall_proto_category_proto_goTypes,
DependencyIndexes: file_module_ec_mall_proto_category_proto_depIdxs,
MessageInfos: file_module_ec_mall_proto_category_proto_msgTypes,
}.Build()
File_category_proto = out.File
file_category_proto_goTypes = nil
file_category_proto_depIdxs = nil
File_module_ec_mall_proto_category_proto = out.File
file_module_ec_mall_proto_category_proto_goTypes = nil
file_module_ec_mall_proto_category_proto_depIdxs = nil
}