| | |
| | | rpc UpdatePurchaseStatus(UpdatePurchaseStatusRequest) returns (UpdatePurchaseStatusResponse) {} |
| | | rpc GetSupplierListByProductId(GetSupplierListByProductIdRequest) returns (GetSupplierListByProductIdResponse) {} |
| | | rpc CreatePurchaseByWms(CreatePurchaseByWmsRequest) returns (CreatePurchaseByWmsResponse) {} |
| | | rpc GetPurchaseInfo(GetPurchaseInfoRequest) returns (GetPurchaseInfoResponse) {} |
| | | } |
| | | |
| | | //------------------------------------------PurchaseToWms-------------------------------- |
| | |
| | | int64 SupplierId = 1; |
| | | string ProductId = 2; |
| | | int64 Amount = 3; |
| | | string Source = 4; |
| | | } |
| | | |
| | | message CreatePurchaseByWmsResponse { |
| | |
| | | string PurchaseNumber = 3; |
| | | } |
| | | |
| | | //-------------------------------------------------------GetPurchaseInfo--------------------------------------- |
| | | |
| | | message GetPurchaseInfoRequest { |
| | | repeated string PurchaseNumbers = 1; |
| | | } |
| | | |
| | | message PurchaseInfo { |
| | | string purchaseNumber = 1; |
| | | string purchaseName = 2; |
| | | string supplierName = 3; |
| | | int64 amount = 4; |
| | | int64 status = 5; |
| | | } |
| | | |
| | | message GetPurchaseInfoResponse { |
| | | repeated PurchaseInfo Infos = 1; |
| | | } |
| | | |
| | | |
| | | |