| | |
| | | service productService { |
| | | rpc GetProductInfo(GetProductInfoRequest) returns(GetProductInfoResponse) {} |
| | | rpc GetProductList(GetProductListRequest) returns(GetProductListResponse) {} |
| | | rpc GetProductOrder(GetProductOrderRequest) returns (GetProductOrderResponse) {} |
| | | } |
| | | |
| | | message GetProductInfoRequest{ |
| | |
| | | string Msg = 2; |
| | | repeated Product List = 3; |
| | | int64 Total = 4; |
| | | } |
| | | |
| | | //------------------------------------------------------------- |
| | | |
| | | message GetProductOrderRequest { |
| | | string SalesDetailsNumber= 1; |
| | | } |
| | | |
| | | message WorkOrderInfo{ |
| | | string OrderId = 1; |
| | | string ProductName = 2; |
| | | string OrderStatus = 3; |
| | | string WorkOrderId = 4; |
| | | string WorkOrderStatus = 5; |
| | | string StartTime = 6; |
| | | string EndTime = 7; |
| | | string ProductId = 8; |
| | | string Specs = 9;//物料规格 |
| | | string Unit = 10;//单位 |
| | | int64 Amount = 11;//订单数量 |
| | | int64 FinishAmount = 12;//完成数量 |
| | | } |
| | | |
| | | message CrmGetPurchaseInfo { |
| | | string PurchaseNumber = 1; |
| | | string PurchaseName = 2; |
| | | string SupplierName = 3; |
| | | int64 Amount = 4;//订单数量 |
| | | int64 Status = 5; |
| | | string ProductName = 6; |
| | | string ProductId = 7; |
| | | string Specs = 8;//物料规格 |
| | | string Unit = 9;//单位 |
| | | int64 FinishAmount = 10;//完成数量 |
| | | } |
| | | |
| | | message OutsourcingInfo { |
| | | string OutsourcingId = 1; |
| | | string ProductName = 2; |
| | | string OutsourcingStatus = 3; |
| | | string SupplierName = 4; |
| | | string StartTime = 5; |
| | | string EndTime = 6; |
| | | string ProductId = 7; |
| | | string Specs = 8;//物料规格 |
| | | string Unit = 9;//单位 |
| | | int64 Amount = 10;//订单数量 |
| | | int64 FinishAmount = 11;//完成数量 |
| | | } |
| | | |
| | | message GetProductOrderResponse{ |
| | | repeated WorkOrderInfo List = 1;//制造信息 |
| | | repeated CrmGetPurchaseInfo PurchaseList = 2;//采购信息 |
| | | repeated OutsourcingInfo OutsourcingList = 3;//委外信息 |
| | | } |