Hentua
2023-04-20 929bbd74135fd867537adc18a171491b83679090
src/main/java/cc/mrbird/febs/mall/controller/ApiMallShopController.java
@@ -1,11 +1,20 @@
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.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -17,4 +26,15 @@
@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 = "/")
    public FebsResponse shopList(ApiShopDto apiShopDto) {
        return new FebsResponse().success().data(mallShopService.findShopList(apiShopDto));
    }
}