From c594c0bc9168aacb4262a094dcec2ad3c0e8d7db Mon Sep 17 00:00:00 2001 From: wenc000 <450292408@qq.com> Date: Wed, 3 Jun 2020 11:22:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=9F=AD=E4=BF=A1=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=A0=81=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/cm/manager/sms/controller/SmsController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cloud-manager-sms/src/main/java/com/cm/manager/sms/controller/SmsController.java b/cloud-manager-sms/src/main/java/com/cm/manager/sms/controller/SmsController.java index c046fdc..843af5e 100644 --- a/cloud-manager-sms/src/main/java/com/cm/manager/sms/controller/SmsController.java +++ b/cloud-manager-sms/src/main/java/com/cm/manager/sms/controller/SmsController.java @@ -103,6 +103,11 @@ public class SmsController extends AbstractController { return smsService.listPageSms(page); } + @ApiOperation(value = "获取短信验证码", notes = "获取短信验证码接口") + @ApiImplicitParams({ + @ApiImplicitParam(name = "phone", value = "手机", paramType = "path"), + }) + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("getverificationcode/{phone}") public SuccessResult getVerificationCode(@PathVariable("phone") String phone) throws Exception { if (!RegexUtil.isPhone(phone)) {