Explorar o código

bugfix:接受参数改驼峰

刘云鑫 hai 2 meses
pai
achega
856bd69465

+ 2 - 2
alien-store/src/main/java/shop/alien/store/controller/AiTagsController.java

@@ -59,7 +59,7 @@ public class AiTagsController {
      */
     @ApiOperation("获取店铺标签")
     @RequestMapping("/storeTags")
-    public R storeTags(@RequestParam("store_id") Long storeId,
+    public R storeTags(@RequestParam("storeId") Long storeId,
                        @RequestParam(value = "page", defaultValue = "1") Integer page,
                        @RequestParam(value = "pageNum", defaultValue = "10") Integer pageNum) {
         try {
@@ -114,7 +114,7 @@ public class AiTagsController {
      */
     @ApiOperation("根据标签获取店铺评价")
     @RequestMapping("/storeRatingsByTag")
-    public R storeRatingsByTag(@RequestParam("store_id") Long storeId,
+    public R storeRatingsByTag(@RequestParam("storeId") Long storeId,
                                @RequestParam("tag") String tag,  // 新增标签参数,必填
                                @RequestParam(value = "page", defaultValue = "1") Integer page,
                                @RequestParam(value = "pageNum", defaultValue = "10") Integer pageNum) {