| | |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.ruoyi.auction.service.IAuctionGoodsService; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.security.annotation.InnerAuth; |
| | | import com.ruoyi.system.api.domain.AuctionGoods; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | |
| | | private final IAuctionGoodsService auctionGoodsService; |
| | | |
| | | @InnerAuth |
| | | @PostMapping("/getAuctionGoodsOne") |
| | | public R<AuctionGoods> getAuctionGoodsOne(@RequestBody Long auctionSalesroomId) { |
| | | AuctionGoods auctionGoods=auctionGoodsService.getById(auctionSalesroomId); |
| | | return R.ok(auctionGoods); |
| | | |
| | | } |
| | | |
| | | @PutMapping("/auction-goods/end/{id}") |
| | | R<?> endAuctionGoods(@PathVariable("id") Long id) { |
| | | try { |