From 34e50f2c23ff7cc7f0dbf2a40e3d038b30aec12f Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期六, 24 七月 2021 13:47:30 +0800
Subject: [PATCH] 测试社区动态
---
springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/java/com/panzhihua/grid_app/api/EasyPhotoApi.java | 30 +++++++++++++++++++++++++++---
1 files changed, 27 insertions(+), 3 deletions(-)
diff --git a/springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/java/com/panzhihua/grid_app/api/EasyPhotoApi.java b/springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/java/com/panzhihua/grid_app/api/EasyPhotoApi.java
index 4064ff6..97d243e 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/java/com/panzhihua/grid_app/api/EasyPhotoApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/java/com/panzhihua/grid_app/api/EasyPhotoApi.java
@@ -1,10 +1,11 @@
package com.panzhihua.grid_app.api;
import com.panzhihua.common.controller.BaseController;
+import com.panzhihua.common.model.dtos.grid.ComActEasyPhotoHandleDTO;
import com.panzhihua.common.model.dtos.grid.PageEasyAppDTO;
import com.panzhihua.common.model.vos.LoginUserInfoVO;
import com.panzhihua.common.model.vos.R;
-import com.panzhihua.common.model.vos.community.ComActEasyPhotoVO;
+import com.panzhihua.common.model.vos.grid.ComActEasyPhotoVO;
import com.panzhihua.common.service.grid.GridService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -16,8 +17,8 @@
* @author lyq
*/
@RestController
-@RequestMapping("/easy")
-@Api(tags = {"网格综治APP随手拍模块"})
+@RequestMapping("/easy/")
+@Api(tags = {"网格综治APP随手拍模块@lyq"})
public class EasyPhotoApi extends BaseController {
@Resource
@@ -46,4 +47,27 @@
return gridService.easyTypeListByApp();
}
+ @ApiOperation(value = "随手拍处理-lyq")
+ @PostMapping("handle")
+ public R handle(@RequestBody ComActEasyPhotoHandleDTO photoHandleDTO){
+ LoginUserInfoVO userInfoVO = this.getLoginUserInfo();
+ if(userInfoVO == null){
+ return R.fail("请先登录");
+ }
+ photoHandleDTO.setHandlerId(userInfoVO.getUserId());
+ return gridService.easyHandle(photoHandleDTO);
+ }
+
+ @ApiOperation(value = "随手拍切换公示状态-lyq")
+ @PostMapping("publicity")
+ public R publicity(@RequestBody ComActEasyPhotoHandleDTO photoHandleDTO){
+ return gridService.easyPublicity(photoHandleDTO);
+ }
+
+ @ApiOperation(value = "随手拍上报社区-lyq")
+ @PostMapping("report")
+ public R report(@RequestBody ComActEasyPhotoHandleDTO photoHandleDTO){
+ return gridService.easyReport(photoHandleDTO);
+ }
+
}
--
Gitblit v1.7.1