后端:去除 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

47
pom.xml
View File

@ -30,6 +30,12 @@
<mysql-connector-java.version>5.1.47</mysql-connector-java.version>
<dubbo-spring-boot-starter.version>0.2.1.RELEASE</dubbo-spring-boot-starter.version>
<org.mapstruct.version>1.3.0.Final</org.mapstruct.version>
<curator.version>2.12.0</curator.version>
<springfox-swagger.version>2.9.2</springfox-swagger.version>
<mybatis-spring-boot-starter.version>2.0.0</mybatis-spring-boot-starter.version>
<xxl-job.version>2.0.1</xxl-job.version>
<guava.version>27.0.1-jre</guava.version>
<rocketmq-spring-boot-starter.version>2.0.1</rocketmq-spring-boot-starter.version>
<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
<org.projectlombok.version>1.16.14</org.projectlombok.version>
@ -73,6 +79,47 @@
<version>${org.projectlombok.version}</version>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
<version>${curator.version}</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>${springfox-swagger.version}</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>${springfox-swagger.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>${mybatis-spring-boot-starter.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<dependency>
<groupId>com.xuxueli</groupId>
<artifactId>xxl-job-core</artifactId>
<version>${xxl-job.version}</version>
</dependency>
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-spring-boot-starter</artifactId>
<version>${rocketmq-spring-boot-starter.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

View File

@ -33,13 +33,11 @@
<groupId>cn.iocoder.mall</groupId>
<artifactId>user-service-api</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>user-sdk</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
@ -65,24 +63,20 @@
<dependency>
<groupId>com.alibaba.boot</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>0.2.1.RELEASE</version>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
<version>2.12.0</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>

View File

@ -2,10 +2,14 @@ package cn.iocoder.mall.promotion.application.vo.admins;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List;
@ApiModel("Banner 分页 VO")
@Data
@Accessors(chain = true)
public class AdminsBannerPageVO {
@ApiModelProperty(value = "Banner 数组")
@ -13,22 +17,4 @@ public class AdminsBannerPageVO {
@ApiModelProperty(value = "Banner 总数")
private Integer total;
public List<AdminsBannerVO> getList() {
return list;
}
public AdminsBannerPageVO setList(List<AdminsBannerVO> list) {
this.list = list;
return this;
}
public Integer getTotal() {
return total;
}
public AdminsBannerPageVO setTotal(Integer total) {
this.total = total;
return this;
}
}
}

View File

@ -2,10 +2,14 @@ package cn.iocoder.mall.promotion.application.vo.admins;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List;
@ApiModel("优惠劵(码)分页 VO")
@Data
@Accessors(chain = true)
public class AdminsCouponTemplatePageVO {
@ApiModelProperty(value = "优惠劵(码)数组")
@ -13,22 +17,4 @@ public class AdminsCouponTemplatePageVO {
@ApiModelProperty(value = "优惠劵(码)总数")
private Integer total;
public List<AdminsCouponTemplateVO> getList() {
return list;
}
public AdminsCouponTemplatePageVO setList(List<AdminsCouponTemplateVO> list) {
this.list = list;
return this;
}
public Integer getTotal() {
return total;
}
public AdminsCouponTemplatePageVO setTotal(Integer total) {
this.total = total;
return this;
}
}

View File

@ -2,10 +2,14 @@ package cn.iocoder.mall.promotion.application.vo.admins;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
@ApiModel("CouponTemplate VO")
@Data
@Accessors(chain = true)
public class AdminsCouponTemplateVO {
// ========== 基本信息 BEGIN ==========
@ -73,201 +77,4 @@ public class AdminsCouponTemplateVO {
@ApiModelProperty(value = "折扣上限", required = true)
private Date createTime;
public Integer getId() {
return id;
}
public AdminsCouponTemplateVO setId(Integer id) {
this.id = id;
return this;
}
public String getTitle() {
return title;
}
public AdminsCouponTemplateVO setTitle(String title) {
this.title = title;
return this;
}
public String getDescription() {
return description;
}
public AdminsCouponTemplateVO setDescription(String description) {
this.description = description;
return this;
}
public Integer getType() {
return type;
}
public AdminsCouponTemplateVO setType(Integer type) {
this.type = type;
return this;
}
public Integer getCodeType() {
return codeType;
}
public AdminsCouponTemplateVO setCodeType(Integer codeType) {
this.codeType = codeType;
return this;
}
public Integer getStatus() {
return status;
}
public AdminsCouponTemplateVO setStatus(Integer status) {
this.status = status;
return this;
}
public Integer getQuota() {
return quota;
}
public AdminsCouponTemplateVO setQuota(Integer quota) {
this.quota = quota;
return this;
}
public Integer getPriceAvailable() {
return priceAvailable;
}
public AdminsCouponTemplateVO setPriceAvailable(Integer priceAvailable) {
this.priceAvailable = priceAvailable;
return this;
}
public Integer getRangeType() {
return rangeType;
}
public AdminsCouponTemplateVO setRangeType(Integer rangeType) {
this.rangeType = rangeType;
return this;
}
public String getRangeValues() {
return rangeValues;
}
public AdminsCouponTemplateVO setRangeValues(String rangeValues) {
this.rangeValues = rangeValues;
return this;
}
public Integer getDateType() {
return dateType;
}
public AdminsCouponTemplateVO setDateType(Integer dateType) {
this.dateType = dateType;
return this;
}
public Date getValidStartTime() {
return validStartTime;
}
public AdminsCouponTemplateVO setValidStartTime(Date validStartTime) {
this.validStartTime = validStartTime;
return this;
}
public Date getValidEndTime() {
return validEndTime;
}
public AdminsCouponTemplateVO setValidEndTime(Date validEndTime) {
this.validEndTime = validEndTime;
return this;
}
public Integer getFixedStartTerm() {
return fixedStartTerm;
}
public AdminsCouponTemplateVO setFixedStartTerm(Integer fixedStartTerm) {
this.fixedStartTerm = fixedStartTerm;
return this;
}
public Integer getFixedEndTerm() {
return fixedEndTerm;
}
public AdminsCouponTemplateVO setFixedEndTerm(Integer fixedEndTerm) {
this.fixedEndTerm = fixedEndTerm;
return this;
}
public Integer getPreferentialType() {
return preferentialType;
}
public AdminsCouponTemplateVO setPreferentialType(Integer preferentialType) {
this.preferentialType = preferentialType;
return this;
}
public Integer getPercentOff() {
return percentOff;
}
public AdminsCouponTemplateVO setPercentOff(Integer percentOff) {
this.percentOff = percentOff;
return this;
}
public Integer getPriceOff() {
return priceOff;
}
public AdminsCouponTemplateVO setPriceOff(Integer priceOff) {
this.priceOff = priceOff;
return this;
}
public Integer getDiscountPriceLimit() {
return discountPriceLimit;
}
public AdminsCouponTemplateVO setDiscountPriceLimit(Integer discountPriceLimit) {
this.discountPriceLimit = discountPriceLimit;
return this;
}
public Integer getStatFetchNum() {
return statFetchNum;
}
public AdminsCouponTemplateVO setStatFetchNum(Integer statFetchNum) {
this.statFetchNum = statFetchNum;
return this;
}
public Date getCreateTime() {
return createTime;
}
public AdminsCouponTemplateVO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
public Integer getTotal() {
return total;
}
public AdminsCouponTemplateVO setTotal(Integer total) {
this.total = total;
return this;
}
}

View File

@ -2,10 +2,14 @@ package cn.iocoder.mall.promotion.application.vo.admins;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List;
@ApiModel("商品推荐分页 VO")
@Data
@Accessors(chain = true)
public class AdminsProductRecommendPageVO {
@ApiModelProperty(value = "商品推荐数组")
@ -13,22 +17,4 @@ public class AdminsProductRecommendPageVO {
@ApiModelProperty(value = "商品推荐总数")
private Integer total;
public List<AdminsProductRecommendVO> getList() {
return list;
}
public AdminsProductRecommendPageVO setList(List<AdminsProductRecommendVO> list) {
this.list = list;
return this;
}
public Integer getTotal() {
return total;
}
public AdminsProductRecommendPageVO setTotal(Integer total) {
this.total = total;
return this;
}
}
}

View File

@ -2,10 +2,14 @@ package cn.iocoder.mall.promotion.application.vo.admins;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
@ApiModel("商品推荐 VO")
@Data
@Accessors(chain = true)
public class AdminsProductRecommendVO {
@ApiModelProperty(value = "编号", required = true, example = "1")
@ -23,66 +27,4 @@ public class AdminsProductRecommendVO {
@ApiModelProperty(value = "创建时间", required = true, example = "时间戳格式")
private Date createTime;
public Integer getId() {
return id;
}
public AdminsProductRecommendVO setId(Integer id) {
this.id = id;
return this;
}
public Integer getType() {
return type;
}
public AdminsProductRecommendVO setType(Integer type) {
this.type = type;
return this;
}
public Integer getProductSpuId() {
return productSpuId;
}
public AdminsProductRecommendVO setProductSpuId(Integer productSpuId) {
this.productSpuId = productSpuId;
return this;
}
public Integer getSort() {
return sort;
}
public AdminsProductRecommendVO setSort(Integer sort) {
this.sort = sort;
return this;
}
public Integer getStatus() {
return status;
}
public AdminsProductRecommendVO setStatus(Integer status) {
this.status = status;
return this;
}
public String getMemo() {
return memo;
}
public AdminsProductRecommendVO setMemo(String memo) {
this.memo = memo;
return this;
}
public Date getCreateTime() {
return createTime;
}
public AdminsProductRecommendVO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
}
}

View File

@ -2,10 +2,14 @@ package cn.iocoder.mall.promotion.application.vo.users;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List;
@ApiModel(value = "商品推荐 VO", description = "不包括 SKU 信息 VO")
@Data
@Accessors(chain = true)
public class UsersProductRecommendVO {
@ApiModelProperty(value = "商品 SPU 编号", required = true, example = "1")
@ -27,49 +31,4 @@ public class UsersProductRecommendVO {
*/
private Integer price;
public Integer getId() {
return id;
}
public UsersProductRecommendVO setId(Integer id) {
this.id = id;
return this;
}
public String getName() {
return name;
}
public UsersProductRecommendVO setName(String name) {
this.name = name;
return this;
}
public String getSellPoint() {
return sellPoint;
}
public UsersProductRecommendVO setSellPoint(String sellPoint) {
this.sellPoint = sellPoint;
return this;
}
public List<String> getPicUrls() {
return picUrls;
}
public UsersProductRecommendVO setPicUrls(List<String> picUrls) {
this.picUrls = picUrls;
return this;
}
public Integer getPrice() {
return price;
}
public UsersProductRecommendVO setPrice(Integer price) {
this.price = price;
return this;
}
}
}

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

View File

@ -21,17 +21,16 @@
<groupId>cn.iocoder.mall</groupId>
<artifactId>admin-service-api</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>product-service-api</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>27.0.1-jre</version>
</dependency>
<dependency>
@ -46,7 +45,6 @@
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
@ -57,19 +55,16 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>27.0.1-jre</version>
</dependency>
<dependency>
<groupId>com.xuxueli</groupId>
<artifactId>xxl-job-core</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-spring-boot-starter</artifactId>
<version>2.0.1</version>
</dependency>
<!-- test -->
@ -78,18 +73,7 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>user-sdk</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>product-service-api</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>

View File

@ -1,12 +1,16 @@
package cn.iocoder.mall.promotion.biz.dataobject;
import cn.iocoder.common.framework.dataobject.BaseDO;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
/**
* 优惠劵 DO
*/
@Data
@Accessors(chain = true)
public class CouponCardDO extends BaseDO {
// ========== 基本信息 BEGIN ==========

View File

@ -1,12 +1,16 @@
package cn.iocoder.mall.promotion.biz.dataobject;
import cn.iocoder.common.framework.dataobject.BaseDO;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
/**
* 优惠码
*/
@Data
@Accessors(chain = true)
public class CouponCodeDO extends BaseDO {
/**
@ -34,57 +38,4 @@ public class CouponCodeDO extends BaseDO {
*/
private Integer couponId;
public Integer getId() {
return id;
}
public CouponCodeDO setId(Integer id) {
this.id = id;
return this;
}
public Integer getTemplateId() {
return templateId;
}
public CouponCodeDO setTemplateId(Integer templateId) {
this.templateId = templateId;
return this;
}
public Integer getCode() {
return code;
}
public CouponCodeDO setCode(Integer code) {
this.code = code;
return this;
}
public Date getTakeTime() {
return takeTime;
}
public CouponCodeDO setTakeTime(Date takeTime) {
this.takeTime = takeTime;
return this;
}
public Integer getUserId() {
return userId;
}
public CouponCodeDO setUserId(Integer userId) {
this.userId = userId;
return this;
}
public Integer getCouponId() {
return couponId;
}
public CouponCodeDO setCouponId(Integer couponId) {
this.couponId = couponId;
return this;
}
}
}

View File

@ -1,6 +1,8 @@
package cn.iocoder.mall.promotion.biz.dataobject;
import cn.iocoder.common.framework.dataobject.BaseDO;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
@ -9,6 +11,8 @@ import java.util.Date;
*
* 当用户领取时会生成 {@link CouponCardDO} 优惠劵
*/
@Data
@Accessors(chain = true)
public class CouponTemplateDO extends BaseDO {
// ========== 基本信息 BEGIN ==========
@ -208,193 +212,4 @@ public class CouponTemplateDO extends BaseDO {
// private Integer statUseNum;
// ========== 统计信息 END ==========
public Integer getId() {
return id;
}
public CouponTemplateDO setId(Integer id) {
this.id = id;
return this;
}
public String getTitle() {
return title;
}
public CouponTemplateDO setTitle(String title) {
this.title = title;
return this;
}
public String getDescription() {
return description;
}
public CouponTemplateDO setDescription(String description) {
this.description = description;
return this;
}
public Integer getType() {
return type;
}
public CouponTemplateDO setType(Integer type) {
this.type = type;
return this;
}
public Integer getCodeType() {
return codeType;
}
public CouponTemplateDO setCodeType(Integer codeType) {
this.codeType = codeType;
return this;
}
public Integer getStatus() {
return status;
}
public CouponTemplateDO setStatus(Integer status) {
this.status = status;
return this;
}
public Integer getQuota() {
return quota;
}
public CouponTemplateDO setQuota(Integer quota) {
this.quota = quota;
return this;
}
public Integer getTotal() {
return total;
}
public CouponTemplateDO setTotal(Integer total) {
this.total = total;
return this;
}
public Integer getPriceAvailable() {
return priceAvailable;
}
public CouponTemplateDO setPriceAvailable(Integer priceAvailable) {
this.priceAvailable = priceAvailable;
return this;
}
public Integer getRangeType() {
return rangeType;
}
public CouponTemplateDO setRangeType(Integer rangeType) {
this.rangeType = rangeType;
return this;
}
public String getRangeValues() {
return rangeValues;
}
public CouponTemplateDO setRangeValues(String rangeValues) {
this.rangeValues = rangeValues;
return this;
}
public Integer getDateType() {
return dateType;
}
public CouponTemplateDO setDateType(Integer dateType) {
this.dateType = dateType;
return this;
}
public Date getValidStartTime() {
return validStartTime;
}
public CouponTemplateDO setValidStartTime(Date validStartTime) {
this.validStartTime = validStartTime;
return this;
}
public Date getValidEndTime() {
return validEndTime;
}
public CouponTemplateDO setValidEndTime(Date validEndTime) {
this.validEndTime = validEndTime;
return this;
}
public Integer getFixedStartTerm() {
return fixedStartTerm;
}
public CouponTemplateDO setFixedStartTerm(Integer fixedStartTerm) {
this.fixedStartTerm = fixedStartTerm;
return this;
}
public Integer getFixedEndTerm() {
return fixedEndTerm;
}
public CouponTemplateDO setFixedEndTerm(Integer fixedEndTerm) {
this.fixedEndTerm = fixedEndTerm;
return this;
}
public Integer getPreferentialType() {
return preferentialType;
}
public CouponTemplateDO setPreferentialType(Integer preferentialType) {
this.preferentialType = preferentialType;
return this;
}
public Integer getPercentOff() {
return percentOff;
}
public CouponTemplateDO setPercentOff(Integer percentOff) {
this.percentOff = percentOff;
return this;
}
public Integer getPriceOff() {
return priceOff;
}
public CouponTemplateDO setPriceOff(Integer priceOff) {
this.priceOff = priceOff;
return this;
}
public Integer getDiscountPriceLimit() {
return discountPriceLimit;
}
public CouponTemplateDO setDiscountPriceLimit(Integer discountPriceLimit) {
this.discountPriceLimit = discountPriceLimit;
return this;
}
public Integer getStatFetchNum() {
return statFetchNum;
}
public CouponTemplateDO setStatFetchNum(Integer statFetchNum) {
this.statFetchNum = statFetchNum;
return this;
}
}

View File

@ -2,10 +2,14 @@ package cn.iocoder.mall.promotion.biz.dataobject;
import cn.iocoder.common.framework.dataobject.DeletableDO;
import cn.iocoder.mall.promotion.api.constant.ProductRecommendTypeEnum;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 商品推荐 DO
*/
@Data
@Accessors(chain = true)
public class ProductRecommendDO extends DeletableDO {
/**
@ -38,58 +42,4 @@ public class ProductRecommendDO extends DeletableDO {
*/
private String memo;
public Integer getId() {
return id;
}
public ProductRecommendDO setId(Integer id) {
this.id = id;
return this;
}
public Integer getType() {
return type;
}
public ProductRecommendDO setType(Integer type) {
this.type = type;
return this;
}
public Integer getProductSpuId() {
return productSpuId;
}
public ProductRecommendDO setProductSpuId(Integer productSpuId) {
this.productSpuId = productSpuId;
return this;
}
public Integer getSort() {
return sort;
}
public ProductRecommendDO setSort(Integer sort) {
this.sort = sort;
return this;
}
public Integer getStatus() {
return status;
}
public ProductRecommendDO setStatus(Integer status) {
this.status = status;
return this;
}
public String getMemo() {
return memo;
}
public ProductRecommendDO setMemo(String memo) {
this.memo = memo;
return this;
}
}

View File

@ -12,7 +12,7 @@ import javax.annotation.Generated;
@Generated(
value = "org.mapstruct.ap.MappingProcessor",
date = "2019-04-06T01:40:11+0800",
date = "2019-04-06T20:54:04+0800",
comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)"
)
public class CouponTemplateConvertImpl implements CouponTemplateConvert {
@ -121,14 +121,14 @@ public class CouponTemplateConvertImpl implements CouponTemplateConvert {
couponTemplateBO.setDateType( template.getDateType() );
couponTemplateBO.setValidStartTime( template.getValidStartTime() );
couponTemplateBO.setValidEndTime( template.getValidEndTime() );
couponTemplateBO.setFixedStartTerm( template.getFixedStartTerm() );
couponTemplateBO.setFixedEndTerm( template.getFixedEndTerm() );
couponTemplateBO.setPreferentialType( template.getPreferentialType() );
couponTemplateBO.setPercentOff( template.getPercentOff() );
couponTemplateBO.setPriceOff( template.getPriceOff() );
couponTemplateBO.setDiscountPriceLimit( template.getDiscountPriceLimit() );
couponTemplateBO.setStatFetchNum( template.getStatFetchNum() );
couponTemplateBO.setCreateTime( template.getCreateTime() );
couponTemplateBO.setFixedStartTerm( template.getFixedStartTerm() );
couponTemplateBO.setFixedEndTerm( template.getFixedEndTerm() );
return couponTemplateBO;
}