| | |
| | | |
| | | option go_package = "./product_inventory"; |
| | | |
| | | import "common.proto"; |
| | | |
| | | service productInventoryService { |
| | | rpc CreateOperation(CreateOperationRequest) returns(CreateOperationResponse) {} |
| | | rpc GetInventoryProductInfo(GetInventoryProductInfoRequest) returns (GetInventoryProductInfoResponse) {} |
| | | rpc UpdateSalesDetailStatus(UpdateSalesDetailStatusRequest) returns (UpdateSalesDetailStatusResponse) {} |
| | | rpc GetOrderInputAndOutputInfo(GetOrderInputAndOutputInfoRequest) returns (GetOrderInputAndOutputInfoResponse) {} |
| | | rpc OrderProductOutput(OrderProductOutputRequest) returns (OrderProductOutputResponse) {} |
| | | rpc GetOutputOperationInfo(GetOutputOperationInfoRequest) returns (GetOutputOperationInfoResponse) {} |
| | | } |
| | | |
| | | message CreateOperationRequest{ |
| | |
| | | int64 ClientId = 7; |
| | | string ClientName = 8; |
| | | repeated InventoryProduct ProductList = 9; |
| | | OperationSource OperationSource = 10; |
| | | } |
| | | |
| | | message InventoryProduct{ |
| | |
| | | string Amount = 11; //数量 |
| | | FinishStatus Status = 13; |
| | | string CreateTime = 14; |
| | | int64 LocationID = 15; |
| | | int64 WareHouseID = 16; |
| | | } |
| | | message GetOrderInputAndOutputInfoRequest { |
| | | string Number = 1;//明细单编码 |
| | | string Number = 1;//明细单编码 |
| | | } |
| | | |
| | | message GetOrderInputAndOutputInfoResponse { |
| | |
| | | string Msg = 2; |
| | | repeated InputAndOutputInfo InputList = 3; |
| | | repeated InputAndOutputInfo OutputList = 4; |
| | | } |
| | | |
| | | message OutputProduct { |
| | | string Number = 1;//产品编码 |
| | | string Amount = 2; //发货数量 |
| | | } |
| | | |
| | | |
| | | message OrderProductOutputRequest { |
| | | string OrderNumber = 1;//明细单编码 |
| | | repeated OutputProduct Products= 2;//发货明细 |
| | | int64 warehouseId = 3;//发货仓库ID |
| | | } |
| | | |
| | | message OrderProductOutputResponse { |
| | | int32 Code = 1; |
| | | string Msg = 2; |
| | | } |
| | | |
| | | //------------------------------------------------------------------------------------------------ |
| | | |
| | | message GetOutputOperationInfoRequest{ |
| | | string Number = 1;//明细单编码 |
| | | } |
| | | |
| | | message GetOutputOperationInfoResponse{ |
| | | repeated OutputProduct Products= 1;//发货明细 |
| | | } |