Class CaptchaController

java.lang.Object
cn.herodotus.engine.oauth2.management.controller.CaptchaController
All Implemented Interfaces:
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

Author:
: gengwei.zheng
Date:
: 2021/12/12 10:44
  • Constructor Summary

    Constructors
    Constructor
    Description
    CaptchaController(cn.herodotus.engine.captcha.core.processor.CaptchaRendererFactory captchaRendererFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    cn.herodotus.engine.assistant.definition.domain.Result<Boolean>
    check(@Valid cn.herodotus.engine.captcha.core.dto.Verification verification)
     
    cn.herodotus.engine.assistant.definition.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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface cn.herodotus.engine.rest.core.controller.Controller

    getPageInfoMap, getPageInfoMap, result, result, result, result, result, result, result, result
  • Constructor Details

    • CaptchaController

      public CaptchaController(cn.herodotus.engine.captcha.core.processor.CaptchaRendererFactory captchaRendererFactory)
  • Method Details

    • create

      @AccessLimited @GetMapping public cn.herodotus.engine.assistant.definition.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.definition.domain.Result<Boolean> check(@Valid @RequestBody @Valid cn.herodotus.engine.captcha.core.dto.Verification verification)