toggle menu
Wow
3.16.8
jvm
switch theme
search in API
example-api
/
me.ahoo.wow.example.api.cart
/
AddCartItem
Add
Cart
Item
@
Order
(
value
=
1
)
@
AllowCreate
@
CommandRoute
(
method
=
CommandRoute.Method.POST
,
summary
=
"加入购物车"
,
description
=
"加入购物车"
)
data
class
AddCartItem
(
val
id
:
String
,
val
productId
:
String
,
val
quantity
:
Int
=
1
)
Members
Constructors
Add
Cart
Item
Link copied to clipboard
constructor
(
id
:
String
,
productId
:
String
,
quantity
:
Int
=
1
)
Properties
id
Link copied to clipboard
val
id
:
String
product
Id
Link copied to clipboard
@
NotBlank
val
productId
:
String
quantity
Link copied to clipboard
@
Positive
val
quantity
:
Int
=
1