package cc.mrbird.febs.mall.controller; import cc.mrbird.febs.common.entity.FebsResponse; import cc.mrbird.febs.mall.dto.ApiShopDto; import cc.mrbird.febs.mall.service.IMallShopService; import cc.mrbird.febs.mall.vo.ApiShopVo; import cc.mrbird.febs.mall.vo.OrderListVo; 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 @CrossOrigin("*") @RequiredArgsConstructor @RequestMapping(value = "/api/shop") @Api(value = "ApiMallShopController", tags = "店铺接口类") public class ApiMallShopController { private final IMallShopService mallShopService; @ApiOperation(value = "店铺列表", notes = "店铺列表") @ApiResponses({ @ApiResponse(code = 200, message = "success", response = ApiShopVo.class) }) @PostMapping(value = "/shopList") public FebsResponse shopList(@RequestBody ApiShopDto apiShopDto) { return new FebsResponse().success().data(mallShopService.findShopList(apiShopDto)); } }