类 CaptchaController
java.lang.Object
cn.herodotus.engine.oauth2.management.controller.CaptchaController
- 所有已实现的接口:
cn.herodotus.engine.rest.core.controller.Controller
@RestController
@RequestMapping("/open/captcha")
@Validated
public class CaptchaController
extends Object
implements cn.herodotus.engine.rest.core.controller.Controller
Description: 验证码Controller
- 作者:
- : gengwei.zheng
- Date:
- : 2021/12/12 10:44
-
构造器概要
构造器构造器说明CaptchaController(cn.herodotus.engine.captcha.core.processor.CaptchaRendererFactory captchaRendererFactory) -
方法概要
修饰符和类型方法说明cn.herodotus.engine.assistant.core.domain.Result<Boolean>check(@Valid cn.herodotus.engine.captcha.core.dto.Verification verification) cn.herodotus.engine.assistant.core.domain.Result<cn.herodotus.engine.captcha.core.dto.Captcha>create(@NotBlank(message="\u8eab\u4efd\u4fe1\u606f\u4e0d\u80fd\u4e3a\u7a7a") String identity, @NotBlank(message="\u9a8c\u8bc1\u7801\u7c7b\u578b\u4e0d\u80fd\u4e3a\u7a7a") String category) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.herodotus.engine.rest.core.controller.Controller
getPageInfoMap, getPageInfoMap, result, result, result, result, result, result, result
-
构造器详细资料
-
CaptchaController
public CaptchaController(cn.herodotus.engine.captcha.core.processor.CaptchaRendererFactory captchaRendererFactory)
-
-
方法详细资料
-
create
@AccessLimited @GetMapping public cn.herodotus.engine.assistant.core.domain.Result<cn.herodotus.engine.captcha.core.dto.Captcha> create(@NotBlank(message="\u8eab\u4efd\u4fe1\u606f\u4e0d\u80fd\u4e3a\u7a7a") @NotBlank(message="\u8eab\u4efd\u4fe1\u606f\u4e0d\u80fd\u4e3a\u7a7a") String identity, @NotBlank(message="\u9a8c\u8bc1\u7801\u7c7b\u578b\u4e0d\u80fd\u4e3a\u7a7a") @NotBlank(message="\u9a8c\u8bc1\u7801\u7c7b\u578b\u4e0d\u80fd\u4e3a\u7a7a") String category) -
check
@Idempotent @Crypto(responseEncrypt=false) @PostMapping public cn.herodotus.engine.assistant.core.domain.Result<Boolean> check(@Valid @RequestBody @Valid cn.herodotus.engine.captcha.core.dto.Verification verification)
-