~
This commit is contained in:
24
mjkf-xinke-plugin-api/mjkf-xinke-plugin-sys-api/pom.xml
Normal file
24
mjkf-xinke-plugin-api/mjkf-xinke-plugin-sys-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-sys-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,27 @@
|
||||
|
||||
package mjkf.xinke.sys.api;
|
||||
|
||||
/**
|
||||
* 系统模块综合API
|
||||
*
|
||||
*
|
||||
* @date 2022/9/26 14:24
|
||||
**/
|
||||
public interface SysApi {
|
||||
|
||||
/**
|
||||
* 初始化ID类型的租户系统模块数据
|
||||
*
|
||||
*
|
||||
* @date 2022/9/26 14:25
|
||||
**/
|
||||
void initTenDataForCategoryId(String tenId, String tenName);
|
||||
|
||||
/**
|
||||
* 删除ID类型的租户系统模块数据
|
||||
*
|
||||
*
|
||||
* @date 2022/9/26 14:25
|
||||
**/
|
||||
void removeTenDataForCategoryId(String tenId);
|
||||
}
|
@@ -0,0 +1,19 @@
|
||||
|
||||
package mjkf.xinke.sys.api;
|
||||
|
||||
/**
|
||||
* 按钮API
|
||||
*
|
||||
*
|
||||
* @date 2022/11/1 13:45
|
||||
**/
|
||||
public interface SysButtonApi {
|
||||
|
||||
/**
|
||||
* 代码生成按钮插入
|
||||
*
|
||||
*
|
||||
* @date 2022/11/1 13:48
|
||||
**/
|
||||
void addForGenButton(String menuId, String className, String functionName);
|
||||
}
|
@@ -0,0 +1,19 @@
|
||||
|
||||
package mjkf.xinke.sys.api;
|
||||
|
||||
/**
|
||||
* 菜单API
|
||||
*
|
||||
*
|
||||
* @date 2022/11/1 13:44
|
||||
**/
|
||||
public interface SysMenuApi {
|
||||
|
||||
/**
|
||||
* 代码生成菜单插入
|
||||
*
|
||||
*
|
||||
* @date 2022/11/1 13:48
|
||||
**/
|
||||
String addForGenMenu(String parentId, String busName, String module, String title, String path);
|
||||
}
|
@@ -0,0 +1,49 @@
|
||||
|
||||
package mjkf.xinke.sys.api;
|
||||
|
||||
import cn.hutool.core.lang.tree.Tree;
|
||||
import cn.hutool.json.JSONObject;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 组织API
|
||||
*
|
||||
*
|
||||
* @date 2022/6/6 11:35
|
||||
**/
|
||||
public interface SysOrgApi {
|
||||
|
||||
/**
|
||||
* 根据id获取名称
|
||||
*
|
||||
*
|
||||
* @date 2022/8/4 10:12
|
||||
**/
|
||||
String getNameById(String orgId);
|
||||
|
||||
/**
|
||||
* 根据组织id获取部门主管id
|
||||
*
|
||||
*
|
||||
* @date 2022/6/6 14:50
|
||||
**/
|
||||
String getSupervisorIdByOrgId(String orgId);
|
||||
|
||||
/**
|
||||
* 获取组织树选择器
|
||||
*
|
||||
*
|
||||
* @date 2022/7/22 14:46
|
||||
**/
|
||||
List<Tree<String>> orgTreeSelector();
|
||||
|
||||
/**
|
||||
* 获取组织列表选择器
|
||||
*
|
||||
*
|
||||
* @date 2022/7/22 14:45
|
||||
**/
|
||||
Page<JSONObject> orgListSelector(String parentId);
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
|
||||
package mjkf.xinke.sys.api;
|
||||
|
||||
import cn.hutool.json.JSONObject;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 职位API
|
||||
*
|
||||
*
|
||||
* @date 2022/6/6 11:35
|
||||
**/
|
||||
public interface SysPositionApi {
|
||||
|
||||
/**
|
||||
* 根据id获取名称
|
||||
*
|
||||
*
|
||||
* @date 2022/8/4 10:13
|
||||
**/
|
||||
String getNameById(String positionId);
|
||||
|
||||
/**
|
||||
* 获取职位选择器
|
||||
*
|
||||
*
|
||||
* @date 2022/7/22 14:47
|
||||
**/
|
||||
Page<JSONObject> positionSelector(String orgId, String searchKey);
|
||||
}
|
@@ -0,0 +1,37 @@
|
||||
|
||||
package mjkf.xinke.sys.api;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 关系API
|
||||
*
|
||||
*
|
||||
* @date 2022/6/6 11:41
|
||||
**/
|
||||
public interface SysRelationApi {
|
||||
|
||||
/**
|
||||
* 根据角色id集合获取角色下用户id集合
|
||||
*
|
||||
*
|
||||
* @date 2022/6/6 11:43
|
||||
**/
|
||||
List<String> getUserIdListByRoleIdList(List<String> roleIdList);
|
||||
|
||||
/**
|
||||
* 根据移动端菜单Id集合移除角色和移动端菜单关系
|
||||
*
|
||||
*
|
||||
* @date 2023/1/31 9:54
|
||||
**/
|
||||
void removeRoleHasMobileMenuRelation(List<String> targetIdList);
|
||||
|
||||
/**
|
||||
* 清除对应的角色与移动端菜单信息中的【授权的移动端按钮信息】
|
||||
*
|
||||
*
|
||||
* @date 2023/1/31 9:54
|
||||
**/
|
||||
void removeRoleHasMobileButtonRelation(List<String> targetIdList, List<String> buttonIdList);
|
||||
}
|
@@ -0,0 +1,40 @@
|
||||
|
||||
package mjkf.xinke.sys.api;
|
||||
|
||||
import cn.hutool.json.JSONObject;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 角色API
|
||||
*
|
||||
*
|
||||
* @date 2022/6/6 11:36
|
||||
**/
|
||||
public interface SysRoleApi {
|
||||
|
||||
/**
|
||||
* 判断组织下是否存在角色
|
||||
*
|
||||
*
|
||||
* @date 2022/8/2 11:16
|
||||
*/
|
||||
boolean orgHasRole(List<String> orgIdList);
|
||||
|
||||
/**
|
||||
* 获取角色选择器
|
||||
*
|
||||
*
|
||||
* @date 2022/7/22 14:49
|
||||
**/
|
||||
Page<JSONObject> roleSelector(String orgId, String category, String searchKey, List<String> dataScopeList, boolean excludeSuperAdmin);
|
||||
|
||||
/**
|
||||
* 代码生成菜单按钮授权
|
||||
*
|
||||
*
|
||||
* @date 2022/11/1 15:58
|
||||
**/
|
||||
void grantForGenMenuAndButton(String menuId);
|
||||
}
|
@@ -0,0 +1,104 @@
|
||||
|
||||
package mjkf.xinke.sys.api;
|
||||
|
||||
import cn.hutool.json.JSONObject;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户Api
|
||||
*
|
||||
*
|
||||
* @date 2022/6/6 11:33
|
||||
**/
|
||||
public interface SysUserApi {
|
||||
|
||||
/**
|
||||
* 根据用户id获取用户对象,没有则返回null
|
||||
*
|
||||
*
|
||||
* @date 2022/6/20 18:19
|
||||
**/
|
||||
JSONObject getUserByIdWithoutException(String userId);
|
||||
|
||||
/**
|
||||
* 根据用户id获取用户对象列表,没有的则为空,都没有则返回空集合
|
||||
*
|
||||
*
|
||||
* @date 2022/6/20 18:19
|
||||
**/
|
||||
List<JSONObject> getUserListByIdListWithoutException(List<String> userIdList);
|
||||
|
||||
/**
|
||||
* 根据用户id获取用户对象,没有则抛出异常
|
||||
*
|
||||
*
|
||||
* @date 2022/6/20 18:19
|
||||
**/
|
||||
JSONObject getUserByIdWithException(String userId);
|
||||
|
||||
/**
|
||||
* 根据用户id获取用户对象列表,只要有一个没有则抛出异常
|
||||
*
|
||||
*
|
||||
* @date 2022/6/20 18:19
|
||||
**/
|
||||
List<JSONObject> getUserListByIdWithException(List<String> userIdList);
|
||||
|
||||
/**
|
||||
* 获取用户拥有角色
|
||||
*
|
||||
*
|
||||
* @date 2022/5/13 21:00
|
||||
*/
|
||||
List<String> ownRole(String userId);
|
||||
|
||||
/**
|
||||
* 给用户授权角色
|
||||
*
|
||||
*
|
||||
* @date 2022/8/1 18:28
|
||||
*/
|
||||
void grantRole(String userId, List<String> roleIdList);
|
||||
|
||||
/**
|
||||
* 根据组织id集合获取组织下用户id集合
|
||||
*
|
||||
*
|
||||
* @date 2022/6/6 11:40
|
||||
**/
|
||||
List<String> getUserIdListByOrgIdList(List<String> orgIdList);
|
||||
|
||||
/**
|
||||
* 根据职位id集合获取职位下用户id集合
|
||||
*
|
||||
*
|
||||
* @date 2022/6/6 11:44
|
||||
**/
|
||||
List<String> getUserIdListByPositionIdList(List<String> positionIdList);
|
||||
|
||||
/**
|
||||
* 根据用户id和组织id和职位id和主管层级获取上级主管id
|
||||
*
|
||||
*
|
||||
* @date 2022/6/6 14:50
|
||||
**/
|
||||
JSONObject getSupervisorIdBySupervisorLevel(List<String> userIdList, String userId, String orgId, String supervisorLevel);
|
||||
|
||||
/**
|
||||
* 根据用户id和组织id和职位id和终点主管层级获取上级主管id集合
|
||||
*
|
||||
*
|
||||
* @date 2022/6/6 14:50
|
||||
**/
|
||||
List<String> getMulSupervisorIdListByEndLevel(String userId, String orgId, String endLevel);
|
||||
|
||||
/**
|
||||
* 获取用户选择器
|
||||
*
|
||||
*
|
||||
* @date 2022/4/24 20:08
|
||||
*/
|
||||
Page<JSONObject> userSelector(String orgId, String searchKey);
|
||||
}
|
Reference in New Issue
Block a user