Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
mall
Commits
cefdc24d
Commit
cefdc24d
authored
Jan 19, 2022
by
macro
Browse files
Update OmsCartItemController.java
parent
8a1c24bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
mall-portal/src/main/java/com/macro/mall/portal/controller/OmsCartItemController.java
View file @
cefdc24d
...
...
@@ -54,7 +54,7 @@ public class OmsCartItemController {
return
CommonResult
.
success
(
cartPromotionItemList
);
}
@ApiOperation
(
"修改购物车中
某个
商品的数量"
)
@ApiOperation
(
"修改购物车中
指定
商品的数量"
)
@RequestMapping
(
value
=
"/update/quantity"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
public
CommonResult
updateQuantity
(
@RequestParam
Long
id
,
...
...
@@ -66,7 +66,7 @@ public class OmsCartItemController {
return
CommonResult
.
failed
();
}
@ApiOperation
(
"获取购物车中
某个
商品的规格,用于重选规格"
)
@ApiOperation
(
"获取购物车中
指定
商品的规格,用于重选规格"
)
@RequestMapping
(
value
=
"/getProduct/{productId}"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
public
CommonResult
<
CartProduct
>
getCartProduct
(
@PathVariable
Long
productId
)
{
...
...
@@ -85,7 +85,7 @@ public class OmsCartItemController {
return
CommonResult
.
failed
();
}
@ApiOperation
(
"删除购物车中的
某个
商品"
)
@ApiOperation
(
"删除购物车中的
指定
商品"
)
@RequestMapping
(
value
=
"/delete"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
CommonResult
delete
(
@RequestParam
(
"ids"
)
List
<
Long
>
ids
)
{
...
...
@@ -96,7 +96,7 @@ public class OmsCartItemController {
return
CommonResult
.
failed
();
}
@ApiOperation
(
"清空购物车"
)
@ApiOperation
(
"清空
当前用户的
购物车"
)
@RequestMapping
(
value
=
"/clear"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
CommonResult
clear
()
{
...
...
Write
Preview
Supports
Markdown
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