houzhongjian
2024-07-23 a6de490948278991e47952e90671ddba4555e9a2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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<ApiDataDTO> queryPointValues(@RequestBody FeignQueryPointDTO dto);
 
    @Parameter(name = "map", description = "查询InfluxDB", required = true)
    @Operation(summary = "Feign接口-查询PointValue")
    @PostMapping("/api/feign/sim-tag-value")
    List<ApiDataDTO> querySimTagValues(@RequestBody FeignQueryPointDTO dto);
 
    @Parameter(name = "map", description = "查询InfluxDB", required = true)
    @Operation(summary = "Feign接口-查询PointValue")
    @PostMapping("/api/feign/currentValue")
    Map<String, Object> getCurrentValue(@RequestParam("pointNos") List<String> 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<ApiDataDTO> queryIndItemValues(@RequestBody FeignQueryPointDTO dto);
 
    @Parameter(name = "map", description = "查询指标数据", required = true)
    @Operation(summary = "Feign接口-查询指标数据")
    @PostMapping("/api/feign/ind-item-values-range")
    List<ApiIndValueDTO> 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<ApiIndValueDTO> getIndItemValues(@RequestBody FeignQueryPointDTO dto);
}