mitao
2024-09-21 f44e4d609e7efaed9eac545137970b1e334f8106
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.ruoyi.goods.controller.forepart;
 
 
import com.ruoyi.common.core.domain.R;
import com.ruoyi.goods.service.IGoodsSeckillAppointmentService;
import com.ruoyi.goods.service.impl.GoodsSeckillAppointmentServiceImpl;
import com.ruoyi.system.api.domain.dto.HomeGoodsSkuDTO;
import com.ruoyi.system.api.domain.vo.getHomeGoodsSkuXxiVO;
import io.swagger.annotations.ApiOperation;
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.RestController;
 
import javax.annotation.Resource;
import java.util.List;
 
/**
 * <p>
 * 秒杀商品预约表 前端控制器
 * </p>
 *
 * @author mitao
 * @since 2024-07-03
 */
@RestController
@RequestMapping("/goods-seckill-appointment")
public class GoodsSeckillAppointmentController {
 
    @Resource
    private IGoodsSeckillAppointmentService goodsSeckillAppointmentService;
 
    @PostMapping("/goodsSeckillAppointment")
    @ApiOperation(value = "用户端-秒杀预约")
    public R goodsSeckillAppointment(@RequestBody HomeGoodsSkuDTO homeGoodsSkuDTO) {
        goodsSeckillAppointmentService.goodsSeckillAppointment(homeGoodsSkuDTO);
        return R.ok();
    }
 
}