package com.yonge.cooleshow.api.feign;

import com.yonge.cooleshow.common.constant.AppConstant;
import com.yonge.cooleshow.common.entity.HttpResponseResult;
import com.yonge.cooleshow.api.feign.fallback.CmsFeignServiceFallback;
import com.yonge.toolset.feign.config.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Description
 *
 * @author liujunchi
 * @date 2022-04-29
 */

@FeignClient(name = AppConstant.APPLICATION_CMS + AppConstant.SERVER, configuration = FeignConfiguration.class, fallback = CmsFeignServiceFallback.class)
public interface CmsFeignService {

    /**
     * 公告发布轮询
     */
    @GetMapping("/task/noticeRelease")
    HttpResponseResult noticeRelease();

}
