forked from rongchao/epmet-cloud-rizhao
				
			
				 24 changed files with 276 additions and 52 deletions
			
			
		@ -0,0 +1,30 @@ | 
				
			|||
package com.epmet.constant; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 短信模板编码常亮 | 
				
			|||
 * | 
				
			|||
 * @author yinzuomei@elink-cn.com | 
				
			|||
 * @date 2020/6/23 21:30 | 
				
			|||
 */ | 
				
			|||
public interface SmsTemplateConstant { | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 登录确认验证码 | 
				
			|||
     */ | 
				
			|||
    String LGOIN_CONFIRM="SMS_150731396"; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 用户注册验证码 | 
				
			|||
     */ | 
				
			|||
    String USER_REGISTER="SMS_150731394"; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 信息变更验证码 | 
				
			|||
     */ | 
				
			|||
    String CHANGE_INFO="SMS_150731392"; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 修改密码验证码 | 
				
			|||
     */ | 
				
			|||
    String CHANGE_PASSWORD = "SMS_150731393"; | 
				
			|||
} | 
				
			|||
@ -0,0 +1,36 @@ | 
				
			|||
package com.epmet.dto.form; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import javax.validation.constraints.NotBlank; | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 根据手机号、短信模板编码,发送短信 验证码 | 
				
			|||
 * | 
				
			|||
 * @author yinzuomei@elink-cn.com | 
				
			|||
 * @date 2020/6/23 20:58 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class SendVerificationCodeFormDTO implements Serializable { | 
				
			|||
    private static final long serialVersionUID = 8894395590639206399L; | 
				
			|||
 | 
				
			|||
    public interface AddUserInternalGroup { | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    public interface AddUserShowGroup extends CustomerClientShowGroup { | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 手机号 | 
				
			|||
     */ | 
				
			|||
    @NotBlank(message = "手机号不能为空", groups = {AddUserInternalGroup.class, AddUserShowGroup.class}) | 
				
			|||
    private String mobile; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 场景: | 
				
			|||
     */ | 
				
			|||
    @NotBlank(message = "短信模板编码不能为空", groups = {AddUserInternalGroup.class}) | 
				
			|||
    private String aliyunTemplateCode; | 
				
			|||
} | 
				
			|||
@ -0,0 +1,19 @@ | 
				
			|||
package com.epmet.dto.result; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 短信验证码 | 
				
			|||
 * | 
				
			|||
 * @author yinzuomei@elink-cn.com | 
				
			|||
 * @date 2020/6/23 21:37 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class SendVerificationCodeResultDTO implements Serializable { | 
				
			|||
    /** | 
				
			|||
     * 短信验证码 | 
				
			|||
     */ | 
				
			|||
    private String code; | 
				
			|||
} | 
				
			|||
					Loading…
					
					
				
		Reference in new issue