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

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;

import java.util.Set;

/**
 * @Author: 肖润飞
 * @CreateTime: 2022/11/15 16:18
 * @Description: 访客 feign 接口
 * @Version: 1.0
 */
@FeignClient(
        value = AppNameConstant.SAAS_PARK,
        fallbackFactory = ParkDeviceCategoryFeignServiceFallback.class
)
public interface ParkDeviceCategoryFeignService {
    @GetMapping("/deviceCategory/cache/clear")
    R clearCache();

    @GetMapping("/deviceCategory/data/count")
    R<Integer> parkDeviceDataCount(@RequestParam("parkId") Long parkId);

    @GetMapping("/deviceCategory/data/scopeValue")
    R<Set<String>> parkDeviceDataCategory(@RequestParam("scopeValue") String scopeValue);
}
