Update MemberProductCollectionController.java
This commit is contained in:
parent
e9d0970886
commit
adf0e47e1a
@ -14,7 +14,7 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 会员收藏管理Controller
|
* 会员商品收藏管理Controller
|
||||||
* Created by macro on 2018/8/2.
|
* Created by macro on 2018/8/2.
|
||||||
*/
|
*/
|
||||||
@Controller
|
@Controller
|
||||||
@ -36,7 +36,7 @@ public class MemberProductCollectionController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("删除收藏商品")
|
@ApiOperation("删除商品收藏")
|
||||||
@RequestMapping(value = "/delete", method = RequestMethod.POST)
|
@RequestMapping(value = "/delete", method = RequestMethod.POST)
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public CommonResult delete(Long productId) {
|
public CommonResult delete(Long productId) {
|
||||||
@ -48,7 +48,7 @@ public class MemberProductCollectionController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("显示收藏列表")
|
@ApiOperation("显示商品收藏列表")
|
||||||
@RequestMapping(value = "/list", method = RequestMethod.GET)
|
@RequestMapping(value = "/list", method = RequestMethod.GET)
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public CommonResult<CommonPage<MemberProductCollection>> list(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
|
public CommonResult<CommonPage<MemberProductCollection>> list(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
|
||||||
@ -57,7 +57,7 @@ public class MemberProductCollectionController {
|
|||||||
return CommonResult.success(CommonPage.restPage(page));
|
return CommonResult.success(CommonPage.restPage(page));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("显示收藏商品详情")
|
@ApiOperation("显示商品收藏详情")
|
||||||
@RequestMapping(value = "/detail", method = RequestMethod.GET)
|
@RequestMapping(value = "/detail", method = RequestMethod.GET)
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public CommonResult<MemberProductCollection> detail(@RequestParam Long productId) {
|
public CommonResult<MemberProductCollection> detail(@RequestParam Long productId) {
|
||||||
@ -65,7 +65,7 @@ public class MemberProductCollectionController {
|
|||||||
return CommonResult.success(memberProductCollection);
|
return CommonResult.success(memberProductCollection);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("清空收藏列表")
|
@ApiOperation("清空商品收藏列表")
|
||||||
@RequestMapping(value = "/clear", method = RequestMethod.POST)
|
@RequestMapping(value = "/clear", method = RequestMethod.POST)
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public CommonResult clear() {
|
public CommonResult clear() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user