package jnpf.cultivate;

import jnpf.cultivate.fallback.FtbCultivateLearnTaskApiFallback;
import jnpf.util.NoDataSourceBind;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 鉴定api
 */
@FeignClient(name = "jnpf-ftb", fallbackFactory = FtbCultivateLearnTaskApiFallback.class, path = "/web/learnTaskList/")
public interface FtbCultivateLearnTaskListApi {

    /**
     * 定时加入任务
     *
     * @return
     */
    @GetMapping("/timing/timingAddNewPersonToTaskNew/{tenantId}")
    @NoDataSourceBind
    void timingAddNewPersonToTaskNew(@PathVariable("tenantId") String tenantId);


    /**
     * 定时提醒任务（每天定点）
     *
     * @return
     */
    @GetMapping("/timing/timingTaskLearningAlertNew/{tenantId}")
    @NoDataSourceBind
    void timingTaskLearningAlertNew(@PathVariable("tenantId") String tenantId);
}
