refactor: localize protobuf definitions
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
package order
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
@@ -151,8 +150,8 @@ func (x *SpecList) GetProductIdentity() string {
|
||||
}
|
||||
|
||||
type OrderGetReply struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Summary *protobuf.OrderSummaryItem `protobuf:"bytes,1,opt,name=summary,proto3" json:"summary,omitempty"` // 订单概要详情
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Summary *OrderSummaryItem `protobuf:"bytes,1,opt,name=summary,proto3" json:"summary,omitempty"` // 订单概要详情
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -187,7 +186,7 @@ func (*OrderGetReply) Descriptor() ([]byte, []int) {
|
||||
return file_module_ec_order_proto_mgt_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *OrderGetReply) GetSummary() *protobuf.OrderSummaryItem {
|
||||
func (x *OrderGetReply) GetSummary() *OrderSummaryItem {
|
||||
if x != nil {
|
||||
return x.Summary
|
||||
}
|
||||
@@ -303,9 +302,9 @@ 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 []*protobuf.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 []*OrderSummaryItem `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` // 订单列表
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -347,7 +346,7 @@ func (x *OrderListByStoreReply) GetCount() int32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *OrderListByStoreReply) GetData() []*protobuf.OrderSummaryItem {
|
||||
func (x *OrderListByStoreReply) GetData() []*OrderSummaryItem {
|
||||
if x != nil {
|
||||
return x.Data
|
||||
}
|
||||
@@ -358,7 +357,7 @@ var File_module_ec_order_proto_mgt_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_module_ec_order_proto_mgt_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x1fmodule/ec/order/proto/mgt.proto\x12\x05order\x1a\x15protobuf/blocks.proto\"\xbf\x01\n" +
|
||||
"\x1fmodule/ec/order/proto/mgt.proto\x12\x05order\x1a!module/ec/order/proto/const.proto\"\xbf\x01\n" +
|
||||
"\x12CreateOrderRequest\x12\x1e\n" +
|
||||
"\n" +
|
||||
"partner_id\x18\x01 \x01(\x05R\n" +
|
||||
@@ -410,14 +409,14 @@ func file_module_ec_order_proto_mgt_proto_rawDescGZIP() []byte {
|
||||
|
||||
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
|
||||
(*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: blocks.OrderSummaryItem
|
||||
(*OrderIdentRequest)(nil), // 6: blocks.OrderIdentRequest
|
||||
(*OrderStatusReply)(nil), // 7: blocks.OrderStatusReply
|
||||
}
|
||||
var file_module_ec_order_proto_mgt_proto_depIdxs = []int32{
|
||||
1, // 0: order.CreateOrderRequest.spec:type_name -> order.SpecList
|
||||
@@ -449,6 +448,7 @@ func file_module_ec_order_proto_mgt_proto_init() {
|
||||
if File_module_ec_order_proto_mgt_proto != nil {
|
||||
return
|
||||
}
|
||||
file_module_ec_order_proto_const_proto_init()
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
|
||||
Reference in New Issue
Block a user