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"
|
||||
@@ -511,8 +510,8 @@ func (x *OrderAddress) GetZipCode() string {
|
||||
}
|
||||
|
||||
type SummaryGetReply 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
|
||||
}
|
||||
@@ -547,7 +546,7 @@ func (*SummaryGetReply) Descriptor() ([]byte, []int) {
|
||||
return file_module_ec_order_proto_summary_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *SummaryGetReply) GetSummary() *protobuf.OrderSummaryItem {
|
||||
func (x *SummaryGetReply) GetSummary() *OrderSummaryItem {
|
||||
if x != nil {
|
||||
return x.Summary
|
||||
}
|
||||
@@ -623,9 +622,9 @@ func (x *SummaryListRequest) GetPageSize() int64 {
|
||||
}
|
||||
|
||||
type SummaryListReply 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
|
||||
}
|
||||
@@ -667,7 +666,7 @@ func (x *SummaryListReply) GetCount() int32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SummaryListReply) GetData() []*protobuf.OrderSummaryItem {
|
||||
func (x *SummaryListReply) GetData() []*OrderSummaryItem {
|
||||
if x != nil {
|
||||
return x.Data
|
||||
}
|
||||
@@ -850,7 +849,7 @@ var File_module_ec_order_proto_summary_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_module_ec_order_proto_summary_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"#module/ec/order/proto/summary.proto\x12\x05order\x1a\x15protobuf/blocks.proto\"\xa8\x01\n" +
|
||||
"#module/ec/order/proto/summary.proto\x12\x05order\x1a!module/ec/order/proto/const.proto\"\xa8\x01\n" +
|
||||
"\x18SimulateShipmentsRequest\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\"\n" +
|
||||
"\fitem_idetity\x18\x02 \x01(\tR\fitem_idetity\x12(\n" +
|
||||
@@ -955,10 +954,10 @@ var file_module_ec_order_proto_summary_proto_goTypes = []any{
|
||||
(*ConfirmRequest)(nil), // 9: order.ConfirmRequest
|
||||
(*ConfirmReply)(nil), // 10: order.ConfirmReply
|
||||
(*CancelRequest)(nil), // 11: order.CancelRequest
|
||||
(*protobuf.OrderSummaryItem)(nil), // 12: blocks.OrderSummaryItem
|
||||
(*protobuf.Empty)(nil), // 13: blocks.Empty
|
||||
(*protobuf.OrderIdentRequest)(nil), // 14: blocks.OrderIdentRequest
|
||||
(*protobuf.OrderStatusReply)(nil), // 15: blocks.OrderStatusReply
|
||||
(*OrderSummaryItem)(nil), // 12: blocks.OrderSummaryItem
|
||||
(*Empty)(nil), // 13: blocks.Empty
|
||||
(*OrderIdentRequest)(nil), // 14: blocks.OrderIdentRequest
|
||||
(*OrderStatusReply)(nil), // 15: blocks.OrderStatusReply
|
||||
}
|
||||
var file_module_ec_order_proto_summary_proto_depIdxs = []int32{
|
||||
5, // 0: order.SubmitRequest.address:type_name -> order.OrderAddress
|
||||
@@ -996,6 +995,7 @@ func file_module_ec_order_proto_summary_proto_init() {
|
||||
if File_module_ec_order_proto_summary_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