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 = "/statureDel") public FebsResponse statureDel(@RequestBody @Validated ApiClothesMemberStatureInfoDto dto) { return clothesService.statureDel(dto); } }