| | |
| | | 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 org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | |
| | | @Resource |
| | | private VipGoodService vipGoodService; |
| | | |
| | | @GetMapping("getVipGoodsByVipId") |
| | | @PostMapping("getVipGoodsByVipId") |
| | | public R<List<VipGood>> getVipGoodsByVipId(@RequestParam("vipId") Integer vipId){ |
| | | return R.ok(vipGoodService.list(new LambdaQueryWrapper<VipGood>() |
| | | .eq(VipGood::getVipId, vipId))); |