@Service public class EmailNoticeService extends Object
@Comment(value="\u53d1\u9001\u6d88\u606f") public void sendMsg(String toEmail, String msg) throws BusiException
toEmail - 接收邮件的邮箱地址msg - 要发送的消息内容(支持HTML格式)BusiException - 当邮件发送过程中发生错误时抛出业务异常@Comment(value="\u53d1\u9001\u9a8c\u8bc1\u7801") public void sendCode(String toEmail, String code) throws BusiException
toEmail - 接收验证码的邮箱地址code - 要发送的验证码字符串BusiException - 当验证码已存在或邮件发送失败时抛出业务异常@Comment(value="\u4ece\u7f13\u5b58\u4e2d\u83b7\u53d6\u9a8c\u7801") public String getCode(String key)
key - 邮箱地址作为缓存键@Comment(value="\u5220\u9664Cache") public void removeCode(String key)
key - 需要被删除的缓存键(通常是邮箱地址)Copyright © 2026. All rights reserved.