提交更新

This commit is contained in:
磷叶 2025-01-19 16:40:13 +08:00
parent 0ca8a9f9db
commit 907018ca9f

View File

@ -0,0 +1,33 @@
package com.ruoyi.web.controller.app;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.ss.vip.domain.VipQuery;
import com.ruoyi.ss.vip.domain.VipVO;
import com.ruoyi.ss.vip.service.VipService;
import io.swagger.annotations.ApiOperation;
@RestController
@RequestMapping("/app/vip")
public class AppVipController extends BaseController {
@Autowired
private VipService vipService;
@ApiOperation("查询本人会员列表")
@GetMapping("/list")
public TableDataInfo list(VipQuery query) {
startPage();
query.setUserId(getUserId());
List<VipVO> list = vipService.selectVipList(query);
return getDataTable(list);
}
}