Browse Source

公告详情

linhui.li 2 weeks ago
parent
commit
6e0d5c45d6
1 changed files with 7 additions and 4 deletions
  1. 7 4
      bid/src/main/java/cn/hobbystocks/auc/web/LotNoticeController.java

+ 7 - 4
bid/src/main/java/cn/hobbystocks/auc/web/LotNoticeController.java

@@ -8,10 +8,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 @RestController
 @Api(tags = "拍卖公告")
@@ -28,4 +25,10 @@ public class LotNoticeController {
         return AjaxResult.success(lotNoticePage);
     }
 
+    @GetMapping("detail/{id}")
+    public AjaxResult getNoticeDetail(@PathVariable("id") Long id){
+        LotNotice lotNotice = lotNoticeService.getById(id);
+        return AjaxResult.success(lotNotice);
+    }
+
 }