|
@@ -2,198 +2,79 @@ package com.ylx.project.domain.dto;
|
|
|
|
|
|
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
+import lombok.Data;
|
|
|
|
|
|
|
|
|
|
+import javax.validation.constraints.NotBlank;
|
|
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
|
|
|
|
|
|
@ApiModel("项目新增DTO")
|
|
@ApiModel("项目新增DTO")
|
|
|
|
|
+@Data
|
|
|
public class ProjectAddDTO implements Serializable {
|
|
public class ProjectAddDTO implements Serializable {
|
|
|
|
|
+
|
|
|
private static final long serialVersionUID = 862152570131989654L;
|
|
private static final long serialVersionUID = 862152570131989654L;
|
|
|
|
|
|
|
|
@ApiModelProperty("标题")
|
|
@ApiModelProperty("标题")
|
|
|
- private String cTitle;
|
|
|
|
|
|
|
+ @NotBlank(message = "项目标题不能为空")
|
|
|
|
|
+ private String title;
|
|
|
|
|
|
|
|
@ApiModelProperty("项目分类")
|
|
@ApiModelProperty("项目分类")
|
|
|
|
|
+ @NotNull(message = "服务类目ID不能为空")
|
|
|
private Integer type;
|
|
private Integer type;
|
|
|
|
|
|
|
|
@ApiModelProperty("封面图")
|
|
@ApiModelProperty("封面图")
|
|
|
- private String cCover;
|
|
|
|
|
-
|
|
|
|
|
- @ApiModelProperty("原价")
|
|
|
|
|
- private BigDecimal dYuanPrice;
|
|
|
|
|
|
|
+ @NotBlank(message = "项目封面图不能为空")
|
|
|
|
|
+ private String cover;
|
|
|
|
|
|
|
|
- @ApiModelProperty("标注价格(现价)")
|
|
|
|
|
- private BigDecimal dPrice;
|
|
|
|
|
|
|
+ @ApiModelProperty("标注价格")
|
|
|
|
|
+ @NotNull(message = "标注价格不能为空")
|
|
|
|
|
+ private BigDecimal price;
|
|
|
|
|
|
|
|
@ApiModelProperty("标注价格(现价)")
|
|
@ApiModelProperty("标注价格(现价)")
|
|
|
|
|
+ @NotNull(message = "市场参考价起始值不能为空")
|
|
|
private BigDecimal priceMin;
|
|
private BigDecimal priceMin;
|
|
|
|
|
|
|
|
@ApiModelProperty("标注价格(现价)")
|
|
@ApiModelProperty("标注价格(现价)")
|
|
|
|
|
+ @NotNull(message = "市场参考价结束值不能为空")
|
|
|
private BigDecimal priceMax;
|
|
private BigDecimal priceMax;
|
|
|
|
|
|
|
|
@ApiModelProperty("商户分佣比例")
|
|
@ApiModelProperty("商户分佣比例")
|
|
|
|
|
+ @NotNull(message = "商户分佣比例不能为空")
|
|
|
private BigDecimal merchantShareRatio;
|
|
private BigDecimal merchantShareRatio;
|
|
|
|
|
|
|
|
@ApiModelProperty("标时")
|
|
@ApiModelProperty("标时")
|
|
|
|
|
+ @NotNull(message = "标准服务时长不能为空")
|
|
|
private Integer standardDuration;
|
|
private Integer standardDuration;
|
|
|
|
|
|
|
|
@ApiModelProperty("计量单位(字典数据)")
|
|
@ApiModelProperty("计量单位(字典数据)")
|
|
|
|
|
+ @NotNull(message = "计量单位不能为空")
|
|
|
private Integer unitType;
|
|
private Integer unitType;
|
|
|
|
|
|
|
|
@ApiModelProperty("状态: 0=上架, 1=下架")
|
|
@ApiModelProperty("状态: 0=上架, 1=下架")
|
|
|
|
|
+ @NotNull(message = "状态不能为空")
|
|
|
private Integer status;
|
|
private Integer status;
|
|
|
|
|
|
|
|
@ApiModelProperty("是否推荐:0=否,1=是")
|
|
@ApiModelProperty("是否推荐:0=否,1=是")
|
|
|
|
|
+ @NotNull(message = "是否推荐不能为空")
|
|
|
private Integer isRecommended;
|
|
private Integer isRecommended;
|
|
|
|
|
|
|
|
@ApiModelProperty("价格是否自定义:0=否,1=是")
|
|
@ApiModelProperty("价格是否自定义:0=否,1=是")
|
|
|
|
|
+ @NotNull(message = "价格是否自定义不能为空")
|
|
|
private Integer isPriceCustom;
|
|
private Integer isPriceCustom;
|
|
|
|
|
|
|
|
@ApiModelProperty("标时是否自定义:0=否,1=是")
|
|
@ApiModelProperty("标时是否自定义:0=否,1=是")
|
|
|
|
|
+ @NotNull(message = "标时是否自定义不能为空")
|
|
|
private Integer isTimeCustom;
|
|
private Integer isTimeCustom;
|
|
|
|
|
|
|
|
@ApiModelProperty("项目亮点:关联亮点字典表的ID集合")
|
|
@ApiModelProperty("项目亮点:关联亮点字典表的ID集合")
|
|
|
|
|
+ @NotBlank(message = "项目亮点ID集合不能为空")
|
|
|
private String highlightIds;
|
|
private String highlightIds;
|
|
|
|
|
|
|
|
@ApiModelProperty("适用人群")
|
|
@ApiModelProperty("适用人群")
|
|
|
|
|
+ @NotBlank(message = "适用人群不能为空")
|
|
|
private String targetAudience;
|
|
private String targetAudience;
|
|
|
|
|
|
|
|
@ApiModelProperty("项目详情 富文本")
|
|
@ApiModelProperty("项目详情 富文本")
|
|
|
private String detail;
|
|
private String detail;
|
|
|
-
|
|
|
|
|
- public String getDetail() {
|
|
|
|
|
- return detail;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setDetail(String detail) {
|
|
|
|
|
- this.detail = detail;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public String getcTitle() {
|
|
|
|
|
- return cTitle;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setcTitle(String cTitle) {
|
|
|
|
|
- this.cTitle = cTitle;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public Integer getType() {
|
|
|
|
|
- return type;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setType(Integer type) {
|
|
|
|
|
- this.type = type;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public String getcCover() {
|
|
|
|
|
- return cCover;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setcCover(String cCover) {
|
|
|
|
|
- this.cCover = cCover;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public BigDecimal getdYuanPrice() {
|
|
|
|
|
- return dYuanPrice;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setdYuanPrice(BigDecimal dYuanPrice) {
|
|
|
|
|
- this.dYuanPrice = dYuanPrice;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public BigDecimal getdPrice() {
|
|
|
|
|
- return dPrice;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setdPrice(BigDecimal dPrice) {
|
|
|
|
|
- this.dPrice = dPrice;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public BigDecimal getPriceMin() {
|
|
|
|
|
- return priceMin;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setPriceMin(BigDecimal priceMin) {
|
|
|
|
|
- this.priceMin = priceMin;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public BigDecimal getPriceMax() {
|
|
|
|
|
- return priceMax;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setPriceMax(BigDecimal priceMax) {
|
|
|
|
|
- this.priceMax = priceMax;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public BigDecimal getMerchantShareRatio() {
|
|
|
|
|
- return merchantShareRatio;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setMerchantShareRatio(BigDecimal merchantShareRatio) {
|
|
|
|
|
- this.merchantShareRatio = merchantShareRatio;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public Integer getStandardDuration() {
|
|
|
|
|
- return standardDuration;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setStandardDuration(Integer standardDuration) {
|
|
|
|
|
- this.standardDuration = standardDuration;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public Integer getUnitType() {
|
|
|
|
|
- return unitType;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setUnitType(Integer unitType) {
|
|
|
|
|
- this.unitType = unitType;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public Integer getStatus() {
|
|
|
|
|
- return status;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setStatus(Integer status) {
|
|
|
|
|
- this.status = status;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public Integer getIsRecommended() {
|
|
|
|
|
- return isRecommended;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setIsRecommended(Integer isRecommended) {
|
|
|
|
|
- this.isRecommended = isRecommended;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public Integer getIsPriceCustom() {
|
|
|
|
|
- return isPriceCustom;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setIsPriceCustom(Integer isPriceCustom) {
|
|
|
|
|
- this.isPriceCustom = isPriceCustom;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public Integer getIsTimeCustom() {
|
|
|
|
|
- return isTimeCustom;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setIsTimeCustom(Integer isTimeCustom) {
|
|
|
|
|
- this.isTimeCustom = isTimeCustom;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public String getHighlightIds() {
|
|
|
|
|
- return highlightIds;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setHighlightIds(String highlightIds) {
|
|
|
|
|
- this.highlightIds = highlightIds;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public String getTargetAudience() {
|
|
|
|
|
- return targetAudience;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setTargetAudience(String targetAudience) {
|
|
|
|
|
- this.targetAudience = targetAudience;
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|