| | |
| | | import com.ruoyi.auction.service.IAuctionSalesroomService; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.security.annotation.InnerAuth; |
| | | import com.ruoyi.system.api.domain.AuctionBondJl; |
| | | import com.ruoyi.system.api.domain.AuctionSalesroom; |
| | | import com.ruoyi.system.api.domain.AuctionSalesroomGoods; |
| | | import com.ruoyi.system.api.domain.GoodsSku; |
| | | import com.ruoyi.system.api.domain.dto.MemberAuctionSalesroomBondDTO; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | 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; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | |
| | | 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)); |
| | | } |
| | | |
| | | @InnerAuth |
| | | @GetMapping("/getAuctionBondJLByTargetId") |
| | | R<AuctionBondJl> getAuctionBondJLBySalesroomId( |
| | | @RequestParam("targetId") Long targetId, |
| | | @RequestParam("memberId") Long memberId, |
| | | @RequestParam("bondType") Integer bondType) { |
| | | return R.ok(iAuctionSalesroomService.getAuctionBondJLBySalesroomId(targetId, |
| | | memberId, bondType)); |
| | | } |
| | | |
| | | /** |
| | | * 根据拍卖场商品id获取商品信息 |
| | | * |
| | | * @param auctionSalesroomGoodsSet |
| | | * @return |
| | | */ |
| | | @InnerAuth |
| | | @PostMapping("/getGoodsSkuByAuctionSalesroomGoodsSet") |
| | | R<List<GoodsSku>> getGoodsSkuByAuctionSalesroomGoodsSet( |
| | | @RequestBody Set<Long> auctionSalesroomGoodsSet) { |
| | | return R.ok(iAuctionSalesroomService.getGoodsSkuByAuctionSalesroomGoodsSet( |
| | | auctionSalesroomGoodsSet)); |
| | | } |
| | | } |