| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | |
| | | //获取抽奖类型优惠券列表 |
| | | @RequestMapping(value = "/getLotteryEventCouponList", method = RequestMethod.POST) |
| | | @ApiOperation(value = "平台获取抽奖类型优惠券列表【2.0】") |
| | | public R<List<LotteryEventCouponListVO>> getLotteryEventCouponList() { |
| | | return R.ok( couponService.getLotteryEventCouponList()); |
| | | public R<List<LotteryEventCouponListVO>> getLotteryEventCouponList(@RequestParam(value = "shopId",required = false) Long shopId) { |
| | | return R.ok( couponService.getLotteryEventCouponList(shopId)); |
| | | } |
| | | |
| | | } |