瀏覽代碼

热门拍品

linhui.li 2 周之前
父節點
當前提交
6baaa3ed37
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      bid/src/main/java/cn/hobbystocks/auc/web/LotController.java

+ 2 - 1
bid/src/main/java/cn/hobbystocks/auc/web/LotController.java

@@ -8,6 +8,7 @@ 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;
 
@@ -25,7 +26,7 @@ public class LotController extends BaseController {
      */
     @PostMapping("/hot/list")
     @ApiOperation("热门拍品")
-    public AjaxResult hotLot(Lot lot){
+    public AjaxResult hotLot(@RequestBody Lot lot){
         if (lot.getPageSize()==null)
             lot.setPageSize(20);
         startPage(lot);