package com.rongyichuang.news.dto;
|
|
public class NewsInput {
|
|
private Long id;
|
private String title;
|
private String content;
|
private String summary;
|
private String coverImage;
|
private String author;
|
private Integer state = 1;
|
|
// 构造函数
|
public NewsInput() {}
|
|
// Getters and Setters
|
|
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 getContent() {
|
return content;
|
}
|
|
public void setContent(String content) {
|
this.content = content;
|
}
|
|
public String getSummary() {
|
return summary;
|
}
|
|
public void setSummary(String summary) {
|
this.summary = summary;
|
}
|
|
public String getCoverImage() {
|
return coverImage;
|
}
|
|
public void setCoverImage(String coverImage) {
|
this.coverImage = coverImage;
|
}
|
|
public String getAuthor() {
|
return author;
|
}
|
|
public void setAuthor(String author) {
|
this.author = author;
|
}
|
|
public Integer getState() {
|
return state;
|
}
|
|
public void setState(Integer state) {
|
this.state = state;
|
}
|
|
public boolean isNew() {
|
return id == null || id <= 0;
|
}
|
}
|