| | |
| | | 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 Info { |
| | | string ProductId = 1; |
| | | string Time = 2; |
| | | } |
| | | |
| | | 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; |
| | | } |