package com.iailab.module.data.api; import com.iailab.module.data.dto.*; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.*; import java.util.List; import java.util.Map; /** * @author DongYukun * @Description * @createTime 2024年03月01日 18:37:00 */ @FeignClient(value = "iailab-ntt-data", path = "/") public interface IFeignDataApi { @Parameter(name = "map", description = "查询InfluxDB", required = true) @Operation(summary = "Feign接口-查询PointValue") @PostMapping("/api/feign/influx-point-value") List queryPointValues(@RequestBody FeignQueryPointDTO dto); @Parameter(name = "map", description = "查询InfluxDB", required = true) @Operation(summary = "Feign接口-查询PointValue") @PostMapping("/api/feign/sim-tag-value") List querySimTagValues(@RequestBody FeignQueryPointDTO dto); @Parameter(name = "map", description = "查询InfluxDB", required = true) @Operation(summary = "Feign接口-查询PointValue") @PostMapping("/api/feign/currentValue") Map getCurrentValue(@RequestParam("pointNos") List pointNos); @Parameter(name = "map", description = "查询point", required = true) @Operation(summary = "Feign接口-查询point") @PostMapping("/api/feign/point/{pointNo}") ApiDataPointDTO getPoint(@PathVariable("pointNo") String pointNo); @Parameter(name = "map", description = "查询HttpApi", required = true) @Operation(summary = "Feign接口-查询HttpApi") @GetMapping("/api/feign/http-api/{code}") FeignHttpApiDTO getHttpApi(@PathVariable("code") String code); @Parameter(name = "map", description = "查询指标数据", required = true) @Operation(summary = "Feign接口-查询指标数据") @PostMapping("/api/feign/ind-item-values") List queryIndItemValues(@RequestBody FeignQueryPointDTO dto); @Parameter(name = "map", description = "查询指标数据", required = true) @Operation(summary = "Feign接口-查询指标数据") @PostMapping("/api/feign/ind-item-values-range") List queryIndItemValuesRange(@RequestBody FeignQueryPointDTO dto); @Parameter(name = "map", description = "设置测点值", required = true) @Operation(summary = "Feign接口-设置测点值") @PostMapping("/api/feign/set-point-value") FeignResultDTO setPointValue(@RequestBody FeignWritePointValueDTO writePointValue); @Parameter(name = "map", description = "查询指标数据", required = true) @Operation(summary = "Feign接口-查询指标数据") @PostMapping("/api/feign/get-inditem-values") List getIndItemValues(@RequestBody FeignQueryPointDTO dto); }