From 05bd97aab35b27be282fd45d013e1330edda2cc0 Mon Sep 17 00:00:00 2001 From: xyh <18782104331@139.com> Date: 星期二, 29 六月 2021 16:21:53 +0800 Subject: [PATCH] 修复bug-401-【综治后台管理--事件管理】搜索事件功能未生效 --- springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/api/EasyPhotoApi.java | 73 ++++++++++++++++++++++++++++++++++++ 1 files changed, 73 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/api/EasyPhotoApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/api/EasyPhotoApi.java index 932384a..5c44a0d 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/api/EasyPhotoApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/api/EasyPhotoApi.java @@ -1,5 +1,8 @@ package com.panzhihua.service_grid.api; +import com.panzhihua.common.model.dtos.grid.ComActEasyPhotoEditAdminDTO; +import com.panzhihua.common.model.dtos.grid.ComActEasyPhotoHandleDTO; +import com.panzhihua.common.model.dtos.grid.PageEasyAdminDTO; import com.panzhihua.common.model.dtos.grid.PageEasyAppDTO; import com.panzhihua.common.model.vos.R; import com.panzhihua.service_grid.service.ComActEasyPhotoService; @@ -54,4 +57,74 @@ public R typeList(){ return comActEasyPhotoTypeService.typeList(); } + + /** + * 随手拍处理 + * @param photoHandleDTO 请求参数 + * @return 处理结果 + */ + @PostMapping("handle") + public R easyHandle(@RequestBody ComActEasyPhotoHandleDTO photoHandleDTO){ + return comActEasyPhotoService.easyHandle(photoHandleDTO); + } + + /** + * 随手拍公示状态切换 + * @param photoHandleDTO 请求参数 + * @return 切换结果 + */ + @PostMapping("publicity") + public R easyPublicity(@RequestBody ComActEasyPhotoHandleDTO photoHandleDTO){ + return comActEasyPhotoService.easyPublicity(photoHandleDTO); + } + + /** + * 随手拍上报社区 + * @param photoHandleDTO 请求参数 + * @return 上报结果 + */ + @PostMapping("report") + public R easyReport(@RequestBody ComActEasyPhotoHandleDTO photoHandleDTO){ + return comActEasyPhotoService.easyReport(photoHandleDTO); + } + + /** + * 后台管理-分页查询随手拍列表 + * @param easyAppDTO 请求参数 + * @return 随手拍列表 + */ + @PostMapping("admin/list") + public R easyListByAdmin(@RequestBody PageEasyAdminDTO easyAppDTO){ + return comActEasyPhotoService.easyListByAdmin(easyAppDTO); + } + + /** + * 后台管理-随手拍详情 + * @param easyId 随手拍id + * @return 随手拍详情 + */ + @PostMapping("admin/detail") + public R easyDetailByAdmin(@RequestParam("easyId") Long easyId){ + return comActEasyPhotoService.easyDetailByAdmin(easyId); + } + + /** + * 后台管理-随手拍处理 + * @param photoHandleDTO 请求参数 + * @return 处理结果 + */ + @PostMapping("admin/handle") + public R easyHandleByAdmin(@RequestBody ComActEasyPhotoHandleDTO photoHandleDTO){ + return comActEasyPhotoService.easyHandleByAdmin(photoHandleDTO); + } + + /** + * 后台管理-批量修改随手拍公示状态/删除随手拍 + * @param photoEditDTO 请求参数 + * @return 修改/删除结果 + */ + @PostMapping("admin/publicity") + public R easyPublicityByAdmin(@RequestBody ComActEasyPhotoEditAdminDTO photoEditDTO){ + return comActEasyPhotoService.easyPublicityByAdmin(photoEditDTO); + } } -- Gitblit v1.7.1