package com.hotent.sdk.properties; import org.springframework.boot.context.properties.ConfigurationProperties; /** * 应用配置信息 * * @author liangjc * @company 广州宏天软件股份有限公司 * @email liangjc@jee-soft.cn * @date 2023-07-18 13:54 */ @ConfigurationProperties("app") public class AppProperty { /** * 外部应用 code */ private String sysCode; /** * 系统密匙,用于鉴权 */ private String secretKey; /** * 鉴权地址 */ private String authAddress; /** * 服务信息配置 */ private String serverAddress; /** * openApi路径前缀 */ private String apiPrefix = "openApi"; public String getSysCode() { return sysCode; } public void setSysCode(String sysCode) { this.sysCode = sysCode; } public String getSecretKey() { return secretKey; } public void setSecretKey(String secretKey) { this.secretKey = secretKey; } public String getAuthAddress() { return authAddress; } public void setAuthAddress(String authAddress) { this.authAddress = authAddress; } public String getServerAddress() { return serverAddress; } public void setServerAddress(String serverAddress) { this.serverAddress = serverAddress; } public String getApiPrefix() { return apiPrefix; } public void setApiPrefix(String apiPrefix) { this.apiPrefix = apiPrefix; } public String getRequestUrl(String api) { return this.getServerAddress() + "/" + this.getApiPrefix() + api; } }