新增短信验证码说明
This commit is contained in:
parent
d421c08bec
commit
c594c0bc91
@ -103,6 +103,11 @@ public class SmsController extends AbstractController {
|
|||||||
return smsService.listPageSms(page);
|
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}")
|
@GetMapping("getverificationcode/{phone}")
|
||||||
public SuccessResult getVerificationCode(@PathVariable("phone") String phone) throws Exception {
|
public SuccessResult getVerificationCode(@PathVariable("phone") String phone) throws Exception {
|
||||||
if (!RegexUtil.isPhone(phone)) {
|
if (!RegexUtil.isPhone(phone)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user