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()); + } + }