Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
custom-server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhonghong
custom-server
Commits
d3b47235
Commit
d3b47235
authored
Jun 03, 2026
by
HuAnYing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品相关dto
parent
db23c40e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
347 additions
and
0 deletions
+347
-0
custom-server-app/src/main/java/com/jomalls/custom/app/dto/product/CustomProductImageDto.java
+64
-0
custom-server-app/src/main/java/com/jomalls/custom/app/dto/product/CustomProductInfoDto.java
+17
-0
custom-server-app/src/main/java/com/jomalls/custom/app/dto/product/CustomProductInfoPropertyDto.java
+56
-0
custom-server-app/src/main/java/com/jomalls/custom/app/dto/product/CustomProductItemDto.java
+210
-0
No files found.
custom-server-app/src/main/java/com/jomalls/custom/app/dto/product/CustomProductImageDto.java
0 → 100644
View file @
d3b47235
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
;
}
custom-server-app/src/main/java/com/jomalls/custom/app/dto/product/CustomProductInfoDto.java
View file @
d3b47235
...
@@ -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
;
/**
/**
...
@@ -251,5 +252,21 @@ public class CustomProductInfoDto implements Serializable {
...
@@ -251,5 +252,21 @@ 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
;
}
}
custom-server-app/src/main/java/com/jomalls/custom/app/dto/product/CustomProductInfoPropertyDto.java
0 → 100644
View file @
d3b47235
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
;
}
custom-server-app/src/main/java/com/jomalls/custom/app/dto/product/CustomProductItemDto.java
0 → 100644
View file @
d3b47235
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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment