From 7d6ee21cc4d0a5f63d4f66026f8dd8b8737084f8 Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期四, 20 五月 2021 18:43:46 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/test' into test

---
 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