新增短信验证码说明

This commit is contained in:
wenc000 2020-06-03 11:22:58 +08:00
parent d421c08bec
commit c594c0bc91

View File

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