forest/src/main/java/com/rymcu/vertical/service/JavaMailService.java

25 lines
591 B
Java
Raw Normal View History

2019-11-16 20:11:38 +08:00
package com.rymcu.vertical.service;
2019-11-24 15:50:02 +08:00
import javax.mail.MessagingException;
/**
* @author ronger
* @since 2019/11/23
* @version 1.0
* **/
2019-11-16 20:11:38 +08:00
public interface JavaMailService {
2019-11-24 15:50:02 +08:00
/**
* 发送验证码邮件
* @param email 收件人邮箱
* @return 执行结果 0失败1成功
* */
Integer sendEmailCode(String email) throws MessagingException;
/**
* 发送找回密码邮件
* @param email 收件人邮箱
* @return 执行结果 0失败1成功
* */
Integer sendForgetPasswordEmail(String email) throws MessagingException;
2019-11-16 20:11:38 +08:00
}