package jnpf.cultivate;

import jnpf.cultivate.fallback.FtbCultivateIdentifyApiFallback;
import jnpf.util.NoDataSourceBind;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 鉴定api
 */
@FeignClient(name = "jnpf-ftb", fallbackFactory = FtbCultivateIdentifyApiFallback.class, path = "/cultivate")
public interface FtbCultivateIdentifyApi {
    /**
     * 处理鉴定逾期数据
     *
     * @param tenantId
     * @return
     */
    @PostMapping(value = "/apply/setIdentifyBeOverdue")
    @NoDataSourceBind
    Boolean setIdentifyBeOverdue(@RequestParam(value = "tenantId") String tenantId);

    /**
     * 计划鉴定时间提醒
     *
     * @param tenantId
     * @return
     */
    @PostMapping(value = "/apply/setIdentifyRemind")
    @NoDataSourceBind
    Boolean setIdentifyRemind(@RequestParam(value = "tenantId") String tenantId);
}
