| | |
| | | rpc GetSupplierListByProductId(GetSupplierListByProductIdRequest) returns (GetSupplierListByProductIdResponse) {} |
| | | rpc CreatePurchaseByWms(CreatePurchaseByWmsRequest) returns (CreatePurchaseByWmsResponse) {} |
| | | rpc GetPurchaseInfo(GetPurchaseInfoRequest) returns (GetPurchaseInfoResponse) {} |
| | | rpc ExistSupplier(ExistSupplierRequest) returns (ExistSupplierResponse) {} |
| | | } |
| | | |
| | | //------------------------------------------PurchaseToWms-------------------------------- |
| | |
| | | message PurchaseToWmsRequest { |
| | | string Number = 1; //采购编号 |
| | | string SupplierName = 2; //供应商 |
| | | repeated PurchaseProduct Product = 3; |
| | | string Source = 3;//来源 |
| | | repeated PurchaseProduct Product = 4; |
| | | } |
| | | |
| | | message PurchaseToWmsResponse { |
| | | int32 code = 1; |
| | | string message = 2; |
| | | string Warehouse = 3; |
| | | } |
| | | |
| | | //------------------------------------------------UpdatePurchaseStatus------------------------------------- |
| | |
| | | repeated PurchaseInfo Infos = 1; |
| | | } |
| | | |
| | | //--------------------------------------------------ExistSupplier--------------------------------------- |
| | | |
| | | message ExistSupplierRequest { |
| | | repeated string ProductId = 1; |
| | | } |
| | | |
| | | message ExistSupplierResponse { |
| | | bool Exist = 1; |
| | | } |
| | | |
| | | |
| | | |