Skip to content

Commit

Permalink
Update MemberProductCollectionController.java
Browse files Browse the repository at this point in the history
  • Loading branch information
macrozheng committed Jul 1, 2021
1 parent e9d0970 commit adf0e47
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import java.util.List;

/**
* 会员收藏管理Controller
* 会员商品收藏管理Controller
* Created by macro on 2018/8/2.
*/
@Controller
Expand All @@ -36,7 +36,7 @@ public CommonResult add(@RequestBody MemberProductCollection productCollection)
}
}

@ApiOperation("删除收藏商品")
@ApiOperation("删除商品收藏")
@RequestMapping(value = "/delete", method = RequestMethod.POST)
@ResponseBody
public CommonResult delete(Long productId) {
Expand All @@ -48,7 +48,7 @@ public CommonResult delete(Long productId) {
}
}

@ApiOperation("显示收藏列表")
@ApiOperation("显示商品收藏列表")
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ResponseBody
public CommonResult<CommonPage<MemberProductCollection>> list(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
Expand All @@ -57,15 +57,15 @@ public CommonResult<CommonPage<MemberProductCollection>> list(@RequestParam(valu
return CommonResult.success(CommonPage.restPage(page));
}

@ApiOperation("显示收藏商品详情")
@ApiOperation("显示商品收藏详情")
@RequestMapping(value = "/detail", method = RequestMethod.GET)
@ResponseBody
public CommonResult<MemberProductCollection> detail(@RequestParam Long productId) {
MemberProductCollection memberProductCollection = memberCollectionService.detail(productId);
return CommonResult.success(memberProductCollection);
}

@ApiOperation("清空收藏列表")
@ApiOperation("清空商品收藏列表")
@RequestMapping(value = "/clear", method = RequestMethod.POST)
@ResponseBody
public CommonResult clear() {
Expand Down

0 comments on commit adf0e47

Please sign in to comment.