From 69ec58dcea0da2fa8ba2c9e06fd53e0c1b9d4875 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Mon, 11 Mar 2024 14:55:55 +0800 Subject: [PATCH] fix --- src/main/java/cc/mrbird/febs/vip/controller/AdminMallVipBenefitsController.java | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/vip/controller/AdminMallVipBenefitsController.java b/src/main/java/cc/mrbird/febs/vip/controller/AdminMallVipBenefitsController.java index 42e8107..c4fa3ad 100644 --- a/src/main/java/cc/mrbird/febs/vip/controller/AdminMallVipBenefitsController.java +++ b/src/main/java/cc/mrbird/febs/vip/controller/AdminMallVipBenefitsController.java @@ -56,4 +56,10 @@ public FebsResponse findAllBenefits() { return new FebsResponse().success().data(mallVipBenefitsService.list()); } + + @PostMapping(value = "/switchBenefitsShow/{id}") + public FebsResponse switchBenefitsShow(@PathVariable("id") Long id) { + mallVipBenefitsService.switchBenefitsShow(id); + return new FebsResponse().success().data("设置成功"); + } } -- Gitblit v1.9.1