| | |
| | | import com.ruoyi.common.security.annotation.InnerAuth; |
| | | import com.ruoyi.goods.service.IGoodsSeckillService; |
| | | import com.ruoyi.system.api.domain.GoodsSeckill; |
| | | import com.ruoyi.system.api.domain.dto.GoodsStockUpdDTO; |
| | | 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.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | GoodsSeckill GoodsSeckillOne = goodsSeckillService.getById(goodsSkuId); |
| | | return R.ok(GoodsSeckillOne); |
| | | } |
| | | |
| | | @InnerAuth |
| | | @PutMapping("/updGoodsSeckill") |
| | | R<?> updGoodsSeckill(@RequestBody GoodsStockUpdDTO goodsStockUpdDTOS) { |
| | | GoodsSeckill GoodsSeckillOne = goodsSeckillService.getById(goodsStockUpdDTOS); |
| | | GoodsSeckillOne.setSeckillStock(goodsStockUpdDTOS.getAuctionStock()); |
| | | goodsSeckillService.updateById(GoodsSeckillOne); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 开始秒杀 |
| | | * |