package com.ruoyi.other.controller;
|
|
|
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.other.api.domain.Banner;
|
import com.ruoyi.other.api.domain.CouponInfo;
|
import com.ruoyi.other.service.CouponInfoService;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.annotation.Resource;
|
|
/**
|
* <p>
|
* 前端控制器
|
* </p>
|
*
|
* @author luodangjia
|
* @since 2024-11-20
|
*/
|
@RestController
|
@RequestMapping("/coupon-info")
|
public class CouponInfoController {
|
@Resource
|
private CouponInfoService couponInfoService;
|
//查看详情
|
@PostMapping("/detail")
|
@ApiOperation(value = "详情", tags = {"后台-优惠劵"})
|
public R<CouponInfo> detail(@RequestParam("id") Integer id){
|
CouponInfo byId = couponInfoService.getById(id);
|
return R.ok(byId);
|
}
|
|
}
|