package com.yuchen.saas.park.api.feign.service;

import com.yuchen.saas.park.api.vo.park.WarningLevelVo;
import org.nest.springwrap.core.launch.app.AppNameConstant;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(
        value = AppNameConstant.SAAS_PARK,
        fallbackFactory = WarningCategoryFeignServiceFallback.class
)
public interface WarningCategoryFeignService {

    String API_PREFIX = "/warningCategory/feign";
    String GET_WARNING_LEVEL_INFO = API_PREFIX + "/getWarningLevelInfo";

    /**
     * 获取告警等级信息
     * @return
     */
    @GetMapping(GET_WARNING_LEVEL_INFO)
    WarningLevelVo getWarningLevelInfo(@RequestParam String identity);

}
