| | |
| | | package com.ruoyi.other.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.web.controller.BaseController; |
| | | import com.ruoyi.other.api.domain.VipGood; |
| | | import com.ruoyi.other.service.VipGoodService; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | 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; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/vip-good") |
| | | public class VipGoodController { |
| | | public class VipGoodController extends BaseController { |
| | | @Resource |
| | | private VipGoodService vipGoodService; |
| | | |
| | | @GetMapping("getVipGoodsByVipId") |
| | | public R<List<VipGood>> getVipGoodsByVipId(@RequestParam("vipId") Integer vipId){ |
| | | return R.ok(vipGoodService.list(new LambdaQueryWrapper<VipGood>() |
| | | .eq(VipGood::getVipId, vipId))); |
| | | } |
| | | } |
| | | |