| | |
| | | service PurchaseService { |
| | | rpc PurchaseToWms(PurchaseToWmsRequest) returns (PurchaseToWmsResponse); |
| | | rpc UpdatePurchaseStatus(UpdatePurchaseStatusRequest) returns (UpdatePurchaseStatusResponse) {} |
| | | rpc GetSupplierListByProductId(GetSupplierListByProductIdRequest) returns (GetSupplierListByProductIdResponse) {} |
| | | rpc CreatePurchaseByWms(CreatePurchaseByWmsRequest) returns (CreatePurchaseByWmsResponse) {} |
| | | } |
| | | |
| | | //------------------------------------------PurchaseToWms-------------------------------- |
| | | |
| | | message PurchaseProduct{ |
| | | string Id = 1; |
| | |
| | | string message = 2; |
| | | } |
| | | |
| | | //------------------------------------------------------------------- |
| | | //------------------------------------------------UpdatePurchaseStatus------------------------------------- |
| | | |
| | | message UpdatePurchaseStatusRequest { |
| | | string Number = 1;//采购编号 |
| | |
| | | string Msg = 2; |
| | | } |
| | | |
| | | //--------------------------------------------------GetSupplierListByProductId------------------------------ |
| | | |
| | | message GetSupplierListByProductIdRequest { |
| | | string ProductId = 1; |
| | | } |
| | | |
| | | message SupplierList { |
| | | int64 supplierId = 1; |
| | | string supplierName = 2; |
| | | float purchasePrice = 3;//采购价格 |
| | | } |
| | | |
| | | message GetSupplierListByProductIdResponse { |
| | | int32 Code = 1; |
| | | string Msg = 2; |
| | | repeated SupplierList List = 3; |
| | | } |
| | | |
| | | //-----------------------------------------------------CreatePurchaseByWms-------------------------------------- |
| | | |
| | | message CreatePurchaseByWmsRequest { |
| | | int64 SupplierId = 1; |
| | | string ProductId = 2; |
| | | int64 Amount = 3; |
| | | } |
| | | |
| | | message CreatePurchaseByWmsResponse { |
| | | int32 Code = 1; |
| | | string Msg = 2; |
| | | string PurchaseNumber = 3; |
| | | } |
| | | |