TRX преди 1 година
родител
ревизия
73f275766f
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      FullCardServer/src/main/java/com/zhongshu/card/server/core/controller/school/CardController.java

+ 4 - 2
FullCardServer/src/main/java/com/zhongshu/card/server/core/controller/school/CardController.java

@@ -115,8 +115,10 @@ public class CardController {
 
     @ResourceAuth(value = "user", type = AuthType.User)
     @Operation(summary = "code查询卡片详情", description = "code查询卡片详情")
-    @RequestMapping(value = {"getCardDetailByCode"}, method = {RequestMethod.POST})
-    public ResultContent<CardInfoSimpleModel> getCardDetailByCode(@RequestParam(name = "code") String code) {
+    @RequestMapping(value = {"getCardDetailByCode"}, method = {RequestMethod.GET})
+    public ResultContent<CardInfoSimpleModel> getCardDetailByCode(
+            @Parameter(name = "code", description = "code", required = true)
+            @RequestParam(name = "code") String code) {
         return cardInfoService.getCardDetailByCode(code);
     }