| | |
| | | package com.ruoyi.auction.controller.management; |
| | | |
| | | |
| | | import com.ruoyi.auction.controller.management.dto.AuctionGoodsDTO; |
| | | import com.ruoyi.auction.controller.management.dto.AuctionGoodsQuery; |
| | | import com.ruoyi.auction.controller.management.vo.AuctionGoodsVO; |
| | | import com.ruoyi.auction.service.IAuctionGoodsService; |
| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | |
| | | private final IAuctionGoodsService auctionGoodsService; |
| | | |
| | | /** |
| | | * 获取拍卖商品列表的分页数据 |
| | | * |
| | | * @param query 拍卖商品查询对象 |
| | | * @return PageDTO<AuctionGoodsVO> |
| | | */ |
| | | @ApiOperation(value = "获取拍卖商品列表的分页数据", notes = "获取拍卖商品列表的分页数据") |
| | | @PostMapping("/page") |
| | | public R<PageDTO<AuctionGoodsVO>> getAuctionGoodsPage( |
| | | AuctionGoodsQuery query) { |
| | | return R.ok(auctionGoodsService.getAuctionGoodsPage(query)); |
| | | } |
| | | |
| | | @ApiOperation(value = "添加/编辑 拍卖商品", notes = "添加/编辑 拍卖商品") |
| | | @PostMapping("/save") |
| | | public R<?> saveAuctionGoods(@Validated @RequestBody AuctionGoodsDTO dto) { |
| | | auctionGoodsService.saveAuctionGoods(dto); |
| | | return R.ok(); |
| | | } |
| | | } |