package com.iailab.api; 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.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; import java.util.List; import java.util.Map; /** * @author lirm * @Description * @createTime 2024年05月22日 */ @FeignClient(value = "iailab-ntt-model", path = "/") public interface IFeignModelApi { @Parameter(name = "map", description = "插入运行状态数据", required = true) @Operation(summary = "Feign接口-插入运行状态数据") @PostMapping("/api/feign/run-state") void insertRunState(@RequestParam Map tMap); @Parameter(name = "map", description = "插入健康状态数据", required = true) @Operation(summary = "Feign接口-插入健康状态数据") @PostMapping("/api/feign/health-state") void insertHealthState(@RequestParam Map tMap); @Parameter(name = "map", description = "插入设备列表数据", required = true) @Operation(summary = "Feign接口-插入设备列表数据") @PostMapping("/api/feign/device-list") void insertDeviceList(@RequestParam Map tMap); @Parameter(name = "map", description = "调用模型", required = true) @Operation(summary = "Feign接口-调用模型") @PostMapping("/api/feign/run-model") Map runModel(@RequestParam Map params, @RequestBody List sampleDataList); @Parameter(name = "list", description = "查询设备ID", required = true) @Operation(summary = "Feign接口-查询设备ID") @PostMapping("/api/feign/deviceIdList") List getDeviceIdList(); }