From d097b6d0ede9a50036f2e57e04832a2d916ec60b Mon Sep 17 00:00:00 2001 From: liriming <1343021927@qq.com> Date: 星期四, 20 三月 2025 18:08:47 +0800 Subject: [PATCH] demo --- src/main/java/com/iailab/sdk/demo/HttpClientDemo.java | 23 +++++++++++++++++------ 1 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/iailab/sdk/demo/HttpClientDemo.java b/src/main/java/com/iailab/sdk/demo/HttpClientDemo.java index 8e7ce35..6ad0804 100644 --- a/src/main/java/com/iailab/sdk/demo/HttpClientDemo.java +++ b/src/main/java/com/iailab/sdk/demo/HttpClientDemo.java @@ -1,11 +1,12 @@ package com.iailab.sdk.demo; -import com.iailab.sdk.auth.client.IailabAuthClient; +import com.alibaba.fastjson.JSONObject; +import com.iailab.sdk.auth.client.IailabClient; import com.iailab.sdk.auth.client.common.pojo.CommonResult; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import com.iailab.sdk.auth.client.common.pojo.PageResult; +import com.iailab.sdk.auth.client.dto.StAlarmAndSuggestPageReqDTO; +import com.iailab.sdk.auth.client.dto.StAlarmAndSuggestRespDTO; +import org.springframework.web.bind.annotation.*; import java.util.List; import java.util.Map; @@ -20,6 +21,16 @@ @PostMapping("/query-points/history-value") public CommonResult<Map<String, Object>> queryPointsRealValue(@RequestBody List<String> pointNos) { - return IailabAuthClient.getInstance().queryPointsRealValue(pointNos); + return IailabClient.getInstance().queryPointsRealValue(pointNos); + } + + @PostMapping("/alarm-suggest/page") + public CommonResult<PageResult<StAlarmAndSuggestRespDTO>> getAlarmAndSuggestPage(@RequestBody StAlarmAndSuggestPageReqDTO reqVO) { + return IailabClient.getInstance().getAlarmAndSuggestPage(reqVO); + } + + @GetMapping("/handleHttp") + public CommonResult<Object> handleHttp(@RequestParam("method") String method, @RequestParam("url") String url, @RequestParam("params") Map<String, Object> params) { + return IailabClient.getInstance().handleHttp(method,url,params); } } -- Gitblit v1.9.3