| | |
| | | import com.ruoyi.system.api.domain.AuctionGoods; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | |
| | | } |
| | | |
| | | @PutMapping("/auction-goods/end/{id}") |
| | | @PutMapping("/end/{id}") |
| | | R<?> endAuctionGoods(@PathVariable("id") Long id) { |
| | | try { |
| | | auctionGoodsService.endAuctionGoods(id); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @PutMapping("/auction-goods/start/{id}") |
| | | @PutMapping("/start/{id}") |
| | | R<?> startAuctionGoods(@PathVariable("id") Long id) { |
| | | try { |
| | | auctionGoodsService.startAuctionGoods(id); |