From 9c94094300222389cd7b9b52ca4a6392d3261d86 Mon Sep 17 00:00:00 2001
From: phpcjl <phpcjl@gmail.com>
Date: 星期三, 27 十一月 2024 19:13:41 +0800
Subject: [PATCH] 1.完成部分接口开发

---
 ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShareController.java |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShareController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShareController.java
index 3450cb6..db05155 100644
--- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShareController.java
+++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShareController.java
@@ -49,7 +49,7 @@
     /**
      * 分享添加
      */
-    @ApiOperation(value = "小程序-个人中心-门店管理-分享添加", tags = {"分享添加-小程序"})
+    @ApiOperation(value = "分享添加", tags = {"小程序-个人中心-门店管理-分享添加"})
     @PostMapping
     public R<Void> add(@RequestBody Share share){
         share.setAddType(ShareAddType.STORE.getCode());
@@ -86,9 +86,8 @@
      */
     @ApiOperation(value = "分享详情", tags = {"小程序-个人中心-门店管理-分享详情-小程序"})
     @GetMapping("/detail/{id}")
-    public R<Void> detail(@PathVariable("id") Integer id){
-        shareService.getById(id);
-        return R.ok();
+    public R<Share> detail(@PathVariable("id") Integer id){
+        return R.ok(shareService.getById(id));
     }
 
 

--
Gitblit v1.7.1