|
@@ -23,10 +23,10 @@ import java.util.HashMap;
|
|
|
public class SmartLife {
|
|
|
|
|
|
@Autowired
|
|
|
- NewResultUtils resultUtils;
|
|
|
+ ResultUtils resultUtils;
|
|
|
|
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "code", value = "社区编码", dataType = "String"),
|
|
|
+ @ApiImplicitParam(name = "code", value = "社区编码 ,如:510115001076", dataType = "String"),
|
|
|
})
|
|
|
@ApiOperation("公共空间、公共空间详情")
|
|
|
@GetMapping("spaceData/{code}")
|
|
@@ -37,7 +37,7 @@ public class SmartLife {
|
|
|
return resultUtils.doGetResult(apiUrl, param);
|
|
|
}
|
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "code", value = "社区编码", dataType = "String"),
|
|
|
+ @ApiImplicitParam(name = "code", value = "社区编码,如:510115001076", dataType = "String"),
|
|
|
})
|
|
|
@ApiOperation("积分商城 (积分发放统计)")
|
|
|
@GetMapping("pointCountByCode/{code}")
|
|
@@ -49,19 +49,33 @@ public class SmartLife {
|
|
|
}
|
|
|
|
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "code", value = "社区编码", dataType = "String"),
|
|
|
+ @ApiImplicitParam(name = "code", value = "社区编码,如:510115001076", dataType = "String"),
|
|
|
})
|
|
|
- @ApiOperation("积分商城兑换统计")
|
|
|
- @GetMapping("pointData/{code}")
|
|
|
- public Result pointData(@PathVariable String code){
|
|
|
+ @ApiOperation("积分商城 (积分兑换统计)")
|
|
|
+ @GetMapping("shopPoint/{code}")
|
|
|
+ public Result shopPoint(@PathVariable String code){
|
|
|
+ String apiUrl = "/open/api/v1/community/shop-point";
|
|
|
+ HashMap<String, Object> param = new HashMap<>();
|
|
|
+ param.put("areaCode", code);
|
|
|
+ return resultUtils.doGetResult(apiUrl, param);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "code", value = "社区编码,如:510115001076", dataType = "String"),
|
|
|
+ @ApiImplicitParam(name = "size", value = "返回数量", dataType = "int"),
|
|
|
+ })
|
|
|
+ @ApiOperation("积分商城(商品兑换)")
|
|
|
+ @GetMapping("pointData/{code}/{size}")
|
|
|
+ public Result pointData(@PathVariable String code,@PathVariable int size){
|
|
|
String apiUrl = "/open/api/v1/community/point-data";
|
|
|
HashMap<String, Object> param = new HashMap<>();
|
|
|
param.put("areaCode", code);
|
|
|
+ param.put("size", size);
|
|
|
return resultUtils.doGetResult(apiUrl, param);
|
|
|
}
|
|
|
|
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "code", value = "城市/社区编码", dataType = "String"),
|
|
|
+ @ApiImplicitParam(name = "code", value = "城市/社区编码,如:510115001076", dataType = "String"),
|
|
|
})
|
|
|
@ApiOperation("邻里交流")
|
|
|
@GetMapping("statisticsInterflow/{code}")
|
|
@@ -73,7 +87,7 @@ public class SmartLife {
|
|
|
}
|
|
|
|
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "code", value = "社区编码", dataType = "String"),
|
|
|
+ @ApiImplicitParam(name = "code", value = "社区编码,如:510115001076", dataType = "String"),
|
|
|
})
|
|
|
@ApiOperation("资讯列表")
|
|
|
@GetMapping("communityInfodata/{code}")
|
|
@@ -85,10 +99,10 @@ public class SmartLife {
|
|
|
}
|
|
|
|
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "code", value = "社区编码", dataType = "String"),
|
|
|
+ @ApiImplicitParam(name = "code", value = "社区编码,如:510115001076", dataType = "String"),
|
|
|
@ApiImplicitParam(name = "children", value = "是否查询街道及其以下社区", dataType = "Boolean")
|
|
|
})
|
|
|
- @ApiOperation("社区活动")
|
|
|
+ @ApiOperation("报名中活动")
|
|
|
@GetMapping("communityActivitydata/{code}/{children}")
|
|
|
public Result communityActivitydata(@PathVariable String code,@PathVariable Boolean children){
|
|
|
String apiUrl = "/open/api/v1/community/activity-data";
|