From 907018ca9f2f9341323ce85aeb9055b554a59c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A3=B7=E5=8F=B6?= <14103883+leaf-phos@user.noreply.gitee.com> Date: Sun, 19 Jan 2025 16:40:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/app/AppVipController.java | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 smart-switch-web/src/main/java/com/ruoyi/web/controller/app/AppVipController.java diff --git a/smart-switch-web/src/main/java/com/ruoyi/web/controller/app/AppVipController.java b/smart-switch-web/src/main/java/com/ruoyi/web/controller/app/AppVipController.java new file mode 100644 index 00000000..8ea4c074 --- /dev/null +++ b/smart-switch-web/src/main/java/com/ruoyi/web/controller/app/AppVipController.java @@ -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 list = vipService.selectVipList(query); + return getDataTable(list); + } +} \ No newline at end of file