Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Administrator
mall4cloud-new
Commits
7abfefba
Commit
7abfefba
authored
Dec 21, 2023
by
shengnan hu
Browse files
init
parents
Pipeline
#281
passed with stage
in 1 minute and 55 seconds
Changes
678
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
812 additions
and
0 deletions
+812
-0
mall4cloud-api/mall4cloud-api-order/src/main/java/com/mall4j/cloud/api/order/vo/OrderAmountVO.java
...ain/java/com/mall4j/cloud/api/order/vo/OrderAmountVO.java
+28
-0
mall4cloud-api/mall4cloud-api-order/target/classes/com/mall4j/cloud/api/order/bo/EsOrderBO.class
...get/classes/com/mall4j/cloud/api/order/bo/EsOrderBO.class
+0
-0
mall4cloud-api/mall4cloud-api-order/target/classes/com/mall4j/cloud/api/order/bo/EsOrderItemBO.class
...classes/com/mall4j/cloud/api/order/bo/EsOrderItemBO.class
+0
-0
mall4cloud-api/mall4cloud-api-order/target/classes/com/mall4j/cloud/api/order/bo/OrderSimpleAmountInfoBO.class
...m/mall4j/cloud/api/order/bo/OrderSimpleAmountInfoBO.class
+0
-0
mall4cloud-api/mall4cloud-api-order/target/classes/com/mall4j/cloud/api/order/bo/OrderStatusBO.class
...classes/com/mall4j/cloud/api/order/bo/OrderStatusBO.class
+0
-0
mall4cloud-api/mall4cloud-api-order/target/classes/com/mall4j/cloud/api/order/constant/DeliveryType.class
...es/com/mall4j/cloud/api/order/constant/DeliveryType.class
+0
-0
mall4cloud-api/mall4cloud-api-order/target/classes/com/mall4j/cloud/api/order/constant/OrderStatus.class
...ses/com/mall4j/cloud/api/order/constant/OrderStatus.class
+0
-0
mall4cloud-api/mall4cloud-api-order/target/classes/com/mall4j/cloud/api/order/dto/DeliveryOrderDTO.class
...ses/com/mall4j/cloud/api/order/dto/DeliveryOrderDTO.class
+0
-0
mall4cloud-api/mall4cloud-api-order/target/classes/com/mall4j/cloud/api/order/dto/DeliveryOrderItemDTO.class
...com/mall4j/cloud/api/order/dto/DeliveryOrderItemDTO.class
+0
-0
mall4cloud-api/mall4cloud-api-order/target/classes/com/mall4j/cloud/api/order/feign/OrderFeignClient.class
...s/com/mall4j/cloud/api/order/feign/OrderFeignClient.class
+0
-0
mall4cloud-api/mall4cloud-api-order/target/classes/com/mall4j/cloud/api/order/vo/OrderAmountVO.class
...classes/com/mall4j/cloud/api/order/vo/OrderAmountVO.class
+0
-0
mall4cloud-api/mall4cloud-api-platform/pom.xml
mall4cloud-api/mall4cloud-api-platform/pom.xml
+23
-0
mall4cloud-api/mall4cloud-api-platform/src/main/java/com/mall4j/cloud/api/platform/feign/ConfigFeignClient.java
...om/mall4j/cloud/api/platform/feign/ConfigFeignClient.java
+25
-0
mall4cloud-api/mall4cloud-api-platform/target/classes/com/mall4j/cloud/api/platform/feign/ConfigFeignClient.class
...m/mall4j/cloud/api/platform/feign/ConfigFeignClient.class
+0
-0
mall4cloud-api/mall4cloud-api-product/pom.xml
mall4cloud-api/mall4cloud-api-product/pom.xml
+33
-0
mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/bo/EsAttrBO.java
...c/main/java/com/mall4j/cloud/api/product/bo/EsAttrBO.java
+70
-0
mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/bo/EsProductBO.java
...ain/java/com/mall4j/cloud/api/product/bo/EsProductBO.java
+441
-0
mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/constant/CategoryLevel.java
.../com/mall4j/cloud/api/product/constant/CategoryLevel.java
+36
-0
mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/dto/ShopCartItemDTO.java
...ava/com/mall4j/cloud/api/product/dto/ShopCartItemDTO.java
+74
-0
mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/dto/SkuStockLockDTO.java
...ava/com/mall4j/cloud/api/product/dto/SkuStockLockDTO.java
+82
-0
No files found.
mall4cloud-api/mall4cloud-api-order/src/main/java/com/mall4j/cloud/api/order/vo/OrderAmountVO.java
0 → 100644
View file @
7abfefba
package
com.mall4j.cloud.api.order.vo
;
/**
* @author FrozenWatermelon
* @date 2020/12/25
*/
public
class
OrderAmountVO
{
/**
* 支付金额
*/
private
Long
payAmount
;
public
Long
getPayAmount
()
{
return
payAmount
;
}
public
void
setPayAmount
(
Long
payAmount
)
{
this
.
payAmount
=
payAmount
;
}
@Override
public
String
toString
()
{
return
"OrderAmountVO{"
+
"payAmount="
+
payAmount
+
'}'
;
}
}
mall4cloud-api/mall4cloud-api-order/target/classes/com/mall4j/cloud/api/order/bo/EsOrderBO.class
0 → 100644
View file @
7abfefba
File added
mall4cloud-api/mall4cloud-api-order/target/classes/com/mall4j/cloud/api/order/bo/EsOrderItemBO.class
0 → 100644
View file @
7abfefba
File added
mall4cloud-api/mall4cloud-api-order/target/classes/com/mall4j/cloud/api/order/bo/OrderSimpleAmountInfoBO.class
0 → 100644
View file @
7abfefba
File added
mall4cloud-api/mall4cloud-api-order/target/classes/com/mall4j/cloud/api/order/bo/OrderStatusBO.class
0 → 100644
View file @
7abfefba
File added
mall4cloud-api/mall4cloud-api-order/target/classes/com/mall4j/cloud/api/order/constant/DeliveryType.class
0 → 100644
View file @
7abfefba
File added
mall4cloud-api/mall4cloud-api-order/target/classes/com/mall4j/cloud/api/order/constant/OrderStatus.class
0 → 100644
View file @
7abfefba
File added
mall4cloud-api/mall4cloud-api-order/target/classes/com/mall4j/cloud/api/order/dto/DeliveryOrderDTO.class
0 → 100644
View file @
7abfefba
File added
mall4cloud-api/mall4cloud-api-order/target/classes/com/mall4j/cloud/api/order/dto/DeliveryOrderItemDTO.class
0 → 100644
View file @
7abfefba
File added
mall4cloud-api/mall4cloud-api-order/target/classes/com/mall4j/cloud/api/order/feign/OrderFeignClient.class
0 → 100644
View file @
7abfefba
File added
mall4cloud-api/mall4cloud-api-order/target/classes/com/mall4j/cloud/api/order/vo/OrderAmountVO.class
0 → 100644
View file @
7abfefba
File added
mall4cloud-api/mall4cloud-api-platform/pom.xml
0 → 100644
View file @
7abfefba
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
mall4cloud-api
</artifactId>
<groupId>
com.mall4j.cloud
</groupId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
mall4cloud-api-platform
</artifactId>
<packaging>
jar
</packaging>
<description>
平台对内接口
</description>
<dependencies>
<dependency>
<groupId>
com.mall4j.cloud
</groupId>
<artifactId>
mall4cloud-common-core
</artifactId>
<version>
${project.version}
</version>
</dependency>
</dependencies>
</project>
mall4cloud-api/mall4cloud-api-platform/src/main/java/com/mall4j/cloud/api/platform/feign/ConfigFeignClient.java
0 → 100644
View file @
7abfefba
package
com.mall4j.cloud.api.platform.feign
;
import
com.mall4j.cloud.common.feign.FeignInsideAuthConfig
;
import
com.mall4j.cloud.common.response.ServerResponseEntity
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
/**
* @author FrozenWatermelon
* @date 2020/11/23
*/
@FeignClient
(
value
=
"mall4cloud-platform"
,
contextId
=
"config"
)
public
interface
ConfigFeignClient
{
/**
* 获取配置信息
* @param key key
* @return 配置信息json
*/
@GetMapping
(
value
=
FeignInsideAuthConfig
.
FEIGN_INSIDE_URL_PREFIX
+
"/insider/config/getConfig"
)
ServerResponseEntity
<
String
>
getConfig
(
@RequestParam
(
"key"
)
String
key
);
}
mall4cloud-api/mall4cloud-api-platform/target/classes/com/mall4j/cloud/api/platform/feign/ConfigFeignClient.class
0 → 100644
View file @
7abfefba
File added
mall4cloud-api/mall4cloud-api-product/pom.xml
0 → 100644
View file @
7abfefba
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
mall4cloud-api
</artifactId>
<groupId>
com.mall4j.cloud
</groupId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
mall4cloud-api-product
</artifactId>
<packaging>
jar
</packaging>
<description>
商品对内接口
</description>
<dependencies>
<dependency>
<groupId>
com.mall4j.cloud
</groupId>
<artifactId>
mall4cloud-common-core
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
com.mall4j.cloud
</groupId>
<artifactId>
mall4cloud-common-order
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
com.mall4j.cloud
</groupId>
<artifactId>
mall4cloud-api-multishop
</artifactId>
<version>
${project.version}
</version>
</dependency>
</dependencies>
</project>
mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/bo/EsAttrBO.java
0 → 100644
View file @
7abfefba
package
com.mall4j.cloud.api.product.bo
;
/**
* @author FrozenWatermelon
* @date 2020/11/12
*/
public
class
EsAttrBO
{
/**
* 规格id
*/
private
Long
attrId
;
/**
* 规格名
*/
private
String
attrName
;
/**
* 规格值id
*/
private
Long
attrValueId
;
/**
* 规格值名称
*/
private
String
attrValueName
;
public
Long
getAttrId
()
{
return
attrId
;
}
public
void
setAttrId
(
Long
attrId
)
{
this
.
attrId
=
attrId
;
}
public
String
getAttrName
()
{
return
attrName
;
}
public
void
setAttrName
(
String
attrName
)
{
this
.
attrName
=
attrName
;
}
public
Long
getAttrValueId
()
{
return
attrValueId
;
}
public
void
setAttrValueId
(
Long
attrValueId
)
{
this
.
attrValueId
=
attrValueId
;
}
public
String
getAttrValueName
()
{
return
attrValueName
;
}
public
void
setAttrValueName
(
String
attrValueName
)
{
this
.
attrValueName
=
attrValueName
;
}
@Override
public
String
toString
()
{
return
"EsAttrBO{"
+
"attrId="
+
attrId
+
", attrName='"
+
attrName
+
'\''
+
", attrValueId="
+
attrValueId
+
", attrValueName='"
+
attrValueName
+
'\''
+
'}'
;
}
}
mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/bo/EsProductBO.java
0 → 100644
View file @
7abfefba
package
com.mall4j.cloud.api.product.bo
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.mall4j.cloud.common.serializer.ImgJsonSerializer
;
import
java.util.Date
;
import
java.util.List
;
/**
* @author FrozenWatermelon
* @date 2020/11/12
*/
public
class
EsProductBO
{
/**
* 商品id
*/
private
Long
spuId
;
/**
* 商品名称
*/
private
String
spuName
;
/**
* 卖点
*/
private
String
sellingPoint
;
/**
* 商品售价
*/
private
Long
priceFee
;
/**
* 市场价,整数方式保存
*/
private
Long
marketPriceFee
;
/**
* 商品介绍主图
*/
@JsonSerialize
(
using
=
ImgJsonSerializer
.
class
)
private
String
mainImgUrl
;
/**
* 店铺名称 搜索华为的时候,可以把华为的旗舰店搜索出来
*/
private
String
shopName
;
/**
* 店铺id
*/
private
Long
shopId
;
/**
* 店铺logo
*/
private
String
shopImg
;
/**
* 店铺类型1自营店 2普通店
*/
private
Integer
shopType
;
/**
* 商品状态
*/
private
Integer
spuStatus
;
/**
* 是否有库存
*/
private
Boolean
hasStock
;
/**
* 库存
*/
private
Integer
stock
;
/**
* 销量
*/
private
Integer
saleNum
;
/**
* 商品创建时间
*/
private
Date
createTime
;
/**
* 品牌名称
*/
private
String
brandName
;
/**
* 品牌id
*/
private
Integer
brandId
;
/**
* 商品序号
*/
private
Integer
seq
;
/**
* 品牌图片
*/
private
String
brandImg
;
/**
* 分类id
*/
private
Long
categoryId
;
/**
* 分类名称
*/
private
String
categoryName
;
/**
* 商家一级分类id
*/
private
Long
shopPrimaryCategoryId
;
/**
* 商家一级分类名称
*/
private
String
shopPrimaryCategoryName
;
/**
* 商家二级分类id
*/
private
Long
shopSecondaryCategoryId
;
/**
* 商家二级分类名称
*/
private
String
shopSecondaryCategoryName
;
/**
* 平台一级分类id
*/
private
Long
primaryCategoryId
;
/**
* 平台一级分类名称
*/
private
String
primaryCategoryName
;
/**
* 平台二级分类id
*/
private
Long
secondaryCategoryId
;
/**
* 平台二级分类名称
*/
private
String
secondaryCategoryName
;
/**
* 商品用于搜索的规格属性
*/
private
List
<
EsAttrBO
>
attrs
;
public
Integer
getStock
()
{
return
stock
;
}
public
void
setStock
(
Integer
stock
)
{
this
.
stock
=
stock
;
}
public
Integer
getSeq
()
{
return
seq
;
}
public
void
setSeq
(
Integer
seq
)
{
this
.
seq
=
seq
;
}
public
Long
getSpuId
()
{
return
spuId
;
}
public
void
setSpuId
(
Long
spuId
)
{
this
.
spuId
=
spuId
;
}
public
String
getSpuName
()
{
return
spuName
;
}
public
void
setSpuName
(
String
spuName
)
{
this
.
spuName
=
spuName
;
}
public
Long
getPriceFee
()
{
return
priceFee
;
}
public
void
setPriceFee
(
Long
priceFee
)
{
this
.
priceFee
=
priceFee
;
}
public
Long
getMarketPriceFee
()
{
return
marketPriceFee
;
}
public
void
setMarketPriceFee
(
Long
marketPriceFee
)
{
this
.
marketPriceFee
=
marketPriceFee
;
}
public
String
getMainImgUrl
()
{
return
mainImgUrl
;
}
public
void
setMainImgUrl
(
String
mainImgUrl
)
{
this
.
mainImgUrl
=
mainImgUrl
;
}
public
String
getShopName
()
{
return
shopName
;
}
public
void
setShopName
(
String
shopName
)
{
this
.
shopName
=
shopName
;
}
public
Long
getShopId
()
{
return
shopId
;
}
public
void
setShopId
(
Long
shopId
)
{
this
.
shopId
=
shopId
;
}
public
Integer
getSpuStatus
()
{
return
spuStatus
;
}
public
void
setSpuStatus
(
Integer
spuStatus
)
{
this
.
spuStatus
=
spuStatus
;
}
public
Boolean
getHasStock
()
{
return
hasStock
;
}
public
void
setHasStock
(
Boolean
hasStock
)
{
this
.
hasStock
=
hasStock
;
}
public
Integer
getSaleNum
()
{
return
saleNum
;
}
public
void
setSaleNum
(
Integer
saleNum
)
{
this
.
saleNum
=
saleNum
;
}
public
String
getBrandName
()
{
return
brandName
;
}
public
void
setBrandName
(
String
brandName
)
{
this
.
brandName
=
brandName
;
}
public
Integer
getBrandId
()
{
return
brandId
;
}
public
void
setBrandId
(
Integer
brandId
)
{
this
.
brandId
=
brandId
;
}
public
String
getBrandImg
()
{
return
brandImg
;
}
public
void
setBrandImg
(
String
brandImg
)
{
this
.
brandImg
=
brandImg
;
}
public
Long
getCategoryId
()
{
return
categoryId
;
}
public
void
setCategoryId
(
Long
categoryId
)
{
this
.
categoryId
=
categoryId
;
}
public
String
getCategoryName
()
{
return
categoryName
;
}
public
void
setCategoryName
(
String
categoryName
)
{
this
.
categoryName
=
categoryName
;
}
public
Long
getShopPrimaryCategoryId
()
{
return
shopPrimaryCategoryId
;
}
public
void
setShopPrimaryCategoryId
(
Long
shopPrimaryCategoryId
)
{
this
.
shopPrimaryCategoryId
=
shopPrimaryCategoryId
;
}
public
String
getShopPrimaryCategoryName
()
{
return
shopPrimaryCategoryName
;
}
public
void
setShopPrimaryCategoryName
(
String
shopPrimaryCategoryName
)
{
this
.
shopPrimaryCategoryName
=
shopPrimaryCategoryName
;
}
public
Long
getShopSecondaryCategoryId
()
{
return
shopSecondaryCategoryId
;
}
public
void
setShopSecondaryCategoryId
(
Long
shopSecondaryCategoryId
)
{
this
.
shopSecondaryCategoryId
=
shopSecondaryCategoryId
;
}
public
String
getShopSecondaryCategoryName
()
{
return
shopSecondaryCategoryName
;
}
public
void
setShopSecondaryCategoryName
(
String
shopSecondaryCategoryName
)
{
this
.
shopSecondaryCategoryName
=
shopSecondaryCategoryName
;
}
public
List
<
EsAttrBO
>
getAttrs
()
{
return
attrs
;
}
public
void
setAttrs
(
List
<
EsAttrBO
>
attrs
)
{
this
.
attrs
=
attrs
;
}
public
String
getSellingPoint
()
{
return
sellingPoint
;
}
public
void
setSellingPoint
(
String
sellingPoint
)
{
this
.
sellingPoint
=
sellingPoint
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
String
getShopImg
()
{
return
shopImg
;
}
public
void
setShopImg
(
String
shopImg
)
{
this
.
shopImg
=
shopImg
;
}
public
Long
getPrimaryCategoryId
()
{
return
primaryCategoryId
;
}
public
void
setPrimaryCategoryId
(
Long
primaryCategoryId
)
{
this
.
primaryCategoryId
=
primaryCategoryId
;
}
public
String
getPrimaryCategoryName
()
{
return
primaryCategoryName
;
}
public
void
setPrimaryCategoryName
(
String
primaryCategoryName
)
{
this
.
primaryCategoryName
=
primaryCategoryName
;
}
public
Long
getSecondaryCategoryId
()
{
return
secondaryCategoryId
;
}
public
void
setSecondaryCategoryId
(
Long
secondaryCategoryId
)
{
this
.
secondaryCategoryId
=
secondaryCategoryId
;
}
public
String
getSecondaryCategoryName
()
{
return
secondaryCategoryName
;
}
public
Integer
getShopType
()
{
return
shopType
;
}
public
void
setShopType
(
Integer
shopType
)
{
this
.
shopType
=
shopType
;
}
public
void
setSecondaryCategoryName
(
String
secondaryCategoryName
)
{
this
.
secondaryCategoryName
=
secondaryCategoryName
;
}
@Override
public
String
toString
()
{
return
"EsProductBO{"
+
"spuId="
+
spuId
+
", spuName='"
+
spuName
+
'\''
+
", sellingPoint='"
+
sellingPoint
+
'\''
+
", priceFee="
+
priceFee
+
", marketPriceFee="
+
marketPriceFee
+
", mainImgUrl='"
+
mainImgUrl
+
'\''
+
", shopName='"
+
shopName
+
'\''
+
", shopId="
+
shopId
+
", shopImg='"
+
shopImg
+
'\''
+
", shopType="
+
shopType
+
", spuStatus="
+
spuStatus
+
", hasStock="
+
hasStock
+
", stock="
+
stock
+
", saleNum="
+
saleNum
+
", createTime="
+
createTime
+
", brandName='"
+
brandName
+
'\''
+
", brandId="
+
brandId
+
", seq="
+
seq
+
", brandImg='"
+
brandImg
+
'\''
+
", categoryId="
+
categoryId
+
", categoryName='"
+
categoryName
+
'\''
+
", shopPrimaryCategoryId="
+
shopPrimaryCategoryId
+
", shopPrimaryCategoryName='"
+
shopPrimaryCategoryName
+
'\''
+
", shopSecondaryCategoryId="
+
shopSecondaryCategoryId
+
", shopSecondaryCategoryName='"
+
shopSecondaryCategoryName
+
'\''
+
", primaryCategoryId="
+
primaryCategoryId
+
", primaryCategoryName='"
+
primaryCategoryName
+
'\''
+
", secondaryCategoryId="
+
secondaryCategoryId
+
", secondaryCategoryName='"
+
secondaryCategoryName
+
'\''
+
", attrs="
+
attrs
+
'}'
;
}
}
mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/constant/CategoryLevel.java
0 → 100644
View file @
7abfefba
package
com.mall4j.cloud.api.product.constant
;
/**
* 等级
* @author yxf
* @date 2020/11/20
*/
public
enum
CategoryLevel
{
/**
* 第一级
*/
First
(
0
),
/**
* 第二级
*/
SECOND
(
1
),
/**
* 第三级
*/
THIRD
(
2
)
;
private
final
Integer
value
;
public
Integer
value
()
{
return
value
;
}
CategoryLevel
(
Integer
value
)
{
this
.
value
=
value
;
}
}
mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/dto/ShopCartItemDTO.java
0 → 100644
View file @
7abfefba
package
com.mall4j.cloud.api.product.dto
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
jakarta.validation.constraints.Min
;
import
jakarta.validation.constraints.NotNull
;
/**
* 购物车物品参数
*
* @author FrozenWatermelon
* @date 2020-12-04 11:27:35
*/
public
class
ShopCartItemDTO
{
@NotNull
(
message
=
"产品ID不能为空"
)
@Schema
(
description
=
"产品ID"
,
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
)
private
Long
spuId
;
@NotNull
(
message
=
"skuId不能为空"
)
@Schema
(
description
=
"skuId"
,
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
)
private
Long
skuId
;
@NotNull
(
message
=
"商品数量不能为空"
)
@Min
(
value
=
1
,
message
=
"商品数量不能为空"
)
@Schema
(
description
=
"商品数量"
,
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
)
private
Integer
count
;
@NotNull
(
message
=
"店铺id不能为空"
)
@Schema
(
description
=
"店铺id"
,
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
)
private
Long
shopId
;
public
Long
getSpuId
()
{
return
spuId
;
}
public
void
setSpuId
(
Long
spuId
)
{
this
.
spuId
=
spuId
;
}
public
Long
getSkuId
()
{
return
skuId
;
}
public
void
setSkuId
(
Long
skuId
)
{
this
.
skuId
=
skuId
;
}
public
Integer
getCount
()
{
return
count
;
}
public
void
setCount
(
Integer
count
)
{
this
.
count
=
count
;
}
public
Long
getShopId
()
{
return
shopId
;
}
public
void
setShopId
(
Long
shopId
)
{
this
.
shopId
=
shopId
;
}
@Override
public
String
toString
()
{
return
"OrderItemDTO{"
+
"spuId="
+
spuId
+
", skuId="
+
skuId
+
", count="
+
count
+
", shopId="
+
shopId
+
'}'
;
}
}
mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/dto/SkuStockLockDTO.java
0 → 100644
View file @
7abfefba
package
com.mall4j.cloud.api.product.dto
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
jakarta.validation.constraints.Min
;
import
jakarta.validation.constraints.NotNull
;
/**
* @author FrozenWatermelon
* @date 2020/12/22
*/
public
class
SkuStockLockDTO
{
@NotNull
(
message
=
"产品ID不能为空"
)
@Schema
(
description
=
"产品ID"
,
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
)
private
Long
spuId
;
@NotNull
(
message
=
"skuId不能为空"
)
@Schema
(
description
=
"skuId"
,
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
)
private
Long
skuId
;
@NotNull
(
message
=
"orderId不能为空"
)
@Schema
(
description
=
"orderId"
,
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
)
private
Long
orderId
;
@NotNull
(
message
=
"商品数量不能为空"
)
@Min
(
value
=
1
,
message
=
"商品数量不能为空"
)
@Schema
(
description
=
"商品数量"
,
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
)
private
Integer
count
;
public
SkuStockLockDTO
()
{
}
public
SkuStockLockDTO
(
Long
spuId
,
Long
skuId
,
Long
orderId
,
Integer
count
)
{
this
.
spuId
=
spuId
;
this
.
skuId
=
skuId
;
this
.
orderId
=
orderId
;
this
.
count
=
count
;
}
public
Long
getSpuId
()
{
return
spuId
;
}
public
void
setSpuId
(
Long
spuId
)
{
this
.
spuId
=
spuId
;
}
public
Long
getSkuId
()
{
return
skuId
;
}
public
void
setSkuId
(
Long
skuId
)
{
this
.
skuId
=
skuId
;
}
public
Long
getOrderId
()
{
return
orderId
;
}
public
void
setOrderId
(
Long
orderId
)
{
this
.
orderId
=
orderId
;
}
public
Integer
getCount
()
{
return
count
;
}
public
void
setCount
(
Integer
count
)
{
this
.
count
=
count
;
}
@Override
public
String
toString
()
{
return
"SkuStockLockDTO{"
+
"spuId="
+
spuId
+
", skuId="
+
skuId
+
", orderId="
+
orderId
+
", count="
+
count
+
'}'
;
}
}
Prev
1
2
3
4
5
6
7
…
34
Next
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