parent
0f5cf51187
commit
768dc8bc1a
@ -0,0 +1,77 @@
|
||||
package com.xjs.business.warning.domain;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 邮箱发送实体
|
||||
*
|
||||
* @author xiejs
|
||||
* @since 2022-04-13
|
||||
*/
|
||||
@Data
|
||||
public class MailBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -2116367492649751917L;
|
||||
|
||||
/**
|
||||
* 邮件接收人
|
||||
*/
|
||||
private String recipient;
|
||||
/**
|
||||
* 邮件主题
|
||||
*/
|
||||
private String subject;
|
||||
/**
|
||||
* 邮件内容
|
||||
*/
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* 用户名称
|
||||
*/
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 附件地址
|
||||
*/
|
||||
private String absolutePath;
|
||||
|
||||
/**
|
||||
* 邮件发送类型
|
||||
*/
|
||||
private MailType mailType;
|
||||
|
||||
/**
|
||||
* 内部类-邮件发送类型
|
||||
*/
|
||||
public enum MailType {
|
||||
SIMPLE(1, "文本邮件"),
|
||||
HTML(2, "HTML邮件"),
|
||||
ATTACHMENT(3, "附件邮件"),
|
||||
INLINE(4, "静态资源邮件"),
|
||||
TEMPLATE(5, "模板邮件");
|
||||
|
||||
|
||||
private final int code;
|
||||
private final String msg;
|
||||
|
||||
MailType(int code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,14 @@
|
||||
package com.ruoyi.auth.annotation;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* 登录切面注解
|
||||
* @author xiejs
|
||||
* @since 2022-04-14
|
||||
*/
|
||||
@Target({ ElementType.PARAMETER, ElementType.METHOD })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface LoginAspect {
|
||||
}
|
Loading…
Reference in new issue