liriming
2025-03-20 d097b6d0ede9a50036f2e57e04832a2d916ec60b
src/main/java/com/iailab/sdk/demo/HttpClientDemo.java
@@ -1,11 +1,12 @@
package com.iailab.sdk.demo;
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;
@@ -22,4 +23,14 @@
    public CommonResult<Map<String, Object>> queryPointsRealValue(@RequestBody List<String> 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);
    }
}