TRX vor 1 Jahr
Ursprung
Commit
73f275766f

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