Administrator
2025-07-18 4888ef96061e19769427bf52b0a644da7910331e
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
153
154
155
156
package cc.mrbird.febs.mall.controller.clothes;
 
import cc.mrbird.febs.common.entity.FebsResponse;
import cc.mrbird.febs.mall.dto.ApiActivityDto;
import cc.mrbird.febs.mall.dto.MallGoodsQueryDto;
import cc.mrbird.febs.mall.dto.clothes.*;
import cc.mrbird.febs.mall.service.ApiClothesService;
import cc.mrbird.febs.mall.vo.ApiActivityVo;
import cc.mrbird.febs.mall.vo.MallGoodsListVo;
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")
@Api(value = "ApiClothesController", tags = "设计衣服")
public class ApiClothesController {
 
    private final ApiClothesService clothesService;
 
    @ApiOperation(value = "设计款式", notes = "设计款式")
    @ApiResponses({
            @ApiResponse(code = 200, message = "success", response = ApiClothesTypeListVo.class)
    })
    @GetMapping(value = "/clothesType")
    public FebsResponse clothesType() {
        return clothesService.clothesType();
    }
 
    @ApiOperation(value = "设计款式详情", notes = "设计款式详情")
    @ApiResponses({
            @ApiResponse(code = 200, message = "success", response = ApiClothesTypeVo.class)
    })
    @PostMapping(value = "/typeInfo")
    public FebsResponse typeInfo(@RequestBody @Validated ApiTypeInfoDto dto) {
 
        return clothesService.typeInfo(dto);
    }
 
    @ApiOperation(value = "布料列表", notes = "布料列表")
    @ApiResponses({
            @ApiResponse(code = 200, message = "success", response = ApiClothesClothVo.class)
    })
    @PostMapping(value = "/clothList")
    public FebsResponse clothList(@RequestBody @Validated ApiClothesClothPageDto dto) {
 
        return clothesService.clothList(dto);
    }
 
    @ApiOperation(value = "正面图案列表", notes = "图案列表")
    @ApiResponses({
            @ApiResponse(code = 200, message = "success", response = ApiClothesPatternVo.class)
    })
    @PostMapping(value = "/patternList")
    public FebsResponse patternList(@RequestBody @Validated ApiClothesPatternPageDto dto) {
 
        return clothesService.patternList(dto);
    }
 
    @ApiOperation(value = "尺码列表", notes = "尺码列表")
    @ApiResponses({
            @ApiResponse(code = 200, message = "success", response = ApiClothesSizeVo.class)
    })
    @PostMapping(value = "/sizeList")
    public FebsResponse sizeList(@RequestBody @Validated ApiClothesSizeDto dto) {
 
        return clothesService.sizeList(dto);
    }
 
    @ApiOperation(value = "反面图案列表", notes = "反面图案列表")
    @ApiResponses({
            @ApiResponse(code = 200, message = "success", response = ApiClothesLocationVo.class)
    })
    @PostMapping(value = "/locationList")
    public FebsResponse locationList(@RequestBody @Validated ApiClothesLocationPageDto dto) {
 
        return clothesService.locationList(dto);
    }
 
    @ApiOperation(value = "工艺列表", notes = "工艺列表")
    @ApiResponses({
            @ApiResponse(code = 200, message = "success", response = ApiClothesArtVo.class)
    })
    @PostMapping(value = "/artList")
    public FebsResponse artList(@RequestBody @Validated ApiClothesArtPageDto dto) {
 
        return clothesService.artList(dto);
    }
 
    @ApiOperation(value = "身材数据-列表", notes = "身材数据-列表")
    @ApiResponses({
            @ApiResponse(code = 200, message = "success", response = ApiClothesMemberStatureVo.class)
    })
    @PostMapping(value = "/statureList")
    public FebsResponse statureList(@RequestBody @Validated ApiClothesMemberStatureDto dto) {
 
        return clothesService.statureList(dto);
    }
 
    @ApiOperation(value = "身材数据-新增", notes = "身材数据-新增")
    @PostMapping(value = "/statureAdd")
    public FebsResponse statureAdd(@RequestBody @Validated ApiClothesMemberStatureAddDto dto) {
 
        return clothesService.statureAdd(dto);
    }
 
    @ApiOperation(value = "身材数据-详情", notes = "身材数据-详情")
    @ApiResponses({
            @ApiResponse(code = 200, message = "success", response = ApiClothesMemberStatureVo.class)
    })
    @PostMapping(value = "/statureInfo")
    public FebsResponse statureInfo(@RequestBody @Validated ApiClothesMemberStatureInfoDto dto) {
 
        return clothesService.statureInfo(dto);
    }
 
    @ApiOperation(value = "身材数据-保存", notes = "身材数据-保存")
    @PostMapping(value = "/statureUpdate")
    public FebsResponse statureUpdate(@RequestBody @Validated ApiClothesMemberStatureUpdateDto dto) {
 
        return clothesService.statureUpdate(dto);
    }
 
    @ApiOperation(value = "身材数据-设置默认", notes = "身材数据-设置默认")
    @PostMapping(value = "/statureUpdateState")
    public FebsResponse statureUpdateState(@RequestBody @Validated ApiClothesMemberStatureUpdateStateDto dto) {
 
        return clothesService.statureUpdateState(dto);
    }
 
    @ApiOperation(value = "身材数据-删除", notes = "身材数据-删除")
    @PostMapping(value = "/statureDel")
    public FebsResponse statureDel(@RequestBody @Validated ApiClothesMemberStatureInfoDto dto) {
 
        return clothesService.statureDel(dto);
    }
 
    @ApiOperation(value = "预览效果-保存至草稿", notes = "预览效果-保存至草稿")
    @ApiResponses({
            @ApiResponse(code = 200, message = "success", response = ApiMyDraftSaveVo.class)
    })
    @PostMapping(value = "/draftSave")
    public FebsResponse draftSave(@RequestBody @Validated ApiMyDraftSaveDto dto) {
 
        return clothesService.draftSave(dto);
    }
}