|
|
|
@ -0,0 +1,27 @@
|
|
|
|
|
package com.yami.shop.security.admin.dto;
|
|
|
|
|
|
|
|
|
|
import com.yami.shop.security.common.dto.AuthenticationDTO;
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* CaptchaAuthenticationDTO类用于表示验证码登录相关的数据传输对象(DTO)。
|
|
|
|
|
* 它继承自AuthenticationDTO类,意味着会继承其原有的一些与认证相关的通用属性和方法等。
|
|
|
|
|
* 此类专门用于在涉及验证码登录的场景中,传递包含验证码信息在内的登录相关数据,
|
|
|
|
|
* 比如从前端接收用户输入的验证码以及其他必要的认证信息,再传递到后端进行相应的登录验证处理等操作。
|
|
|
|
|
*
|
|
|
|
|
* @author 菠萝凤梨
|
|
|
|
|
* @date 2022/3/28 14:57
|
|
|
|
|
*/
|
|
|
|
|
@Data
|
|
|
|
|
public class CaptchaAuthenticationDTO extends AuthenticationDTO {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* captchaVerification属性用于存储用户输入的验证码信息。
|
|
|
|
|
* 通过@Schema注解对该属性在Swagger文档中的展示进行了描述说明,
|
|
|
|
|
* 指明此属性的描述为“验证码”,并且在相关的请求等场景中是必须提供的(required = true),
|
|
|
|
|
* 以便后端服务可以获取该验证码并与系统生成的验证码进行比对等验证操作。
|
|
|
|
|
*/
|
|
|
|
|
@Schema(description = "验证码", required = true)
|
|
|
|
|
private String captchaVerification;
|
|
|
|
|
}
|