New file |
| | |
| | | package cc.mrbird.febs.mall.controller; |
| | | |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.mall.dto.ApiMallInvoiceDto; |
| | | import cc.mrbird.febs.mall.service.MallInvoiceService; |
| | | import cc.mrbird.febs.mall.vo.ApiMallInvoiceVo; |
| | | 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.web.bind.annotation.*; |
| | | |
| | | @Slf4j |
| | | @RestController |
| | | @RequiredArgsConstructor |
| | | @RequestMapping(value = "/api/invoice") |
| | | @Api(value = "ApiMallInvoiceController", tags = "发票管理") |
| | | public class ApiMallInvoiceController { |
| | | |
| | | private final MallInvoiceService mallInvoiceService; |
| | | |
| | | @ApiOperation(value = "获取发票列表", notes = "获取发票列表") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiMallInvoiceVo.class) |
| | | }) |
| | | @PostMapping(value = "/getInvoices") |
| | | public FebsResponse getInvoices(@RequestBody ApiMallInvoiceDto apiMallInvoiceDto) { |
| | | return mallInvoiceService.getInvoices(apiMallInvoiceDto); |
| | | } |
| | | |
| | | } |