57 lines
1.2 KiB
Java
57 lines
1.2 KiB
Java
|
|
package com.zhangmeng.fiction.server.entity;
|
||
|
|
|
||
|
|
import com.zhangmeng.fiction.server.entity.baseEntity.BaseEntity;
|
||
|
|
import lombok.AllArgsConstructor;
|
||
|
|
import lombok.Data;
|
||
|
|
import lombok.EqualsAndHashCode;
|
||
|
|
import lombok.NoArgsConstructor;
|
||
|
|
|
||
|
|
import javax.persistence.Entity;
|
||
|
|
import javax.persistence.Table;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @author zhengmeng
|
||
|
|
* @date 2021年1月7日17:44:40
|
||
|
|
* @version 1.0
|
||
|
|
*/
|
||
|
|
@NoArgsConstructor
|
||
|
|
@Data
|
||
|
|
@AllArgsConstructor
|
||
|
|
@Entity
|
||
|
|
@EqualsAndHashCode(callSuper = false)
|
||
|
|
@Table(name = "sys_config")
|
||
|
|
public class SysConfig extends BaseEntity<Long> {
|
||
|
|
|
||
|
|
public enum MailType{
|
||
|
|
|
||
|
|
mail_163("smtp.163.com"),
|
||
|
|
mail_qq("smtp.qq.com");
|
||
|
|
|
||
|
|
private String description;//描述
|
||
|
|
|
||
|
|
MailType(String description) {
|
||
|
|
this.description = description;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getDescription() {
|
||
|
|
return description;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDescription(String description) {
|
||
|
|
this.description = description;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private String siteName;//站点名称
|
||
|
|
|
||
|
|
private String domain;//域名设置
|
||
|
|
|
||
|
|
private String siteIntroduction; //站点简介
|
||
|
|
|
||
|
|
private MailType mailType;//邮箱类型
|
||
|
|
|
||
|
|
private String blogTitle;//博客标题
|
||
|
|
|
||
|
|
private String author;
|
||
|
|
}
|