|
@@ -1,5 +1,6 @@
|
|
|
package cn.iocoder.yudao.module.system.controller.admin.captcha;
|
|
|
|
|
|
+import cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog;
|
|
|
import com.anji.captcha.model.common.ResponseModel;
|
|
|
import com.anji.captcha.model.vo.CaptchaVO;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -22,19 +23,21 @@ import javax.servlet.http.HttpServletRequest;
|
|
|
*/
|
|
|
@Api(tags = "管理后台 - 验证码")
|
|
|
@RestController("adminCaptchaController")
|
|
|
-@RequestMapping("/captcha")
|
|
|
+@RequestMapping("/system/captcha")
|
|
|
public class CaptchaController extends com.anji.captcha.controller.CaptchaController {
|
|
|
|
|
|
@PostMapping({"/get"})
|
|
|
@ApiOperation("获得验证码")
|
|
|
@PermitAll
|
|
|
+ @OperateLog(enable = false) // 避免 Post 请求被记录操作日志
|
|
|
public ResponseModel get(@RequestBody CaptchaVO data, HttpServletRequest request) {
|
|
|
return super.get(data, request);
|
|
|
}
|
|
|
|
|
|
- @PostMapping({"/check"})
|
|
|
+ @PostMapping("/check")
|
|
|
@ApiOperation("校验验证码")
|
|
|
@PermitAll
|
|
|
+ @OperateLog(enable = false) // 避免 Post 请求被记录操作日志
|
|
|
public ResponseModel check(@RequestBody CaptchaVO data, HttpServletRequest request) {
|
|
|
return super.check(data, request);
|
|
|
}
|