207 lines
4.8 KiB
Java
207 lines
4.8 KiB
Java
package com.upchina.common.vo;
|
|
|
|
import com.upchina.common.entity.Comment;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
import java.io.Serializable;
|
|
import java.time.LocalDateTime;
|
|
|
|
public class CommentAppVO implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@ApiModelProperty("评论id")
|
|
private Integer id;
|
|
|
|
@ApiModelProperty("用户姓名")
|
|
private String userName;
|
|
|
|
@ApiModelProperty("用户手机号")
|
|
private String phone;
|
|
|
|
@ApiModelProperty("用户头像")
|
|
private String userImgUrl;
|
|
|
|
@ApiModelProperty("用户类型 1:终端用户 2:投顾 3:助教")
|
|
private Integer userType;
|
|
|
|
@ApiModelProperty("产品id")
|
|
private Integer productId;
|
|
|
|
@ApiModelProperty("产品类型")
|
|
private Integer productType;
|
|
|
|
@ApiModelProperty("评论内容")
|
|
private String commentContent;
|
|
|
|
@ApiModelProperty("评论时间")
|
|
private LocalDateTime commentTime;
|
|
|
|
@ApiModelProperty("回复内容")
|
|
private String replyContent;
|
|
|
|
@ApiModelProperty("回复时间")
|
|
private LocalDateTime replyTime;
|
|
|
|
@ApiModelProperty("回复人id")
|
|
private Integer replyUserId;
|
|
|
|
@ApiModelProperty("回复人姓名")
|
|
private String replyUserName;
|
|
|
|
@ApiModelProperty("回复人头像")
|
|
private String replyUserImgUrl;
|
|
|
|
@ApiModelProperty("回复人类型 1:终端用户 2:投顾 3:助教")
|
|
private Integer replyUserType;
|
|
|
|
@ApiModelProperty("置顶权重")
|
|
private Integer weight;
|
|
|
|
public CommentAppVO() {}
|
|
|
|
public CommentAppVO(Comment comment) {
|
|
this.id = comment.getId();
|
|
this.userName = comment.getUserName();
|
|
this.phone = comment.getPhone();
|
|
this.userImgUrl = comment.getUserImgUrl();
|
|
this.userType = comment.getUserType();
|
|
this.productId = comment.getProductId();
|
|
this.productType = comment.getProductType();
|
|
this.commentContent = comment.getCommentContent();
|
|
this.commentTime = comment.getCommentTime();
|
|
this.replyContent = comment.getReplyContent();
|
|
this.replyTime = comment.getReplyTime();
|
|
this.replyUserId = comment.getReplyUserId();
|
|
this.weight = comment.getWeight();
|
|
}
|
|
|
|
public Integer getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getUserName() {
|
|
return userName;
|
|
}
|
|
|
|
public void setUserName(String userName) {
|
|
this.userName = userName;
|
|
}
|
|
|
|
public String getPhone() {
|
|
return phone;
|
|
}
|
|
|
|
public void setPhone(String phone) {
|
|
this.phone = phone;
|
|
}
|
|
|
|
public String getUserImgUrl() {
|
|
return userImgUrl;
|
|
}
|
|
|
|
public void setUserImgUrl(String userImgUrl) {
|
|
this.userImgUrl = userImgUrl;
|
|
}
|
|
|
|
public Integer getUserType() {
|
|
return userType;
|
|
}
|
|
|
|
public void setUserType(Integer userType) {
|
|
this.userType = userType;
|
|
}
|
|
|
|
public Integer getProductId() {
|
|
return productId;
|
|
}
|
|
|
|
public void setProductId(Integer productId) {
|
|
this.productId = productId;
|
|
}
|
|
|
|
public Integer getProductType() {
|
|
return productType;
|
|
}
|
|
|
|
public void setProductType(Integer productType) {
|
|
this.productType = productType;
|
|
}
|
|
|
|
public String getCommentContent() {
|
|
return commentContent;
|
|
}
|
|
|
|
public void setCommentContent(String commentContent) {
|
|
this.commentContent = commentContent;
|
|
}
|
|
|
|
public LocalDateTime getCommentTime() {
|
|
return commentTime;
|
|
}
|
|
|
|
public void setCommentTime(LocalDateTime commentTime) {
|
|
this.commentTime = commentTime;
|
|
}
|
|
|
|
public String getReplyContent() {
|
|
return replyContent;
|
|
}
|
|
|
|
public void setReplyContent(String replyContent) {
|
|
this.replyContent = replyContent;
|
|
}
|
|
|
|
public LocalDateTime getReplyTime() {
|
|
return replyTime;
|
|
}
|
|
|
|
public void setReplyTime(LocalDateTime replyTime) {
|
|
this.replyTime = replyTime;
|
|
}
|
|
|
|
public Integer getReplyUserId() {
|
|
return replyUserId;
|
|
}
|
|
|
|
public void setReplyUserId(Integer replyUserId) {
|
|
this.replyUserId = replyUserId;
|
|
}
|
|
|
|
public String getReplyUserName() {
|
|
return replyUserName;
|
|
}
|
|
|
|
public void setReplyUserName(String replyUserName) {
|
|
this.replyUserName = replyUserName;
|
|
}
|
|
|
|
public String getReplyUserImgUrl() {
|
|
return replyUserImgUrl;
|
|
}
|
|
|
|
public void setReplyUserImgUrl(String replyUserImgUrl) {
|
|
this.replyUserImgUrl = replyUserImgUrl;
|
|
}
|
|
|
|
public Integer getReplyUserType() {
|
|
return replyUserType;
|
|
}
|
|
|
|
public void setReplyUserType(Integer replyUserType) {
|
|
this.replyUserType = replyUserType;
|
|
}
|
|
|
|
public Integer getWeight() {
|
|
return weight;
|
|
}
|
|
|
|
public void setWeight(Integer weight) {
|
|
this.weight = weight;
|
|
}
|
|
}
|