Răsfoiți Sursa

热门拍品

linhui.li 2 săptămâni în urmă
părinte
comite
6baaa3ed37

+ 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);