package jnpf.personnels;

import jnpf.base.ActionResult;
import jnpf.model.personnels.dto.contractinfo.ContactStatusInfo;
import jnpf.personnels.fallback.FtbPersonnelsContaceInfoManagerFallBackApi;
import jnpf.util.NoDataSourceBind;
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.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name = "jnpf-ftb", fallback = FtbPersonnelsContaceInfoManagerFallBackApi.class, path = "/web/personnelsContactInfo")
public interface FtbPersonnelsContactInfoManagerApi {

    /**
     * 同步合同信息
     *
     * @param info
     * @return
     */
    @PostMapping("/syncContactInfo")
    @NoDataSourceBind
    ActionResult<Boolean> syncContactInfo(@RequestBody ContactStatusInfo info);

    /**
     * 定时任务检测未签署合同消息
     *
     * @param tenantId
     * @return
     */
    @GetMapping("/checkNotSendContactSign")
    @NoDataSourceBind
    ActionResult<Boolean> checkNotSendContactSign(@RequestParam("tenantId") String tenantId);


}
