| | |
| | | service productService { |
| | | rpc GetProductInfo(GetProductInfoRequest) returns(GetProductInfoResponse) {} |
| | | rpc GetProductList(GetProductListRequest) returns(GetProductListResponse) {} |
| | | rpc GetProductOrder(GetProductOrderRequest) returns (GetProductOrderResponse) {} |
| | | } |
| | | |
| | | message GetProductInfoRequest{ |
| | |
| | | } |
| | | |
| | | message GetProductInfoResponse{ |
| | | int32 Code = 1; |
| | | string Msg = 2; |
| | | int32 Code = 1; |
| | | string Msg = 2; |
| | | Product Data = 3; |
| | | } |
| | | message Product { |
| | |
| | | string Name = 2; |
| | | string Unit = 3; |
| | | bool IsSale = 4; //是否销售 |
| | | float SalePrice = 5; //销售价格 |
| | | double SalePrice = 5; //销售价格 |
| | | float Amount = 6;//库存剩余量 |
| | | int32 MinInventory = 7;//安全库存 |
| | | string MaterialMode = 8; //物料类型 |
| | | string PurchaseType = 9;//采购类型 |
| | | int32 MaxInventory = 8; // 最大库存 |
| | | string MaterialMode = 9; //物料类型 |
| | | string PurchaseType = 10;//采购类型 |
| | | string Node = 11; // 备注 |
| | | string Type = 12; // 型号 |
| | | string Specs = 13; // 规格 |
| | | } |
| | | |
| | | message GetProductListRequest{ |
| | |
| | | } |
| | | |
| | | message GetProductListResponse{ |
| | | int32 Code = 1; |
| | | string Msg = 2; |
| | | int32 Code = 1; |
| | | string Msg = 2; |
| | | repeated Product List = 3; |
| | | int64 Total = 4; |
| | | } |
| | | |
| | | //------------------------------------------------------------- |
| | | |
| | | message Info { |
| | | string ProductId = 1; |
| | | string StartTime = 2; |
| | | string EndTime = 3; |
| | | } |
| | | |
| | | message GetProductOrderRequest { |
| | | repeated Info Params = 1; |
| | | } |
| | | |
| | | message WorkOrderInfo{ |
| | | string OrderId = 1; |
| | | string ProductName = 2; |
| | | string OrderStatus = 3; |
| | | string WorkOrderId = 4; |
| | | string WorkOrderStatus = 5; |
| | | string StartTime = 6; |
| | | string EndTime = 7; |
| | | } |
| | | |
| | | message GetProductOrderResponse{ |
| | | int32 Code = 1; |
| | | string Msg = 2; |
| | | repeated WorkOrderInfo List = 3; |
| | | } |