package com.njcn.system.api;

import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.system.api.fallback.AreaFeignClientFallbackFactory;
import com.njcn.system.pojo.po.Theme;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;


/**
 * @author 徐扬
 */
@FeignClient(value = ServerInfo.SYSTEM,path = "/theme",fallbackFactory = AreaFeignClientFallbackFactory.class,contextId = "theme")
public interface ThemeFeignClient {

    /**
     * 功能描述: 获取当前主题
     * @return
     * @author xy
     * @date 2022/2/14 11:30
     */
    @GetMapping("/getTheme")
    HttpResult<Theme> getTheme();
}
