RemoteShipmentHeaderService.java
888 Bytes
package com.huaheng.shipment.api;
import com.huaheng.common.core.constant.ServiceNameConstants;
import com.huaheng.shipment.api.domain.ShipmentHeader;
import com.huaheng.shipment.api.factory.RemoteShipmentHeaderFallFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
@FeignClient(contextId = "remoteShipmentHeaderService", value = ServiceNameConstants.SHIPMENT_SERVICE, fallbackFactory = RemoteShipmentHeaderFallFactory.class)
public interface RemoteShipmentHeaderService {
@GetMapping("/shipment/shipmentHeader/{id}")
ShipmentHeader getById(@PathVariable(value = "id") Integer id);
@PutMapping("/shipment/shipmentHeader")
boolean updateById(ShipmentHeader shipmentHeader);
}