页面树结构

版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

代码块
languagejava
// smartbi.usermanager.model.CaptchaCodeSendReq
/**
 * 发送验证码请求实体
 */
public class CaptchaCodeSendReq {
	/** 发送验证码的类型,例如登录验证时发送的验证码,修改密码时发送的验证码 */
	CaptchaSendType sendType;
	/** 用户名 */
    String userName;
	/** 手机或邮箱 */
	String phoneOrEmail;
}

// smartbi.usermanager.model.CaptchaCodeValidReq
/**
 * 校验验证码请求实体
 */
public class CaptchaCodeValidReq {
	/** 发送验证码的类型,例如登录验证时发送的验证码,修改密码时发送的验证码 */
	CaptchaSendType sendType;
	/** 用户名 */
  	String userName;
	/** 手机或邮箱*/
	String phoneOrEmail;
	/** 验证码 */
	String captchaCode;
}

// smartbi.usermanager.model.CaptchaCodeValidResp
/**
 * 校验验证码结果实体
 */
public class CaptchaCodeValidResp {
	/** 验证码验证结果 */
	boolean success;
	/** 验证码验证失败时的报错信息 CAPTCHACODE_INVALID, CAPTCHACODE_ERROR, CAPTCHACODE_EXPIRED */
	UserManagerErrorCode errCode;
}

// smartbi.usermanager.service.ICaptchaCodeService
/**
 * 验证码发送和校验类
 */

public interface ICaptchaCodeService {
  /**
  * 发送验证码
  * @param req 
  * @return 发送是否成功
  */
  boolean sendCaptchaCode(CaptchaCodeSendReq req);

  /**
  * 校验验证码
  * @param req 
  * @return 验证结果
  */
  CaptchaCodeValidResp validateCaptchaCode(CaptchaCodeValidReq req);
}

...