package jnpf.notice;

import jnpf.base.ActionResult;
import jnpf.notice.fallback.FtbNoticeFallBackApi;
import jnpf.util.NoDataSourceBind;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name = "jnpf-ftb", fallback = FtbNoticeFallBackApi.class, path = "/web/noticeAnnouncements")
public interface FtbNoticeApi {

    /**
     * 每半个小时检测一下是否有发布的通知公告
     *
     * @param tenantId 租户ID
     * @return
     */
    @NoDataSourceBind
    @GetMapping("/checkPublishNotice")
    ActionResult<Boolean>  checkPublishNotice(@RequestParam("tenantId") String tenantId);
}
