huanghongfa
2021-05-27 2631c2cced787e3e6326554582839d55692ba2e6
网格综治app随手拍
1个文件已修改
24 ■■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/java/com/panzhihua/grid_app/api/EasyPhotoApi.java 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/java/com/panzhihua/grid_app/api/EasyPhotoApi.java
@@ -1,6 +1,7 @@
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;
@@ -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);
    }
}