后端:去除 promotion 模块的 setting getting 方法

This commit is contained in:
YunaiV
2019-04-06 20:54:46 +08:00
parent 83ab405b1c
commit d5ac7ea8a7
32 changed files with 222 additions and 1446 deletions

View File

@@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>promotion-service-api</artifactId>
<dependencies>
<dependency>
<groupId>javax.validation</groupId>
@@ -20,7 +20,6 @@
<groupId>cn.iocoder.mall</groupId>
<artifactId>common-framework</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>

View File

@@ -1,7 +1,15 @@
package cn.iocoder.mall.promotion.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List;
/**
* Banner 分页 BO
*/
@Data
@Accessors(chain = true)
public class BannerPageBO {
/**
@@ -13,22 +21,4 @@ public class BannerPageBO {
*/
private Integer total;
public List<BannerBO> getList() {
return list;
}
public BannerPageBO setList(List<BannerBO> list) {
this.list = list;
return this;
}
public Integer getTotal() {
return total;
}
public BannerPageBO setTotal(Integer total) {
this.total = total;
return this;
}
}
}

View File

@@ -1,4 +1,12 @@
package cn.iocoder.mall.promotion.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 优惠劵 BO
*/
@Data
@Accessors(chain = true)
public class CouponCardBO {
}

View File

@@ -1,7 +1,15 @@
package cn.iocoder.mall.promotion.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
/**
* 优惠劵(码)模板 BO
*/
@Data
@Accessors(chain = true)
public class CouponTemplateBO {
// ========== 基本信息 BEGIN ==========
@@ -143,202 +151,4 @@ public class CouponTemplateBO {
*/
private Date createTime;
public Integer getId() {
return id;
}
public CouponTemplateBO setId(Integer id) {
this.id = id;
return this;
}
public String getTitle() {
return title;
}
public CouponTemplateBO setTitle(String title) {
this.title = title;
return this;
}
public String getDescription() {
return description;
}
public CouponTemplateBO setDescription(String description) {
this.description = description;
return this;
}
public Integer getType() {
return type;
}
public CouponTemplateBO setType(Integer type) {
this.type = type;
return this;
}
public Integer getCodeType() {
return codeType;
}
public CouponTemplateBO setCodeType(Integer codeType) {
this.codeType = codeType;
return this;
}
public Integer getStatus() {
return status;
}
public CouponTemplateBO setStatus(Integer status) {
this.status = status;
return this;
}
public Integer getQuota() {
return quota;
}
public CouponTemplateBO setQuota(Integer quota) {
this.quota = quota;
return this;
}
public Integer getTotal() {
return total;
}
public CouponTemplateBO setTotal(Integer total) {
this.total = total;
return this;
}
public Integer getPriceAvailable() {
return priceAvailable;
}
public CouponTemplateBO setPriceAvailable(Integer priceAvailable) {
this.priceAvailable = priceAvailable;
return this;
}
public Integer getRangeType() {
return rangeType;
}
public CouponTemplateBO setRangeType(Integer rangeType) {
this.rangeType = rangeType;
return this;
}
public String getRangeValues() {
return rangeValues;
}
public CouponTemplateBO setRangeValues(String rangeValues) {
this.rangeValues = rangeValues;
return this;
}
public Integer getDateType() {
return dateType;
}
public CouponTemplateBO setDateType(Integer dateType) {
this.dateType = dateType;
return this;
}
public Date getValidStartTime() {
return validStartTime;
}
public CouponTemplateBO setValidStartTime(Date validStartTime) {
this.validStartTime = validStartTime;
return this;
}
public Date getValidEndTime() {
return validEndTime;
}
public CouponTemplateBO setValidEndTime(Date validEndTime) {
this.validEndTime = validEndTime;
return this;
}
public Integer getPreferentialType() {
return preferentialType;
}
public CouponTemplateBO setPreferentialType(Integer preferentialType) {
this.preferentialType = preferentialType;
return this;
}
public Integer getPercentOff() {
return percentOff;
}
public CouponTemplateBO setPercentOff(Integer percentOff) {
this.percentOff = percentOff;
return this;
}
public Integer getPriceOff() {
return priceOff;
}
public CouponTemplateBO setPriceOff(Integer priceOff) {
this.priceOff = priceOff;
return this;
}
public Integer getDiscountPriceLimit() {
return discountPriceLimit;
}
public CouponTemplateBO setDiscountPriceLimit(Integer discountPriceLimit) {
this.discountPriceLimit = discountPriceLimit;
return this;
}
public Integer getStatFetchNum() {
return statFetchNum;
}
public CouponTemplateBO setStatFetchNum(Integer statFetchNum) {
this.statFetchNum = statFetchNum;
return this;
}
public Date getCreateTime() {
return createTime;
}
public CouponTemplateBO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
public Integer getFixedStartTerm() {
return fixedStartTerm;
}
public CouponTemplateBO setFixedStartTerm(Integer fixedStartTerm) {
this.fixedStartTerm = fixedStartTerm;
return this;
}
public Integer getFixedEndTerm() {
return fixedEndTerm;
}
public CouponTemplateBO setFixedEndTerm(Integer fixedEndTerm) {
this.fixedEndTerm = fixedEndTerm;
return this;
}
}

View File

@@ -1,7 +1,15 @@
package cn.iocoder.mall.promotion.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List;
/**
* 优惠劵(码)模板分页 BO
*/
@Data
@Accessors(chain = true)
public class CouponTemplatePageBO {
/**
@@ -13,21 +21,4 @@ public class CouponTemplatePageBO {
*/
private Integer total;
public CouponTemplatePageBO setList(List<CouponTemplateBO> list) {
this.list = list;
return this;
}
public CouponTemplatePageBO setTotal(Integer total) {
this.total = total;
return this;
}
public List<CouponTemplateBO> getList() {
return list;
}
public Integer getTotal() {
return total;
}
}

View File

@@ -1,12 +1,16 @@
package cn.iocoder.mall.promotion.api.bo;
import cn.iocoder.mall.promotion.api.constant.ProductRecommendTypeEnum;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
/**
* 商品推荐 BO
*/
@Data
@Accessors(chain = true)
public class ProductRecommendBO {
/**
@@ -42,67 +46,4 @@ public class ProductRecommendBO {
*/
private Date createTime;
public Integer getId() {
return id;
}
public ProductRecommendBO setId(Integer id) {
this.id = id;
return this;
}
public Integer getType() {
return type;
}
public ProductRecommendBO setType(Integer type) {
this.type = type;
return this;
}
public Integer getProductSpuId() {
return productSpuId;
}
public ProductRecommendBO setProductSpuId(Integer productSpuId) {
this.productSpuId = productSpuId;
return this;
}
public Integer getSort() {
return sort;
}
public ProductRecommendBO setSort(Integer sort) {
this.sort = sort;
return this;
}
public Integer getStatus() {
return status;
}
public ProductRecommendBO setStatus(Integer status) {
this.status = status;
return this;
}
public String getMemo() {
return memo;
}
public ProductRecommendBO setMemo(String memo) {
this.memo = memo;
return this;
}
public Date getCreateTime() {
return createTime;
}
public ProductRecommendBO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
}

View File

@@ -1,7 +1,15 @@
package cn.iocoder.mall.promotion.api.bo;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List;
/**
* 商品推荐分页 BO
*/
@Data
@Accessors(chain = true)
public class ProductRecommendPageBO {
/**
@@ -13,22 +21,4 @@ public class ProductRecommendPageBO {
*/
private Integer total;
public List<ProductRecommendBO> getList() {
return list;
}
public ProductRecommendPageBO setList(List<ProductRecommendBO> list) {
this.list = list;
return this;
}
public Integer getTotal() {
return total;
}
public ProductRecommendPageBO setTotal(Integer total) {
this.total = total;
return this;
}
}
}

View File

@@ -1,5 +1,7 @@
package cn.iocoder.mall.promotion.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.URL;
@@ -9,6 +11,8 @@ import javax.validation.constraints.NotNull;
/**
* Banner 添加 DTO
*/
@Data
@Accessors(chain = true)
public class BannerAddDTO {
@NotEmpty(message = "标题不能为空")
@@ -27,48 +31,4 @@ public class BannerAddDTO {
@Length(max = 255, message = "备注最大长度为 255 位")
private String memo;
public String getTitle() {
return title;
}
public BannerAddDTO setTitle(String title) {
this.title = title;
return this;
}
public String getUrl() {
return url;
}
public BannerAddDTO setUrl(String url) {
this.url = url;
return this;
}
public Integer getSort() {
return sort;
}
public BannerAddDTO setSort(Integer sort) {
this.sort = sort;
return this;
}
public String getMemo() {
return memo;
}
public BannerAddDTO setMemo(String memo) {
this.memo = memo;
return this;
}
public String getPicUrl() {
return picUrl;
}
public BannerAddDTO setPicUrl(String picUrl) {
this.picUrl = picUrl;
return this;
}
}

View File

@@ -1,7 +1,15 @@
package cn.iocoder.mall.promotion.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotNull;
/**
* Banner 分页 DTO
*/
@Data
@Accessors(chain = true)
public class BannerPageDTO {
/**
@@ -14,31 +22,4 @@ public class BannerPageDTO {
@NotNull(message = "每页条数不能为空")
private Integer pageSize;
public Integer getPageNo() {
return pageNo;
}
public BannerPageDTO setPageNo(Integer pageNo) {
this.pageNo = pageNo;
return this;
}
public Integer getPageSize() {
return pageSize;
}
public BannerPageDTO setPageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
public String getTitle() {
return title;
}
public BannerPageDTO setTitle(String title) {
this.title = title;
return this;
}
}
}

View File

@@ -1,5 +1,7 @@
package cn.iocoder.mall.promotion.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.URL;
@@ -9,6 +11,8 @@ import javax.validation.constraints.NotNull;
/**
* Banner 更新 DTO
*/
@Data
@Accessors(chain = true)
public class BannerUpdateDTO {
@NotNull(message = "编号不能为空")
@@ -29,58 +33,4 @@ public class BannerUpdateDTO {
@Length(max = 255, message = "备注最大长度为 255 位")
private String memo;
public Integer getId() {
return id;
}
public BannerUpdateDTO setId(Integer id) {
this.id = id;
return this;
}
public String getTitle() {
return title;
}
public BannerUpdateDTO setTitle(String title) {
this.title = title;
return this;
}
public String getUrl() {
return url;
}
public BannerUpdateDTO setUrl(String url) {
this.url = url;
return this;
}
public Integer getSort() {
return sort;
}
public BannerUpdateDTO setSort(Integer sort) {
this.sort = sort;
return this;
}
public String getMemo() {
return memo;
}
public BannerUpdateDTO setMemo(String memo) {
this.memo = memo;
return this;
}
public String getPicUrl() {
return picUrl;
}
public BannerUpdateDTO setPicUrl(String picUrl) {
this.picUrl = picUrl;
return this;
}
}
}

View File

@@ -4,6 +4,8 @@ import cn.iocoder.common.framework.validator.InEnum;
import cn.iocoder.mall.promotion.api.constant.CouponTemplateDateTypeEnum;
import cn.iocoder.mall.promotion.api.constant.CouponTemplatePreferentialTypeEnum;
import cn.iocoder.mall.promotion.api.constant.CouponTemplateRangeTypeEnum;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Max;
@@ -12,6 +14,11 @@ import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
/**
* 优惠劵模板添加 DTO
*/
@Data
@Accessors(chain = true)
public class CouponCardTemplateAddDTO {
// ========== 基本信息 BEGIN ==========
@@ -132,149 +139,4 @@ public class CouponCardTemplateAddDTO {
private Integer discountPriceLimit;
// ========== 使用效果 END ==========
public String getTitle() {
return title;
}
public CouponCardTemplateAddDTO setTitle(String title) {
this.title = title;
return this;
}
public String getDescription() {
return description;
}
public CouponCardTemplateAddDTO setDescription(String description) {
this.description = description;
return this;
}
public Integer getQuota() {
return quota;
}
public CouponCardTemplateAddDTO setQuota(Integer quota) {
this.quota = quota;
return this;
}
public Integer getPriceAvailable() {
return priceAvailable;
}
public CouponCardTemplateAddDTO setPriceAvailable(Integer priceAvailable) {
this.priceAvailable = priceAvailable;
return this;
}
public Integer getRangeType() {
return rangeType;
}
public CouponCardTemplateAddDTO setRangeType(Integer rangeType) {
this.rangeType = rangeType;
return this;
}
public String getRangeValues() {
return rangeValues;
}
public CouponCardTemplateAddDTO setRangeValues(String rangeValues) {
this.rangeValues = rangeValues;
return this;
}
public Integer getDateType() {
return dateType;
}
public CouponCardTemplateAddDTO setDateType(Integer dateType) {
this.dateType = dateType;
return this;
}
public Date getValidStartTime() {
return validStartTime;
}
public CouponCardTemplateAddDTO setValidStartTime(Date validStartTime) {
this.validStartTime = validStartTime;
return this;
}
public Date getValidEndTime() {
return validEndTime;
}
public CouponCardTemplateAddDTO setValidEndTime(Date validEndTime) {
this.validEndTime = validEndTime;
return this;
}
public Integer getFixedBeginTerm() {
return fixedBeginTerm;
}
public CouponCardTemplateAddDTO setFixedBeginTerm(Integer fixedBeginTerm) {
this.fixedBeginTerm = fixedBeginTerm;
return this;
}
public Integer getFixedEndTerm() {
return fixedEndTerm;
}
public CouponCardTemplateAddDTO setFixedEndTerm(Integer fixedEndTerm) {
this.fixedEndTerm = fixedEndTerm;
return this;
}
public Integer getPreferentialType() {
return preferentialType;
}
public CouponCardTemplateAddDTO setPreferentialType(Integer preferentialType) {
this.preferentialType = preferentialType;
return this;
}
public Integer getPercentOff() {
return percentOff;
}
public CouponCardTemplateAddDTO setPercentOff(Integer percentOff) {
this.percentOff = percentOff;
return this;
}
public Integer getPriceOff() {
return priceOff;
}
public CouponCardTemplateAddDTO setPriceOff(Integer priceOff) {
this.priceOff = priceOff;
return this;
}
public Integer getDiscountPriceLimit() {
return discountPriceLimit;
}
public CouponCardTemplateAddDTO setDiscountPriceLimit(Integer discountPriceLimit) {
this.discountPriceLimit = discountPriceLimit;
return this;
}
public Integer getTotal() {
return total;
}
public CouponCardTemplateAddDTO setTotal(Integer total) {
this.total = total;
return this;
}
}

View File

@@ -2,15 +2,22 @@ package cn.iocoder.mall.promotion.api.dto;
import cn.iocoder.common.framework.validator.InEnum;
import cn.iocoder.mall.promotion.api.constant.CouponTemplateRangeTypeEnum;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
* 优惠劵模板更新 DTO
*/
@Data
@Accessors(chain = true)
public class CouponCardTemplateUpdateDTO {
@NotNull(message = "编号不能为空")
@NotNull(message = "编号不能为空")
private Integer id;
// ========== 基本信息 BEGIN ==========

View File

@@ -1,4 +1,12 @@
package cn.iocoder.mall.promotion.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 优惠码模板添加 DTO
*/
@Data
@Accessors(chain = true)
public class CouponCodeTemplateAddDTO {
}

View File

@@ -1,4 +1,12 @@
package cn.iocoder.mall.promotion.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 优惠码模板更新 DTO
*/
@Data
@Accessors(chain = true)
public class CouponCodeTemplateUpdateDTO {
}

View File

@@ -1,10 +1,15 @@
package cn.iocoder.mall.promotion.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotNull;
/**
* 优惠劵模板分页 DTO
*/
@Data
@Accessors(chain = true)
public class CouponTemplatePageDTO {
/**
@@ -29,57 +34,4 @@ public class CouponTemplatePageDTO {
@NotNull(message = "每页条数不能为空")
private Integer pageSize;
public Integer getType() {
return type;
}
public CouponTemplatePageDTO setType(Integer type) {
this.type = type;
return this;
}
public String getTitle() {
return title;
}
public CouponTemplatePageDTO setTitle(String title) {
this.title = title;
return this;
}
public Integer getStatus() {
return status;
}
public CouponTemplatePageDTO setStatus(Integer status) {
this.status = status;
return this;
}
public Integer getPreferentialType() {
return preferentialType;
}
public CouponTemplatePageDTO setPreferentialType(Integer preferentialType) {
this.preferentialType = preferentialType;
return this;
}
public Integer getPageNo() {
return pageNo;
}
public CouponTemplatePageDTO setPageNo(Integer pageNo) {
this.pageNo = pageNo;
return this;
}
public Integer getPageSize() {
return pageSize;
}
public CouponTemplatePageDTO setPageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
}

View File

@@ -1,5 +1,7 @@
package cn.iocoder.mall.promotion.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
@@ -7,6 +9,8 @@ import javax.validation.constraints.NotNull;
/**
* 商品推荐添加 DTO
*/
@Data
@Accessors(chain = true)
public class ProductRecommendAddDTO {
@NotNull(message = "推荐类型不能为空")
@@ -18,40 +22,4 @@ public class ProductRecommendAddDTO {
@Length(max = 255, message = "备注最大长度为 255 位")
private String memo;
public Integer getType() {
return type;
}
public ProductRecommendAddDTO setType(Integer type) {
this.type = type;
return this;
}
public Integer getProductSpuId() {
return productSpuId;
}
public ProductRecommendAddDTO setProductSpuId(Integer productSpuId) {
this.productSpuId = productSpuId;
return this;
}
public Integer getSort() {
return sort;
}
public ProductRecommendAddDTO setSort(Integer sort) {
this.sort = sort;
return this;
}
public String getMemo() {
return memo;
}
public ProductRecommendAddDTO setMemo(String memo) {
this.memo = memo;
return this;
}
}
}

View File

@@ -1,7 +1,15 @@
package cn.iocoder.mall.promotion.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotNull;
/**
* 商品推荐分页 DTO
*/
@Data
@Accessors(chain = true)
public class ProductRecommendPageDTO {
/**
@@ -14,31 +22,4 @@ public class ProductRecommendPageDTO {
@NotNull(message = "每页条数不能为空")
private Integer pageSize;
public Integer getPageNo() {
return pageNo;
}
public ProductRecommendPageDTO setPageNo(Integer pageNo) {
this.pageNo = pageNo;
return this;
}
public Integer getPageSize() {
return pageSize;
}
public ProductRecommendPageDTO setPageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
public Integer getType() {
return type;
}
public ProductRecommendPageDTO setType(Integer type) {
this.type = type;
return this;
}
}
}

View File

@@ -1,5 +1,7 @@
package cn.iocoder.mall.promotion.api.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
@@ -7,6 +9,8 @@ import javax.validation.constraints.NotNull;
/**
* 商品推荐更新 DTO
*/
@Data
@Accessors(chain = true)
public class ProductRecommendUpdateDTO {
@NotNull(message = "编号不能为空")
@@ -20,49 +24,4 @@ public class ProductRecommendUpdateDTO {
@Length(max = 255, message = "备注最大长度为 255 位")
private String memo;
public Integer getId() {
return id;
}
public ProductRecommendUpdateDTO setId(Integer id) {
this.id = id;
return this;
}
public Integer getType() {
return type;
}
public ProductRecommendUpdateDTO setType(Integer type) {
this.type = type;
return this;
}
public Integer getProductSpuId() {
return productSpuId;
}
public ProductRecommendUpdateDTO setProductSpuId(Integer productSpuId) {
this.productSpuId = productSpuId;
return this;
}
public Integer getSort() {
return sort;
}
public ProductRecommendUpdateDTO setSort(Integer sort) {
this.sort = sort;
return this;
}
public String getMemo() {
return memo;
}
public ProductRecommendUpdateDTO setMemo(String memo) {
this.memo = memo;
return this;
}
}
}