| | |
| | | package cc.mrbird.febs.mall.controller.clothes; |
| | | |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.mall.dto.ApiColletDelDto; |
| | | import cc.mrbird.febs.mall.dto.clothes.*; |
| | | import cc.mrbird.febs.mall.service.ApiClothesOrderService; |
| | | import cc.mrbird.febs.mall.service.ApiClothesSocialService; |
| | |
| | | return apiClothesSocialService.addCollect(dto); |
| | | } |
| | | |
| | | @ApiOperation(value = "是否收藏点赞收藏", notes = "是否收藏点赞收藏") |
| | | @PostMapping(value = "/followState") |
| | | public FebsResponse followState(@RequestBody @Validated ApiSocialCollectFollowStateDto dto) { |
| | | |
| | | return apiClothesSocialService.followState(dto); |
| | | } |
| | | |
| | | @ApiOperation(value = "我的社区收藏", notes = "我的社区收藏") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiSocialMyCollectVo.class) |
| | | }) |
| | | @PostMapping(value = "/myCollect") |
| | | public FebsResponse myCollect(@RequestBody @Validated ApiSocialMyCollectAddDto dto) { |
| | | |
| | | return apiClothesSocialService.myCollect(dto); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "取消收藏") |
| | | @PostMapping(value = "/del") |
| | | public FebsResponse delCollection(@RequestBody ApiColletDelDto dto) { |
| | | return apiClothesSocialService.delCollection(dto); |
| | | } |
| | | |
| | | @ApiOperation(value = "我的灵感-跳转到开始设计", notes = "我的灵感-跳转到开始设计") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiClothesSocialMuseVo.class) |
| | |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "评论", notes = "评论") |
| | | @PostMapping(value = "/comment") |
| | | public FebsResponse comment(@RequestBody @Validated ApiClothesSocialCommentDto dto) { |
| | | |
| | | return apiClothesSocialService.comment(dto); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "评论列表", notes = "评论列表") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiAllCommentVo.class) |
| | | }) |
| | | @PostMapping(value = "/allComment") |
| | | public FebsResponse allComment(@RequestBody @Validated ApiAllCommentDto dto) { |
| | | |
| | | return apiClothesSocialService.allComment(dto); |
| | | } |
| | | |
| | | |
| | | |
| | | } |