|
@@ -5,6 +5,9 @@ import com.baomidou.mybatisplus.extension.activerecord.Model;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
|
+import lombok.Data;
|
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
|
+import lombok.experimental.Accessors;
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
@@ -12,8 +15,11 @@ import java.io.Serializable;
|
|
* </p>
|
|
* </p>
|
|
*
|
|
*
|
|
* @author 吴涛涛
|
|
* @author 吴涛涛
|
|
- * @since 2019-10-24
|
|
|
|
|
|
+ * @since 2020-02-05
|
|
*/
|
|
*/
|
|
|
|
+@Data
|
|
|
|
+@EqualsAndHashCode(callSuper = false)
|
|
|
|
+@Accessors(chain = true)
|
|
public class Article extends Model<Article> {
|
|
public class Article extends Model<Article> {
|
|
|
|
|
|
private static final long serialVersionUID=1L;
|
|
private static final long serialVersionUID=1L;
|
|
@@ -67,86 +73,9 @@ public class Article extends Model<Article> {
|
|
private String introduction;
|
|
private String introduction;
|
|
|
|
|
|
|
|
|
|
- public Integer getId() {
|
|
|
|
- return id;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setId(Integer 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 getType() {
|
|
|
|
- return type;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setType(String type) {
|
|
|
|
- this.type = type;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Integer getSticky() {
|
|
|
|
- return sticky;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setSticky(Integer sticky) {
|
|
|
|
- this.sticky = sticky;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Integer getPosition() {
|
|
|
|
- return position;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setPosition(Integer position) {
|
|
|
|
- this.position = position;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getImageUrl() {
|
|
|
|
- return imageUrl;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setImageUrl(String imageUrl) {
|
|
|
|
- this.imageUrl = imageUrl;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getIntroduction() {
|
|
|
|
- return introduction;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setIntroduction(String introduction) {
|
|
|
|
- this.introduction = introduction;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
@Override
|
|
@Override
|
|
protected Serializable pkVal() {
|
|
protected Serializable pkVal() {
|
|
return this.id;
|
|
return this.id;
|
|
}
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
|
- public String toString() {
|
|
|
|
- return "Article{" +
|
|
|
|
- "id=" + id +
|
|
|
|
- ", title=" + title +
|
|
|
|
- ", content=" + content +
|
|
|
|
- ", type=" + type +
|
|
|
|
- ", sticky=" + sticky +
|
|
|
|
- ", position=" + position +
|
|
|
|
- ", imageUrl=" + imageUrl +
|
|
|
|
- ", introduction=" + introduction +
|
|
|
|
- "}";
|
|
|
|
- }
|
|
|
|
}
|
|
}
|