获取验证码接口设置幂等
This commit is contained in:
@ -2,6 +2,7 @@ package com.chinaunicom.mall.ebtp.extend.shortmessage.controller;
|
|||||||
|
|
||||||
|
|
||||||
import com.chinaunicom.mall.ebtp.common.base.entity.BaseResponse;
|
import com.chinaunicom.mall.ebtp.common.base.entity.BaseResponse;
|
||||||
|
import com.chinaunicom.mall.ebtp.common.idempotent.annotation.Idempotent;
|
||||||
import com.chinaunicom.mall.ebtp.extend.shortmessage.entity.AuthCodeVo;
|
import com.chinaunicom.mall.ebtp.extend.shortmessage.entity.AuthCodeVo;
|
||||||
import com.chinaunicom.mall.ebtp.extend.shortmessage.utils.RSA;
|
import com.chinaunicom.mall.ebtp.extend.shortmessage.utils.RSA;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
@ -17,6 +18,8 @@ import io.swagger.annotations.ApiParam;
|
|||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import com.chinaunicom.mall.ebtp.extend.shortmessage.entity.BizShortMessage;
|
import com.chinaunicom.mall.ebtp.extend.shortmessage.entity.BizShortMessage;
|
||||||
import com.chinaunicom.mall.ebtp.extend.shortmessage.service.BizShortMessageService;
|
import com.chinaunicom.mall.ebtp.extend.shortmessage.service.BizShortMessageService;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
@ -42,6 +45,7 @@ public class BizShortMessageController{
|
|||||||
* authCode 验证码
|
* authCode 验证码
|
||||||
* callbackUrl UrlEncode编码 应用系统回调确认用户有效性的地址,应用系统传了这个地址则用户有效性由该地址确定
|
* callbackUrl UrlEncode编码 应用系统回调确认用户有效性的地址,应用系统传了这个地址则用户有效性由该地址确定
|
||||||
*/
|
*/
|
||||||
|
@Idempotent(expireTime = 30,timeUnit = TimeUnit.SECONDS,info = "距离上次解密时间需间隔30秒",delKey =true)
|
||||||
@PostMapping("/send/authCode")
|
@PostMapping("/send/authCode")
|
||||||
public BaseResponse<Boolean> authCodeSend(@RequestBody AuthCodeVo vo){
|
public BaseResponse<Boolean> authCodeSend(@RequestBody AuthCodeVo vo){
|
||||||
log.info("解密前:"+vo.getMobile());
|
log.info("解密前:"+vo.getMobile());
|
||||||
|
Reference in New Issue
Block a user