AdvisorServer/src/main/java/com/upchina/common/query/SaveCommentQuery.java
2025-02-12 17:27:48 +08:00

65 lines
1.3 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
}
}