Commit d3b47235 by HuAnYing

商品相关dto

parent db23c40e
package com.jomalls.custom.app.dto.product;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
/**
*
* @author huanying
* @date 2026-06-03 11:57:01
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "图片Dto")
public class CustomProductImageDto implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
*
*/
@Schema(description = "")
private Integer id;
/**
* 商品ID
*/
@Schema(description = "商品ID")
private Integer productId;
/**
* 图片地址
*/
@Schema(description = "图片地址")
private String imageUrl;
/**
* 排序
*/
@Schema(description = "排序")
private Integer sort;
/**
* 类型 0普通图片 1尺码图
*/
@Schema(description = "类型 0普通图片 1尺码图")
private Integer type;
/**
*
*/
@Schema(description = "")
private Date createTime;
}
...@@ -14,6 +14,7 @@ import java.io.Serial; ...@@ -14,6 +14,7 @@ import java.io.Serial;
import java.io.Serializable; import java.io.Serializable;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import java.util.List;
/** /**
...@@ -252,4 +253,20 @@ public class CustomProductInfoDto implements Serializable { ...@@ -252,4 +253,20 @@ public class CustomProductInfoDto implements Serializable {
// @Schema(description = "商品明细", implementation = ProductChangeDTO.class) // @Schema(description = "商品明细", implementation = ProductChangeDTO.class)
// private ProductChangeDTO productChange; // private ProductChangeDTO productChange;
@Schema(description = "商品明细", implementation = CustomProductItemDto.class)
private List<CustomProductItemDto> productList;
@Schema(description = "普通属性集合", implementation = CustomProductInfoPropertyDto.class)
private List<CustomProductInfoPropertyDto> normalProperties;
@Schema(description = "sku属性集合", implementation = CustomProductInfoPropertyDto.class)
private List<CustomProductInfoPropertyDto> skuProperties;
@Schema(description = "商品图片集合", implementation = CustomProductImageDto.class)
private List<CustomProductImageDto> imageList;
@Schema(description = "尺码图片集合", implementation = CustomProductImageDto.class)
private List<CustomProductImageDto> sizeList;
} }
package com.jomalls.custom.app.dto.product;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serial;
import java.io.Serializable;
/**
* @author huanying
* @date 2026-06-03 11:57:03
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "属性dto")
public class CustomProductInfoPropertyDto implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
*
*/
@Schema(description = "")
private Integer id;
/**
* custom_product_info表id
*/
@Schema(description = "custom_product_info表id")
private Integer infoId;
/**
* 属性类ID
*/
@Schema(description = "属性类ID")
private Integer propertyId;
/**
* 属性值ID
*/
@Schema(description = "属性值ID")
private Integer valueId;
/**
* 是否为SKU属性
*/
@Schema(description = "是否为SKU属性")
private Boolean skuProperty;
}
package com.jomalls.custom.app.dto.product;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* Model
*
* @author Lizh
* @date 2026-06-03 11:57:04
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "VO")
public class CustomProductItemDto implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
*
*/
@Schema(description = "")
private Integer id;
/**
* 商品ID
*/
@Schema(description = "商品ID")
private Integer productId;
/**
* sku
*/
@Schema(description = "sku")
private String sku;
/**
* sku商品名称
*/
@Schema(description = "sku商品名称")
private String skuName;
/**
* 封面图
*/
@Schema(description = "封面图")
private String image;
/**
* 图片集
*/
@Schema(description = "图片集")
private String imageAry;
/**
* 属性分类ID1
*/
@Schema(description = "属性分类ID1")
private Integer propertyCateId1;
/**
* 属性分类ID2
*/
@Schema(description = "属性分类ID2")
private Integer propertyCateId2;
/**
* 属性分类ID3
*/
@Schema(description = "属性分类ID3")
private Integer propertyCateId3;
/**
*
*/
@Schema(description = "")
private Integer property1Id;
/**
*
*/
@Schema(description = "")
private Integer property2Id;
/**
*
*/
@Schema(description = "")
private Integer property3Id;
/**
* 属性编码1
*/
@Schema(description = "属性编码1")
private String propertyCode1;
/**
* 属性编码2
*/
@Schema(description = "属性编码2")
private String propertyCode2;
/**
*
*/
@Schema(description = "")
private String propertyCode3;
/**
* 属性名称1
*/
@Schema(description = "属性名称1")
private String optionEnname1;
/**
* 属性名称2
*/
@Schema(description = "属性名称2")
private String optionEnname2;
/**
*
*/
@Schema(description = "")
private String optionEnname3;
/**
*
*/
@Schema(description = "")
private String customValue1;
/**
*
*/
@Schema(description = "")
private String customValue2;
/**
*
*/
@Schema(description = "")
private String customValue3;
/**
* 工厂价
*/
@Schema(description = "工厂价")
private BigDecimal factoryPrice;
/**
* 销售价
*/
@Schema(description = "销售价")
private BigDecimal salesPrice;
/**
* sku克重
*/
@Schema(description = "sku克重")
private BigDecimal skuWeight;
/**
* 印花类型 0满印 1局部印
*/
@Schema(description = "印花类型 0满印 1局部印")
private Integer printType;
/**
* 排序
*/
@Schema(description = "排序")
private Integer sort;
/**
* 货号
*/
@Schema(description = "货号")
private String productNo;
/**
* 1正常码 2大码
*/
@Schema(description = "1正常码 2大码")
private Integer sizeType;
/**
* 创建时间
*/
@Schema(description = "创建时间")
private Date createTime;
/**
* 更新时间
*/
@Schema(description = "更新时间")
private Date updateTime;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment