Files
ERP/oa-backend/src/main/java/com/kaidi/oa/domain/Blog.java
T

163 lines
3.0 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package com.kaidi.oa.domain;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
/** 博客文章(知识社区 - 我的博客)。tags 为逗号分隔。 */
@Entity
@Table(name = "blog")
public class Blog {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String title;
@Column(length = 2000)
private String summary;
@Column(columnDefinition = "TEXT")
private String body;
private String author;
/** 稳定作者 idSysUser.id):对象级授权按此比对,根治改名重用冒充。author 仅作展示。 */
private Long authorId;
private String category;
/** 已发布 / 草稿 / 审核中 / 已下架 */
private String statusId;
/** 逗号分隔标签。 */
private String tags;
private int views;
private int comments;
private int likes;
private boolean cover;
/** 展示日期 yyyy-MM-dd。 */
private String date;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getSummary() {
return summary;
}
public void setSummary(String summary) {
this.summary = summary;
}
public String getBody() {
return body;
}
public void setBody(String body) {
this.body = body;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public Long getAuthorId() {
return authorId;
}
public void setAuthorId(Long authorId) {
this.authorId = authorId;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public String getStatusId() {
return statusId;
}
public void setStatusId(String statusId) {
this.statusId = statusId;
}
public String getTags() {
return tags;
}
public void setTags(String tags) {
this.tags = tags;
}
public int getViews() {
return views;
}
public void setViews(int views) {
this.views = views;
}
public int getComments() {
return comments;
}
public void setComments(int comments) {
this.comments = comments;
}
public int getLikes() {
return likes;
}
public void setLikes(int likes) {
this.likes = likes;
}
public boolean isCover() {
return cover;
}
public void setCover(boolean cover) {
this.cover = cover;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
}