~
This commit is contained in:
24
mjkf-xinke-plugin-api/mjkf-xinke-plugin-ten-api/pom.xml
Normal file
24
mjkf-xinke-plugin-api/mjkf-xinke-plugin-ten-api/pom.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>mjkf.xinke</groupId>
|
||||
<artifactId>mjkf-xinke-plugin-api</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>mjkf-xinke-plugin-ten-api</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<description>动态租户插件api接口</description>
|
||||
|
||||
<dependencies>
|
||||
<!-- 每个插件接口都要引入common -->
|
||||
<dependency>
|
||||
<groupId>mjkf.xinke</groupId>
|
||||
<artifactId>mjkf-xinke-common</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -0,0 +1,51 @@
|
||||
|
||||
package mjkf.xinke.ten.api;
|
||||
|
||||
/**
|
||||
* 多租户API接口
|
||||
*
|
||||
*
|
||||
* @date 2022/3/10 18:54
|
||||
**/
|
||||
public interface TenApi {
|
||||
|
||||
/**
|
||||
* 获取是否开启多租户
|
||||
*
|
||||
*
|
||||
* @date 2022/7/19 18:34
|
||||
**/
|
||||
boolean getTenEnabled();
|
||||
|
||||
/**
|
||||
* 获取租户id隔离的租户模式下,租户字段名称
|
||||
*
|
||||
*
|
||||
* @date 2022/7/20 18:10
|
||||
**/
|
||||
String getDefaultTenColumnName();
|
||||
|
||||
/**
|
||||
* 获取默认租户id
|
||||
*
|
||||
*
|
||||
* @date 2022/7/19 19:30
|
||||
**/
|
||||
String getDefaultTenId();
|
||||
|
||||
/**
|
||||
* 获取当前的租户id
|
||||
*
|
||||
*
|
||||
* @date 2022/6/14 15:04
|
||||
**/
|
||||
String getCurrentTenId();
|
||||
|
||||
/**
|
||||
* 获取当前的租户域名
|
||||
*
|
||||
*
|
||||
* @date 2022/6/14 15:04
|
||||
**/
|
||||
String getCurrentTenDomain();
|
||||
}
|
||||
Reference in New Issue
Block a user