| | |
| | | import com.ruoyi.common.security.annotation.InnerAuth; |
| | | import com.ruoyi.system.api.domain.AuctionGoods; |
| | | import com.ruoyi.system.api.domain.dto.MemberAuctionSalesroomBondDTO; |
| | | import java.util.List; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 根据商品id获取正在进行的拍卖商品 |
| | | * |
| | | * @param id 商品id |
| | | * @return |
| | | */ |
| | | @InnerAuth |
| | | @GetMapping("/getAuctionGoodsBySkuId/{id}") |
| | | R<List<AuctionGoods>> getAuctionGoodsBySkuId(@PathVariable("id") Long id) { |
| | | return R.ok(auctionGoodsService.getAuctionGoodsBySkuId(id)); |
| | | } |
| | | |
| | | /** |
| | | * 根据id获取拍卖商品 |
| | | * |
| | | * @param goodsSkuId |
| | | * @return |
| | | */ |
| | | @InnerAuth |
| | | @GetMapping("/getAuctionGoodsId/{goodsSkuId}") |
| | | R<AuctionGoods> getAuctionGoodsId(@PathVariable("goodsSkuId") Long goodsSkuId) { |
| | | return R.ok(auctionGoodsService.getById(goodsSkuId)); |
| | | } |
| | | |
| | | } |