package net.northking.cctp.device.bus.feign;

import io.swagger.annotations.ApiOperation;
import net.northking.cctp.common.feign.FeignCctpConfig;
import net.northking.cctp.device.bus.feign.dto.CltDictCatalog;
import net.northking.cctp.device.bus.feign.dto.CltDictItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "cctp-platform", path = "/cctp-platform", configuration = {FeignCctpConfig.class}, contextId = "platform")
public interface CctpPlatformFeign {

    @ApiOperation(value = "查询字典目录下的条目")
    @PostMapping(value = "/pub/select/catalogItems")
    public List<CltDictItem> queryCatalogItem(@RequestBody CltDictCatalog cltDictCatalog);
}
