65 lines
1.3 KiB
Java
65 lines
1.3 KiB
Java
package com.upchina.common.query;
|
||
|
||
import io.swagger.annotations.ApiModelProperty;
|
||
|
||
import javax.validation.constraints.Max;
|
||
import javax.validation.constraints.Min;
|
||
import javax.validation.constraints.NotBlank;
|
||
import javax.validation.constraints.NotNull;
|
||
|
||
public class SaveCommentQuery {
|
||
|
||
@ApiModelProperty("产品id")
|
||
@NotNull
|
||
@Min(1)
|
||
private Integer productId;
|
||
|
||
@ApiModelProperty("产品类型")
|
||
@NotNull
|
||
@Min(1)
|
||
@Max(99)
|
||
private Integer productType;
|
||
|
||
@ApiModelProperty("评论内容")
|
||
@NotBlank
|
||
private String commentContent;
|
||
|
||
@ApiModelProperty("来源:0:app 1:pc 9:中台")
|
||
@NotNull
|
||
@Min(0)
|
||
@Max(9)
|
||
private Integer source = 0;
|
||
|
||
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 Integer getSource() {
|
||
return source;
|
||
}
|
||
|
||
public void setSource(Integer source) {
|
||
this.source = source;
|
||
}
|
||
}
|