Browse Source

feat(口腔医院): 修改参数格式

matianxiang 1 month ago
parent
commit
a7e6de9dcb

+ 5 - 4
eitc-patient-app/src/main/java/com/eitc/patient/controller/ApiAppController.java

@@ -31,6 +31,7 @@ import javax.annotation.Resource;
31
 import javax.validation.Valid;
31
 import javax.validation.Valid;
32
 import java.util.HashMap;
32
 import java.util.HashMap;
33
 import java.util.List;
33
 import java.util.List;
34
+import java.util.Map;
34
 
35
 
35
 /**
36
 /**
36
  * ApiController
37
  * ApiController
@@ -73,7 +74,6 @@ public class ApiAppController extends BaseController {
73
 
74
 
74
     /**
75
     /**
75
      * 诊所列表
76
      * 诊所列表
76
-     *
77
      */
77
      */
78
     @GetMapping(value = "/clinicList")
78
     @GetMapping(value = "/clinicList")
79
     @ApiOperation("诊所列表")
79
     @ApiOperation("诊所列表")
@@ -114,7 +114,8 @@ public class ApiAppController extends BaseController {
114
 
114
 
115
     @PostMapping("/checkCaptchaCode")
115
     @PostMapping("/checkCaptchaCode")
116
     @ApiOperation("验证短信验证码")
116
     @ApiOperation("验证短信验证码")
117
-    public AjaxResult checkCaptchaCode(String phoneNumber, String captchaCode) {
118
-        appUserService.checkCaptchaCode(phoneNumber, captchaCode);
117
+    public AjaxResult checkCaptchaCode(@RequestBody Map<String, String> map) {
118
+        appUserService.checkCaptchaCode(map.get("phoneNumber"), map.get("captchaCode"));
119
         return success();
119
         return success();
120
-    }}
120
+    }
121
+}

+ 2 - 2
eitc-patient-app/src/main/java/com/eitc/patient/controller/AppLoginController.java

@@ -90,8 +90,8 @@ public class AppLoginController extends BaseController {
90
      */
90
      */
91
     @PostMapping("/sendCaptchaCode")
91
     @PostMapping("/sendCaptchaCode")
92
     @ApiOperation("获取短信验证码")
92
     @ApiOperation("获取短信验证码")
93
-    public AjaxResult sendCaptchaCode(String phoneNumber) throws ClientException {
94
-        return appUserService.sendCaptchaCode(phoneNumber);
93
+    public AjaxResult sendCaptchaCode(@RequestBody Map<String, String> map) throws ClientException {
94
+        return appUserService.sendCaptchaCode(map.get("phoneNumber"));
95
     }
95
     }
96
 
96
 
97
     /**
97
     /**