|
@@ -13,6 +13,7 @@ import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.log4j.Log4j2;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
@@ -28,6 +29,8 @@ import java.util.HashMap;
|
|
|
@RequestMapping("screen")
|
|
|
public class ScreenController {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ ResultUtils resultUtils;
|
|
|
|
|
|
|
|
|
@ApiOperationSupport(order=1)
|
|
@@ -37,7 +40,7 @@ public class ScreenController {
|
|
|
String apiUrl = "/open/api/v1/community/base-data";
|
|
|
HashMap<String, Object> param = new HashMap<>();
|
|
|
param.put("code", code);
|
|
|
- return ResultUtils.doGetResult(apiUrl, param);
|
|
|
+ return resultUtils.doGetResult(apiUrl, param);
|
|
|
}
|
|
|
|
|
|
@ApiOperationSupport(order=1)
|
|
@@ -47,7 +50,7 @@ public class ScreenController {
|
|
|
String apiUrl = "/open/api/v1/community/service-data";
|
|
|
HashMap<String, Object> param = new HashMap<>();
|
|
|
param.put("code", code);
|
|
|
- return ResultUtils.doGet(apiUrl, param);
|
|
|
+ return resultUtils.doGet(apiUrl, param);
|
|
|
}
|
|
|
|
|
|
@ApiOperationSupport(order=1)
|
|
@@ -57,7 +60,7 @@ public class ScreenController {
|
|
|
String apiUrl = "/open/api/v1/community/space-data";
|
|
|
HashMap<String, Object> param = new HashMap<>();
|
|
|
param.put("code", code);
|
|
|
- return ResultUtils.doGet(apiUrl, param);
|
|
|
+ return resultUtils.doGet(apiUrl, param);
|
|
|
}
|
|
|
|
|
|
@ApiImplicitParams({
|
|
@@ -72,7 +75,7 @@ public class ScreenController {
|
|
|
HashMap<String, Object> param = new HashMap<>();
|
|
|
param.put("code", code);
|
|
|
param.put("labelType", labelType);
|
|
|
- return ResultUtils.doGet(apiUrl, param);
|
|
|
+ return resultUtils.doGet(apiUrl, param);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -84,7 +87,7 @@ public class ScreenController {
|
|
|
HashMap<String, Object> param = new HashMap<>();
|
|
|
param.put("code", code);
|
|
|
param.put("children", "true");
|
|
|
- return ResultUtils.doGetResult(apiUrl, param);
|
|
|
+ return resultUtils.doGetResult(apiUrl, param);
|
|
|
}
|
|
|
|
|
|
@ApiOperationSupport(order=2)
|
|
@@ -94,7 +97,7 @@ public class ScreenController {
|
|
|
String apiUrl = "/open/api/v1/community/statistics/interflow";
|
|
|
HashMap<String, Object> param = new HashMap<>();
|
|
|
param.put("cityCode", cityCode);
|
|
|
- return ResultUtils.doGetResult(apiUrl, param);
|
|
|
+ return resultUtils.doGetResult(apiUrl, param);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -106,7 +109,7 @@ public class ScreenController {
|
|
|
String apiUrl = "/open/api/v1/community/info-data";
|
|
|
HashMap<String, Object> param = new HashMap<>();
|
|
|
param.put("code", code);
|
|
|
- return ResultUtils.doGetResult(apiUrl, param);
|
|
|
+ return resultUtils.doGetResult(apiUrl, param);
|
|
|
}
|
|
|
|
|
|
@ApiOperationSupport(order=2)
|
|
@@ -118,7 +121,7 @@ public class ScreenController {
|
|
|
param.put("group", "5f3de3d925892e0001e10312");
|
|
|
param.put("cityCode", code);
|
|
|
|
|
|
- return ResultUtils.doGetResult(apiUrl, param);
|
|
|
+ return resultUtils.doGetResult(apiUrl, param);
|
|
|
}
|
|
|
|
|
|
@ApiOperationSupport(order=2)
|
|
@@ -128,7 +131,7 @@ public class ScreenController {
|
|
|
String apiUrl = "/open/api/v1/community/deyuan/activity";
|
|
|
HashMap<String, Object> param = new HashMap<>();
|
|
|
param.put("code", code);
|
|
|
- return ResultUtils.doGetResult(apiUrl, param);
|
|
|
+ return resultUtils.doGetResult(apiUrl, param);
|
|
|
}
|
|
|
|
|
|
@ApiOperationSupport(order=2)
|
|
@@ -138,7 +141,7 @@ public class ScreenController {
|
|
|
String apiUrl = "/open/api/v1/community/deyuan/organization";
|
|
|
HashMap<String, Object> param = new HashMap<>();
|
|
|
param.put("code", code);
|
|
|
- return ResultUtils.doGetResult(apiUrl, param);
|
|
|
+ return resultUtils.doGetResult(apiUrl, param);
|
|
|
}
|
|
|
|
|
|
@ApiOperationSupport(order=2)
|
|
@@ -148,7 +151,7 @@ public class ScreenController {
|
|
|
String apiUrl = "/open/api/v1/deyuan/article";
|
|
|
HashMap<String, Object> param = new HashMap<>();
|
|
|
param.put("code", code);
|
|
|
- return ResultUtils.doGetResult(apiUrl, param);
|
|
|
+ return resultUtils.doGetResult(apiUrl, param);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -161,7 +164,7 @@ public class ScreenController {
|
|
|
param.put("cityCode", code);
|
|
|
// 商家分组编码
|
|
|
param.put("group", "5f3de3d925892e0001e10312");
|
|
|
- return Result.success(ResultUtils.doGet(apiUrl, param));
|
|
|
+ return Result.success(resultUtils.doGet(apiUrl, param));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -180,7 +183,7 @@ public class ScreenController {
|
|
|
param.put("xzCode", code);
|
|
|
param.put("xzLevel", xzLevel);
|
|
|
param.put("topic", "111");
|
|
|
- return Result.success(ResultUtils.doGet(apiUrl, param));
|
|
|
+ return Result.success(resultUtils.doGet(apiUrl, param));
|
|
|
}
|
|
|
|
|
|
@ApiImplicitParams({
|
|
@@ -197,7 +200,7 @@ public class ScreenController {
|
|
|
param.put("xzCode", code);
|
|
|
param.put("xzLevel", xzLevel);
|
|
|
param.put("topic", topic);
|
|
|
- return Result.success(ResultUtils.doGet(apiUrl, param));
|
|
|
+ return Result.success(resultUtils.doGet(apiUrl, param));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -224,7 +227,7 @@ public class ScreenController {
|
|
|
}
|
|
|
param.put("size", pageSize);
|
|
|
param.put("page", pageNum);
|
|
|
- return ResultUtils.doGetResult(apiUrl, param);
|
|
|
+ return resultUtils.doGetResult(apiUrl, param);
|
|
|
}
|
|
|
|
|
|
|