| | |
| | | rpc CreatePurchaseByWms(CreatePurchaseByWmsRequest) returns (CreatePurchaseByWmsResponse) {} |
| | | rpc GetPurchaseInfo(GetPurchaseInfoRequest) returns (GetPurchaseInfoResponse) {} |
| | | rpc ExistSupplier(ExistSupplierRequest) returns (ExistSupplierResponse) {} |
| | | rpc SrmGetWarehouseInfo(SrmGetWarehouseInfoRequest) returns (SrmGetWarehouseInfoResponse) {} |
| | | rpc SrmGetOperationInfo(SrmGetOperationInfoRequest) returns (SrmGetOperationInfoResponse) {} |
| | | } |
| | | |
| | | //------------------------------------------PurchaseToWms-------------------------------- |
| | |
| | | bool Exist = 1; |
| | | } |
| | | |
| | | //--------------------------------------------------SrmGetWarehouseInfo--------------------------------------- |
| | | message SrmGetWarehouseInfoRequest{} |
| | | |
| | | message SrmWarehouseInfo{ |
| | | string name = 1;//仓库名 |
| | | string address = 2;//仓库地址 |
| | | string principal = 3;//仓库负责人 |
| | | } |
| | | |
| | | message SrmGetWarehouseInfoResponse{ |
| | | repeated SrmWarehouseInfo info = 1; |
| | | } |
| | | |
| | | //--------------------------------------------------SrmGetOperationInfo--------------------------------------- |
| | | message SrmGetOperationInfoRequest{ |
| | | string number = 1; |
| | | } |
| | | |
| | | message SrmOperation{ |
| | | string number = 1;//入库单号 |
| | | string warehouseName = 2;//仓库名称 |
| | | string productName = 3;//产品名称 |
| | | string productId = 4;//产品编码 |
| | | int64 amount = 5;//数量 |
| | | string overTime = 6;//入库时间 |
| | | string consignee = 7;//收货人 |
| | | int64 status = 8;//状态 |
| | | } |
| | | |
| | | message SrmGetOperationInfoResponse{ |
| | | repeated SrmOperation operations = 1; |
| | | } |