Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
jenkins
order-group
Commits
f0bed5e2
Commit
f0bed5e2
authored
Mar 19, 2020
by
huvchao@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
yapi
parent
b29e6f9b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletions
+25
-1
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/AddShoppingCartGoodsRequestVo.java
+16
-1
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/UpdateShoppingCartGoodsQtyRequestVo.java
+9
-0
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/AddShoppingCartGoodsRequestVo.java
View file @
f0bed5e2
...
@@ -12,6 +12,8 @@
...
@@ -12,6 +12,8 @@
*/
*/
package
cn
.
freemud
.
entities
.
vo
;
package
cn
.
freemud
.
entities
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Builder
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.NotEmpty
;
import
org.hibernate.validator.constraints.NotEmpty
;
...
@@ -19,24 +21,30 @@ import org.hibernate.validator.constraints.NotEmpty;
...
@@ -19,24 +21,30 @@ import org.hibernate.validator.constraints.NotEmpty;
import
java.util.List
;
import
java.util.List
;
@Data
@Data
@ApiModel
(
description
=
"添加购物车请求参数"
)
public
class
AddShoppingCartGoodsRequestVo
extends
BaseRequestVo
{
public
class
AddShoppingCartGoodsRequestVo
extends
BaseRequestVo
{
@NotEmpty
(
message
=
"sessionId不能为空"
)
@NotEmpty
(
message
=
"sessionId不能为空"
)
@ApiModelProperty
(
value
=
"sessionId"
,
required
=
true
)
private
String
sessionId
;
private
String
sessionId
;
/**
/**
* 微信appId
* 微信appId
*/
*/
@ApiModelProperty
(
value
=
"appId"
,
required
=
true
)
@NotEmpty
(
message
=
"appId不能为空"
)
@NotEmpty
(
message
=
"appId不能为空"
)
private
String
appId
;
private
String
appId
;
@ApiModelProperty
(
value
=
"spuId"
,
required
=
true
)
@NotEmpty
(
message
=
"spuId不能为空"
)
@NotEmpty
(
message
=
"spuId不能为空"
)
private
String
spuId
;
private
String
spuId
;
@ApiModelProperty
(
value
=
"skuId"
)
private
String
skuId
;
private
String
skuId
;
/**
/**
* 商品额外的属性
* 商品额外的属性
*/
*/
@ApiModelProperty
(
value
=
"skuId"
)
private
List
<
CartGoods
.
CartGoodsExtra
>
extra
;
private
List
<
CartGoods
.
CartGoodsExtra
>
extra
;
private
String
version
;
private
String
version
;
...
@@ -44,32 +52,39 @@ public class AddShoppingCartGoodsRequestVo extends BaseRequestVo{
...
@@ -44,32 +52,39 @@ public class AddShoppingCartGoodsRequestVo extends BaseRequestVo{
/**
/**
* 1.6.0 版本增加 节点ID
* 1.6.0 版本增加 节点ID
*/
*/
@ApiModelProperty
(
value
=
"节点ID"
)
private
String
nodeId
;
private
String
nodeId
;
/**
/**
* 1.6.0 版本增加 分类名
* 1.6.0 版本增加 分类名
*/
*/
@ApiModelProperty
(
value
=
"分类名"
)
private
String
categoryName
;
private
String
categoryName
;
/**
/**
* 套餐固定商品
* 套餐固定商品
*/
*/
@ApiModelProperty
(
value
=
"套餐固定商品"
)
private
List
<
ComboxGoodsRequestVo
>
productComboList
;
private
List
<
ComboxGoodsRequestVo
>
productComboList
;
/**
/**
* 套餐可选商品
* 套餐可选商品
*/
*/
@ApiModelProperty
(
value
=
"套餐可选商品"
)
private
List
<
ComboxGoodsRequestVo
>
productGroupList
;
private
List
<
ComboxGoodsRequestVo
>
productGroupList
;
@ApiModelProperty
(
value
=
"appType"
)
private
String
appType
;
private
String
appType
;
@ApiModelProperty
(
value
=
"桌号"
)
private
String
tableNumber
;
private
String
tableNumber
;
/**
/**
* 数量
* 数量
*/
*/
@ApiModelProperty
(
value
=
"数量"
)
private
Integer
qty
;
private
Integer
qty
;
/**
/**
* 业务类型: 0 : 自提 1:外卖 2:微商城
* 业务类型: 0 : 自提 1:外卖 2:微商城
*/
*/
@ApiModelProperty
(
value
=
"业务类型: 0 : 自提 1:外卖 2:微商城"
)
private
String
menuType
;
private
String
menuType
;
}
}
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/UpdateShoppingCartGoodsQtyRequestVo.java
View file @
f0bed5e2
...
@@ -12,40 +12,49 @@
...
@@ -12,40 +12,49 @@
*/
*/
package
cn
.
freemud
.
entities
.
vo
;
package
cn
.
freemud
.
entities
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.NotEmpty
;
import
org.hibernate.validator.constraints.NotEmpty
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
@ApiModel
(
description
=
"修改购物车中商品数量"
)
@Data
@Data
public
class
UpdateShoppingCartGoodsQtyRequestVo
extends
BaseRequestVo
{
public
class
UpdateShoppingCartGoodsQtyRequestVo
extends
BaseRequestVo
{
@NotEmpty
(
message
=
"sessionId不能为空"
)
@NotEmpty
(
message
=
"sessionId不能为空"
)
@ApiModelProperty
(
value
=
"sessionId"
,
required
=
true
)
private
String
sessionId
;
private
String
sessionId
;
@NotEmpty
(
message
=
"appId不能为空"
)
@NotEmpty
(
message
=
"appId不能为空"
)
@ApiModelProperty
(
value
=
"appId"
,
required
=
true
)
private
String
appId
;
private
String
appId
;
/**
/**
* 购物车一行的ID
* 购物车一行的ID
*/
*/
@NotEmpty
(
message
=
"cartGoodsUid不能为空"
)
@NotEmpty
(
message
=
"cartGoodsUid不能为空"
)
@ApiModelProperty
(
value
=
"购物车一行的ID"
,
required
=
true
)
private
String
cartGoodsUid
;
private
String
cartGoodsUid
;
/**
/**
* 商品数量
* 商品数量
*/
*/
@NotNull
(
message
=
"qty不能为空"
)
@NotNull
(
message
=
"qty不能为空"
)
@ApiModelProperty
(
value
=
"数量"
,
required
=
true
)
private
Integer
qty
;
private
Integer
qty
;
private
String
version
;
private
String
version
;
/**
/**
* 购物车版本号(围餐)
* 购物车版本号(围餐)
*/
*/
@ApiModelProperty
(
value
=
"购物车版本号(围餐)"
)
private
Integer
carVer
;
private
Integer
carVer
;
/**
/**
* 业务类型: 0 : 自提 1:外卖 2:微商城
* 业务类型: 0 : 自提 1:外卖 2:微商城
*/
*/
@ApiModelProperty
(
value
=
"业务类型: 0 : 自提 1:外卖 2:微商城"
)
private
String
menuType
;
private
String
menuType
;
}
}
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