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.8
|
||||
// protoc (unknown)
|
||||
// source: freight.proto
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc v7.35.0
|
||||
// source: module/ec/mall/proto/freight.proto
|
||||
|
||||
package mall
|
||||
|
||||
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 DenyRegionItem struct {
|
||||
|
||||
func (x *DenyRegionItem) Reset() {
|
||||
*x = DenyRegionItem{}
|
||||
mi := &file_freight_proto_msgTypes[0]
|
||||
mi := &file_module_ec_mall_proto_freight_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -46,7 +47,7 @@ func (x *DenyRegionItem) String() string {
|
||||
func (*DenyRegionItem) ProtoMessage() {}
|
||||
|
||||
func (x *DenyRegionItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_freight_proto_msgTypes[0]
|
||||
mi := &file_module_ec_mall_proto_freight_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -59,7 +60,7 @@ func (x *DenyRegionItem) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use DenyRegionItem.ProtoReflect.Descriptor instead.
|
||||
func (*DenyRegionItem) Descriptor() ([]byte, []int) {
|
||||
return file_freight_proto_rawDescGZIP(), []int{0}
|
||||
return file_module_ec_mall_proto_freight_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *DenyRegionItem) GetId() int64 {
|
||||
@@ -114,7 +115,7 @@ type FreightItem struct {
|
||||
|
||||
func (x *FreightItem) Reset() {
|
||||
*x = FreightItem{}
|
||||
mi := &file_freight_proto_msgTypes[1]
|
||||
mi := &file_module_ec_mall_proto_freight_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -126,7 +127,7 @@ func (x *FreightItem) String() string {
|
||||
func (*FreightItem) ProtoMessage() {}
|
||||
|
||||
func (x *FreightItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_freight_proto_msgTypes[1]
|
||||
mi := &file_module_ec_mall_proto_freight_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -139,7 +140,7 @@ func (x *FreightItem) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use FreightItem.ProtoReflect.Descriptor instead.
|
||||
func (*FreightItem) Descriptor() ([]byte, []int) {
|
||||
return file_freight_proto_rawDescGZIP(), []int{1}
|
||||
return file_module_ec_mall_proto_freight_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *FreightItem) GetId() int64 {
|
||||
@@ -216,7 +217,7 @@ type RegionItem struct {
|
||||
|
||||
func (x *RegionItem) Reset() {
|
||||
*x = RegionItem{}
|
||||
mi := &file_freight_proto_msgTypes[2]
|
||||
mi := &file_module_ec_mall_proto_freight_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -228,7 +229,7 @@ func (x *RegionItem) String() string {
|
||||
func (*RegionItem) ProtoMessage() {}
|
||||
|
||||
func (x *RegionItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_freight_proto_msgTypes[2]
|
||||
mi := &file_module_ec_mall_proto_freight_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -241,7 +242,7 @@ func (x *RegionItem) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use RegionItem.ProtoReflect.Descriptor instead.
|
||||
func (*RegionItem) Descriptor() ([]byte, []int) {
|
||||
return file_freight_proto_rawDescGZIP(), []int{2}
|
||||
return file_module_ec_mall_proto_freight_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *RegionItem) GetId() int32 {
|
||||
@@ -284,7 +285,7 @@ type FreightAttrItem struct {
|
||||
|
||||
func (x *FreightAttrItem) Reset() {
|
||||
*x = FreightAttrItem{}
|
||||
mi := &file_freight_proto_msgTypes[3]
|
||||
mi := &file_module_ec_mall_proto_freight_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -296,7 +297,7 @@ func (x *FreightAttrItem) String() string {
|
||||
func (*FreightAttrItem) ProtoMessage() {}
|
||||
|
||||
func (x *FreightAttrItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_freight_proto_msgTypes[3]
|
||||
mi := &file_module_ec_mall_proto_freight_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -309,7 +310,7 @@ func (x *FreightAttrItem) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use FreightAttrItem.ProtoReflect.Descriptor instead.
|
||||
func (*FreightAttrItem) Descriptor() ([]byte, []int) {
|
||||
return file_freight_proto_rawDescGZIP(), []int{3}
|
||||
return file_module_ec_mall_proto_freight_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *FreightAttrItem) GetId() int64 {
|
||||
@@ -399,7 +400,7 @@ type FreightReply struct {
|
||||
|
||||
func (x *FreightReply) Reset() {
|
||||
*x = FreightReply{}
|
||||
mi := &file_freight_proto_msgTypes[4]
|
||||
mi := &file_module_ec_mall_proto_freight_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -411,7 +412,7 @@ func (x *FreightReply) String() string {
|
||||
func (*FreightReply) ProtoMessage() {}
|
||||
|
||||
func (x *FreightReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_freight_proto_msgTypes[4]
|
||||
mi := &file_module_ec_mall_proto_freight_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -424,7 +425,7 @@ func (x *FreightReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use FreightReply.ProtoReflect.Descriptor instead.
|
||||
func (*FreightReply) Descriptor() ([]byte, []int) {
|
||||
return file_freight_proto_rawDescGZIP(), []int{4}
|
||||
return file_module_ec_mall_proto_freight_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *FreightReply) GetCount() int64 {
|
||||
@@ -451,7 +452,7 @@ type DenyRegionReply struct {
|
||||
|
||||
func (x *DenyRegionReply) Reset() {
|
||||
*x = DenyRegionReply{}
|
||||
mi := &file_freight_proto_msgTypes[5]
|
||||
mi := &file_module_ec_mall_proto_freight_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -463,7 +464,7 @@ func (x *DenyRegionReply) String() string {
|
||||
func (*DenyRegionReply) ProtoMessage() {}
|
||||
|
||||
func (x *DenyRegionReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_freight_proto_msgTypes[5]
|
||||
mi := &file_module_ec_mall_proto_freight_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -476,7 +477,7 @@ func (x *DenyRegionReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use DenyRegionReply.ProtoReflect.Descriptor instead.
|
||||
func (*DenyRegionReply) Descriptor() ([]byte, []int) {
|
||||
return file_freight_proto_rawDescGZIP(), []int{5}
|
||||
return file_module_ec_mall_proto_freight_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *DenyRegionReply) GetCount() int64 {
|
||||
@@ -493,11 +494,11 @@ func (x *DenyRegionReply) GetData() []*DenyRegionItem {
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_freight_proto protoreflect.FileDescriptor
|
||||
var File_module_ec_mall_proto_freight_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_freight_proto_rawDesc = "" +
|
||||
const file_module_ec_mall_proto_freight_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x15ec/mall/freight.proto\x12\x04mall\x1a\x11mall/blocks.proto\"\xa2\x01\n" +
|
||||
"\"module/ec/mall/proto/freight.proto\x12\x04mall\x1a\x15protobuf/blocks.proto\"\xa2\x01\n" +
|
||||
"\x0eDenyRegionItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\bidentity\x18\x02 \x01(\tR\bidentity\x12$\n" +
|
||||
@@ -541,67 +542,67 @@ const file_freight_proto_rawDesc = "" +
|
||||
"\x04data\x18\x02 \x03(\v2\x11.mall.FreightItemR\x04data\"Q\n" +
|
||||
"\x0fDenyRegionReply\x12\x14\n" +
|
||||
"\x05count\x18\x01 \x01(\x03R\x05count\x12(\n" +
|
||||
"\x04data\x18\x02 \x03(\v2\x14.mall.DenyRegionItemR\x04data2\x81\x04\n" +
|
||||
"\aFreight\x121\n" +
|
||||
"\x05Fetch\x12\x12.mall.FetchRequest\x1a\x12.mall.FreightReply\"\x00\x120\n" +
|
||||
"\x06Modify\x12\x11.mall.FreightItem\x1a\x11.mall.StatusReply\"\x00\x121\n" +
|
||||
"\x06Delete\x12\x12.mall.IdentRequest\x1a\x11.mall.StatusReply\"\x00\x120\n" +
|
||||
"\x06Create\x12\x11.mall.FreightItem\x1a\x11.mall.StatusReply\"\x00\x121\n" +
|
||||
"\x06Detail\x12\x12.mall.IdentRequest\x1a\x11.mall.FreightItem\"\x00\x12>\n" +
|
||||
"\x0fDenyRegionFetch\x12\x12.mall.FetchRequest\x1a\x15.mall.DenyRegionReply\"\x00\x12=\n" +
|
||||
"\x10DenyRegionCreate\x12\x14.mall.DenyRegionItem\x1a\x11.mall.StatusReply\"\x00\x12;\n" +
|
||||
"\x10DenyRegionDelete\x12\x12.mall.IdentRequest\x1a\x11.mall.StatusReply\"\x00\x12=\n" +
|
||||
"\x10DenyRegionModify\x12\x14.mall.DenyRegionItem\x1a\x11.mall.StatusReply\"\x00B\bZ\x06.;mallb\x06proto3"
|
||||
"\x04data\x18\x02 \x03(\v2\x14.mall.DenyRegionItemR\x04data2\xcf\x04\n" +
|
||||
"\aFreight\x127\n" +
|
||||
"\x05Fetch\x12\x18.blocks.MallFetchRequest\x1a\x12.mall.FreightReply\"\x00\x12:\n" +
|
||||
"\x06Modify\x12\x11.mall.FreightItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12=\n" +
|
||||
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12:\n" +
|
||||
"\x06Create\x12\x11.mall.FreightItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x123\n" +
|
||||
"\x06Detail\x12\x14.blocks.IdentRequest\x1a\x11.mall.FreightItem\"\x00\x12D\n" +
|
||||
"\x0fDenyRegionFetch\x12\x18.blocks.MallFetchRequest\x1a\x15.mall.DenyRegionReply\"\x00\x12G\n" +
|
||||
"\x10DenyRegionCreate\x12\x14.mall.DenyRegionItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12G\n" +
|
||||
"\x10DenyRegionDelete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12G\n" +
|
||||
"\x10DenyRegionModify\x12\x14.mall.DenyRegionItem\x1a\x1b.blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
|
||||
|
||||
var (
|
||||
file_freight_proto_rawDescOnce sync.Once
|
||||
file_freight_proto_rawDescData []byte
|
||||
file_module_ec_mall_proto_freight_proto_rawDescOnce sync.Once
|
||||
file_module_ec_mall_proto_freight_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_freight_proto_rawDescGZIP() []byte {
|
||||
file_freight_proto_rawDescOnce.Do(func() {
|
||||
file_freight_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_freight_proto_rawDesc), len(file_freight_proto_rawDesc)))
|
||||
func file_module_ec_mall_proto_freight_proto_rawDescGZIP() []byte {
|
||||
file_module_ec_mall_proto_freight_proto_rawDescOnce.Do(func() {
|
||||
file_module_ec_mall_proto_freight_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_ec_mall_proto_freight_proto_rawDesc), len(file_module_ec_mall_proto_freight_proto_rawDesc)))
|
||||
})
|
||||
return file_freight_proto_rawDescData
|
||||
return file_module_ec_mall_proto_freight_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_freight_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||
var file_freight_proto_goTypes = []any{
|
||||
(*DenyRegionItem)(nil), // 0: mall.DenyRegionItem
|
||||
(*FreightItem)(nil), // 1: mall.FreightItem
|
||||
(*RegionItem)(nil), // 2: mall.RegionItem
|
||||
(*FreightAttrItem)(nil), // 3: mall.FreightAttrItem
|
||||
(*FreightReply)(nil), // 4: mall.FreightReply
|
||||
(*DenyRegionReply)(nil), // 5: mall.DenyRegionReply
|
||||
(*FetchRequest)(nil), // 6: mall.FetchRequest
|
||||
(*IdentRequest)(nil), // 7: mall.IdentRequest
|
||||
(*StatusReply)(nil), // 8: mall.StatusReply
|
||||
var file_module_ec_mall_proto_freight_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||
var file_module_ec_mall_proto_freight_proto_goTypes = []any{
|
||||
(*DenyRegionItem)(nil), // 0: mall.DenyRegionItem
|
||||
(*FreightItem)(nil), // 1: mall.FreightItem
|
||||
(*RegionItem)(nil), // 2: mall.RegionItem
|
||||
(*FreightAttrItem)(nil), // 3: mall.FreightAttrItem
|
||||
(*FreightReply)(nil), // 4: mall.FreightReply
|
||||
(*DenyRegionReply)(nil), // 5: mall.DenyRegionReply
|
||||
(*protobuf.MallFetchRequest)(nil), // 6: blocks.MallFetchRequest
|
||||
(*protobuf.IdentRequest)(nil), // 7: blocks.IdentRequest
|
||||
(*protobuf.IdentityStatusReply)(nil), // 8: blocks.IdentityStatusReply
|
||||
}
|
||||
var file_freight_proto_depIdxs = []int32{
|
||||
var file_module_ec_mall_proto_freight_proto_depIdxs = []int32{
|
||||
2, // 0: mall.DenyRegionItem.region:type_name -> mall.RegionItem
|
||||
3, // 1: mall.FreightItem.rules:type_name -> mall.FreightAttrItem
|
||||
2, // 2: mall.RegionItem.second:type_name -> mall.RegionItem
|
||||
2, // 3: mall.FreightAttrItem.region:type_name -> mall.RegionItem
|
||||
1, // 4: mall.FreightReply.data:type_name -> mall.FreightItem
|
||||
0, // 5: mall.DenyRegionReply.data:type_name -> mall.DenyRegionItem
|
||||
6, // 6: mall.Freight.Fetch:input_type -> mall.FetchRequest
|
||||
6, // 6: mall.Freight.Fetch:input_type -> blocks.MallFetchRequest
|
||||
1, // 7: mall.Freight.Modify:input_type -> mall.FreightItem
|
||||
7, // 8: mall.Freight.Delete:input_type -> mall.IdentRequest
|
||||
7, // 8: mall.Freight.Delete:input_type -> blocks.IdentRequest
|
||||
1, // 9: mall.Freight.Create:input_type -> mall.FreightItem
|
||||
7, // 10: mall.Freight.Detail:input_type -> mall.IdentRequest
|
||||
6, // 11: mall.Freight.DenyRegionFetch:input_type -> mall.FetchRequest
|
||||
7, // 10: mall.Freight.Detail:input_type -> blocks.IdentRequest
|
||||
6, // 11: mall.Freight.DenyRegionFetch:input_type -> blocks.MallFetchRequest
|
||||
0, // 12: mall.Freight.DenyRegionCreate:input_type -> mall.DenyRegionItem
|
||||
7, // 13: mall.Freight.DenyRegionDelete:input_type -> mall.IdentRequest
|
||||
7, // 13: mall.Freight.DenyRegionDelete:input_type -> blocks.IdentRequest
|
||||
0, // 14: mall.Freight.DenyRegionModify:input_type -> mall.DenyRegionItem
|
||||
4, // 15: mall.Freight.Fetch:output_type -> mall.FreightReply
|
||||
8, // 16: mall.Freight.Modify:output_type -> mall.StatusReply
|
||||
8, // 17: mall.Freight.Delete:output_type -> mall.StatusReply
|
||||
8, // 18: mall.Freight.Create:output_type -> mall.StatusReply
|
||||
8, // 16: mall.Freight.Modify:output_type -> blocks.IdentityStatusReply
|
||||
8, // 17: mall.Freight.Delete:output_type -> blocks.IdentityStatusReply
|
||||
8, // 18: mall.Freight.Create:output_type -> blocks.IdentityStatusReply
|
||||
1, // 19: mall.Freight.Detail:output_type -> mall.FreightItem
|
||||
5, // 20: mall.Freight.DenyRegionFetch:output_type -> mall.DenyRegionReply
|
||||
8, // 21: mall.Freight.DenyRegionCreate:output_type -> mall.StatusReply
|
||||
8, // 22: mall.Freight.DenyRegionDelete:output_type -> mall.StatusReply
|
||||
8, // 23: mall.Freight.DenyRegionModify:output_type -> mall.StatusReply
|
||||
8, // 21: mall.Freight.DenyRegionCreate:output_type -> blocks.IdentityStatusReply
|
||||
8, // 22: mall.Freight.DenyRegionDelete:output_type -> blocks.IdentityStatusReply
|
||||
8, // 23: mall.Freight.DenyRegionModify:output_type -> blocks.IdentityStatusReply
|
||||
15, // [15:24] is the sub-list for method output_type
|
||||
6, // [6:15] is the sub-list for method input_type
|
||||
6, // [6:6] is the sub-list for extension type_name
|
||||
@@ -609,27 +610,26 @@ var file_freight_proto_depIdxs = []int32{
|
||||
0, // [0:6] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_freight_proto_init() }
|
||||
func file_freight_proto_init() {
|
||||
if File_freight_proto != nil {
|
||||
func init() { file_module_ec_mall_proto_freight_proto_init() }
|
||||
func file_module_ec_mall_proto_freight_proto_init() {
|
||||
if File_module_ec_mall_proto_freight_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_freight_proto_rawDesc), len(file_freight_proto_rawDesc)),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_ec_mall_proto_freight_proto_rawDesc), len(file_module_ec_mall_proto_freight_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 6,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_freight_proto_goTypes,
|
||||
DependencyIndexes: file_freight_proto_depIdxs,
|
||||
MessageInfos: file_freight_proto_msgTypes,
|
||||
GoTypes: file_module_ec_mall_proto_freight_proto_goTypes,
|
||||
DependencyIndexes: file_module_ec_mall_proto_freight_proto_depIdxs,
|
||||
MessageInfos: file_module_ec_mall_proto_freight_proto_msgTypes,
|
||||
}.Build()
|
||||
File_freight_proto = out.File
|
||||
file_freight_proto_goTypes = nil
|
||||
file_freight_proto_depIdxs = nil
|
||||
File_module_ec_mall_proto_freight_proto = out.File
|
||||
file_module_ec_mall_proto_freight_proto_goTypes = nil
|
||||
file_module_ec_mall_proto_freight_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user