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)) {