|
@@ -21,6 +21,53 @@ const (
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
)
|
|
|
|
|
|
+type OrderRequest struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ ProdMain *ProdMain `protobuf:"bytes,1,opt,name=prod_main,json=prodMain,proto3" json:"prod_main,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *OrderRequest) Reset() {
|
|
|
+ *x = OrderRequest{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_order_proto_msgTypes[0]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *OrderRequest) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*OrderRequest) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *OrderRequest) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_order_proto_msgTypes[0]
|
|
|
+ if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+ return ms
|
|
|
+ }
|
|
|
+ return mi.MessageOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+// Deprecated: Use OrderRequest.ProtoReflect.Descriptor instead.
|
|
|
+func (*OrderRequest) Descriptor() ([]byte, []int) {
|
|
|
+ return file_order_proto_rawDescGZIP(), []int{0}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *OrderRequest) GetProdMain() *ProdMain {
|
|
|
+ if x != nil {
|
|
|
+ return x.ProdMain
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
type OrderResponse struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
@@ -33,7 +80,7 @@ type OrderResponse struct {
|
|
|
func (x *OrderResponse) Reset() {
|
|
|
*x = OrderResponse{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_order_proto_msgTypes[0]
|
|
|
+ mi := &file_order_proto_msgTypes[1]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
@@ -46,7 +93,7 @@ func (x *OrderResponse) String() string {
|
|
|
func (*OrderResponse) ProtoMessage() {}
|
|
|
|
|
|
func (x *OrderResponse) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_order_proto_msgTypes[0]
|
|
|
+ mi := &file_order_proto_msgTypes[1]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
@@ -59,7 +106,7 @@ func (x *OrderResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
// Deprecated: Use OrderResponse.ProtoReflect.Descriptor instead.
|
|
|
func (*OrderResponse) Descriptor() ([]byte, []int) {
|
|
|
- return file_order_proto_rawDescGZIP(), []int{0}
|
|
|
+ return file_order_proto_rawDescGZIP(), []int{1}
|
|
|
}
|
|
|
|
|
|
func (x *OrderResponse) GetStatus() string {
|
|
@@ -83,17 +130,23 @@ var file_order_proto_rawDesc = []byte{
|
|
|
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
|
|
|
0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x70, 0x72,
|
|
|
- 0x6f, 0x74, 0x6f, 0x22, 0x41, 0x0a, 0x0d, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
|
|
|
- 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01,
|
|
|
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07,
|
|
|
- 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d,
|
|
|
- 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x49, 0x0a, 0x0c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x53,
|
|
|
- 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x4e, 0x65, 0x77, 0x4f, 0x72, 0x64,
|
|
|
- 0x65, 0x72, 0x12, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x50, 0x72,
|
|
|
- 0x6f, 0x64, 0x4d, 0x61, 0x69, 0x6e, 0x1a, 0x17, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
|
|
|
- 0x73, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
|
|
|
- 0x00, 0x42, 0x07, 0x5a, 0x05, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
|
|
- 0x6f, 0x33,
|
|
|
+ 0x6f, 0x74, 0x6f, 0x22, 0x3f, 0x0a, 0x0c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
|
|
|
+ 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x64, 0x5f, 0x6d, 0x61, 0x69, 0x6e,
|
|
|
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
|
|
|
+ 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x4d, 0x61, 0x69, 0x6e, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x64,
|
|
|
+ 0x4d, 0x61, 0x69, 0x6e, 0x22, 0x41, 0x0a, 0x0d, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73,
|
|
|
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18,
|
|
|
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a,
|
|
|
+ 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
|
|
|
+ 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x6a, 0x0a, 0x0c, 0x4f, 0x72, 0x64, 0x65, 0x72,
|
|
|
+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5a, 0x0a, 0x08, 0x4e, 0x65, 0x77, 0x4f, 0x72,
|
|
|
+ 0x64, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x4f,
|
|
|
+ 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x73, 0x65,
|
|
|
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
|
|
|
+ 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x3a, 0x09, 0x70, 0x72,
|
|
|
+ 0x6f, 0x64, 0x5f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x0a, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x72, 0x64,
|
|
|
+ 0x65, 0x72, 0x73, 0x42, 0x07, 0x5a, 0x05, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x62, 0x06, 0x70, 0x72,
|
|
|
+ 0x6f, 0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
@@ -108,19 +161,21 @@ func file_order_proto_rawDescGZIP() []byte {
|
|
|
return file_order_proto_rawDescData
|
|
|
}
|
|
|
|
|
|
-var file_order_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
|
|
+var file_order_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
|
var file_order_proto_goTypes = []interface{}{
|
|
|
- (*OrderResponse)(nil), // 0: services.OrderResponse
|
|
|
- (*ProdMain)(nil), // 1: services.ProdMain
|
|
|
+ (*OrderRequest)(nil), // 0: services.OrderRequest
|
|
|
+ (*OrderResponse)(nil), // 1: services.OrderResponse
|
|
|
+ (*ProdMain)(nil), // 2: services.ProdMain
|
|
|
}
|
|
|
var file_order_proto_depIdxs = []int32{
|
|
|
- 1, // 0: services.OrderService.NewOrder:input_type -> services.ProdMain
|
|
|
- 0, // 1: services.OrderService.NewOrder:output_type -> services.OrderResponse
|
|
|
- 1, // [1:2] is the sub-list for method output_type
|
|
|
- 0, // [0:1] is the sub-list for method input_type
|
|
|
- 0, // [0:0] is the sub-list for extension type_name
|
|
|
- 0, // [0:0] is the sub-list for extension extendee
|
|
|
- 0, // [0:0] is the sub-list for field type_name
|
|
|
+ 2, // 0: services.OrderRequest.prod_main:type_name -> services.ProdMain
|
|
|
+ 0, // 1: services.OrderService.NewOrder:input_type -> services.OrderRequest
|
|
|
+ 1, // 2: services.OrderService.NewOrder:output_type -> services.OrderResponse
|
|
|
+ 2, // [2:3] is the sub-list for method output_type
|
|
|
+ 1, // [1:2] is the sub-list for method input_type
|
|
|
+ 1, // [1:1] is the sub-list for extension type_name
|
|
|
+ 1, // [1:1] is the sub-list for extension extendee
|
|
|
+ 0, // [0:1] is the sub-list for field type_name
|
|
|
}
|
|
|
|
|
|
func init() { file_order_proto_init() }
|
|
@@ -131,6 +186,18 @@ func file_order_proto_init() {
|
|
|
file_models_proto_init()
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
file_order_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*OrderRequest); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_order_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*OrderResponse); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
@@ -149,7 +216,7 @@ func file_order_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_order_proto_rawDesc,
|
|
|
NumEnums: 0,
|
|
|
- NumMessages: 1,
|
|
|
+ NumMessages: 2,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 1,
|
|
|
},
|