后端:去除 product 模块的 setting getting 方法
parent
fa2f76f5ea
commit
652fc37489
|
@ -100,9 +100,6 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
<configuration>
|
|
||||||
<fork>true</fork>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class AdminsProductCategoryController {
|
||||||
public CommonResult<List<AdminsProductCategoryTreeNodeVO>> tree() {
|
public CommonResult<List<AdminsProductCategoryTreeNodeVO>> tree() {
|
||||||
List<ProductCategoryBO> productCategories = productCategoryService.getAll().getData();
|
List<ProductCategoryBO> productCategories = productCategoryService.getAll().getData();
|
||||||
// 创建 ProductCategoryTreeNodeVO Map
|
// 创建 ProductCategoryTreeNodeVO Map
|
||||||
Map<Integer, AdminsProductCategoryTreeNodeVO> treeNodeMap = productCategories.stream().collect(Collectors.toMap(ProductCategoryBO::getId, ProductCategoryConvert.INSTANCE::convert));
|
Map<Integer, AdminsProductCategoryTreeNodeVO> treeNodeMap = productCategories.stream().collect(Collectors.toMap(ProductCategoryBO::getId, ProductCategoryConvert.Admins.INSTANCE::convert));
|
||||||
// 处理父子关系
|
// 处理父子关系
|
||||||
treeNodeMap.values().stream()
|
treeNodeMap.values().stream()
|
||||||
.filter(node -> !node.getPid().equals(ProductCategoryConstants.PID_ROOT))
|
.filter(node -> !node.getPid().equals(ProductCategoryConstants.PID_ROOT))
|
||||||
|
@ -77,7 +77,7 @@ public class AdminsProductCategoryController {
|
||||||
// 创建商品分类
|
// 创建商品分类
|
||||||
CommonResult<ProductCategoryBO> result = productCategoryService.addProductCategory(AdminSecurityContextHolder.getContext().getAdminId(), productCategoryAddDTO);
|
CommonResult<ProductCategoryBO> result = productCategoryService.addProductCategory(AdminSecurityContextHolder.getContext().getAdminId(), productCategoryAddDTO);
|
||||||
// 返回结果
|
// 返回结果
|
||||||
return ProductCategoryConvert.INSTANCE.convert2(result);
|
return ProductCategoryConvert.Admins.INSTANCE.convert2(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/update")
|
@PostMapping("/update")
|
||||||
|
@ -121,4 +121,4 @@ public class AdminsProductCategoryController {
|
||||||
return productCategoryService.deleteProductCategory(AdminSecurityContextHolder.getContext().getAdminId(), id);
|
return productCategoryService.deleteProductCategory(AdminSecurityContextHolder.getContext().getAdminId(), id);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ public class UsersProductCategoryController {
|
||||||
@ApiImplicitParam(name = "pid", value = "指定分类编号", required = true, example = "0")
|
@ApiImplicitParam(name = "pid", value = "指定分类编号", required = true, example = "0")
|
||||||
public CommonResult<List<UsersProductCategoryVO>> list(@RequestParam("pid") Integer pid) {
|
public CommonResult<List<UsersProductCategoryVO>> list(@RequestParam("pid") Integer pid) {
|
||||||
List<ProductCategoryBO> result = productCategoryService.getListByPid(pid);
|
List<ProductCategoryBO> result = productCategoryService.getListByPid(pid);
|
||||||
return CommonResult.success(ProductCategoryConvert.INSTANCE.convertToVO(result));
|
return CommonResult.success(ProductCategoryConvert.Users.INSTANCE.convertToVO(result));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,30 +2,41 @@ package cn.iocoder.mall.product.application.convert;
|
||||||
|
|
||||||
import cn.iocoder.common.framework.vo.CommonResult;
|
import cn.iocoder.common.framework.vo.CommonResult;
|
||||||
import cn.iocoder.mall.product.api.bo.ProductCategoryBO;
|
import cn.iocoder.mall.product.api.bo.ProductCategoryBO;
|
||||||
import cn.iocoder.mall.product.application.vo.users.UsersProductCategoryVO;
|
|
||||||
import cn.iocoder.mall.product.application.vo.admins.AdminsProductCategoryTreeNodeVO;
|
import cn.iocoder.mall.product.application.vo.admins.AdminsProductCategoryTreeNodeVO;
|
||||||
import cn.iocoder.mall.product.application.vo.admins.AdminsProductCategoryVO;
|
import cn.iocoder.mall.product.application.vo.admins.AdminsProductCategoryVO;
|
||||||
|
import cn.iocoder.mall.product.application.vo.users.UsersProductCategoryVO;
|
||||||
import org.mapstruct.Mapper;
|
import org.mapstruct.Mapper;
|
||||||
import org.mapstruct.Mappings;
|
import org.mapstruct.Mappings;
|
||||||
import org.mapstruct.factory.Mappers;
|
import org.mapstruct.factory.Mappers;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface ProductCategoryConvert {
|
public interface ProductCategoryConvert {
|
||||||
|
|
||||||
ProductCategoryConvert INSTANCE = Mappers.getMapper(ProductCategoryConvert.class);
|
@Mapper
|
||||||
|
interface Users {
|
||||||
|
|
||||||
@Mappings({})
|
Users INSTANCE = Mappers.getMapper(Users.class);
|
||||||
UsersProductCategoryVO convertToVO(ProductCategoryBO category);
|
|
||||||
|
|
||||||
@Mappings({})
|
@Mappings({})
|
||||||
List<UsersProductCategoryVO> convertToVO(List<ProductCategoryBO> categoryList);
|
UsersProductCategoryVO convertToVO(ProductCategoryBO category);
|
||||||
|
|
||||||
@Mappings({})
|
@Mappings({})
|
||||||
AdminsProductCategoryTreeNodeVO convert(ProductCategoryBO category);
|
List<UsersProductCategoryVO> convertToVO(List<ProductCategoryBO> categoryList);
|
||||||
|
|
||||||
@Mappings({})
|
}
|
||||||
CommonResult<AdminsProductCategoryVO> convert2(CommonResult<ProductCategoryBO> result);
|
|
||||||
|
@Mapper
|
||||||
|
interface Admins {
|
||||||
|
|
||||||
|
Admins INSTANCE = Mappers.getMapper(Admins.class);
|
||||||
|
|
||||||
|
@Mappings({})
|
||||||
|
AdminsProductCategoryTreeNodeVO convert(ProductCategoryBO category);
|
||||||
|
|
||||||
|
@Mappings({})
|
||||||
|
CommonResult<AdminsProductCategoryVO> convert2(CommonResult<ProductCategoryBO> result);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,8 +2,12 @@ package cn.iocoder.mall.product.application.vo.admins;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
@ApiModel(value = "商品规格属性和值对 VO")
|
@ApiModel(value = "商品规格属性和值对 VO")
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class AdminsProductAttrAndValuePairVO {
|
public class AdminsProductAttrAndValuePairVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "规格编号", required = true, example = "1")
|
@ApiModelProperty(value = "规格编号", required = true, example = "1")
|
||||||
|
@ -15,40 +19,4 @@ public class AdminsProductAttrAndValuePairVO {
|
||||||
@ApiModelProperty(value = "规格值名", required = true, example = "红色")
|
@ApiModelProperty(value = "规格值名", required = true, example = "红色")
|
||||||
private String attrValueName;
|
private String attrValueName;
|
||||||
|
|
||||||
public Integer getAttrId() {
|
}
|
||||||
return attrId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrAndValuePairVO setAttrId(Integer attrId) {
|
|
||||||
this.attrId = attrId;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getAttrName() {
|
|
||||||
return attrName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrAndValuePairVO setAttrName(String attrName) {
|
|
||||||
this.attrName = attrName;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getAttrValueId() {
|
|
||||||
return attrValueId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrAndValuePairVO setAttrValueId(Integer attrValueId) {
|
|
||||||
this.attrValueId = attrValueId;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getAttrValueName() {
|
|
||||||
return attrValueName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrAndValuePairVO setAttrValueName(String attrValueName) {
|
|
||||||
this.attrValueName = attrValueName;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,11 +2,15 @@ package cn.iocoder.mall.product.application.vo.admins;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ApiModel(value = "商品规格明细 VO", description = "带有规格值数组")
|
@ApiModel(value = "商品规格明细 VO", description = "带有规格值数组")
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class AdminsProductAttrDetailVO {
|
public class AdminsProductAttrDetailVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "规格编号", required = true, example = "1")
|
@ApiModelProperty(value = "规格编号", required = true, example = "1")
|
||||||
|
@ -20,49 +24,4 @@ public class AdminsProductAttrDetailVO {
|
||||||
@ApiModelProperty(value = "规格值数组", required = true)
|
@ApiModelProperty(value = "规格值数组", required = true)
|
||||||
private List<AdminsProductAttrValueDetailVO> values;
|
private List<AdminsProductAttrValueDetailVO> values;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrDetailVO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrDetailVO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrDetailVO setStatus(Integer status) {
|
|
||||||
this.status = status;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getCreateTime() {
|
|
||||||
return createTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrDetailVO setCreateTime(Date createTime) {
|
|
||||||
this.createTime = createTime;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<AdminsProductAttrValueDetailVO> getValues() {
|
|
||||||
return values;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrDetailVO setValues(List<AdminsProductAttrValueDetailVO> values) {
|
|
||||||
this.values = values;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,10 +2,14 @@ package cn.iocoder.mall.product.application.vo.admins;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ApiModel(value = "商品规格明细分页 VO")
|
@ApiModel(value = "商品规格明细分页 VO")
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class AdminsProductAttrPageVO {
|
public class AdminsProductAttrPageVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "规格数组", required = true)
|
@ApiModelProperty(value = "规格数组", required = true)
|
||||||
|
@ -13,22 +17,4 @@ public class AdminsProductAttrPageVO {
|
||||||
@ApiModelProperty(value = "总数", required = true)
|
@ApiModelProperty(value = "总数", required = true)
|
||||||
private Integer count;
|
private Integer count;
|
||||||
|
|
||||||
public List<AdminsProductAttrDetailVO> getAttrs() {
|
}
|
||||||
return attrs;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrPageVO setAttrs(List<AdminsProductAttrDetailVO> attrs) {
|
|
||||||
this.attrs = attrs;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getCount() {
|
|
||||||
return count;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrPageVO setCount(Integer count) {
|
|
||||||
this.count = count;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,10 +2,14 @@ package cn.iocoder.mall.product.application.vo.admins;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ApiModel(value = "商品规格精简 VO", description = "带有规格值数组")
|
@ApiModel(value = "商品规格精简 VO", description = "带有规格值数组")
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class AdminsProductAttrSimpleVO {
|
public class AdminsProductAttrSimpleVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "规格编号", required = true, example = "1")
|
@ApiModelProperty(value = "规格编号", required = true, example = "1")
|
||||||
|
@ -15,31 +19,4 @@ public class AdminsProductAttrSimpleVO {
|
||||||
@ApiModelProperty(value = "规格值数组", required = true)
|
@ApiModelProperty(value = "规格值数组", required = true)
|
||||||
private List<AdminsProductAttrValueSimpleVO> values;
|
private List<AdminsProductAttrValueSimpleVO> values;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrSimpleVO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrSimpleVO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<AdminsProductAttrValueSimpleVO> getValues() {
|
|
||||||
return values;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrSimpleVO setValues(List<AdminsProductAttrValueSimpleVO> values) {
|
|
||||||
this.values = values;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,10 +2,14 @@ package cn.iocoder.mall.product.application.vo.admins;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
@ApiModel(value = "商品规格 VO", description = "不带有规格值数组")
|
@ApiModel(value = "商品规格 VO", description = "不带有规格值数组")
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class AdminsProductAttrVO {
|
public class AdminsProductAttrVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "规格编号", required = true, example = "1")
|
@ApiModelProperty(value = "规格编号", required = true, example = "1")
|
||||||
|
@ -17,39 +21,4 @@ public class AdminsProductAttrVO {
|
||||||
@ApiModelProperty(value = "创建时间", required = true, example = "时间戳")
|
@ApiModelProperty(value = "创建时间", required = true, example = "时间戳")
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrVO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrVO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrVO setStatus(Integer status) {
|
|
||||||
this.status = status;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getCreateTime() {
|
|
||||||
return createTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrVO setCreateTime(Date createTime) {
|
|
||||||
this.createTime = createTime;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,10 +2,14 @@ package cn.iocoder.mall.product.application.vo.admins;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
@ApiModel(value = "商品规格值 VO")
|
@ApiModel(value = "商品规格值 VO")
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class AdminsProductAttrValueDetailVO {
|
public class AdminsProductAttrValueDetailVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "规格值编号", required = true, example = "1")
|
@ApiModelProperty(value = "规格值编号", required = true, example = "1")
|
||||||
|
@ -17,40 +21,4 @@ public class AdminsProductAttrValueDetailVO {
|
||||||
@ApiModelProperty(value = "创建时间", required = true, example = "时间戳")
|
@ApiModelProperty(value = "创建时间", required = true, example = "时间戳")
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrValueDetailVO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrValueDetailVO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrValueDetailVO setStatus(Integer status) {
|
|
||||||
this.status = status;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getCreateTime() {
|
|
||||||
return createTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrValueDetailVO setCreateTime(Date createTime) {
|
|
||||||
this.createTime = createTime;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,8 +2,12 @@ package cn.iocoder.mall.product.application.vo.admins;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
@ApiModel(value = "商品规格值精简 VO")
|
@ApiModel(value = "商品规格值精简 VO")
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class AdminsProductAttrValueSimpleVO {
|
public class AdminsProductAttrValueSimpleVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "规格值编号", required = true, example = "1")
|
@ApiModelProperty(value = "规格值编号", required = true, example = "1")
|
||||||
|
@ -11,22 +15,4 @@ public class AdminsProductAttrValueSimpleVO {
|
||||||
@ApiModelProperty(value = "规格值名", required = true, example = "颜色")
|
@ApiModelProperty(value = "规格值名", required = true, example = "颜色")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrValueSimpleVO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrValueSimpleVO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,10 +2,14 @@ package cn.iocoder.mall.product.application.vo.admins;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
@ApiModel(value = "商品规格值 VO")
|
@ApiModel(value = "商品规格值 VO")
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class AdminsProductAttrValueVO {
|
public class AdminsProductAttrValueVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "规格值编号", required = true, example = "1")
|
@ApiModelProperty(value = "规格值编号", required = true, example = "1")
|
||||||
|
@ -19,49 +23,4 @@ public class AdminsProductAttrValueVO {
|
||||||
@ApiModelProperty(value = "创建时间", required = true, example = "时间戳")
|
@ApiModelProperty(value = "创建时间", required = true, example = "时间戳")
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrValueVO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrValueVO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrValueVO setStatus(Integer status) {
|
|
||||||
this.status = status;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getCreateTime() {
|
|
||||||
return createTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrValueVO setCreateTime(Date createTime) {
|
|
||||||
this.createTime = createTime;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getAttrId() {
|
|
||||||
return attrId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductAttrValueVO setAttrId(Integer attrId) {
|
|
||||||
this.attrId = attrId;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,11 +2,15 @@ package cn.iocoder.mall.product.application.vo.admins;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ApiModel("产品分类树节点 VO")
|
@ApiModel("产品分类树节点 VO")
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class AdminsProductCategoryTreeNodeVO {
|
public class AdminsProductCategoryTreeNodeVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "分类编号", required = true, example = "1")
|
@ApiModelProperty(value = "分类编号", required = true, example = "1")
|
||||||
|
@ -28,85 +32,4 @@ public class AdminsProductCategoryTreeNodeVO {
|
||||||
@ApiModelProperty(value = "子节点数组")
|
@ApiModelProperty(value = "子节点数组")
|
||||||
private List<AdminsProductCategoryTreeNodeVO> children;
|
private List<AdminsProductCategoryTreeNodeVO> children;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductCategoryTreeNodeVO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPid() {
|
|
||||||
return pid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductCategoryTreeNodeVO setPid(Integer pid) {
|
|
||||||
this.pid = pid;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductCategoryTreeNodeVO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDescription() {
|
|
||||||
return description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductCategoryTreeNodeVO setDescription(String description) {
|
|
||||||
this.description = description;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPicUrl() {
|
|
||||||
return picUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductCategoryTreeNodeVO setPicUrl(String picUrl) {
|
|
||||||
this.picUrl = picUrl;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSort() {
|
|
||||||
return sort;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductCategoryTreeNodeVO setSort(Integer sort) {
|
|
||||||
this.sort = sort;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductCategoryTreeNodeVO setStatus(Integer status) {
|
|
||||||
this.status = status;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getCreateTime() {
|
|
||||||
return createTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductCategoryTreeNodeVO setCreateTime(Date createTime) {
|
|
||||||
this.createTime = createTime;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<AdminsProductCategoryTreeNodeVO> getChildren() {
|
|
||||||
return children;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductCategoryTreeNodeVO setChildren(List<AdminsProductCategoryTreeNodeVO> children) {
|
|
||||||
this.children = children;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,10 +2,14 @@ package cn.iocoder.mall.product.application.vo.admins;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
@ApiModel("产品分类 VO")
|
@ApiModel("产品分类 VO")
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class AdminsProductCategoryVO {
|
public class AdminsProductCategoryVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "分类编号", required = true, example = "1")
|
@ApiModelProperty(value = "分类编号", required = true, example = "1")
|
||||||
|
@ -25,76 +29,4 @@ public class AdminsProductCategoryVO {
|
||||||
@ApiModelProperty(value = "创建时间", required = true, example = "时间戳")
|
@ApiModelProperty(value = "创建时间", required = true, example = "时间戳")
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductCategoryVO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPid() {
|
|
||||||
return pid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductCategoryVO setPid(Integer pid) {
|
|
||||||
this.pid = pid;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductCategoryVO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDescription() {
|
|
||||||
return description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductCategoryVO setDescription(String description) {
|
|
||||||
this.description = description;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPicUrl() {
|
|
||||||
return picUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductCategoryVO setPicUrl(String picUrl) {
|
|
||||||
this.picUrl = picUrl;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSort() {
|
|
||||||
return sort;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductCategoryVO setSort(Integer sort) {
|
|
||||||
this.sort = sort;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductCategoryVO setStatus(Integer status) {
|
|
||||||
this.status = status;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getCreateTime() {
|
|
||||||
return createTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductCategoryVO setCreateTime(Date createTime) {
|
|
||||||
this.createTime = createTime;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,12 +1,16 @@
|
||||||
package cn.iocoder.mall.product.application.vo.admins;
|
package cn.iocoder.mall.product.application.vo.admins;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品 Sku 明细 BO
|
* 商品 Sku 明细 BO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class AdminsProductSkuDetailVO {
|
public class AdminsProductSkuDetailVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "sku 编号", required = true, example = "1")
|
@ApiModelProperty(value = "sku 编号", required = true, example = "1")
|
||||||
|
@ -22,58 +26,4 @@ public class AdminsProductSkuDetailVO {
|
||||||
@ApiModelProperty(value = "库存数量", required = true, example = "100")
|
@ApiModelProperty(value = "库存数量", required = true, example = "100")
|
||||||
private Integer quantity;
|
private Integer quantity;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSkuDetailVO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSpuId() {
|
|
||||||
return spuId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSkuDetailVO setSpuId(Integer spuId) {
|
|
||||||
this.spuId = spuId;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPicURL() {
|
|
||||||
return picURL;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSkuDetailVO setPicURL(String picURL) {
|
|
||||||
this.picURL = picURL;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPrice() {
|
|
||||||
return price;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSkuDetailVO setPrice(Integer price) {
|
|
||||||
this.price = price;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getQuantity() {
|
|
||||||
return quantity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSkuDetailVO setQuantity(Integer quantity) {
|
|
||||||
this.quantity = quantity;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<AdminsProductAttrAndValuePairVO> getAttrs() {
|
|
||||||
return attrs;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSkuDetailVO setAttrs(List<AdminsProductAttrAndValuePairVO> attrs) {
|
|
||||||
this.attrs = attrs;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,10 +2,14 @@ package cn.iocoder.mall.product.application.vo.admins;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ApiModel(value = "商品 SPU 详细 VO", description = "包括 SKU 信息 VO")
|
@ApiModel(value = "商品 SPU 详细 VO", description = "包括 SKU 信息 VO")
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class AdminsProductSpuDetailVO {
|
public class AdminsProductSpuDetailVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "SPU 编号", required = true, example = "1")
|
@ApiModelProperty(value = "SPU 编号", required = true, example = "1")
|
||||||
|
@ -36,85 +40,4 @@ public class AdminsProductSpuDetailVO {
|
||||||
*/
|
*/
|
||||||
private List<AdminsProductSkuDetailVO> skus;
|
private List<AdminsProductSkuDetailVO> skus;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSpuDetailVO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSpuDetailVO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSellPoint() {
|
|
||||||
return sellPoint;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSpuDetailVO setSellPoint(String sellPoint) {
|
|
||||||
this.sellPoint = sellPoint;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDescription() {
|
|
||||||
return description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSpuDetailVO setDescription(String description) {
|
|
||||||
this.description = description;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getCid() {
|
|
||||||
return cid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSpuDetailVO setCid(Integer cid) {
|
|
||||||
this.cid = cid;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<String> getPicUrls() {
|
|
||||||
return picUrls;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSpuDetailVO setPicUrls(List<String> picUrls) {
|
|
||||||
this.picUrls = picUrls;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Boolean getVisible() {
|
|
||||||
return visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSpuDetailVO setVisible(Boolean visible) {
|
|
||||||
this.visible = visible;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSort() {
|
|
||||||
return sort;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSpuDetailVO setSort(Integer sort) {
|
|
||||||
this.sort = sort;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<AdminsProductSkuDetailVO> getSkus() {
|
|
||||||
return skus;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSpuDetailVO setSkus(List<AdminsProductSkuDetailVO> skus) {
|
|
||||||
this.skus = skus;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,10 +2,14 @@ package cn.iocoder.mall.product.application.vo.admins;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ApiModel("商品 SPU 分页 VO")
|
@ApiModel("商品 SPU 分页 VO")
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class AdminsProductSpuPageVO {
|
public class AdminsProductSpuPageVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "spu 数组", required = true)
|
@ApiModelProperty(value = "spu 数组", required = true)
|
||||||
|
@ -13,22 +17,4 @@ public class AdminsProductSpuPageVO {
|
||||||
@ApiModelProperty(value = "总数", required = true)
|
@ApiModelProperty(value = "总数", required = true)
|
||||||
private Integer count;
|
private Integer count;
|
||||||
|
|
||||||
public List<AdminsProductSpuVO> getSpus() {
|
}
|
||||||
return spus;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSpuPageVO setSpus(List<AdminsProductSpuVO> spus) {
|
|
||||||
this.spus = spus;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getCount() {
|
|
||||||
return count;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSpuPageVO setCount(Integer count) {
|
|
||||||
this.count = count;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,10 +2,14 @@ package cn.iocoder.mall.product.application.vo.admins;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ApiModel(value = "商品 SPU VO", description = "不包括 SKU 信息 VO")
|
@ApiModel(value = "商品 SPU VO", description = "不包括 SKU 信息 VO")
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class AdminsProductSpuVO {
|
public class AdminsProductSpuVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "SPU 编号", required = true, example = "1")
|
@ApiModelProperty(value = "SPU 编号", required = true, example = "1")
|
||||||
|
@ -31,85 +35,4 @@ public class AdminsProductSpuVO {
|
||||||
@ApiModelProperty(value = "排序字段", required = true, example = "10")
|
@ApiModelProperty(value = "排序字段", required = true, example = "10")
|
||||||
private Integer sort;
|
private Integer sort;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSpuVO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSpuVO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSellPoint() {
|
|
||||||
return sellPoint;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSpuVO setSellPoint(String sellPoint) {
|
|
||||||
this.sellPoint = sellPoint;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDescription() {
|
|
||||||
return description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSpuVO setDescription(String description) {
|
|
||||||
this.description = description;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getCid() {
|
|
||||||
return cid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSpuVO setCid(Integer cid) {
|
|
||||||
this.cid = cid;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<String> getPicUrls() {
|
|
||||||
return picUrls;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSpuVO setPicUrls(List<String> picUrls) {
|
|
||||||
this.picUrls = picUrls;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Boolean getVisible() {
|
|
||||||
return visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSpuVO setVisible(Boolean visible) {
|
|
||||||
this.visible = visible;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSort() {
|
|
||||||
return sort;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSpuVO setSort(Integer sort) {
|
|
||||||
this.sort = sort;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getQuantity() {
|
|
||||||
return quantity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdminsProductSpuVO setQuantity(Integer quantity) {
|
|
||||||
this.quantity = quantity;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,8 +2,12 @@ package cn.iocoder.mall.product.application.vo.users;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
@ApiModel(value = "商品规格属性和值对 VO")
|
@ApiModel(value = "商品规格属性和值对 VO")
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class UsersProductAttrAndValuePairVO {
|
public class UsersProductAttrAndValuePairVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "规格编号", required = true, example = "1")
|
@ApiModelProperty(value = "规格编号", required = true, example = "1")
|
||||||
|
@ -15,40 +19,4 @@ public class UsersProductAttrAndValuePairVO {
|
||||||
@ApiModelProperty(value = "规格值名", required = true, example = "红色")
|
@ApiModelProperty(value = "规格值名", required = true, example = "红色")
|
||||||
private String attrValueName;
|
private String attrValueName;
|
||||||
|
|
||||||
public Integer getAttrId() {
|
}
|
||||||
return attrId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductAttrAndValuePairVO setAttrId(Integer attrId) {
|
|
||||||
this.attrId = attrId;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getAttrName() {
|
|
||||||
return attrName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductAttrAndValuePairVO setAttrName(String attrName) {
|
|
||||||
this.attrName = attrName;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getAttrValueId() {
|
|
||||||
return attrValueId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductAttrAndValuePairVO setAttrValueId(Integer attrValueId) {
|
|
||||||
this.attrValueId = attrValueId;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getAttrValueName() {
|
|
||||||
return attrValueName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductAttrAndValuePairVO setAttrValueName(String attrValueName) {
|
|
||||||
this.attrValueName = attrValueName;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,8 +2,12 @@ package cn.iocoder.mall.product.application.vo.users;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
@ApiModel("商品分类(简单)")
|
@ApiModel("商品分类(简单)")
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class UsersProductCategoryVO {
|
public class UsersProductCategoryVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "分类编号", required = true, example = "1")
|
@ApiModelProperty(value = "分类编号", required = true, example = "1")
|
||||||
|
@ -13,28 +17,4 @@ public class UsersProductCategoryVO {
|
||||||
@ApiModelProperty(value = "分类图片", notes = "一般情况下,只有根分类才有图片", example = "http://www.iocoder.cn/images/common/wechat_mp_2017_07_31_bak.jpg")
|
@ApiModelProperty(value = "分类图片", notes = "一般情况下,只有根分类才有图片", example = "http://www.iocoder.cn/images/common/wechat_mp_2017_07_31_bak.jpg")
|
||||||
private String picUrl;
|
private String picUrl;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPicUrl() {
|
|
||||||
return picUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPicUrl(String picUrl) {
|
|
||||||
this.picUrl = picUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,12 +1,16 @@
|
||||||
package cn.iocoder.mall.product.application.vo.users;
|
package cn.iocoder.mall.product.application.vo.users;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品 Sku 明细 BO
|
* 商品 Sku 明细 BO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class UsersProductSkuDetailVO {
|
public class UsersProductSkuDetailVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "sku 编号", required = true, example = "1")
|
@ApiModelProperty(value = "sku 编号", required = true, example = "1")
|
||||||
|
@ -22,58 +26,4 @@ public class UsersProductSkuDetailVO {
|
||||||
@ApiModelProperty(value = "库存数量", required = true, example = "100")
|
@ApiModelProperty(value = "库存数量", required = true, example = "100")
|
||||||
private Integer quantity;
|
private Integer quantity;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSkuDetailVO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSpuId() {
|
|
||||||
return spuId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSkuDetailVO setSpuId(Integer spuId) {
|
|
||||||
this.spuId = spuId;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPicURL() {
|
|
||||||
return picURL;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSkuDetailVO setPicURL(String picURL) {
|
|
||||||
this.picURL = picURL;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPrice() {
|
|
||||||
return price;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSkuDetailVO setPrice(Integer price) {
|
|
||||||
this.price = price;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getQuantity() {
|
|
||||||
return quantity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSkuDetailVO setQuantity(Integer quantity) {
|
|
||||||
this.quantity = quantity;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<UsersProductAttrAndValuePairVO> getAttrs() {
|
|
||||||
return attrs;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSkuDetailVO setAttrs(List<UsersProductAttrAndValuePairVO> attrs) {
|
|
||||||
this.attrs = attrs;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,10 +2,14 @@ package cn.iocoder.mall.product.application.vo.users;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ApiModel(value = "商品 SPU 详细 VO", description = "包括 SKU 信息 VO")
|
@ApiModel(value = "商品 SPU 详细 VO", description = "包括 SKU 信息 VO")
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class UsersProductSpuDetailVO {
|
public class UsersProductSpuDetailVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "SPU 编号", required = true, example = "1")
|
@ApiModelProperty(value = "SPU 编号", required = true, example = "1")
|
||||||
|
@ -30,66 +34,4 @@ public class UsersProductSpuDetailVO {
|
||||||
*/
|
*/
|
||||||
private List<UsersProductSkuDetailVO> skus;
|
private List<UsersProductSkuDetailVO> skus;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSpuDetailVO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSpuDetailVO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSellPoint() {
|
|
||||||
return sellPoint;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSpuDetailVO setSellPoint(String sellPoint) {
|
|
||||||
this.sellPoint = sellPoint;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDescription() {
|
|
||||||
return description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSpuDetailVO setDescription(String description) {
|
|
||||||
this.description = description;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getCid() {
|
|
||||||
return cid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSpuDetailVO setCid(Integer cid) {
|
|
||||||
this.cid = cid;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<String> getPicUrls() {
|
|
||||||
return picUrls;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSpuDetailVO setPicUrls(List<String> picUrls) {
|
|
||||||
this.picUrls = picUrls;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<UsersProductSkuDetailVO> getSkus() {
|
|
||||||
return skus;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSpuDetailVO setSkus(List<UsersProductSkuDetailVO> skus) {
|
|
||||||
this.skus = skus;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,10 +2,14 @@ package cn.iocoder.mall.product.application.vo.users;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ApiModel("商品 SPU 分页 VO")
|
@ApiModel("商品 SPU 分页 VO")
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class UsersProductSpuPageVO {
|
public class UsersProductSpuPageVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "spu 数组", required = true)
|
@ApiModelProperty(value = "spu 数组", required = true)
|
||||||
|
@ -13,22 +17,4 @@ public class UsersProductSpuPageVO {
|
||||||
@ApiModelProperty(value = "总数", required = true)
|
@ApiModelProperty(value = "总数", required = true)
|
||||||
private Integer count;
|
private Integer count;
|
||||||
|
|
||||||
public List<UsersProductSpuVO> getSpus() {
|
}
|
||||||
return spus;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSpuPageVO setSpus(List<UsersProductSpuVO> spus) {
|
|
||||||
this.spus = spus;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getCount() {
|
|
||||||
return count;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSpuPageVO setCount(Integer count) {
|
|
||||||
this.count = count;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,10 +2,14 @@ package cn.iocoder.mall.product.application.vo.users;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ApiModel(value = "商品 SPU VO", description = "不包括 SKU 信息 VO")
|
@ApiModel(value = "商品 SPU VO", description = "不包括 SKU 信息 VO")
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class UsersProductSpuVO {
|
public class UsersProductSpuVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "SPU 编号", required = true, example = "1")
|
@ApiModelProperty(value = "SPU 编号", required = true, example = "1")
|
||||||
|
@ -35,66 +39,4 @@ public class UsersProductSpuVO {
|
||||||
*/
|
*/
|
||||||
private Integer quantity;
|
private Integer quantity;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSpuVO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSpuVO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSellPoint() {
|
|
||||||
return sellPoint;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSpuVO setSellPoint(String sellPoint) {
|
|
||||||
this.sellPoint = sellPoint;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getCid() {
|
|
||||||
return cid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSpuVO setCid(Integer cid) {
|
|
||||||
this.cid = cid;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<String> getPicUrls() {
|
|
||||||
return picUrls;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSpuVO setPicUrls(List<String> picUrls) {
|
|
||||||
this.picUrls = picUrls;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPrice() {
|
|
||||||
return price;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSpuVO setPrice(Integer price) {
|
|
||||||
this.price = price;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getQuantity() {
|
|
||||||
return quantity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UsersProductSpuVO setQuantity(Integer quantity) {
|
|
||||||
this.quantity = quantity;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.hibernate.validator</groupId>
|
<groupId>javax.validation</groupId>
|
||||||
<artifactId>hibernate-validator</artifactId>
|
<artifactId>validation-api</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -31,6 +31,10 @@
|
||||||
<groupId>org.mapstruct</groupId>
|
<groupId>org.mapstruct</groupId>
|
||||||
<artifactId>mapstruct-jdk8</artifactId>
|
<artifactId>mapstruct-jdk8</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
package cn.iocoder.mall.product.api.bo;
|
package cn.iocoder.mall.product.api.bo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品规格明细 BO
|
* 商品规格明细 BO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductAttrAndValuePairBO implements Serializable {
|
public class ProductAttrAndValuePairBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -24,40 +29,4 @@ public class ProductAttrAndValuePairBO implements Serializable {
|
||||||
*/
|
*/
|
||||||
private String attrValueName;
|
private String attrValueName;
|
||||||
|
|
||||||
public Integer getAttrId() {
|
}
|
||||||
return attrId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrAndValuePairBO setAttrId(Integer attrId) {
|
|
||||||
this.attrId = attrId;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getAttrName() {
|
|
||||||
return attrName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrAndValuePairBO setAttrName(String attrName) {
|
|
||||||
this.attrName = attrName;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getAttrValueId() {
|
|
||||||
return attrValueId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrAndValuePairBO setAttrValueId(Integer attrValueId) {
|
|
||||||
this.attrValueId = attrValueId;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getAttrValueName() {
|
|
||||||
return attrValueName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrAndValuePairBO setAttrValueName(String attrValueName) {
|
|
||||||
this.attrValueName = attrValueName;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
package cn.iocoder.mall.product.api.bo;
|
package cn.iocoder.mall.product.api.bo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品规格 VO
|
* 商品规格 VO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductAttrBO implements Serializable {
|
public class ProductAttrBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -25,39 +30,4 @@ public class ProductAttrBO implements Serializable {
|
||||||
*/
|
*/
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrBO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrBO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrBO setStatus(Integer status) {
|
|
||||||
this.status = status;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getCreateTime() {
|
|
||||||
return createTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrBO setCreateTime(Date createTime) {
|
|
||||||
this.createTime = createTime;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
package cn.iocoder.mall.product.api.bo;
|
package cn.iocoder.mall.product.api.bo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -7,6 +10,8 @@ import java.util.List;
|
||||||
/**
|
/**
|
||||||
* 商品规格明细 VO
|
* 商品规格明细 VO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductAttrDetailBO implements Serializable {
|
public class ProductAttrDetailBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -30,48 +35,4 @@ public class ProductAttrDetailBO implements Serializable {
|
||||||
*/
|
*/
|
||||||
private List<ProductAttrValueDetailBO> values;
|
private List<ProductAttrValueDetailBO> values;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrDetailBO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrDetailBO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrDetailBO setStatus(Integer status) {
|
|
||||||
this.status = status;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getCreateTime() {
|
|
||||||
return createTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrDetailBO setCreateTime(Date createTime) {
|
|
||||||
this.createTime = createTime;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<ProductAttrValueDetailBO> getValues() {
|
|
||||||
return values;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrDetailBO setValues(List<ProductAttrValueDetailBO> values) {
|
|
||||||
this.values = values;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
package cn.iocoder.mall.product.api.bo;
|
package cn.iocoder.mall.product.api.bo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品规格明细分页 BO
|
* 商品规格明细分页 BO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductAttrPageBO implements Serializable {
|
public class ProductAttrPageBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -17,22 +22,4 @@ public class ProductAttrPageBO implements Serializable {
|
||||||
*/
|
*/
|
||||||
private Integer count;
|
private Integer count;
|
||||||
|
|
||||||
public List<ProductAttrDetailBO> getAttrs() {
|
}
|
||||||
return attrs;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrPageBO setAttrs(List<ProductAttrDetailBO> attrs) {
|
|
||||||
this.attrs = attrs;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getCount() {
|
|
||||||
return count;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrPageBO setCount(Integer count) {
|
|
||||||
this.count = count;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
package cn.iocoder.mall.product.api.bo;
|
package cn.iocoder.mall.product.api.bo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品规格精简 VO
|
* 商品规格精简 VO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductAttrSimpleBO implements Serializable {
|
public class ProductAttrSimpleBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,31 +26,4 @@ public class ProductAttrSimpleBO implements Serializable {
|
||||||
*/
|
*/
|
||||||
private List<ProductAttrValueSimpleBO> values;
|
private List<ProductAttrValueSimpleBO> values;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrSimpleBO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrSimpleBO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<ProductAttrValueSimpleBO> getValues() {
|
|
||||||
return values;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrSimpleBO setValues(List<ProductAttrValueSimpleBO> values) {
|
|
||||||
this.values = values;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
package cn.iocoder.mall.product.api.bo;
|
package cn.iocoder.mall.product.api.bo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品规格值 VO
|
* 商品规格值 VO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductAttrValueBO implements Serializable {
|
public class ProductAttrValueBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -29,48 +34,4 @@ public class ProductAttrValueBO implements Serializable {
|
||||||
*/
|
*/
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrValueBO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrValueBO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrValueBO setStatus(Integer status) {
|
|
||||||
this.status = status;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getCreateTime() {
|
|
||||||
return createTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrValueBO setCreateTime(Date createTime) {
|
|
||||||
this.createTime = createTime;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getAttrId() {
|
|
||||||
return attrId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrValueBO setAttrId(Integer attrId) {
|
|
||||||
this.attrId = attrId;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
package cn.iocoder.mall.product.api.bo;
|
package cn.iocoder.mall.product.api.bo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品规格值 VO
|
* 商品规格值 VO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductAttrValueDetailBO implements Serializable {
|
public class ProductAttrValueDetailBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -25,39 +30,4 @@ public class ProductAttrValueDetailBO implements Serializable {
|
||||||
*/
|
*/
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrValueDetailBO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrValueDetailBO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrValueDetailBO setStatus(Integer status) {
|
|
||||||
this.status = status;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getCreateTime() {
|
|
||||||
return createTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrValueDetailBO setCreateTime(Date createTime) {
|
|
||||||
this.createTime = createTime;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
package cn.iocoder.mall.product.api.bo;
|
package cn.iocoder.mall.product.api.bo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品规格值 VO
|
* 商品规格值 VO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductAttrValueSimpleBO implements Serializable {
|
public class ProductAttrValueSimpleBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -16,22 +21,4 @@ public class ProductAttrValueSimpleBO implements Serializable {
|
||||||
*/
|
*/
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrValueSimpleBO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrValueSimpleBO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
package cn.iocoder.mall.product.api.bo;
|
package cn.iocoder.mall.product.api.bo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品分类 BO
|
* 商品分类 BO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductCategoryBO implements Serializable {
|
public class ProductCategoryBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -46,71 +51,4 @@ public class ProductCategoryBO implements Serializable {
|
||||||
*/
|
*/
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
||||||
public Integer getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPid() {
|
|
||||||
return pid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPid(Integer pid) {
|
|
||||||
this.pid = pid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPicUrl() {
|
|
||||||
return picUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPicUrl(String picUrl) {
|
|
||||||
this.picUrl = picUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSort() {
|
|
||||||
return sort;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSort(Integer sort) {
|
|
||||||
this.sort = sort;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDescription() {
|
|
||||||
return description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryBO setDescription(String description) {
|
|
||||||
this.description = description;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryBO setStatus(Integer status) {
|
|
||||||
this.status = status;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getCreateTime() {
|
|
||||||
return createTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryBO setCreateTime(Date createTime) {
|
|
||||||
this.createTime = createTime;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +1,20 @@
|
||||||
package cn.iocoder.mall.product.api.bo;
|
package cn.iocoder.mall.product.api.bo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品 SKU BOA
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductSkuBO implements Serializable {
|
public class ProductSkuBO implements Serializable {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* SKU 编号
|
||||||
|
*/
|
||||||
private Integer id;
|
private Integer id;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
package cn.iocoder.mall.product.api.bo;
|
package cn.iocoder.mall.product.api.bo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品 Sku 明细 BO
|
* 商品 Sku 明细 BO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductSkuDetailBO implements Serializable {
|
public class ProductSkuDetailBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,59 +38,4 @@ public class ProductSkuDetailBO implements Serializable {
|
||||||
*/
|
*/
|
||||||
private Integer quantity;
|
private Integer quantity;
|
||||||
|
|
||||||
|
}
|
||||||
public Integer getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSkuDetailBO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSpuId() {
|
|
||||||
return spuId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSkuDetailBO setSpuId(Integer spuId) {
|
|
||||||
this.spuId = spuId;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPicURL() {
|
|
||||||
return picURL;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSkuDetailBO setPicURL(String picURL) {
|
|
||||||
this.picURL = picURL;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<ProductAttrAndValuePairBO> getAttrs() {
|
|
||||||
return attrs;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSkuDetailBO setAttrs(List<ProductAttrAndValuePairBO> attrs) {
|
|
||||||
this.attrs = attrs;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPrice() {
|
|
||||||
return price;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSkuDetailBO setPrice(Integer price) {
|
|
||||||
this.price = price;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getQuantity() {
|
|
||||||
return quantity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSkuDetailBO setQuantity(Integer quantity) {
|
|
||||||
this.quantity = quantity;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,8 +1,16 @@
|
||||||
package cn.iocoder.mall.product.api.bo;
|
package cn.iocoder.mall.product.api.bo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品 SPU BO
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductSpuBO implements Serializable {
|
public class ProductSpuBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -63,93 +71,4 @@ public class ProductSpuBO implements Serializable {
|
||||||
*/
|
*/
|
||||||
private Integer quantity;
|
private Integer quantity;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuBO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuBO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSellPoint() {
|
|
||||||
return sellPoint;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuBO setSellPoint(String sellPoint) {
|
|
||||||
this.sellPoint = sellPoint;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDescription() {
|
|
||||||
return description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuBO setDescription(String description) {
|
|
||||||
this.description = description;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getCid() {
|
|
||||||
return cid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuBO setCid(Integer cid) {
|
|
||||||
this.cid = cid;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<String> getPicUrls() {
|
|
||||||
return picUrls;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuBO setPicUrls(List<String> picUrls) {
|
|
||||||
this.picUrls = picUrls;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Boolean getVisible() {
|
|
||||||
return visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuBO setVisible(Boolean visible) {
|
|
||||||
this.visible = visible;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSort() {
|
|
||||||
return sort;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuBO setSort(Integer sort) {
|
|
||||||
this.sort = sort;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPrice() {
|
|
||||||
return price;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuBO setPrice(Integer price) {
|
|
||||||
this.price = price;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getQuantity() {
|
|
||||||
return quantity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuBO setQuantity(Integer quantity) {
|
|
||||||
this.quantity = quantity;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
package cn.iocoder.mall.product.api.bo;
|
package cn.iocoder.mall.product.api.bo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品 Spu 明细 BO(包括 Sku 明细)
|
* 商品 Spu 明细 BO(包括 Sku 明细)
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductSpuDetailBO implements Serializable {
|
public class ProductSpuDetailBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -59,85 +64,4 @@ public class ProductSpuDetailBO implements Serializable {
|
||||||
*/
|
*/
|
||||||
private List<ProductSkuDetailBO> skus;
|
private List<ProductSkuDetailBO> skus;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuDetailBO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuDetailBO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSellPoint() {
|
|
||||||
return sellPoint;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuDetailBO setSellPoint(String sellPoint) {
|
|
||||||
this.sellPoint = sellPoint;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDescription() {
|
|
||||||
return description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuDetailBO setDescription(String description) {
|
|
||||||
this.description = description;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getCid() {
|
|
||||||
return cid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuDetailBO setCid(Integer cid) {
|
|
||||||
this.cid = cid;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<String> getPicUrls() {
|
|
||||||
return picUrls;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuDetailBO setPicUrls(List<String> picUrls) {
|
|
||||||
this.picUrls = picUrls;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Boolean getVisible() {
|
|
||||||
return visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuDetailBO setVisible(Boolean visible) {
|
|
||||||
this.visible = visible;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSort() {
|
|
||||||
return sort;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuDetailBO setSort(Integer sort) {
|
|
||||||
this.sort = sort;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<ProductSkuDetailBO> getSkus() {
|
|
||||||
return skus;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuDetailBO setSkus(List<ProductSkuDetailBO> skus) {
|
|
||||||
this.skus = skus;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,8 +1,16 @@
|
||||||
package cn.iocoder.mall.product.api.bo;
|
package cn.iocoder.mall.product.api.bo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品 SPU 分页 BO
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductSpuPageBO implements Serializable {
|
public class ProductSpuPageBO implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,22 +22,4 @@ public class ProductSpuPageBO implements Serializable {
|
||||||
*/
|
*/
|
||||||
private Integer count;
|
private Integer count;
|
||||||
|
|
||||||
public List<ProductSpuBO> getSpus() {
|
}
|
||||||
return spus;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuPageBO setSpus(List<ProductSpuBO> spus) {
|
|
||||||
this.spus = spus;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getCount() {
|
|
||||||
return count;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuPageBO setCount(Integer count) {
|
|
||||||
this.count = count;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
package cn.iocoder.mall.product.api.dto;
|
package cn.iocoder.mall.product.api.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import javax.validation.constraints.NotEmpty;
|
import javax.validation.constraints.NotEmpty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Product 规格添加 DTO
|
* Product 规格添加 DTO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductAttrAddDTO {
|
public class ProductAttrAddDTO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -13,13 +18,4 @@ public class ProductAttrAddDTO {
|
||||||
@NotEmpty(message = "规格名不能为空")
|
@NotEmpty(message = "规格名不能为空")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public String getName() {
|
}
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrAddDTO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
package cn.iocoder.mall.product.api.dto;
|
package cn.iocoder.mall.product.api.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品规格分页 DTO
|
* 商品规格分页 DTO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductAttrPageDTO {
|
public class ProductAttrPageDTO {
|
||||||
|
|
||||||
private String name;
|
private String name;
|
||||||
|
@ -14,31 +19,4 @@ public class ProductAttrPageDTO {
|
||||||
@NotNull(message = "每页条数不能为空")
|
@NotNull(message = "每页条数不能为空")
|
||||||
private Integer pageSize;
|
private Integer pageSize;
|
||||||
|
|
||||||
public String getName() {
|
}
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrPageDTO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPageNo() {
|
|
||||||
return pageNo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrPageDTO setPageNo(Integer pageNo) {
|
|
||||||
this.pageNo = pageNo;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPageSize() {
|
|
||||||
return pageSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrPageDTO setPageSize(Integer pageSize) {
|
|
||||||
this.pageSize = pageSize;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
package cn.iocoder.mall.product.api.dto;
|
package cn.iocoder.mall.product.api.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import javax.validation.constraints.NotEmpty;
|
import javax.validation.constraints.NotEmpty;
|
||||||
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Product 规格修改 DTO
|
* Product 规格修改 DTO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductAttrUpdateDTO {
|
public class ProductAttrUpdateDTO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -19,22 +24,5 @@ public class ProductAttrUpdateDTO {
|
||||||
@NotEmpty(message = "规格名不能为空")
|
@NotEmpty(message = "规格名不能为空")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrUpdateDTO setName(String name) {
|
}
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrUpdateDTO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
package cn.iocoder.mall.product.api.dto;
|
package cn.iocoder.mall.product.api.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import javax.validation.constraints.NotEmpty;
|
import javax.validation.constraints.NotEmpty;
|
||||||
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Product 规格值添加 DTO
|
* Product 规格值添加 DTO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductAttrValueAddDTO {
|
public class ProductAttrValueAddDTO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -19,22 +24,4 @@ public class ProductAttrValueAddDTO {
|
||||||
@NotEmpty(message = "规格值名不能为空")
|
@NotEmpty(message = "规格值名不能为空")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public Integer getAttrId() {
|
}
|
||||||
return attrId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrValueAddDTO setAttrId(Integer attrId) {
|
|
||||||
this.attrId = attrId;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrValueAddDTO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
package cn.iocoder.mall.product.api.dto;
|
package cn.iocoder.mall.product.api.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import javax.validation.constraints.NotEmpty;
|
import javax.validation.constraints.NotEmpty;
|
||||||
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
|
@ -8,6 +11,8 @@ import javax.validation.constraints.NotNull;
|
||||||
*
|
*
|
||||||
* 注意,不允许修改所属规格
|
* 注意,不允许修改所属规格
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductAttrValueUpdateDTO {
|
public class ProductAttrValueUpdateDTO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,22 +26,4 @@ public class ProductAttrValueUpdateDTO {
|
||||||
@NotEmpty(message = "规格名不能为空")
|
@NotEmpty(message = "规格名不能为空")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public String getName() {
|
}
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrValueUpdateDTO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrValueUpdateDTO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
package cn.iocoder.mall.product.api.dto;
|
package cn.iocoder.mall.product.api.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品分类添加 DTO
|
* 商品分类添加 DTO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductCategoryAddDTO {
|
public class ProductCategoryAddDTO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,49 +38,4 @@ public class ProductCategoryAddDTO {
|
||||||
@NotNull(message = "排序值不能为空")
|
@NotNull(message = "排序值不能为空")
|
||||||
private Integer sort;
|
private Integer sort;
|
||||||
|
|
||||||
public Integer getPid() {
|
}
|
||||||
return pid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryAddDTO setPid(Integer pid) {
|
|
||||||
this.pid = pid;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryAddDTO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDescription() {
|
|
||||||
return description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryAddDTO setDescription(String description) {
|
|
||||||
this.description = description;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPicUrl() {
|
|
||||||
return picUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryAddDTO setPicUrl(String picUrl) {
|
|
||||||
this.picUrl = picUrl;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSort() {
|
|
||||||
return sort;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryAddDTO setSort(Integer sort) {
|
|
||||||
this.sort = sort;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
package cn.iocoder.mall.product.api.dto;
|
package cn.iocoder.mall.product.api.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品分类更新 DTO
|
* 商品分类更新 DTO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductCategoryUpdateDTO {
|
public class ProductCategoryUpdateDTO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -38,57 +43,4 @@ public class ProductCategoryUpdateDTO {
|
||||||
@NotNull(message = "排序值不能为空")
|
@NotNull(message = "排序值不能为空")
|
||||||
private Integer sort;
|
private Integer sort;
|
||||||
|
|
||||||
public Integer getPid() {
|
}
|
||||||
return pid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryUpdateDTO setPid(Integer pid) {
|
|
||||||
this.pid = pid;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryUpdateDTO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDescription() {
|
|
||||||
return description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryUpdateDTO setDescription(String description) {
|
|
||||||
this.description = description;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPicUrl() {
|
|
||||||
return picUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryUpdateDTO setPicUrl(String picUrl) {
|
|
||||||
this.picUrl = picUrl;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSort() {
|
|
||||||
return sort;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryUpdateDTO setSort(Integer sort) {
|
|
||||||
this.sort = sort;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryUpdateDTO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
package cn.iocoder.mall.product.api.dto;
|
package cn.iocoder.mall.product.api.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import javax.validation.constraints.Min;
|
import javax.validation.constraints.Min;
|
||||||
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.NotNull;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -7,6 +10,8 @@ import java.util.List;
|
||||||
/**
|
/**
|
||||||
* 商品 Sku 添加 DTO
|
* 商品 Sku 添加 DTO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductSkuAddOrUpdateDTO {
|
public class ProductSkuAddOrUpdateDTO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,31 +32,4 @@ public class ProductSkuAddOrUpdateDTO {
|
||||||
@Min(value = 1L, message = "最小库存为 1")
|
@Min(value = 1L, message = "最小库存为 1")
|
||||||
private Integer quantity;
|
private Integer quantity;
|
||||||
|
|
||||||
public List<Integer> getAttrs() {
|
}
|
||||||
return attrs;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSkuAddOrUpdateDTO setAttrs(List<Integer> attrs) {
|
|
||||||
this.attrs = attrs;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPrice() {
|
|
||||||
return price;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSkuAddOrUpdateDTO setPrice(Integer price) {
|
|
||||||
this.price = price;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getQuantity() {
|
|
||||||
return quantity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSkuAddOrUpdateDTO setQuantity(Integer quantity) {
|
|
||||||
this.quantity = quantity;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
package cn.iocoder.mall.product.api.dto;
|
package cn.iocoder.mall.product.api.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import javax.validation.constraints.NotEmpty;
|
import javax.validation.constraints.NotEmpty;
|
||||||
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.NotNull;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -7,6 +10,8 @@ import java.util.List;
|
||||||
/**
|
/**
|
||||||
* 商品 SPU + SKU 添加 DTO
|
* 商品 SPU + SKU 添加 DTO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductSpuAddDTO {
|
public class ProductSpuAddDTO {
|
||||||
|
|
||||||
// ========== 基本信息 =========
|
// ========== 基本信息 =========
|
||||||
|
@ -54,67 +59,4 @@ public class ProductSpuAddDTO {
|
||||||
@NotNull(message = "SKU 不能为空")
|
@NotNull(message = "SKU 不能为空")
|
||||||
private List<ProductSkuAddOrUpdateDTO> skus;
|
private List<ProductSkuAddOrUpdateDTO> skus;
|
||||||
|
|
||||||
public String getName() {
|
}
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuAddDTO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSellPoint() {
|
|
||||||
return sellPoint;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuAddDTO setSellPoint(String sellPoint) {
|
|
||||||
this.sellPoint = sellPoint;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDescription() {
|
|
||||||
return description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuAddDTO setDescription(String description) {
|
|
||||||
this.description = description;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getCid() {
|
|
||||||
return cid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuAddDTO setCid(Integer cid) {
|
|
||||||
this.cid = cid;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<String> getPicUrls() {
|
|
||||||
return picUrls;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuAddDTO setPicUrls(List<String> picUrls) {
|
|
||||||
this.picUrls = picUrls;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Boolean getVisible() {
|
|
||||||
return visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuAddDTO setVisible(Boolean visible) {
|
|
||||||
this.visible = visible;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<ProductSkuAddOrUpdateDTO> getSkus() {
|
|
||||||
return skus;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuAddDTO setSkus(List<ProductSkuAddOrUpdateDTO> skus) {
|
|
||||||
this.skus = skus;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
package cn.iocoder.mall.product.api.dto;
|
package cn.iocoder.mall.product.api.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品 Spu 分页 DTO
|
* 商品 Spu 分页 DTO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductSpuPageDTO {
|
public class ProductSpuPageDTO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,49 +32,4 @@ public class ProductSpuPageDTO {
|
||||||
@NotNull(message = "每页条数不能为空")
|
@NotNull(message = "每页条数不能为空")
|
||||||
private Integer pageSize;
|
private Integer pageSize;
|
||||||
|
|
||||||
public String getName() {
|
}
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuPageDTO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPageNo() {
|
|
||||||
return pageNo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuPageDTO setPageNo(Integer pageNo) {
|
|
||||||
this.pageNo = pageNo;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPageSize() {
|
|
||||||
return pageSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuPageDTO setPageSize(Integer pageSize) {
|
|
||||||
this.pageSize = pageSize;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getCid() {
|
|
||||||
return cid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuPageDTO setCid(Integer cid) {
|
|
||||||
this.cid = cid;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Boolean getVisible() {
|
|
||||||
return visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuPageDTO setVisible(Boolean visible) {
|
|
||||||
this.visible = visible;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
package cn.iocoder.mall.product.api.dto;
|
package cn.iocoder.mall.product.api.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import javax.validation.constraints.NotEmpty;
|
import javax.validation.constraints.NotEmpty;
|
||||||
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.NotNull;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -7,6 +10,8 @@ import java.util.List;
|
||||||
/**
|
/**
|
||||||
* 商品 SPU + SKU 更新 DTO
|
* 商品 SPU + SKU 更新 DTO
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductSpuUpdateDTO {
|
public class ProductSpuUpdateDTO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -60,75 +65,4 @@ public class ProductSpuUpdateDTO {
|
||||||
@NotNull(message = "SKU 不能为空")
|
@NotNull(message = "SKU 不能为空")
|
||||||
private List<ProductSkuAddOrUpdateDTO> skus;
|
private List<ProductSkuAddOrUpdateDTO> skus;
|
||||||
|
|
||||||
public String getName() {
|
}
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuUpdateDTO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSellPoint() {
|
|
||||||
return sellPoint;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuUpdateDTO setSellPoint(String sellPoint) {
|
|
||||||
this.sellPoint = sellPoint;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDescription() {
|
|
||||||
return description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuUpdateDTO setDescription(String description) {
|
|
||||||
this.description = description;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getCid() {
|
|
||||||
return cid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuUpdateDTO setCid(Integer cid) {
|
|
||||||
this.cid = cid;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<String> getPicUrls() {
|
|
||||||
return picUrls;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuUpdateDTO setPicUrls(List<String> picUrls) {
|
|
||||||
this.picUrls = picUrls;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Boolean getVisible() {
|
|
||||||
return visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuUpdateDTO setVisible(Boolean visible) {
|
|
||||||
this.visible = visible;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<ProductSkuAddOrUpdateDTO> getSkus() {
|
|
||||||
return skus;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuUpdateDTO setSkus(List<ProductSkuAddOrUpdateDTO> skus) {
|
|
||||||
this.skus = skus;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuUpdateDTO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -11,12 +11,7 @@
|
||||||
|
|
||||||
<artifactId>product-service-impl</artifactId>
|
<artifactId>product-service-impl</artifactId>
|
||||||
|
|
||||||
<properties>
|
|
||||||
<org.mapstruct.version>1.3.0.Final</org.mapstruct.version>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>cn.iocoder.mall</groupId>
|
<groupId>cn.iocoder.mall</groupId>
|
||||||
<artifactId>product-service-api</artifactId>
|
<artifactId>product-service-api</artifactId>
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
package cn.iocoder.mall.product.dataobject;
|
package cn.iocoder.mall.product.dataobject;
|
||||||
|
|
||||||
import cn.iocoder.common.framework.dataobject.DeletableDO;
|
import cn.iocoder.common.framework.dataobject.DeletableDO;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Product 规格
|
* Product 规格
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductAttrDO extends DeletableDO {
|
public class ProductAttrDO extends DeletableDO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -23,31 +27,4 @@ public class ProductAttrDO extends DeletableDO {
|
||||||
*/
|
*/
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrDO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrDO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrDO setStatus(Integer status) {
|
|
||||||
this.status = status;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
package cn.iocoder.mall.product.dataobject;
|
package cn.iocoder.mall.product.dataobject;
|
||||||
|
|
||||||
import cn.iocoder.common.framework.dataobject.DeletableDO;
|
import cn.iocoder.common.framework.dataobject.DeletableDO;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Product 规格值
|
* Product 规格值
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductAttrValueDO extends DeletableDO {
|
public class ProductAttrValueDO extends DeletableDO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,40 +31,4 @@ public class ProductAttrValueDO extends DeletableDO {
|
||||||
*/
|
*/
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrValueDO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getAttrId() {
|
|
||||||
return attrId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrValueDO setAttrId(Integer attrId) {
|
|
||||||
this.attrId = attrId;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrValueDO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductAttrValueDO setStatus(Integer status) {
|
|
||||||
this.status = status;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
package cn.iocoder.mall.product.dataobject;
|
package cn.iocoder.mall.product.dataobject;
|
||||||
|
|
||||||
import cn.iocoder.common.framework.dataobject.DeletableDO;
|
import cn.iocoder.common.framework.dataobject.DeletableDO;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品分类
|
* 商品分类
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductCategoryDO extends DeletableDO {
|
public class ProductCategoryDO extends DeletableDO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -41,66 +45,4 @@ public class ProductCategoryDO extends DeletableDO {
|
||||||
*/
|
*/
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryDO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPid() {
|
|
||||||
return pid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryDO setPid(Integer pid) {
|
|
||||||
this.pid = pid;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryDO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDescription() {
|
|
||||||
return description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryDO setDescription(String description) {
|
|
||||||
this.description = description;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPicUrl() {
|
|
||||||
return picUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryDO setPicUrl(String picUrl) {
|
|
||||||
this.picUrl = picUrl;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSort() {
|
|
||||||
return sort;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryDO setSort(Integer sort) {
|
|
||||||
this.sort = sort;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductCategoryDO setStatus(Integer status) {
|
|
||||||
this.status = status;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
package cn.iocoder.mall.product.dataobject;
|
package cn.iocoder.mall.product.dataobject;
|
||||||
|
|
||||||
import cn.iocoder.common.framework.dataobject.DeletableDO;
|
import cn.iocoder.common.framework.dataobject.DeletableDO;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品 SKU
|
* 商品 SKU
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductSkuDO extends DeletableDO {
|
public class ProductSkuDO extends DeletableDO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -52,68 +56,4 @@ public class ProductSkuDO extends DeletableDO {
|
||||||
// */
|
// */
|
||||||
// private Integer soldNum;
|
// private Integer soldNum;
|
||||||
|
|
||||||
|
}
|
||||||
public Integer getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSkuDO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSpuId() {
|
|
||||||
return spuId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSkuDO setSpuId(Integer spuId) {
|
|
||||||
this.spuId = spuId;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSkuDO setStatus(Integer status) {
|
|
||||||
this.status = status;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPicUrl() {
|
|
||||||
return picUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSkuDO setPicUrl(String picUrl) {
|
|
||||||
this.picUrl = picUrl;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getAttrs() {
|
|
||||||
return attrs;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSkuDO setAttrs(String attrs) {
|
|
||||||
this.attrs = attrs;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPrice() {
|
|
||||||
return price;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSkuDO setPrice(Integer price) {
|
|
||||||
this.price = price;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getQuantity() {
|
|
||||||
return quantity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSkuDO setQuantity(Integer quantity) {
|
|
||||||
this.quantity = quantity;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
package cn.iocoder.mall.product.dataobject;
|
package cn.iocoder.mall.product.dataobject;
|
||||||
|
|
||||||
import cn.iocoder.common.framework.dataobject.DeletableDO;
|
import cn.iocoder.common.framework.dataobject.DeletableDO;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品 SPU
|
* 商品 SPU
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductSpuDO extends DeletableDO {
|
public class ProductSpuDO extends DeletableDO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -69,94 +73,4 @@ public class ProductSpuDO extends DeletableDO {
|
||||||
*/
|
*/
|
||||||
private Integer quantity;
|
private Integer quantity;
|
||||||
|
|
||||||
public Integer getId() {
|
}
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuDO setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuDO setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSellPoint() {
|
|
||||||
return sellPoint;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuDO setSellPoint(String sellPoint) {
|
|
||||||
this.sellPoint = sellPoint;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDescription() {
|
|
||||||
return description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuDO setDescription(String description) {
|
|
||||||
this.description = description;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getCid() {
|
|
||||||
return cid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuDO setCid(Integer cid) {
|
|
||||||
this.cid = cid;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPicUrls() {
|
|
||||||
return picUrls;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuDO setPicUrls(String picUrls) {
|
|
||||||
this.picUrls = picUrls;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Boolean getVisible() {
|
|
||||||
return visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuDO setVisible(Boolean visible) {
|
|
||||||
this.visible = visible;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSort() {
|
|
||||||
return sort;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuDO setSort(Integer sort) {
|
|
||||||
this.sort = sort;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPrice() {
|
|
||||||
return price;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuDO setPrice(Integer price) {
|
|
||||||
this.price = price;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getQuantity() {
|
|
||||||
return quantity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProductSpuDO setQuantity(Integer quantity) {
|
|
||||||
this.quantity = quantity;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
package cn.iocoder.mall.product.dataobject;
|
package cn.iocoder.mall.product.dataobject;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Product 库存
|
* Product 库存
|
||||||
*/
|
*/
|
||||||
@Deprecated // TODO 芋艿,咱暂时不加库存表和库存服务
|
@Deprecated // TODO 芋艿,咱暂时不加库存表和库存服务
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
public class ProductStockDO {
|
public class ProductStockDO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -36,4 +41,4 @@ public class ProductStockDO {
|
||||||
*/
|
*/
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue