RemoteCycleCountHeaderService.java 1014 Bytes
package com.huaheng.cycle.api;

import com.huaheng.common.core.constant.ServiceNameConstants;
import com.huaheng.cycle.api.domain.CycleCountHeader;
import com.huaheng.cycle.api.factory.RemoteCycleCountHeaderFallFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "remoteCycleCountHeaderService", value = ServiceNameConstants.CYCLE_SERVICE, fallbackFactory = RemoteCycleCountHeaderFallFactory.class)
public interface RemoteCycleCountHeaderService {

    @GetMapping("/cycle/cycleCountHeader/getByCode")
    CycleCountHeader getByCode(String code);

    @PostMapping("/cycle/cycleCountHeader/updateStatus")
    boolean updateStatus(@RequestParam(value = "headerCode") String headerCode, @RequestParam(value = "status") Integer status);
}