address add bystoreid api
This commit is contained in:
+107
-56
@@ -254,7 +254,7 @@ type CreateOrderOneRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
AddressId int64 `protobuf:"varint,1,opt,name=address_id,json=addressId,proto3" json:"address_id,omitempty"`
|
||||
Note string `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"`
|
||||
Productid int64 `protobuf:"varint,3,opt,name=productid,proto3" json:"productid,omitempty"`
|
||||
ProductId int64 `protobuf:"varint,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
|
||||
Num int32 `protobuf:"varint,4,opt,name=num,proto3" json:"num,omitempty"`
|
||||
Type int32 `protobuf:"varint,5,opt,name=type,proto3" json:"type,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
@@ -305,9 +305,9 @@ func (x *CreateOrderOneRequest) GetNote() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateOrderOneRequest) GetProductid() int64 {
|
||||
func (x *CreateOrderOneRequest) GetProductId() int64 {
|
||||
if x != nil {
|
||||
return x.Productid
|
||||
return x.ProductId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
@@ -858,6 +858,50 @@ func (x *AddressItemsRequest) GetTime() []string {
|
||||
return nil
|
||||
}
|
||||
|
||||
type AddressByStoreItemsRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
StoreId int64 `protobuf:"varint,1,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *AddressByStoreItemsRequest) Reset() {
|
||||
*x = AddressByStoreItemsRequest{}
|
||||
mi := &file_order_order_proto_msgTypes[13]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AddressByStoreItemsRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AddressByStoreItemsRequest) ProtoMessage() {}
|
||||
|
||||
func (x *AddressByStoreItemsRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_order_order_proto_msgTypes[13]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use AddressByStoreItemsRequest.ProtoReflect.Descriptor instead.
|
||||
func (*AddressByStoreItemsRequest) Descriptor() ([]byte, []int) {
|
||||
return file_order_order_proto_rawDescGZIP(), []int{13}
|
||||
}
|
||||
|
||||
func (x *AddressByStoreItemsRequest) GetStoreId() int64 {
|
||||
if x != nil {
|
||||
return x.StoreId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type OrderAuditingItemsRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
|
||||
@@ -868,7 +912,7 @@ type OrderAuditingItemsRequest struct {
|
||||
|
||||
func (x *OrderAuditingItemsRequest) Reset() {
|
||||
*x = OrderAuditingItemsRequest{}
|
||||
mi := &file_order_order_proto_msgTypes[13]
|
||||
mi := &file_order_order_proto_msgTypes[14]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -880,7 +924,7 @@ func (x *OrderAuditingItemsRequest) String() string {
|
||||
func (*OrderAuditingItemsRequest) ProtoMessage() {}
|
||||
|
||||
func (x *OrderAuditingItemsRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_order_order_proto_msgTypes[13]
|
||||
mi := &file_order_order_proto_msgTypes[14]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -893,7 +937,7 @@ func (x *OrderAuditingItemsRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use OrderAuditingItemsRequest.ProtoReflect.Descriptor instead.
|
||||
func (*OrderAuditingItemsRequest) Descriptor() ([]byte, []int) {
|
||||
return file_order_order_proto_rawDescGZIP(), []int{13}
|
||||
return file_order_order_proto_rawDescGZIP(), []int{14}
|
||||
}
|
||||
|
||||
func (x *OrderAuditingItemsRequest) GetPage() int32 {
|
||||
@@ -921,7 +965,7 @@ type OrderAuditingRequest struct {
|
||||
|
||||
func (x *OrderAuditingRequest) Reset() {
|
||||
*x = OrderAuditingRequest{}
|
||||
mi := &file_order_order_proto_msgTypes[14]
|
||||
mi := &file_order_order_proto_msgTypes[15]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -933,7 +977,7 @@ func (x *OrderAuditingRequest) String() string {
|
||||
func (*OrderAuditingRequest) ProtoMessage() {}
|
||||
|
||||
func (x *OrderAuditingRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_order_order_proto_msgTypes[14]
|
||||
mi := &file_order_order_proto_msgTypes[15]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -946,7 +990,7 @@ func (x *OrderAuditingRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use OrderAuditingRequest.ProtoReflect.Descriptor instead.
|
||||
func (*OrderAuditingRequest) Descriptor() ([]byte, []int) {
|
||||
return file_order_order_proto_rawDescGZIP(), []int{14}
|
||||
return file_order_order_proto_rawDescGZIP(), []int{15}
|
||||
}
|
||||
|
||||
func (x *OrderAuditingRequest) GetId() int64 {
|
||||
@@ -981,7 +1025,7 @@ type AdminCreateOrderRequest struct {
|
||||
|
||||
func (x *AdminCreateOrderRequest) Reset() {
|
||||
*x = AdminCreateOrderRequest{}
|
||||
mi := &file_order_order_proto_msgTypes[15]
|
||||
mi := &file_order_order_proto_msgTypes[16]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -993,7 +1037,7 @@ func (x *AdminCreateOrderRequest) String() string {
|
||||
func (*AdminCreateOrderRequest) ProtoMessage() {}
|
||||
|
||||
func (x *AdminCreateOrderRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_order_order_proto_msgTypes[15]
|
||||
mi := &file_order_order_proto_msgTypes[16]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -1006,7 +1050,7 @@ func (x *AdminCreateOrderRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use AdminCreateOrderRequest.ProtoReflect.Descriptor instead.
|
||||
func (*AdminCreateOrderRequest) Descriptor() ([]byte, []int) {
|
||||
return file_order_order_proto_rawDescGZIP(), []int{15}
|
||||
return file_order_order_proto_rawDescGZIP(), []int{16}
|
||||
}
|
||||
|
||||
func (x *AdminCreateOrderRequest) GetAddressId() int64 {
|
||||
@@ -1054,12 +1098,13 @@ const file_order_order_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"address_id\x18\x01 \x01(\x03R\taddressId\x12\x12\n" +
|
||||
"\x04note\x18\x02 \x01(\tR\x04note\x12\x12\n" +
|
||||
"\x04type\x18\x03 \x01(\x05R\x04type\"\x8e\x01\n" +
|
||||
"\x04type\x18\x03 \x01(\x05R\x04type\"\x8f\x01\n" +
|
||||
"\x15CreateOrderOneRequest\x12\x1d\n" +
|
||||
"\n" +
|
||||
"address_id\x18\x01 \x01(\x03R\taddressId\x12\x12\n" +
|
||||
"\x04note\x18\x02 \x01(\tR\x04note\x12\x1c\n" +
|
||||
"\tproductid\x18\x03 \x01(\x03R\tproductid\x12\x10\n" +
|
||||
"\x04note\x18\x02 \x01(\tR\x04note\x12\x1d\n" +
|
||||
"\n" +
|
||||
"product_id\x18\x03 \x01(\x03R\tproductId\x12\x10\n" +
|
||||
"\x03num\x18\x04 \x01(\x05R\x03num\x12\x12\n" +
|
||||
"\x04type\x18\x05 \x01(\x05R\x04type\"\xd7\x01\n" +
|
||||
"\x12EditAddressRequest\x12\x1a\n" +
|
||||
@@ -1097,7 +1142,9 @@ const file_order_order_proto_rawDesc = "" +
|
||||
"\x06mobile\x18\x05 \x01(\tR\x06mobile\x12\x19\n" +
|
||||
"\bstore_id\x18\x06 \x01(\x03R\astoreId\x12\x17\n" +
|
||||
"\asale_id\x18\a \x01(\x03R\x06saleId\x12\x12\n" +
|
||||
"\x04time\x18\b \x03(\tR\x04time\"C\n" +
|
||||
"\x04time\x18\b \x03(\tR\x04time\"7\n" +
|
||||
"\x1aAddressByStoreItemsRequest\x12\x19\n" +
|
||||
"\bstore_id\x18\x01 \x01(\x03R\astoreId\"C\n" +
|
||||
"\x19OrderAuditingItemsRequest\x12\x12\n" +
|
||||
"\x04page\x18\x01 \x01(\x05R\x04page\x12\x12\n" +
|
||||
"\x04size\x18\x02 \x01(\x05R\x04size\"V\n" +
|
||||
@@ -1109,7 +1156,7 @@ const file_order_order_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"address_id\x18\x01 \x01(\x03R\taddressId\x12\x12\n" +
|
||||
"\x04note\x18\x02 \x01(\tR\x04note\x12\x12\n" +
|
||||
"\x04info\x18\x03 \x01(\tR\x04info2\x84\v\n" +
|
||||
"\x04info\x18\x03 \x01(\tR\x04info2\xf4\v\n" +
|
||||
"\x05order\x12T\n" +
|
||||
"\x05Items\x12\x18.order.OrderItemsRequest\x1a\x0f.order.Response\" \x82\xd3\xe4\x93\x02\x1a:\x01*\x12\x15/admin/v3/order/items\x12X\n" +
|
||||
"\tWebCreate\x12\x19.order.CreateOrderRequest\x1a\x0f.order.Response\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/api/v3/order/create\x12b\n" +
|
||||
@@ -1122,7 +1169,8 @@ const file_order_order_proto_rawDesc = "" +
|
||||
"\x0fWebAddressItems\x12\x12.order.TypeRequest\x1a\x0f.order.Response\" \x82\xd3\xe4\x93\x02\x1a:\x01*\x12\x15/api/v3/address/items\x12G\n" +
|
||||
"\aWebCart\x12\x12.order.CartRequest\x1a\x0f.order.Response\"\x17\x82\xd3\xe4\x93\x02\x11:\x01*\x12\f/api/v3/cart\x12T\n" +
|
||||
"\vWebCartEdit\x12\x16.order.EditCartRequest\x1a\x0f.order.Response\"\x1c\x82\xd3\xe4\x93\x02\x16:\x01*\"\x11/api/v3/cart/edit\x12^\n" +
|
||||
"\vAddressItem\x12\x1a.order.AddressItemsRequest\x1a\x0f.order.Response\"\"\x82\xd3\xe4\x93\x02\x1c:\x01*\x12\x17/admin/v3/address/items\x12r\n" +
|
||||
"\vAddressItem\x12\x1a.order.AddressItemsRequest\x1a\x0f.order.Response\"\"\x82\xd3\xe4\x93\x02\x1c:\x01*\x12\x17/admin/v3/address/items\x12n\n" +
|
||||
"\x0eAddressByStore\x12!.order.AddressByStoreItemsRequest\x1a\x0f.order.Response\"(\x82\xd3\xe4\x93\x02\":\x01*\x12\x1d/admin/v3/address/store/items\x12r\n" +
|
||||
"\x12OrderAuditingItems\x12 .order.OrderAuditingItemsRequest\x1a\x0f.order.Response\")\x82\xd3\xe4\x93\x02#:\x01*\x12\x1e/admin/v3/order/auditing/items\x12b\n" +
|
||||
"\rOrderAuditing\x12\x1b.order.OrderAuditingRequest\x1a\x0f.order.Response\"#\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/admin/v3/order/auditing\x12a\n" +
|
||||
"\vOrderCreate\x12\x1e.order.AdminCreateOrderRequest\x1a\x0f.order.Response\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/admin/v3/order/createB\x19Z\x17lone-services/rpc/orderb\x06proto3"
|
||||
@@ -1139,24 +1187,25 @@ func file_order_order_proto_rawDescGZIP() []byte {
|
||||
return file_order_order_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_order_order_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
||||
var file_order_order_proto_msgTypes = make([]protoimpl.MessageInfo, 17)
|
||||
var file_order_order_proto_goTypes = []any{
|
||||
(*OrderItemsRequest)(nil), // 0: order.OrderItemsRequest
|
||||
(*Response)(nil), // 1: order.Response
|
||||
(*CreateOrderRequest)(nil), // 2: order.CreateOrderRequest
|
||||
(*CreateOrderOneRequest)(nil), // 3: order.CreateOrderOneRequest
|
||||
(*EditAddressRequest)(nil), // 4: order.EditAddressRequest
|
||||
(*StatusAddressRequest)(nil), // 5: order.StatusAddressRequest
|
||||
(*EmptyRequest)(nil), // 6: order.EmptyRequest
|
||||
(*EditCartRequest)(nil), // 7: order.EditCartRequest
|
||||
(*CartRequest)(nil), // 8: order.CartRequest
|
||||
(*IdRequest)(nil), // 9: order.IdRequest
|
||||
(*IdAndTypeRequest)(nil), // 10: order.IdAndTypeRequest
|
||||
(*TypeRequest)(nil), // 11: order.TypeRequest
|
||||
(*AddressItemsRequest)(nil), // 12: order.AddressItemsRequest
|
||||
(*OrderAuditingItemsRequest)(nil), // 13: order.OrderAuditingItemsRequest
|
||||
(*OrderAuditingRequest)(nil), // 14: order.OrderAuditingRequest
|
||||
(*AdminCreateOrderRequest)(nil), // 15: order.AdminCreateOrderRequest
|
||||
(*OrderItemsRequest)(nil), // 0: order.OrderItemsRequest
|
||||
(*Response)(nil), // 1: order.Response
|
||||
(*CreateOrderRequest)(nil), // 2: order.CreateOrderRequest
|
||||
(*CreateOrderOneRequest)(nil), // 3: order.CreateOrderOneRequest
|
||||
(*EditAddressRequest)(nil), // 4: order.EditAddressRequest
|
||||
(*StatusAddressRequest)(nil), // 5: order.StatusAddressRequest
|
||||
(*EmptyRequest)(nil), // 6: order.EmptyRequest
|
||||
(*EditCartRequest)(nil), // 7: order.EditCartRequest
|
||||
(*CartRequest)(nil), // 8: order.CartRequest
|
||||
(*IdRequest)(nil), // 9: order.IdRequest
|
||||
(*IdAndTypeRequest)(nil), // 10: order.IdAndTypeRequest
|
||||
(*TypeRequest)(nil), // 11: order.TypeRequest
|
||||
(*AddressItemsRequest)(nil), // 12: order.AddressItemsRequest
|
||||
(*AddressByStoreItemsRequest)(nil), // 13: order.AddressByStoreItemsRequest
|
||||
(*OrderAuditingItemsRequest)(nil), // 14: order.OrderAuditingItemsRequest
|
||||
(*OrderAuditingRequest)(nil), // 15: order.OrderAuditingRequest
|
||||
(*AdminCreateOrderRequest)(nil), // 16: order.AdminCreateOrderRequest
|
||||
}
|
||||
var file_order_order_proto_depIdxs = []int32{
|
||||
0, // 0: order.order.Items:input_type -> order.OrderItemsRequest
|
||||
@@ -1171,26 +1220,28 @@ var file_order_order_proto_depIdxs = []int32{
|
||||
8, // 9: order.order.WebCart:input_type -> order.CartRequest
|
||||
7, // 10: order.order.WebCartEdit:input_type -> order.EditCartRequest
|
||||
12, // 11: order.order.AddressItem:input_type -> order.AddressItemsRequest
|
||||
13, // 12: order.order.OrderAuditingItems:input_type -> order.OrderAuditingItemsRequest
|
||||
14, // 13: order.order.OrderAuditing:input_type -> order.OrderAuditingRequest
|
||||
15, // 14: order.order.OrderCreate:input_type -> order.AdminCreateOrderRequest
|
||||
1, // 15: order.order.Items:output_type -> order.Response
|
||||
1, // 16: order.order.WebCreate:output_type -> order.Response
|
||||
1, // 17: order.order.WebCreateOne:output_type -> order.Response
|
||||
1, // 18: order.order.WebAddressCreate:output_type -> order.Response
|
||||
1, // 19: order.order.WebAddressEdit:output_type -> order.Response
|
||||
1, // 20: order.order.WebAddressDel:output_type -> order.Response
|
||||
1, // 21: order.order.WebAddressDef:output_type -> order.Response
|
||||
1, // 22: order.order.WebAddressInfo:output_type -> order.Response
|
||||
1, // 23: order.order.WebAddressItems:output_type -> order.Response
|
||||
1, // 24: order.order.WebCart:output_type -> order.Response
|
||||
1, // 25: order.order.WebCartEdit:output_type -> order.Response
|
||||
1, // 26: order.order.AddressItem:output_type -> order.Response
|
||||
1, // 27: order.order.OrderAuditingItems:output_type -> order.Response
|
||||
1, // 28: order.order.OrderAuditing:output_type -> order.Response
|
||||
1, // 29: order.order.OrderCreate:output_type -> order.Response
|
||||
15, // [15:30] is the sub-list for method output_type
|
||||
0, // [0:15] is the sub-list for method input_type
|
||||
13, // 12: order.order.AddressByStore:input_type -> order.AddressByStoreItemsRequest
|
||||
14, // 13: order.order.OrderAuditingItems:input_type -> order.OrderAuditingItemsRequest
|
||||
15, // 14: order.order.OrderAuditing:input_type -> order.OrderAuditingRequest
|
||||
16, // 15: order.order.OrderCreate:input_type -> order.AdminCreateOrderRequest
|
||||
1, // 16: order.order.Items:output_type -> order.Response
|
||||
1, // 17: order.order.WebCreate:output_type -> order.Response
|
||||
1, // 18: order.order.WebCreateOne:output_type -> order.Response
|
||||
1, // 19: order.order.WebAddressCreate:output_type -> order.Response
|
||||
1, // 20: order.order.WebAddressEdit:output_type -> order.Response
|
||||
1, // 21: order.order.WebAddressDel:output_type -> order.Response
|
||||
1, // 22: order.order.WebAddressDef:output_type -> order.Response
|
||||
1, // 23: order.order.WebAddressInfo:output_type -> order.Response
|
||||
1, // 24: order.order.WebAddressItems:output_type -> order.Response
|
||||
1, // 25: order.order.WebCart:output_type -> order.Response
|
||||
1, // 26: order.order.WebCartEdit:output_type -> order.Response
|
||||
1, // 27: order.order.AddressItem:output_type -> order.Response
|
||||
1, // 28: order.order.AddressByStore:output_type -> order.Response
|
||||
1, // 29: order.order.OrderAuditingItems:output_type -> order.Response
|
||||
1, // 30: order.order.OrderAuditing:output_type -> order.Response
|
||||
1, // 31: order.order.OrderCreate:output_type -> order.Response
|
||||
16, // [16:32] is the sub-list for method output_type
|
||||
0, // [0:16] 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
|
||||
@@ -1207,7 +1258,7 @@ func file_order_order_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_order_order_proto_rawDesc), len(file_order_order_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 16,
|
||||
NumMessages: 17,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
||||
@@ -31,6 +31,7 @@ const (
|
||||
Order_WebCart_FullMethodName = "/order.order/WebCart"
|
||||
Order_WebCartEdit_FullMethodName = "/order.order/WebCartEdit"
|
||||
Order_AddressItem_FullMethodName = "/order.order/AddressItem"
|
||||
Order_AddressByStore_FullMethodName = "/order.order/AddressByStore"
|
||||
Order_OrderAuditingItems_FullMethodName = "/order.order/OrderAuditingItems"
|
||||
Order_OrderAuditing_FullMethodName = "/order.order/OrderAuditing"
|
||||
Order_OrderCreate_FullMethodName = "/order.order/OrderCreate"
|
||||
@@ -52,6 +53,7 @@ type OrderClient interface {
|
||||
WebCart(ctx context.Context, in *CartRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
WebCartEdit(ctx context.Context, in *EditCartRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
AddressItem(ctx context.Context, in *AddressItemsRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
AddressByStore(ctx context.Context, in *AddressByStoreItemsRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
OrderAuditingItems(ctx context.Context, in *OrderAuditingItemsRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
OrderAuditing(ctx context.Context, in *OrderAuditingRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
OrderCreate(ctx context.Context, in *AdminCreateOrderRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
@@ -185,6 +187,16 @@ func (c *orderClient) AddressItem(ctx context.Context, in *AddressItemsRequest,
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *orderClient) AddressByStore(ctx context.Context, in *AddressByStoreItemsRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Order_AddressByStore_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *orderClient) OrderAuditingItems(ctx context.Context, in *OrderAuditingItemsRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
@@ -231,6 +243,7 @@ type OrderServer interface {
|
||||
WebCart(context.Context, *CartRequest) (*Response, error)
|
||||
WebCartEdit(context.Context, *EditCartRequest) (*Response, error)
|
||||
AddressItem(context.Context, *AddressItemsRequest) (*Response, error)
|
||||
AddressByStore(context.Context, *AddressByStoreItemsRequest) (*Response, error)
|
||||
OrderAuditingItems(context.Context, *OrderAuditingItemsRequest) (*Response, error)
|
||||
OrderAuditing(context.Context, *OrderAuditingRequest) (*Response, error)
|
||||
OrderCreate(context.Context, *AdminCreateOrderRequest) (*Response, error)
|
||||
@@ -280,6 +293,9 @@ func (UnimplementedOrderServer) WebCartEdit(context.Context, *EditCartRequest) (
|
||||
func (UnimplementedOrderServer) AddressItem(context.Context, *AddressItemsRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method AddressItem not implemented")
|
||||
}
|
||||
func (UnimplementedOrderServer) AddressByStore(context.Context, *AddressByStoreItemsRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method AddressByStore not implemented")
|
||||
}
|
||||
func (UnimplementedOrderServer) OrderAuditingItems(context.Context, *OrderAuditingItemsRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method OrderAuditingItems not implemented")
|
||||
}
|
||||
@@ -526,6 +542,24 @@ func _Order_AddressItem_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Order_AddressByStore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AddressByStoreItemsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(OrderServer).AddressByStore(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Order_AddressByStore_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(OrderServer).AddressByStore(ctx, req.(*AddressByStoreItemsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Order_OrderAuditingItems_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(OrderAuditingItemsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -635,6 +669,10 @@ var Order_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "AddressItem",
|
||||
Handler: _Order_AddressItem_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "AddressByStore",
|
||||
Handler: _Order_AddressByStore_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "OrderAuditingItems",
|
||||
Handler: _Order_OrderAuditingItems_Handler,
|
||||
|
||||
Reference in New Issue
Block a user