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.6
|
||||
// protoc (unknown)
|
||||
// source: cart.proto
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc v7.35.0
|
||||
// source: module/ec/order/proto/cart.proto
|
||||
|
||||
package order
|
||||
|
||||
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 CartGetRequest struct {
|
||||
|
||||
func (x *CartGetRequest) Reset() {
|
||||
*x = CartGetRequest{}
|
||||
mi := &file_cart_proto_msgTypes[0]
|
||||
mi := &file_module_ec_order_proto_cart_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -44,7 +45,7 @@ func (x *CartGetRequest) String() string {
|
||||
func (*CartGetRequest) ProtoMessage() {}
|
||||
|
||||
func (x *CartGetRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_cart_proto_msgTypes[0]
|
||||
mi := &file_module_ec_order_proto_cart_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -57,7 +58,7 @@ func (x *CartGetRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CartGetRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CartGetRequest) Descriptor() ([]byte, []int) {
|
||||
return file_cart_proto_rawDescGZIP(), []int{0}
|
||||
return file_module_ec_order_proto_cart_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *CartGetRequest) GetCarIdentity() string {
|
||||
@@ -91,7 +92,7 @@ type CartGetReply struct {
|
||||
|
||||
func (x *CartGetReply) Reset() {
|
||||
*x = CartGetReply{}
|
||||
mi := &file_cart_proto_msgTypes[1]
|
||||
mi := &file_module_ec_order_proto_cart_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -103,7 +104,7 @@ func (x *CartGetReply) String() string {
|
||||
func (*CartGetReply) ProtoMessage() {}
|
||||
|
||||
func (x *CartGetReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_cart_proto_msgTypes[1]
|
||||
mi := &file_module_ec_order_proto_cart_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -116,7 +117,7 @@ func (x *CartGetReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CartGetReply.ProtoReflect.Descriptor instead.
|
||||
func (*CartGetReply) Descriptor() ([]byte, []int) {
|
||||
return file_cart_proto_rawDescGZIP(), []int{1}
|
||||
return file_module_ec_order_proto_cart_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *CartGetReply) GetData() []*CartItem {
|
||||
@@ -152,7 +153,7 @@ type CartItem struct {
|
||||
|
||||
func (x *CartItem) Reset() {
|
||||
*x = CartItem{}
|
||||
mi := &file_cart_proto_msgTypes[2]
|
||||
mi := &file_module_ec_order_proto_cart_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -164,7 +165,7 @@ func (x *CartItem) String() string {
|
||||
func (*CartItem) ProtoMessage() {}
|
||||
|
||||
func (x *CartItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_cart_proto_msgTypes[2]
|
||||
mi := &file_module_ec_order_proto_cart_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -177,7 +178,7 @@ func (x *CartItem) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CartItem.ProtoReflect.Descriptor instead.
|
||||
func (*CartItem) Descriptor() ([]byte, []int) {
|
||||
return file_cart_proto_rawDescGZIP(), []int{2}
|
||||
return file_module_ec_order_proto_cart_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *CartItem) GetId() int64 {
|
||||
@@ -272,7 +273,7 @@ type CartAddRequest struct {
|
||||
|
||||
func (x *CartAddRequest) Reset() {
|
||||
*x = CartAddRequest{}
|
||||
mi := &file_cart_proto_msgTypes[3]
|
||||
mi := &file_module_ec_order_proto_cart_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -284,7 +285,7 @@ func (x *CartAddRequest) String() string {
|
||||
func (*CartAddRequest) ProtoMessage() {}
|
||||
|
||||
func (x *CartAddRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_cart_proto_msgTypes[3]
|
||||
mi := &file_module_ec_order_proto_cart_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -297,7 +298,7 @@ func (x *CartAddRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CartAddRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CartAddRequest) Descriptor() ([]byte, []int) {
|
||||
return file_cart_proto_rawDescGZIP(), []int{3}
|
||||
return file_module_ec_order_proto_cart_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *CartAddRequest) GetCartIdentity() string {
|
||||
@@ -362,7 +363,7 @@ type CartSetRequest struct {
|
||||
|
||||
func (x *CartSetRequest) Reset() {
|
||||
*x = CartSetRequest{}
|
||||
mi := &file_cart_proto_msgTypes[4]
|
||||
mi := &file_module_ec_order_proto_cart_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -374,7 +375,7 @@ func (x *CartSetRequest) String() string {
|
||||
func (*CartSetRequest) ProtoMessage() {}
|
||||
|
||||
func (x *CartSetRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_cart_proto_msgTypes[4]
|
||||
mi := &file_module_ec_order_proto_cart_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -387,7 +388,7 @@ func (x *CartSetRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CartSetRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CartSetRequest) Descriptor() ([]byte, []int) {
|
||||
return file_cart_proto_rawDescGZIP(), []int{4}
|
||||
return file_module_ec_order_proto_cart_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *CartSetRequest) GetIdentity() string {
|
||||
@@ -435,7 +436,7 @@ type Updates struct {
|
||||
|
||||
func (x *Updates) Reset() {
|
||||
*x = Updates{}
|
||||
mi := &file_cart_proto_msgTypes[5]
|
||||
mi := &file_module_ec_order_proto_cart_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -447,7 +448,7 @@ func (x *Updates) String() string {
|
||||
func (*Updates) ProtoMessage() {}
|
||||
|
||||
func (x *Updates) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_cart_proto_msgTypes[5]
|
||||
mi := &file_module_ec_order_proto_cart_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -460,7 +461,7 @@ func (x *Updates) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use Updates.ProtoReflect.Descriptor instead.
|
||||
func (*Updates) Descriptor() ([]byte, []int) {
|
||||
return file_cart_proto_rawDescGZIP(), []int{5}
|
||||
return file_module_ec_order_proto_cart_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *Updates) GetId() int64 {
|
||||
@@ -486,7 +487,7 @@ type CartDelRequest struct {
|
||||
|
||||
func (x *CartDelRequest) Reset() {
|
||||
*x = CartDelRequest{}
|
||||
mi := &file_cart_proto_msgTypes[6]
|
||||
mi := &file_module_ec_order_proto_cart_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -498,7 +499,7 @@ func (x *CartDelRequest) String() string {
|
||||
func (*CartDelRequest) ProtoMessage() {}
|
||||
|
||||
func (x *CartDelRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_cart_proto_msgTypes[6]
|
||||
mi := &file_module_ec_order_proto_cart_proto_msgTypes[6]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -511,7 +512,7 @@ func (x *CartDelRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CartDelRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CartDelRequest) Descriptor() ([]byte, []int) {
|
||||
return file_cart_proto_rawDescGZIP(), []int{6}
|
||||
return file_module_ec_order_proto_cart_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *CartDelRequest) GetId() []int64 {
|
||||
@@ -521,12 +522,11 @@ func (x *CartDelRequest) GetId() []int64 {
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_cart_proto protoreflect.FileDescriptor
|
||||
var File_module_ec_order_proto_cart_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_cart_proto_rawDesc = "" +
|
||||
const file_module_ec_order_proto_cart_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x13" +
|
||||
"ec/order/cart.proto\x12\x05order\x1a\x12order/blocks.proto\"~\n" +
|
||||
" module/ec/order/proto/cart.proto\x12\x05order\x1a\x15protobuf/blocks.proto\"~\n" +
|
||||
"\x0eCartGetRequest\x12\"\n" +
|
||||
"\fcar_identity\x18\x01 \x01(\tR\fcar_identity\x12,\n" +
|
||||
"\x11passport_identity\x18\x02 \x01(\tR\x11passport_identity\x12\x1a\n" +
|
||||
@@ -573,37 +573,37 @@ const file_cart_proto_rawDesc = "" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" +
|
||||
"\x06number\x18\x02 \x01(\x03R\x06number\" \n" +
|
||||
"\x0eCartDelRequest\x12\x0e\n" +
|
||||
"\x02id\x18\x03 \x03(\x03R\x02id2\xe2\x01\n" +
|
||||
"\x02id\x18\x03 \x03(\x03R\x02id2\xf4\x01\n" +
|
||||
"\x04Cart\x125\n" +
|
||||
"\x05Fetch\x12\x15.order.CartGetRequest\x1a\x13.order.CartGetReply\"\x00\x125\n" +
|
||||
"\x06Create\x12\x15.order.CartAddRequest\x1a\x12.order.StatusReply\"\x00\x125\n" +
|
||||
"\x06Modify\x12\x15.order.CartSetRequest\x1a\x12.order.StatusReply\"\x00\x125\n" +
|
||||
"\x06Delete\x12\x15.order.CartDelRequest\x1a\x12.order.StatusReply\"\x00B\tZ\a./orderb\x06proto3"
|
||||
"\x05Fetch\x12\x15.order.CartGetRequest\x1a\x13.order.CartGetReply\"\x00\x12;\n" +
|
||||
"\x06Create\x12\x15.order.CartAddRequest\x1a\x18.blocks.OrderStatusReply\"\x00\x12;\n" +
|
||||
"\x06Modify\x12\x15.order.CartSetRequest\x1a\x18.blocks.OrderStatusReply\"\x00\x12;\n" +
|
||||
"\x06Delete\x12\x15.order.CartDelRequest\x1a\x18.blocks.OrderStatusReply\"\x00B#Z!bsm/full/module/ec/order/pb;orderb\x06proto3"
|
||||
|
||||
var (
|
||||
file_cart_proto_rawDescOnce sync.Once
|
||||
file_cart_proto_rawDescData []byte
|
||||
file_module_ec_order_proto_cart_proto_rawDescOnce sync.Once
|
||||
file_module_ec_order_proto_cart_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_cart_proto_rawDescGZIP() []byte {
|
||||
file_cart_proto_rawDescOnce.Do(func() {
|
||||
file_cart_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cart_proto_rawDesc), len(file_cart_proto_rawDesc)))
|
||||
func file_module_ec_order_proto_cart_proto_rawDescGZIP() []byte {
|
||||
file_module_ec_order_proto_cart_proto_rawDescOnce.Do(func() {
|
||||
file_module_ec_order_proto_cart_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_ec_order_proto_cart_proto_rawDesc), len(file_module_ec_order_proto_cart_proto_rawDesc)))
|
||||
})
|
||||
return file_cart_proto_rawDescData
|
||||
return file_module_ec_order_proto_cart_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_cart_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_cart_proto_goTypes = []any{
|
||||
(*CartGetRequest)(nil), // 0: order.CartGetRequest
|
||||
(*CartGetReply)(nil), // 1: order.CartGetReply
|
||||
(*CartItem)(nil), // 2: order.CartItem
|
||||
(*CartAddRequest)(nil), // 3: order.CartAddRequest
|
||||
(*CartSetRequest)(nil), // 4: order.CartSetRequest
|
||||
(*Updates)(nil), // 5: order.Updates
|
||||
(*CartDelRequest)(nil), // 6: order.CartDelRequest
|
||||
(*StatusReply)(nil), // 7: order.StatusReply
|
||||
var file_module_ec_order_proto_cart_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_module_ec_order_proto_cart_proto_goTypes = []any{
|
||||
(*CartGetRequest)(nil), // 0: order.CartGetRequest
|
||||
(*CartGetReply)(nil), // 1: order.CartGetReply
|
||||
(*CartItem)(nil), // 2: order.CartItem
|
||||
(*CartAddRequest)(nil), // 3: order.CartAddRequest
|
||||
(*CartSetRequest)(nil), // 4: order.CartSetRequest
|
||||
(*Updates)(nil), // 5: order.Updates
|
||||
(*CartDelRequest)(nil), // 6: order.CartDelRequest
|
||||
(*protobuf.OrderStatusReply)(nil), // 7: blocks.OrderStatusReply
|
||||
}
|
||||
var file_cart_proto_depIdxs = []int32{
|
||||
var file_module_ec_order_proto_cart_proto_depIdxs = []int32{
|
||||
2, // 0: order.CartGetReply.data:type_name -> order.CartItem
|
||||
5, // 1: order.CartSetRequest.updates:type_name -> order.Updates
|
||||
0, // 2: order.Cart.Fetch:input_type -> order.CartGetRequest
|
||||
@@ -611,9 +611,9 @@ var file_cart_proto_depIdxs = []int32{
|
||||
4, // 4: order.Cart.Modify:input_type -> order.CartSetRequest
|
||||
6, // 5: order.Cart.Delete:input_type -> order.CartDelRequest
|
||||
1, // 6: order.Cart.Fetch:output_type -> order.CartGetReply
|
||||
7, // 7: order.Cart.Create:output_type -> order.StatusReply
|
||||
7, // 8: order.Cart.Modify:output_type -> order.StatusReply
|
||||
7, // 9: order.Cart.Delete:output_type -> order.StatusReply
|
||||
7, // 7: order.Cart.Create:output_type -> blocks.OrderStatusReply
|
||||
7, // 8: order.Cart.Modify:output_type -> blocks.OrderStatusReply
|
||||
7, // 9: order.Cart.Delete:output_type -> blocks.OrderStatusReply
|
||||
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
|
||||
@@ -621,27 +621,26 @@ var file_cart_proto_depIdxs = []int32{
|
||||
0, // [0:2] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_cart_proto_init() }
|
||||
func file_cart_proto_init() {
|
||||
if File_cart_proto != nil {
|
||||
func init() { file_module_ec_order_proto_cart_proto_init() }
|
||||
func file_module_ec_order_proto_cart_proto_init() {
|
||||
if File_module_ec_order_proto_cart_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_cart_proto_rawDesc), len(file_cart_proto_rawDesc)),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_ec_order_proto_cart_proto_rawDesc), len(file_module_ec_order_proto_cart_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 7,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_cart_proto_goTypes,
|
||||
DependencyIndexes: file_cart_proto_depIdxs,
|
||||
MessageInfos: file_cart_proto_msgTypes,
|
||||
GoTypes: file_module_ec_order_proto_cart_proto_goTypes,
|
||||
DependencyIndexes: file_module_ec_order_proto_cart_proto_depIdxs,
|
||||
MessageInfos: file_module_ec_order_proto_cart_proto_msgTypes,
|
||||
}.Build()
|
||||
File_cart_proto = out.File
|
||||
file_cart_proto_goTypes = nil
|
||||
file_cart_proto_depIdxs = nil
|
||||
File_module_ec_order_proto_cart_proto = out.File
|
||||
file_module_ec_order_proto_cart_proto_goTypes = nil
|
||||
file_module_ec_order_proto_cart_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user