From b5c761b8102382da4fccdd1b5f4f293a326734fd Mon Sep 17 00:00:00 2001 From: wanggeng <450292408@qq.com> Date: Mon, 21 Mar 2022 11:26:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0APP=E7=9A=84Token=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../properties/app/AppTokenProperties.java | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 basic-properties/src/main/java/ink/wgink/properties/app/AppTokenProperties.java diff --git a/basic-properties/src/main/java/ink/wgink/properties/app/AppTokenProperties.java b/basic-properties/src/main/java/ink/wgink/properties/app/AppTokenProperties.java new file mode 100644 index 00000000..444bf6ea --- /dev/null +++ b/basic-properties/src/main/java/ink/wgink/properties/app/AppTokenProperties.java @@ -0,0 +1,53 @@ +package ink.wgink.properties.app; + +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.stereotype.Component; + +/** + * @ClassName: TokenProperties + * @Description: token配置 + * @Author: wanggeng + * @Date: 2022/3/21 11:15 + * @Version: 1.0 + */ +@Component +@ConfigurationProperties(prefix = "app-token") +public class AppTokenProperties { + + private Boolean hasDepartment; + private Boolean hasRole; + private Boolean hasPosition; + private Boolean hasGroup; + + public Boolean getHasDepartment() { + return hasDepartment == null ? false : hasDepartment; + } + + public void setHasDepartment(Boolean hasDepartment) { + this.hasDepartment = hasDepartment; + } + + public Boolean getHasRole() { + return hasRole == null ? false : hasRole; + } + + public void setHasRole(Boolean hasRole) { + this.hasRole = hasRole; + } + + public Boolean getHasPosition() { + return hasPosition == null ? false : hasPosition; + } + + public void setHasPosition(Boolean hasPosition) { + this.hasPosition = hasPosition; + } + + public Boolean getHasGroup() { + return hasGroup == null ? false : hasGroup; + } + + public void setHasGroup(Boolean hasGroup) { + this.hasGroup = hasGroup; + } +}