| | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.security.annotation.InnerAuth; |
| | | import com.ruoyi.system.api.domain.AuctionSalesroom; |
| | | import com.ruoyi.system.api.domain.AuctionSalesroomGoods; |
| | | import com.ruoyi.system.api.domain.dto.MemberAuctionSalesroomBondDTO; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import javax.annotation.Resource; |
| | | 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.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | return R.ok(iAuctionSalesroomService.getAuctionSalesroomByIds(auctionSalesroomGoodsIdSet)); |
| | | } |
| | | |
| | | /** |
| | | * 根据商品id获取正在进行的拍卖会 |
| | | * |
| | | * @param id 商品id |
| | | * @return |
| | | */ |
| | | @InnerAuth |
| | | @GetMapping("/getAuctionSalesroomBySkuId/{id}") |
| | | R<List<AuctionSalesroom>> getAuctionSalesroomBySkuId(@PathVariable("id") Long id) { |
| | | return R.ok(iAuctionSalesroomService.getAuctionSalesroomBySkuId(id)); |
| | | } |
| | | |
| | | /** |
| | | * 获取拍卖商品 |
| | | * |
| | | * @param goodsSkuId |
| | | * @return |
| | | */ |
| | | @InnerAuth |
| | | @GetMapping("/getAuctionSalesroomGoodsById/{goodsSkuId}") |
| | | R<AuctionSalesroomGoods> getAuctionSalesroomGoodsById( |
| | | @PathVariable("goodsSkuId") Long goodsSkuId) { |
| | | return R.ok(iAuctionSalesroomService.getAuctionSalesroomGoodsById(goodsSkuId)); |
| | | } |
| | | } |