From ea6647d422497800febf83d679a0c4ea02ff3f66 Mon Sep 17 00:00:00 2001 From: huangyw <1207046171@qq.com> Date: Fri, 25 Oct 2024 14:58:48 +0800 Subject: [PATCH] =?UTF-8?q?release:=20=20=E8=8E=B7=E5=8F=96=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E6=98=BE=E7=A4=BA=E4=B8=93=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- luoo_user/src/main/java/com/luoo/user/config/EnvConfig.java | 3 +++ .../main/java/com/luoo/user/controller/LoginController.java | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/luoo_user/src/main/java/com/luoo/user/config/EnvConfig.java b/luoo_user/src/main/java/com/luoo/user/config/EnvConfig.java index 7bfff33..3d6ffd1 100644 --- a/luoo_user/src/main/java/com/luoo/user/config/EnvConfig.java +++ b/luoo_user/src/main/java/com/luoo/user/config/EnvConfig.java @@ -26,4 +26,7 @@ public class EnvConfig { @ApiModelProperty(value = "永久会员积分抽奖折扣") private Float permanentMemberDiscount; + @ApiModelProperty(value = "是否显示专栏 1-显示 2-不显示") + private Integer showColumnFlag; + } diff --git a/luoo_user/src/main/java/com/luoo/user/controller/LoginController.java b/luoo_user/src/main/java/com/luoo/user/controller/LoginController.java index e8079be..8f8a665 100644 --- a/luoo_user/src/main/java/com/luoo/user/controller/LoginController.java +++ b/luoo_user/src/main/java/com/luoo/user/controller/LoginController.java @@ -469,4 +469,10 @@ public class LoginController extends BaseController { } } + @ApiOperation(value = "获取是否显示专栏", notes = "1-显示 2-不显示") + @GetMapping("/showColumnFlag") + public Result showColumnFlag() { + return Result.success(envConfig.getShowColumnFlag()); + } + }