mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 01:28:24 +08:00
feat: add mybatis-flex-admin properties.
This commit is contained in:
parent
f0c8f1544e
commit
9e9106cf8c
@ -60,6 +60,11 @@ public class MybatisFlexProperties {
|
|||||||
*/
|
*/
|
||||||
private GlobalConfig globalConfig;
|
private GlobalConfig globalConfig;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MyBatis-Flex-Admin 配置。
|
||||||
|
*/
|
||||||
|
private AdminConfig adminConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Location of MyBatis xml config file.
|
* Location of MyBatis xml config file.
|
||||||
*/
|
*/
|
||||||
@ -128,6 +133,14 @@ public class MybatisFlexProperties {
|
|||||||
this.globalConfig = globalConfig;
|
this.globalConfig = globalConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public AdminConfig getAdminConfig() {
|
||||||
|
return adminConfig;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAdminConfig(AdminConfig adminConfig) {
|
||||||
|
this.adminConfig = adminConfig;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 1.1.0
|
* @since 1.1.0
|
||||||
*/
|
*/
|
||||||
@ -793,4 +806,52 @@ public class MybatisFlexProperties {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MyBatis Flex Admin 配置。
|
||||||
|
*
|
||||||
|
* @author 王帅
|
||||||
|
* @since 2023-07-02
|
||||||
|
*/
|
||||||
|
public static class AdminConfig {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 启用服务。
|
||||||
|
*/
|
||||||
|
private boolean enable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 连接端点。
|
||||||
|
*/
|
||||||
|
private String endpoint;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秘密密钥。
|
||||||
|
*/
|
||||||
|
private String secretKey;
|
||||||
|
|
||||||
|
public boolean isEnable() {
|
||||||
|
return enable;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEnable(boolean enable) {
|
||||||
|
this.enable = enable;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEndpoint() {
|
||||||
|
return endpoint;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEndpoint(String endpoint) {
|
||||||
|
this.endpoint = endpoint;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSecretKey() {
|
||||||
|
return secretKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSecretKey(String secretKey) {
|
||||||
|
this.secretKey = secretKey;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user