RemoteShipmentContainerHeaderService.java 1.33 KB
package com.huaheng.shipment.api;

import com.huaheng.common.core.constant.ServiceNameConstants;
import com.huaheng.shipment.api.domain.ShipmentContainerDetail;
import com.huaheng.shipment.api.domain.ShipmentContainerHeader;
import com.huaheng.shipment.api.factory.RemoteShipmentContainerDetailFallFactory;
import com.huaheng.shipment.api.factory.RemoteShipmentContainerHeaderFallFactory;
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;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "remoteShipmentContainerHeaderService", value = ServiceNameConstants.SHIPMENT_SERVICE, fallbackFactory = RemoteShipmentContainerHeaderFallFactory.class)
public interface RemoteShipmentContainerHeaderService {

    @GetMapping("/shipmentContainerHeader/{id}")
    ShipmentContainerHeader getById(@PathVariable(value = "id") Integer id);

    @PutMapping("/shipmentContainerHeader/updateStatus")
    boolean updateStatus(@RequestParam(value = "id") Integer id, @RequestParam(value = "status") Integer status);

    @GetMapping("/shipmentContainerHeader/getUnCompleteShipmentContainer")
    int getUnCompleteShipmentContainer(String locationCode);
}