From 8e11b215f41de318376edba6125218c72530ce37 Mon Sep 17 00:00:00 2001 From: CeDo <cedoogle@gmail.com> Date: 星期四, 20 五月 2021 18:35:23 +0800 Subject: [PATCH] add:随手拍 删除 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java index 1c4f11c..2ef9345 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java @@ -465,6 +465,26 @@ } /** + * 随手拍删除 + * + * @param id 随手拍主键 + * @param userId 登录用户 + * @return 详情内容 + */ + @PostMapping("deleteEasyPhoto") + public R deleteEasyPhoto(@RequestParam("id") Long id, @RequestParam("userId") Long userId) { + ComActEasyPhotoDO comActEasyPhotoDO = comActEasyPhotoService.getBaseMapper().selectById(id); + if(comActEasyPhotoDO==null){ + return R.fail("随手拍不存在"); + } + comActEasyPhotoDO.setDelTag(1); + int updateById = comActEasyPhotoService.getBaseMapper().updateById(comActEasyPhotoDO); + if(updateById==1){ + return R.ok(); + } + return R.fail(); + } + /** * 分页查询微心愿 * * @param comActMicroWishVO 查询参数 -- Gitblit v1.7.1