Administrator
2025-07-22 87b793dc328b8cd4a6263acc45bc7dcfdacf04d1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
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;
import cc.mrbird.febs.mall.vo.activity.ApiScCategoryInfoVo;
import cc.mrbird.febs.mall.vo.clothes.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
 
@Slf4j
@Validated
@RestController
@RequiredArgsConstructor
@RequestMapping(value = "/api/clothes/social")
@Api(value = "ApiClothesSocialController", tags = "设计衣服社区")
public class ApiClothesSocialController {
 
    private final ApiClothesSocialService apiClothesSocialService;
 
    @ApiOperation(value = "全部分类", notes = "全部分类")
    @ApiResponses({
            @ApiResponse(code = 200, message = "success", response = ApiClothesCategoryInfoVo.class)
    })
    @GetMapping(value = "/allCategory")
    public FebsResponse allCategory() {
 
        return apiClothesSocialService.allCategory();
    }
 
    @ApiOperation(value = "首页分类", notes = "首页分类")
    @ApiResponses({
            @ApiResponse(code = 200, message = "success", response = ApiClothesCategoryInfoVo.class)
    })
    @GetMapping(value = "/indexCategory")
    public FebsResponse indexCategory() {
 
        return apiClothesSocialService.indexCategory();
    }
 
    @ApiOperation(value = "社区列表", notes = "社区列表")
    @ApiResponses({
            @ApiResponse(code = 200, message = "success", response = ApiAllSocialVo.class)
    })
    @PostMapping(value = "/allSocial")
    public FebsResponse allSocial(@RequestBody @Validated ApiAllSocialDto dto) {
 
        return apiClothesSocialService.allSocial(dto);
    }
 
    @ApiOperation(value = "社区详情", notes = "社区详情")
    @ApiResponses({
            @ApiResponse(code = 200, message = "success", response = ApiSocialInfoVo.class)
    })
    @PostMapping(value = "/socialInfo")
    public FebsResponse socialInfo(@RequestBody @Validated ApiSocialInfoDto dto) {
 
        return apiClothesSocialService.socialInfo(dto);
    }
 
    @ApiOperation(value = "分享到社区", notes = "分享到社区")
    @PostMapping(value = "/socialAdd")
    public FebsResponse socialAdd(@RequestBody @Validated ApiSocialAddDto dto) {
 
        return apiClothesSocialService.socialAdd(dto);
    }
 
    @ApiOperation(value = "点赞(心形)", notes = "点赞(心形)")
    @PostMapping(value = "/addLike")
    public FebsResponse addLike(@RequestBody @Validated ApiSocialLikeAddDto dto) {
 
        return apiClothesSocialService.addLike(dto);
    }
 
    @ApiOperation(value = "评论点赞(心形)", notes = "点赞(心形)")
    @PostMapping(value = "/addCommentLike")
    public FebsResponse addCommentLike(@RequestBody @Validated ApiSocialCommentLikeAddDto dto) {
 
        return apiClothesSocialService.addCommentLike(dto);
    }
 
    @ApiOperation(value = "收藏(五角星)", notes = "收藏(五角星)")
    @PostMapping(value = "/addCollect")
    public FebsResponse addCollect(@RequestBody @Validated ApiSocialCollectAddDto dto) {
 
        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)
    })
    @PostMapping(value = "/museToDesign")
    public FebsResponse museToDesign(@RequestBody @Validated ApiClothesSocialMuseDto dto) {
 
        return apiClothesSocialService.museToDesign(dto);
    }
 
 
    @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);
    }
 
 
 
}