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.6
// protoc (unknown)
// source: mgt.proto
// protoc-gen-go v1.36.11
// protoc v7.35.0
// source: module/ec/order/proto/mgt.proto
package order
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 CreateOrderRequest struct {
func (x *CreateOrderRequest) Reset() {
*x = CreateOrderRequest{}
mi := &file_mgt_proto_msgTypes[0]
mi := &file_module_ec_order_proto_mgt_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -46,7 +47,7 @@ func (x *CreateOrderRequest) String() string {
func (*CreateOrderRequest) ProtoMessage() {}
func (x *CreateOrderRequest) ProtoReflect() protoreflect.Message {
mi := &file_mgt_proto_msgTypes[0]
mi := &file_module_ec_order_proto_mgt_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -59,7 +60,7 @@ func (x *CreateOrderRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CreateOrderRequest.ProtoReflect.Descriptor instead.
func (*CreateOrderRequest) Descriptor() ([]byte, []int) {
return file_mgt_proto_rawDescGZIP(), []int{0}
return file_module_ec_order_proto_mgt_proto_rawDescGZIP(), []int{0}
}
func (x *CreateOrderRequest) GetPartnerId() int32 {
@@ -107,7 +108,7 @@ type SpecList struct {
func (x *SpecList) Reset() {
*x = SpecList{}
mi := &file_mgt_proto_msgTypes[1]
mi := &file_module_ec_order_proto_mgt_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -119,7 +120,7 @@ func (x *SpecList) String() string {
func (*SpecList) ProtoMessage() {}
func (x *SpecList) ProtoReflect() protoreflect.Message {
mi := &file_mgt_proto_msgTypes[1]
mi := &file_module_ec_order_proto_mgt_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -132,7 +133,7 @@ func (x *SpecList) ProtoReflect() protoreflect.Message {
// Deprecated: Use SpecList.ProtoReflect.Descriptor instead.
func (*SpecList) Descriptor() ([]byte, []int) {
return file_mgt_proto_rawDescGZIP(), []int{1}
return file_module_ec_order_proto_mgt_proto_rawDescGZIP(), []int{1}
}
func (x *SpecList) GetNumber() int32 {
@@ -150,15 +151,15 @@ func (x *SpecList) GetProductIdentity() string {
}
type OrderGetReply struct {
state protoimpl.MessageState `protogen:"open.v1"`
Summary *OrderSummaryItem `protobuf:"bytes,1,opt,name=summary,proto3" json:"summary,omitempty"` // 订单概要详情
state protoimpl.MessageState `protogen:"open.v1"`
Summary *protobuf.OrderSummaryItem `protobuf:"bytes,1,opt,name=summary,proto3" json:"summary,omitempty"` // 订单概要详情
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *OrderGetReply) Reset() {
*x = OrderGetReply{}
mi := &file_mgt_proto_msgTypes[2]
mi := &file_module_ec_order_proto_mgt_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -170,7 +171,7 @@ func (x *OrderGetReply) String() string {
func (*OrderGetReply) ProtoMessage() {}
func (x *OrderGetReply) ProtoReflect() protoreflect.Message {
mi := &file_mgt_proto_msgTypes[2]
mi := &file_module_ec_order_proto_mgt_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -183,10 +184,10 @@ func (x *OrderGetReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use OrderGetReply.ProtoReflect.Descriptor instead.
func (*OrderGetReply) Descriptor() ([]byte, []int) {
return file_mgt_proto_rawDescGZIP(), []int{2}
return file_module_ec_order_proto_mgt_proto_rawDescGZIP(), []int{2}
}
func (x *OrderGetReply) GetSummary() *OrderSummaryItem {
func (x *OrderGetReply) GetSummary() *protobuf.OrderSummaryItem {
if x != nil {
return x.Summary
}
@@ -210,7 +211,7 @@ type OrderListByStoreRequest struct {
func (x *OrderListByStoreRequest) Reset() {
*x = OrderListByStoreRequest{}
mi := &file_mgt_proto_msgTypes[3]
mi := &file_module_ec_order_proto_mgt_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -222,7 +223,7 @@ func (x *OrderListByStoreRequest) String() string {
func (*OrderListByStoreRequest) ProtoMessage() {}
func (x *OrderListByStoreRequest) ProtoReflect() protoreflect.Message {
mi := &file_mgt_proto_msgTypes[3]
mi := &file_module_ec_order_proto_mgt_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -235,7 +236,7 @@ func (x *OrderListByStoreRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use OrderListByStoreRequest.ProtoReflect.Descriptor instead.
func (*OrderListByStoreRequest) Descriptor() ([]byte, []int) {
return file_mgt_proto_rawDescGZIP(), []int{3}
return file_module_ec_order_proto_mgt_proto_rawDescGZIP(), []int{3}
}
func (x *OrderListByStoreRequest) GetPayType() int32 {
@@ -302,16 +303,16 @@ func (x *OrderListByStoreRequest) GetKeyword() string {
}
type OrderListByStoreReply struct {
state protoimpl.MessageState `protogen:"open.v1"`
Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
Data []*OrderSummaryItem `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` // 订单列表
state protoimpl.MessageState `protogen:"open.v1"`
Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
Data []*protobuf.OrderSummaryItem `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` // 订单列表
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *OrderListByStoreReply) Reset() {
*x = OrderListByStoreReply{}
mi := &file_mgt_proto_msgTypes[4]
mi := &file_module_ec_order_proto_mgt_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -323,7 +324,7 @@ func (x *OrderListByStoreReply) String() string {
func (*OrderListByStoreReply) ProtoMessage() {}
func (x *OrderListByStoreReply) ProtoReflect() protoreflect.Message {
mi := &file_mgt_proto_msgTypes[4]
mi := &file_module_ec_order_proto_mgt_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -336,7 +337,7 @@ func (x *OrderListByStoreReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use OrderListByStoreReply.ProtoReflect.Descriptor instead.
func (*OrderListByStoreReply) Descriptor() ([]byte, []int) {
return file_mgt_proto_rawDescGZIP(), []int{4}
return file_module_ec_order_proto_mgt_proto_rawDescGZIP(), []int{4}
}
func (x *OrderListByStoreReply) GetCount() int32 {
@@ -346,18 +347,18 @@ func (x *OrderListByStoreReply) GetCount() int32 {
return 0
}
func (x *OrderListByStoreReply) GetData() []*OrderSummaryItem {
func (x *OrderListByStoreReply) GetData() []*protobuf.OrderSummaryItem {
if x != nil {
return x.Data
}
return nil
}
var File_mgt_proto protoreflect.FileDescriptor
var File_module_ec_order_proto_mgt_proto protoreflect.FileDescriptor
const file_mgt_proto_rawDesc = "" +
const file_module_ec_order_proto_mgt_proto_rawDesc = "" +
"\n" +
"\x12ec/order/mgt.proto\x12\x05order\x1a\x12order/blocks.proto\"\xbf\x01\n" +
"\x1fmodule/ec/order/proto/mgt.proto\x12\x05order\x1a\x15protobuf/blocks.proto\"\xbf\x01\n" +
"\x12CreateOrderRequest\x12\x1e\n" +
"\n" +
"partner_id\x18\x01 \x01(\x05R\n" +
@@ -368,9 +369,9 @@ const file_mgt_proto_rawDesc = "" +
"\x04spec\x18\x05 \x03(\v2\x0f.order.SpecListR\x04spec\"N\n" +
"\bSpecList\x12\x16\n" +
"\x06number\x18\x01 \x01(\x05R\x06number\x12*\n" +
"\x10product_identity\x18\x02 \x01(\tR\x10product_identity\"B\n" +
"\rOrderGetReply\x121\n" +
"\asummary\x18\x01 \x01(\v2\x17.order.OrderSummaryItemR\asummary\"\xa2\x02\n" +
"\x10product_identity\x18\x02 \x01(\tR\x10product_identity\"C\n" +
"\rOrderGetReply\x122\n" +
"\asummary\x18\x01 \x01(\v2\x18.blocks.OrderSummaryItemR\asummary\"\xa2\x02\n" +
"\x17OrderListByStoreRequest\x12\x1a\n" +
"\bpay_type\x18\x01 \x01(\x05R\bpay_type\x12\"\n" +
"\forder_status\x18\x02 \x03(\x05R\forder_status\x12\x18\n" +
@@ -382,60 +383,60 @@ const file_mgt_proto_rawDesc = "" +
"\x06agency\x18\x06 \x01(\tR\x06agency\x12%\n" +
"\x0estore_identity\x18\a \x01(\tR\rstoreIdentity\x12\x16\n" +
"\x06status\x18\b \x01(\x05R\x06status\x12\x18\n" +
"\akeyword\x18\t \x01(\tR\akeyword\"Z\n" +
"\akeyword\x18\t \x01(\tR\akeyword\"[\n" +
"\x15OrderListByStoreReply\x12\x14\n" +
"\x05count\x18\x01 \x01(\x05R\x05count\x12+\n" +
"\x04data\x18\x02 \x03(\v2\x17.order.OrderSummaryItemR\x04data2\xc3\x03\n" +
"\x03Mgt\x12>\n" +
"\vOrderCreate\x12\x19.order.CreateOrderRequest\x1a\x12.order.StatusReply\"\x00\x12<\n" +
"\vOrderModify\x12\x17.order.OrderSummaryItem\x1a\x12.order.StatusReply\"\x00\x127\n" +
"\bOrderGet\x12\x13.order.IdentRequest\x1a\x14.order.OrderGetReply\"\x00\x12R\n" +
"\x10OrderListByStore\x12\x1e.order.OrderListByStoreRequest\x1a\x1c.order.OrderListByStoreReply\"\x00\x128\n" +
"\vOrderCancel\x12\x13.order.IdentRequest\x1a\x12.order.StatusReply\"\x00\x12<\n" +
"\x0fOrderReturnable\x12\x13.order.IdentRequest\x1a\x12.order.StatusReply\"\x00\x129\n" +
"\fOrderApprove\x12\x13.order.IdentRequest\x1a\x12.order.StatusReply\"\x00B\tZ\a./orderb\x06proto3"
"\x05count\x18\x01 \x01(\x05R\x05count\x12,\n" +
"\x04data\x18\x02 \x03(\v2\x18.blocks.OrderSummaryItemR\x04data2\xfa\x03\n" +
"\x03Mgt\x12D\n" +
"\vOrderCreate\x12\x19.order.CreateOrderRequest\x1a\x18.blocks.OrderStatusReply\"\x00\x12C\n" +
"\vOrderModify\x12\x18.blocks.OrderSummaryItem\x1a\x18.blocks.OrderStatusReply\"\x00\x12=\n" +
"\bOrderGet\x12\x19.blocks.OrderIdentRequest\x1a\x14.order.OrderGetReply\"\x00\x12R\n" +
"\x10OrderListByStore\x12\x1e.order.OrderListByStoreRequest\x1a\x1c.order.OrderListByStoreReply\"\x00\x12D\n" +
"\vOrderCancel\x12\x19.blocks.OrderIdentRequest\x1a\x18.blocks.OrderStatusReply\"\x00\x12H\n" +
"\x0fOrderReturnable\x12\x19.blocks.OrderIdentRequest\x1a\x18.blocks.OrderStatusReply\"\x00\x12E\n" +
"\fOrderApprove\x12\x19.blocks.OrderIdentRequest\x1a\x18.blocks.OrderStatusReply\"\x00B#Z!bsm/full/module/ec/order/pb;orderb\x06proto3"
var (
file_mgt_proto_rawDescOnce sync.Once
file_mgt_proto_rawDescData []byte
file_module_ec_order_proto_mgt_proto_rawDescOnce sync.Once
file_module_ec_order_proto_mgt_proto_rawDescData []byte
)
func file_mgt_proto_rawDescGZIP() []byte {
file_mgt_proto_rawDescOnce.Do(func() {
file_mgt_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_mgt_proto_rawDesc), len(file_mgt_proto_rawDesc)))
func file_module_ec_order_proto_mgt_proto_rawDescGZIP() []byte {
file_module_ec_order_proto_mgt_proto_rawDescOnce.Do(func() {
file_module_ec_order_proto_mgt_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_ec_order_proto_mgt_proto_rawDesc), len(file_module_ec_order_proto_mgt_proto_rawDesc)))
})
return file_mgt_proto_rawDescData
return file_module_ec_order_proto_mgt_proto_rawDescData
}
var file_mgt_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_mgt_proto_goTypes = []any{
(*CreateOrderRequest)(nil), // 0: order.CreateOrderRequest
(*SpecList)(nil), // 1: order.SpecList
(*OrderGetReply)(nil), // 2: order.OrderGetReply
(*OrderListByStoreRequest)(nil), // 3: order.OrderListByStoreRequest
(*OrderListByStoreReply)(nil), // 4: order.OrderListByStoreReply
(*OrderSummaryItem)(nil), // 5: order.OrderSummaryItem
(*IdentRequest)(nil), // 6: order.IdentRequest
(*StatusReply)(nil), // 7: order.StatusReply
var file_module_ec_order_proto_mgt_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_module_ec_order_proto_mgt_proto_goTypes = []any{
(*CreateOrderRequest)(nil), // 0: order.CreateOrderRequest
(*SpecList)(nil), // 1: order.SpecList
(*OrderGetReply)(nil), // 2: order.OrderGetReply
(*OrderListByStoreRequest)(nil), // 3: order.OrderListByStoreRequest
(*OrderListByStoreReply)(nil), // 4: order.OrderListByStoreReply
(*protobuf.OrderSummaryItem)(nil), // 5: blocks.OrderSummaryItem
(*protobuf.OrderIdentRequest)(nil), // 6: blocks.OrderIdentRequest
(*protobuf.OrderStatusReply)(nil), // 7: blocks.OrderStatusReply
}
var file_mgt_proto_depIdxs = []int32{
var file_module_ec_order_proto_mgt_proto_depIdxs = []int32{
1, // 0: order.CreateOrderRequest.spec:type_name -> order.SpecList
5, // 1: order.OrderGetReply.summary:type_name -> order.OrderSummaryItem
5, // 2: order.OrderListByStoreReply.data:type_name -> order.OrderSummaryItem
5, // 1: order.OrderGetReply.summary:type_name -> blocks.OrderSummaryItem
5, // 2: order.OrderListByStoreReply.data:type_name -> blocks.OrderSummaryItem
0, // 3: order.Mgt.OrderCreate:input_type -> order.CreateOrderRequest
5, // 4: order.Mgt.OrderModify:input_type -> order.OrderSummaryItem
6, // 5: order.Mgt.OrderGet:input_type -> order.IdentRequest
5, // 4: order.Mgt.OrderModify:input_type -> blocks.OrderSummaryItem
6, // 5: order.Mgt.OrderGet:input_type -> blocks.OrderIdentRequest
3, // 6: order.Mgt.OrderListByStore:input_type -> order.OrderListByStoreRequest
6, // 7: order.Mgt.OrderCancel:input_type -> order.IdentRequest
6, // 8: order.Mgt.OrderReturnable:input_type -> order.IdentRequest
6, // 9: order.Mgt.OrderApprove:input_type -> order.IdentRequest
7, // 10: order.Mgt.OrderCreate:output_type -> order.StatusReply
7, // 11: order.Mgt.OrderModify:output_type -> order.StatusReply
6, // 7: order.Mgt.OrderCancel:input_type -> blocks.OrderIdentRequest
6, // 8: order.Mgt.OrderReturnable:input_type -> blocks.OrderIdentRequest
6, // 9: order.Mgt.OrderApprove:input_type -> blocks.OrderIdentRequest
7, // 10: order.Mgt.OrderCreate:output_type -> blocks.OrderStatusReply
7, // 11: order.Mgt.OrderModify:output_type -> blocks.OrderStatusReply
2, // 12: order.Mgt.OrderGet:output_type -> order.OrderGetReply
4, // 13: order.Mgt.OrderListByStore:output_type -> order.OrderListByStoreReply
7, // 14: order.Mgt.OrderCancel:output_type -> order.StatusReply
7, // 15: order.Mgt.OrderReturnable:output_type -> order.StatusReply
7, // 16: order.Mgt.OrderApprove:output_type -> order.StatusReply
7, // 14: order.Mgt.OrderCancel:output_type -> blocks.OrderStatusReply
7, // 15: order.Mgt.OrderReturnable:output_type -> blocks.OrderStatusReply
7, // 16: order.Mgt.OrderApprove:output_type -> blocks.OrderStatusReply
10, // [10:17] is the sub-list for method output_type
3, // [3:10] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
@@ -443,27 +444,26 @@ var file_mgt_proto_depIdxs = []int32{
0, // [0:3] is the sub-list for field type_name
}
func init() { file_mgt_proto_init() }
func file_mgt_proto_init() {
if File_mgt_proto != nil {
func init() { file_module_ec_order_proto_mgt_proto_init() }
func file_module_ec_order_proto_mgt_proto_init() {
if File_module_ec_order_proto_mgt_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_mgt_proto_rawDesc), len(file_mgt_proto_rawDesc)),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_ec_order_proto_mgt_proto_rawDesc), len(file_module_ec_order_proto_mgt_proto_rawDesc)),
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_mgt_proto_goTypes,
DependencyIndexes: file_mgt_proto_depIdxs,
MessageInfos: file_mgt_proto_msgTypes,
GoTypes: file_module_ec_order_proto_mgt_proto_goTypes,
DependencyIndexes: file_module_ec_order_proto_mgt_proto_depIdxs,
MessageInfos: file_module_ec_order_proto_mgt_proto_msgTypes,
}.Build()
File_mgt_proto = out.File
file_mgt_proto_goTypes = nil
file_mgt_proto_depIdxs = nil
File_module_ec_order_proto_mgt_proto = out.File
file_module_ec_order_proto_mgt_proto_goTypes = nil
file_module_ec_order_proto_mgt_proto_depIdxs = nil
}