编写mvc基础代码添加ResponseMessage编写Message关键字

This commit is contained in:
qingfeng1121
2025-10-09 12:12:42 +08:00
parent 1d4dee573e
commit 6841ba67f1
13 changed files with 282 additions and 157 deletions

View File

@@ -0,0 +1,95 @@
package com.qf.myafterprojecy.pojo;
import lombok.Data;
import javax.persistence.*;
@Entity
@Table(name = "article")
public class Article {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "articleid")
private Integer articleid;
@Column(name = "title")
private String title;
@Column(name = "content")
private String content;
@Column(name = "img")
private String img;
@Column(name = "typeid")
private int typeid;
@Column(name = "published_at")
private String publisher_at;
@Column(name = "created_at")
private String created_at;
public Integer getArticleid() {
return articleid;
}
public void setArticleid(Integer articleid) {
this.articleid = articleid;
}
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 getImg() {
return img;
}
public void setImg(String img) {
this.img = img;
}
public int getTypeid() {
return typeid;
}
public void setTypeid(int typeid) {
this.typeid = typeid;
}
public String getPublisher_at() {
return publisher_at;
}
public void setPublisher_at(String publisher_at) {
this.publisher_at = publisher_at;
}
public String getCreated_at() {
return created_at;
}
public void setCreated_at(String created_at) {
this.created_at = created_at;
}
@Override
public String toString() {
return "Article{" +
"articleid=" + articleid +
", title='" + title + '\'' +
", content='" + content + '\'' +
", img='" + img + '\'' +
", typeid=" + typeid +
", publisher_at='" + publisher_at + '\'' +
", created_at='" + created_at + '\'' +
'}';
}
}