|
@@ -18,6 +18,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
+import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.alibaba.fastjson.serializer.SerializerFeature;
|
|
|
import com.persagy.ibms.data.sdk.util.ExportUtil;
|
|
@@ -119,6 +120,12 @@ public class RestApi {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ @GetMapping(path = "/get_sceneJSON")
|
|
|
+ public String get_sceneJSON() {
|
|
|
+ String result = JSONObject.toJSONString(RepositoryContainer.instance.sceneJSON, SerializerFeature.WriteMapNullValue);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
@PostMapping(path = { "/post", "/zkt-sdk/post" }, produces = "application/json;charset=UTF-8")
|
|
|
public String post(@RequestBody String param, HttpServletRequest request) {
|
|
|
String ip = RestUtil.getIp(request);
|
|
@@ -138,6 +145,13 @@ public class RestApi {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @PostMapping(path = { "/post_batch", "/zkt-sdk/post_batch" }, produces = "application/json;charset=UTF-8")
|
|
|
+ public String post_batch(@RequestBody String param, HttpServletRequest request) {
|
|
|
+ JSONArray resultObject = RestUtil.post_batch(JSON.parseArray(param));
|
|
|
+ String result = JSONArray.toJSONString(resultObject, SerializerFeature.WriteMapNullValue);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
@PostMapping(path = { "/wrapper_post", "/zkt-sdk/wrapper_post" }, produces = "application/json;charset=UTF-8")
|
|
|
public String wrapper_post(@RequestBody String param, HttpServletRequest request) {
|
|
|
JSONObject paramObject = JSON.parseObject(param);
|