分页修改和评论获取

This commit is contained in:
2020-08-17 17:42:34 +08:00
parent 72c98ba2f8
commit e80c55d599
18 changed files with 325 additions and 130 deletions
@@ -29,49 +29,49 @@ public class Discussions implements Serializable {
private String content;
@Column(name="comments_count")
private Integer comments_count;
private Integer commentsCount;
@Column(name="participants_count")
private Integer participants_count;
private Integer participantsCount;
@Column(name="number_index")
private Integer number_index;
private Integer numberIndex;
@Column(name="start_time")
private Date start_time;
private Date startTime;
@Column(name="start_user_id")
private Integer start_user_id;
private Integer startUserId;
@Column(name="start_post_id")
private Integer start_post_id;
private Integer startPostId;
@Column(name="last_time")
private Date last_time;
private Date lastTime;
@Column(name="last_user_id")
private Integer last_user_id;
private Integer lastUserId;
@Column(name="last_post_id")
private Integer last_post_id;
private Integer lastPostId;
@Column(name="last_post_number")
private Integer last_post_number;
private Integer lastPostNumber;
@Column(name="is_approved")
private Integer is_approved;
private Integer isApproved;
@Column(name="like_count")
private Integer like_count;
private Integer likeCount;
@Column(name="ip_address")
private String ip_address;
private String ipAddress;
@Column(name="create_id")
private Integer create_id;
private Integer createId;
@Column(name="create_time")
private Date create_time;
private Date createTime;
}
@@ -16,10 +16,10 @@ public class DiscussionsTags implements Serializable{
@Id
@Column(name="discussion_id")
private Integer discussion_id;
private Integer discussionId;
@Column(name="tag_id")
private Integer tag_id;
private Integer tagId;
}
@@ -23,7 +23,7 @@ public class Posts implements Serializable{
private Integer id;
@Column(name="discussion_id")
private Integer discussion_id;
private Integer discussionId;
@Column(name="number")
private Integer number;
@@ -32,7 +32,7 @@ public class Posts implements Serializable{
private Date time;
@Column(name="user_id")
private Integer user_id;
private Integer userId;
@Column(name="type")
private String type;
@@ -41,27 +41,27 @@ public class Posts implements Serializable{
private String content;
@Column(name="parent_id")
private Integer parent_id;
private Integer parentId;
@Column(name="edit_time")
private Date edit_time;
private Date editTime;
@Column(name="edit_user_id")
private Integer edit_user_id;
private Integer editUserId;
@Column(name="ip_address")
private String ip_address;
private String ipAddress;
@Column(name="copyright")
private String copyright;
@Column(name="is_approved")
private Integer is_approved;
private Integer isApproved;
@Column(name="create_id")
private Integer create_id;
private Integer createId;
@Column(name="create_time")
private Date create_time;
private Date createTime;
}
@@ -35,20 +35,20 @@ public class Tags implements Serializable{
private Integer position;
@Column(name="parent_id")
private Integer parent_id;
private Integer parentId;
@Column(name="discussions_count")
private String discussions_count;
private String discussionsCount;
@Column(name="last_time")
private Date last_time;
private Date lastTime;
@Column(name="last_discussion_id")
private Integer last_discussion_id;
private Integer lastDiscussionId;
@Column(name="create_id")
private Integer create_id;
private Integer createId;
@Column(name="create_time")
private Date create_time;
private Date createTime;
}
@@ -44,7 +44,7 @@ public class Users implements Serializable {
private String password;
@Column(name="join_time")
private Date join_time;
private Date joinTime;
@Column(name="age")
private Integer age;
@@ -56,13 +56,13 @@ public class Users implements Serializable {
private String phone;
@Column(name="discussions_count")
private Integer discussions_count;
private Integer discussionsCount;
@Column(name="comments_count")
private Integer comments_count;
private Integer commentsCount;
@Column(name="last_seen_time")
private Date last_seen_time;
private Date lastSeenTime;
@Column(name="flag")
private Integer flag;