syntax = "proto3"; option go_package = "./product_inventory"; service productInventoryService { rpc CreateOperation(CreateOperationRequest) returns(CreateOperationResponse) {} rpc GetInventoryProductInfo(GetInventoryProductInfoRequest) returns (GetInventoryProductInfoResponse) {} rpc UpdateSalesDetailStatus(UpdateSalesDetailStatusRequest) returns (UpdateSalesDetailStatusResponse) {} } message CreateOperationRequest{ string Number = 1;//明细单编码 string Addressee = 2;//收货人 string Address = 3;//收货地址 string Phone = 4; int32 DeliverType = 5;//交付类型 repeated InventoryProduct ProductList = 6; } message InventoryProduct{ string Id = 1; string Amount = 2; } message CreateOperationResponse{ int32 Code = 1; string Msg = 2; } //------------------------------------------------------- message GetInventoryProductInfoRequest { string Number = 1;//明细单编码 } message ProductInfo{ string Id = 1; string Name = 2; string OrderAmount = 3;//订单数量 string Unit = 4; string Invoice = 5;//发货单 string Carrier = 6;//承运商 string Waybill = 7;//运单号 string SalePrice = 8;//销售单价 string Valorem = 9;//价税合计 string Warehouse = 10; string Amount = 11;//在库数量 string AvailableNumber = 12;//可用库存 } message GetInventoryProductInfoResponse{ int32 Code = 1; string Msg = 2; repeated ProductInfo ProductList = 3; } //------------------------------------------------------------ message UpdateSalesDetailStatusRequest { string Number = 1;//明细单编码 string SalesDetailStatus = 2; } message UpdateSalesDetailStatusResponse{ int32 Code = 1; string Msg = 2; }