初始代码
This commit is contained in:
31
yunzhupaas-permission/yunzhupaas-permission-entity/pom.xml
Normal file
31
yunzhupaas-permission/yunzhupaas-permission-entity/pom.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?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">
|
||||
<parent>
|
||||
<artifactId>yunzhupaas-permission</artifactId>
|
||||
<groupId>com.yunzhupaas</groupId>
|
||||
<version>5.2.0-RELEASE</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>yunzhupaas-permission-entity</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.yunzhupaas</groupId>
|
||||
<artifactId>yunzhupaas-common-all</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.yunzhupaas</groupId>
|
||||
<artifactId>yunzhupaas-system-entity</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mybatis.dynamic-sql</groupId>
|
||||
<artifactId>mybatis-dynamic-sql</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,132 @@
|
||||
package com.yunzhupaas.permission.constant;
|
||||
|
||||
import com.yunzhupaas.model.ExcelColumnAttr;
|
||||
import org.apache.poi.ss.usermodel.IndexedColors;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class OrgColumnMap {
|
||||
|
||||
String excelName = "组织信息";
|
||||
/**
|
||||
* 全部字段
|
||||
*/
|
||||
private Map<String, String> allKeyMap = new LinkedHashMap() {{
|
||||
put("parentId", "所属组织");
|
||||
put("fullName", "名称");
|
||||
put("enCode", "编码");
|
||||
}};
|
||||
/**
|
||||
* 组织map
|
||||
*/
|
||||
private Map<String, String> orgMap = new LinkedHashMap() {{
|
||||
put("category", "类型");
|
||||
put("parentId", "上级公司");
|
||||
put("fullName", "公司名称");
|
||||
put("enCode", "公司编码");
|
||||
put("shortName", "公司简称");
|
||||
put("enterpriseNature", "公司性质");
|
||||
put("industry", "所属行业");
|
||||
put("foundedTime", "成立时间");
|
||||
put("telePhone", "公司电话");
|
||||
put("fax", "公司传真");
|
||||
put("webSite", "公司主页");
|
||||
put("address", "公司地址");
|
||||
put("managerName", "公司法人");
|
||||
put("managerTelePhone", "联系电话");
|
||||
put("managerMobilePhone", "联系手机");
|
||||
put("manageEmail", "联系邮箱");
|
||||
put("bankName", "开户银行");
|
||||
put("bankAccount", "银行账户");
|
||||
put("businessscope", "经营范围");
|
||||
put("managerId", "部门主管");
|
||||
put("sortCode", "排序");
|
||||
put("description", "说明");
|
||||
}};
|
||||
/**
|
||||
* 部门map
|
||||
*/
|
||||
private Map<String, String> depMap = new LinkedHashMap() {{
|
||||
put("category", "类型");
|
||||
put("parentId", "所属组织");
|
||||
put("fullName", "部门名称");
|
||||
put("enCode", "部门编码");
|
||||
put("managerId", "部门主管");
|
||||
put("sortCode", "排序");
|
||||
put("description", "说明");
|
||||
}};
|
||||
|
||||
/**
|
||||
* 根据类型获取excel表头字段
|
||||
*
|
||||
* @param type
|
||||
* @return
|
||||
*/
|
||||
public Map<String, String> getColumnByType(Integer type) {
|
||||
Map<String, String> map = new LinkedHashMap();
|
||||
switch (type) {
|
||||
case 2:
|
||||
map = new LinkedHashMap(depMap);
|
||||
break;
|
||||
case 1:
|
||||
map = new LinkedHashMap(orgMap);
|
||||
map.remove("managerId");
|
||||
break;
|
||||
default:
|
||||
map = new LinkedHashMap(orgMap);
|
||||
map.putAll(allKeyMap);
|
||||
break;
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
public String getExcelName() {
|
||||
return excelName;
|
||||
}
|
||||
|
||||
|
||||
public List<ExcelColumnAttr> getFieldsModel(boolean isError, Integer type) {
|
||||
List<ExcelColumnAttr> models = new ArrayList<>();
|
||||
//异常原因
|
||||
if (isError) {
|
||||
ExcelColumnAttr attr = new ExcelColumnAttr().builder()
|
||||
.key("errorsInfo")
|
||||
.name("异常原因")
|
||||
.build();
|
||||
models.add(attr);
|
||||
}
|
||||
List<String> requirelist = Arrays.asList("category", "fullName", "enCode");
|
||||
// 遍历添加属性
|
||||
Map<String, String> keyMap = getColumnByType(type);
|
||||
|
||||
for (String key : keyMap.keySet()) {
|
||||
ExcelColumnAttr attr = ExcelColumnAttr.builder()
|
||||
.key(key)
|
||||
.name(keyMap.get(key))
|
||||
.build();
|
||||
if (requirelist.contains(key)) {
|
||||
attr.setRequire(true);
|
||||
attr.setFontColor(IndexedColors.RED.getIndex());
|
||||
}
|
||||
models.add(attr);
|
||||
}
|
||||
return models;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取默认值
|
||||
*/
|
||||
public List<Map<String, Object>> getDefaultList() {
|
||||
Map<String, Object> orgMapDemo = new HashMap<>();
|
||||
orgMapDemo.put("fullName", "公司名称/公司名称1");
|
||||
orgMapDemo.put("foundedTime", "yyy-MM-dd");
|
||||
Map<String, Object> depMapDemo = new HashMap<>();
|
||||
depMapDemo.put("fullName", "公司名称/公司名称1/部门名称");
|
||||
depMapDemo.put("managerId", "姓名/账号");
|
||||
List<Map<String, Object>> list = new ArrayList<>();
|
||||
list.add(orgMapDemo);
|
||||
list.add(depMapDemo);
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
package com.yunzhupaas.permission.constant;
|
||||
|
||||
import com.yunzhupaas.model.ExcelColumnAttr;
|
||||
import org.apache.poi.ss.usermodel.IndexedColors;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class PosColumnMap {
|
||||
|
||||
String excelName = "岗位信息";
|
||||
|
||||
Map<String, String> keyMap = new LinkedHashMap() {{
|
||||
put("organizeId", "所属组织");
|
||||
put("fullName", "岗位名称");
|
||||
put("enCode", "岗位编码");
|
||||
put("type", "岗位类型");
|
||||
put("enabledMark", "状态");
|
||||
put("sortCode", "排序");
|
||||
put("description", "说明");
|
||||
}};
|
||||
|
||||
/**
|
||||
* 表格名称
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getExcelName() {
|
||||
return excelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据类型获取excel表头字段
|
||||
*
|
||||
* @param type
|
||||
* @return
|
||||
*/
|
||||
public Map<String, String> getColumnByType(Integer type) {
|
||||
return keyMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取字段列表
|
||||
*
|
||||
* @param isError
|
||||
* @return
|
||||
*/
|
||||
public List<ExcelColumnAttr> getFieldsModel(boolean isError) {
|
||||
List<ExcelColumnAttr> models = new ArrayList<>();
|
||||
//异常原因
|
||||
if (isError) {
|
||||
ExcelColumnAttr attr = ExcelColumnAttr.builder().key("errorsInfo").name("异常原因").build();
|
||||
models.add(attr);
|
||||
}
|
||||
List<String> requireFields = Arrays.asList("organizeId", "fullName", "enCode", "type", "enabledMark");
|
||||
for (String key : keyMap.keySet()) {
|
||||
ExcelColumnAttr attr = ExcelColumnAttr.builder().key(key).name(keyMap.get(key)).build();
|
||||
if (requireFields.contains(key)) {
|
||||
attr.setRequire(true);
|
||||
attr.setFontColor(IndexedColors.RED.getIndex());
|
||||
}
|
||||
models.add(attr);
|
||||
}
|
||||
return models;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取默认值
|
||||
*/
|
||||
public List<Map<String, Object>> getDefaultList() {
|
||||
List<Map<String, Object>> list = new ArrayList<>();
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
//所属组织
|
||||
map.put("organizeId", "公司名称/公司名称1/部门名称");
|
||||
list.add(map);
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
package com.yunzhupaas.permission.constant;
|
||||
|
||||
import com.yunzhupaas.model.ExcelColumnAttr;
|
||||
import org.apache.poi.ss.usermodel.IndexedColors;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class RoleColumnMap {
|
||||
|
||||
String excelName = "角色信息";
|
||||
|
||||
Map<String, String> keyMap = new LinkedHashMap() {{
|
||||
put("fullName", "角色名称");
|
||||
put("enCode", "角色编码");
|
||||
put("globalMark", "角色类型");
|
||||
put("organizeId", "所属组织");
|
||||
put("enabledMark", "状态");
|
||||
put("sortCode", "排序");
|
||||
put("description", "说明");
|
||||
}};
|
||||
|
||||
/**
|
||||
* 表格名称
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getExcelName() {
|
||||
return excelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据类型获取excel表头字段
|
||||
*
|
||||
* @param type
|
||||
* @return
|
||||
*/
|
||||
public Map<String, String> getColumnByType(Integer type) {
|
||||
return keyMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取字段列表
|
||||
*
|
||||
* @param isError
|
||||
* @return
|
||||
*/
|
||||
public List<ExcelColumnAttr> getFieldsModel(boolean isError) {
|
||||
List<ExcelColumnAttr> models = new ArrayList<>();
|
||||
//异常原因
|
||||
if (isError) {
|
||||
ExcelColumnAttr attr = ExcelColumnAttr.builder().key("errorsInfo").name("异常原因").build();
|
||||
models.add(attr);
|
||||
}
|
||||
List<String> requireFields = Arrays.asList("fullName", "enCode", "globalMark", "enabledMark");
|
||||
for (String key : keyMap.keySet()) {
|
||||
ExcelColumnAttr attr = ExcelColumnAttr.builder().key(key).name(keyMap.get(key)).build();
|
||||
if (requireFields.contains(key)) {
|
||||
attr.setRequire(true);
|
||||
attr.setFontColor(IndexedColors.RED.getIndex());
|
||||
}
|
||||
models.add(attr);
|
||||
}
|
||||
return models;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取默认值
|
||||
*/
|
||||
public List<Map<String, Object>> getDefaultList() {
|
||||
List<Map<String, Object>> list = new ArrayList<>();
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("organizeId", "公司名称/公司名称1/部门名称");
|
||||
list.add(map);
|
||||
return list;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
package com.yunzhupaas.permission.constant;
|
||||
|
||||
import com.yunzhupaas.model.ExcelColumnAttr;
|
||||
import org.apache.poi.ss.usermodel.IndexedColors;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class UserColumnMap {
|
||||
|
||||
String excelName = "用户信息";
|
||||
|
||||
Map<String, String> keyMap = new LinkedHashMap() {{
|
||||
put("account", "账户");
|
||||
put("realName", "姓名");
|
||||
put("gender", "性别");
|
||||
put("email", "电子邮箱");
|
||||
put("organizeId", "所属组织");
|
||||
put("managerId", "直属主管");
|
||||
put("positionId", "岗位");
|
||||
put("ranks", "职级");
|
||||
put("roleId", "角色");
|
||||
put("nation", "民族");
|
||||
put("nativePlace", "籍贯");
|
||||
put("entryDate", "入职时间");
|
||||
put("certificatesType", "证件类型");
|
||||
put("certificatesNumber", "证件号码");
|
||||
put("education", "文化程度");
|
||||
put("birthday", "出生年月");
|
||||
put("telePhone", "办公电话");
|
||||
put("landline", "办公座机");
|
||||
put("mobilePhone", "手机号码");
|
||||
put("urgentContacts", "紧急联系");
|
||||
put("urgentTelePhone", "紧急电话");
|
||||
put("postalAddress", "通讯地址");
|
||||
|
||||
put("enabledMark", "状态");
|
||||
put("sortCode", "排序");
|
||||
put("description", "说明");
|
||||
}};
|
||||
|
||||
/**
|
||||
* 表格名称
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getExcelName() {
|
||||
return excelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据类型获取excel表头字段
|
||||
*
|
||||
* @param type
|
||||
* @return
|
||||
*/
|
||||
public Map<String, String> getColumnByType(Integer type) {
|
||||
return keyMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取字段列表
|
||||
*
|
||||
* @param isError
|
||||
* @return
|
||||
*/
|
||||
public List<ExcelColumnAttr> getFieldsModel(boolean isError) {
|
||||
List<ExcelColumnAttr> models = new ArrayList<>();
|
||||
//异常原因
|
||||
if (isError) {
|
||||
ExcelColumnAttr attr = ExcelColumnAttr.builder().key("errorsInfo").name("异常原因").build();
|
||||
models.add(attr);
|
||||
}
|
||||
List<String> requireFields = Arrays.asList("account", "realName", "gender", "organizeId", "enabledMark");
|
||||
for (String key : keyMap.keySet()) {
|
||||
ExcelColumnAttr attr = ExcelColumnAttr.builder().key(key).name(keyMap.get(key)).build();
|
||||
if (requireFields.contains(key)) {
|
||||
attr.setRequire(true);
|
||||
attr.setFontColor(IndexedColors.RED.getIndex());
|
||||
}
|
||||
models.add(attr);
|
||||
}
|
||||
return models;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取默认值
|
||||
*/
|
||||
public List<Map<String, Object>> getDefaultList() {
|
||||
List<Map<String, Object>> list = new ArrayList<>();
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("organizeId", "公司名称/公司名称1/部门名称,公司名称/公司名称1/部门名称1");
|
||||
map.put("managerId", "姓名/账号");
|
||||
map.put("positionId", "岗位名称/岗位编码,岗位名称1/岗位编码1");
|
||||
map.put("roleId", "角色名称/角色编码,角色名称1/角色编码1");
|
||||
map.put("entryDate", "yyyy-MM-dd");
|
||||
map.put("birthday", "yyyy-MM-dd");
|
||||
list.add(map);
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.yunzhupaas.permission.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.yunzhupaas.base.entity.SuperExtendEntity;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 操作权限
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright YUNZHUPAAS信息技AuthorizeController术有限公司
|
||||
* @date 2024-09-26 上午9:18
|
||||
*/
|
||||
@Data
|
||||
@TableName("base_authorize")
|
||||
public class AuthorizeEntity extends SuperExtendEntity<String> {
|
||||
|
||||
/**
|
||||
* 项目类型
|
||||
*/
|
||||
@TableField("f_item_type")
|
||||
private String itemType;
|
||||
|
||||
/**
|
||||
* 项目主键
|
||||
*/
|
||||
@TableField("f_item_id")
|
||||
private String itemId;
|
||||
|
||||
/**
|
||||
* 对象类型
|
||||
*/
|
||||
@TableField("f_object_type")
|
||||
private String objectType;
|
||||
|
||||
/**
|
||||
* 对象主键
|
||||
*/
|
||||
@TableField("f_object_id")
|
||||
private String objectId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.yunzhupaas.permission.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.yunzhupaas.base.entity.SuperExtendEntity;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 模块列表权限
|
||||
*
|
||||
* @author :云筑产品开发平台组
|
||||
* @version: V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date :2022/3/15 9:20
|
||||
*/
|
||||
@Data
|
||||
@TableName("base_columns_purview")
|
||||
public class ColumnsPurviewEntity extends SuperExtendEntity.SuperExtendEnabledEntity<String> {
|
||||
|
||||
/**
|
||||
* 列表字段数组
|
||||
*/
|
||||
@TableField("f_field_list")
|
||||
private String fieldList;
|
||||
/**
|
||||
* 模块ID
|
||||
*/
|
||||
@TableField("f_module_id")
|
||||
private String moduleId;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.yunzhupaas.permission.entity;
|
||||
|
||||
import com.yunzhupaas.base.entity.SuperExtendEntity;
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 分组管理
|
||||
*
|
||||
* @author :云筑产品开发平台组
|
||||
* @version: V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date :2022/3/10 17:53
|
||||
*/
|
||||
@Data
|
||||
@TableName("base_group")
|
||||
public class GroupEntity extends SuperExtendEntity.SuperExtendDEEntity<String> {
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@TableField("f_full_name")
|
||||
private String fullName;
|
||||
|
||||
/**
|
||||
* 编码
|
||||
*/
|
||||
@TableField("f_en_code")
|
||||
private String enCode;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
@TableField("f_category")
|
||||
private String type;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
package com.yunzhupaas.permission.entity;
|
||||
|
||||
import com.yunzhupaas.base.entity.SuperExtendEntity;
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
*
|
||||
* 机构分级管理员
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024-09-26 上午9:18
|
||||
*/
|
||||
@Data
|
||||
@TableName("base_organize_administrator")
|
||||
public class OrganizeAdministratorEntity extends SuperExtendEntity.SuperExtendDEEntity<String> {
|
||||
/**
|
||||
* 用户主键
|
||||
*/
|
||||
@TableField("F_USER_ID")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 机构主键
|
||||
*/
|
||||
@TableField("F_ORGANIZE_ID")
|
||||
private String organizeId;
|
||||
|
||||
/**
|
||||
* 机构类型
|
||||
*/
|
||||
@TableField("F_ORGANIZE_TYPE")
|
||||
private String organizeType;
|
||||
|
||||
/**
|
||||
* 本层添加
|
||||
*/
|
||||
@TableField("F_THIS_LAYER_ADD")
|
||||
private Integer thisLayerAdd;
|
||||
|
||||
/**
|
||||
* 本层编辑
|
||||
*/
|
||||
@TableField("F_THIS_LAYER_EDIT")
|
||||
private Integer thisLayerEdit;
|
||||
|
||||
/**
|
||||
* 本层删除
|
||||
*/
|
||||
@TableField("F_THIS_LAYER_DELETE")
|
||||
private Integer thisLayerDelete;
|
||||
|
||||
/**
|
||||
* 子层添加
|
||||
*/
|
||||
@TableField("F_SUB_LAYER_ADD")
|
||||
private Integer subLayerAdd;
|
||||
|
||||
/**
|
||||
* 子层编辑
|
||||
*/
|
||||
@TableField("F_SUB_LAYER_EDIT")
|
||||
private Integer subLayerEdit;
|
||||
|
||||
/**
|
||||
* 子层删除
|
||||
*/
|
||||
@TableField("F_SUB_LAYER_DELETE")
|
||||
private Integer subLayerDelete;
|
||||
|
||||
/**
|
||||
* 本层查看
|
||||
*/
|
||||
@TableField("F_THIS_LAYER_SELECT")
|
||||
private Integer thisLayerSelect;
|
||||
|
||||
/**
|
||||
* 子层查看
|
||||
*/
|
||||
@TableField("F_SUB_LAYER_SELECT")
|
||||
private Integer subLayerSelect;
|
||||
|
||||
/**
|
||||
* 管理组
|
||||
*/
|
||||
@TableField("F_MANAGER_GROUP")
|
||||
private String managerGroup;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.yunzhupaas.permission.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 组织机构
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024-09-26 上午9:18
|
||||
*/
|
||||
@Data
|
||||
@TableName("base_organize")
|
||||
public class OrganizeEntity extends PermissionEntityBase{
|
||||
/**
|
||||
* 机构上级
|
||||
*/
|
||||
@TableField("F_PARENT_ID")
|
||||
private String parentId;
|
||||
|
||||
/**
|
||||
* 机构分类
|
||||
*/
|
||||
@TableField("F_CATEGORY")
|
||||
private String category;
|
||||
|
||||
/**
|
||||
* 机构编号
|
||||
*/
|
||||
@TableField("F_EN_CODE")
|
||||
private String enCode;
|
||||
|
||||
/**
|
||||
* 机构名称
|
||||
*/
|
||||
@TableField("F_FULL_NAME")
|
||||
private String fullName;
|
||||
|
||||
/**
|
||||
* 机构主管
|
||||
*/
|
||||
@TableField("F_MANAGER_ID")
|
||||
private String managerId;
|
||||
|
||||
/**
|
||||
* 扩展属性
|
||||
*/
|
||||
@TableField("F_PROPERTY_JSON")
|
||||
private String propertyJson;
|
||||
|
||||
/**
|
||||
* 父级组织
|
||||
*/
|
||||
@TableField("F_ORGANIZE_ID_TREE")
|
||||
private String organizeIdTree;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.yunzhupaas.permission.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.yunzhupaas.base.entity.SuperExtendEntity;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 组织关系
|
||||
* </p>
|
||||
*
|
||||
* @author
|
||||
* @since 2022-01-19
|
||||
*/
|
||||
@Data
|
||||
@TableName("base_organize_relation")
|
||||
@Schema(description = "OrganizeRelation对象", name = "组织关系")
|
||||
public class OrganizeRelationEntity extends SuperExtendEntity<String> implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 组织主键
|
||||
*/
|
||||
@TableField("F_ORGANIZE_ID")
|
||||
private String organizeId;
|
||||
|
||||
/**
|
||||
* 对象类型(角色:role)
|
||||
*/
|
||||
@TableField("F_OBJECT_TYPE")
|
||||
private String objectType;
|
||||
|
||||
/**
|
||||
* 对象主键
|
||||
*/
|
||||
@TableField("F_OBJECT_ID")
|
||||
private String objectId;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.yunzhupaas.permission.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.yunzhupaas.base.entity.SuperExtendEntity;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 类功能
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.2.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/1/27
|
||||
*/
|
||||
@Data
|
||||
public class PermissionEntityBase extends SuperExtendEntity.SuperExtendDEEntity<String> {
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@TableField("f_full_name")
|
||||
private String fullName;
|
||||
|
||||
/**
|
||||
* 编码
|
||||
*/
|
||||
@TableField("f_en_code")
|
||||
private String enCode;
|
||||
|
||||
/**
|
||||
* 扩展属性
|
||||
*/
|
||||
@TableField("f_property_json")
|
||||
private String propertyJson;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.yunzhupaas.permission.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.yunzhupaas.base.entity.SuperExtendEntity;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@TableName("base_permission_group")
|
||||
public class PermissionGroupEntity extends SuperExtendEntity.SuperExtendDEEntity<String> {
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@TableField("f_full_name")
|
||||
private String fullName;
|
||||
|
||||
/**
|
||||
* 编码
|
||||
*/
|
||||
@TableField("F_en_code")
|
||||
private String enCode;
|
||||
|
||||
/**
|
||||
* 权限成员
|
||||
*/
|
||||
@TableField("F_permission_member")
|
||||
private String permissionMember;
|
||||
|
||||
/**
|
||||
* 权限类型 1.自定义 0.全部
|
||||
*/
|
||||
@TableField("F_type")
|
||||
private Integer type;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.yunzhupaas.permission.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 岗位信息
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024-09-26 上午9:18
|
||||
*/
|
||||
@Data
|
||||
@TableName("base_position")
|
||||
public class PositionEntity extends PermissionEntityBase{
|
||||
|
||||
/**
|
||||
* 岗位类型
|
||||
*/
|
||||
@TableField("F_TYPE")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 机构主键
|
||||
*/
|
||||
@TableField("F_ORGANIZE_ID")
|
||||
private String organizeId;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.yunzhupaas.permission.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 系统角色
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024-09-26 上午9:18
|
||||
*/
|
||||
@Data
|
||||
@TableName("base_role")
|
||||
public class RoleEntity extends PermissionEntityBase{
|
||||
|
||||
/**
|
||||
* 角色类型
|
||||
*/
|
||||
@TableField("F_TYPE")
|
||||
private String type;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 全局标识
|
||||
*/
|
||||
@TableField("F_GLOBAL_MARK")
|
||||
private Integer globalMark;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.yunzhupaas.permission.entity;
|
||||
|
||||
import com.yunzhupaas.base.entity.SuperEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 个人签名
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2023/09/28
|
||||
*/
|
||||
@Data
|
||||
@TableName("base_sign_img")
|
||||
public class SignEntity extends SuperEntity<String> {
|
||||
|
||||
/**
|
||||
* 签名图片
|
||||
*/
|
||||
@TableField("F_SIGN_IMG")
|
||||
private String signImg;
|
||||
|
||||
/**
|
||||
* 是否默认
|
||||
*/
|
||||
@TableField("F_IS_DEFAULT")
|
||||
private Integer isDefault;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.yunzhupaas.permission.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.yunzhupaas.base.entity.SuperExtendEntity;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 流程设计
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.4.2
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/7/14 9:28:32
|
||||
*/
|
||||
@Data
|
||||
@TableName("base_socials_users")
|
||||
public class SocialsUserEntity extends SuperExtendEntity<String> {
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@TableField("F_USER_ID")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 第三方类型
|
||||
*/
|
||||
@TableField("F_SOCIAL_TYPE")
|
||||
private String socialType;
|
||||
|
||||
/**
|
||||
* 第三方账号id
|
||||
*/
|
||||
@TableField("F_SOCIAL_ID")
|
||||
private String socialId;
|
||||
|
||||
/**
|
||||
* 第三方账号
|
||||
*/
|
||||
@TableField("F_SOCIAL_NAME")
|
||||
private String socialName;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,346 @@
|
||||
package com.yunzhupaas.permission.entity;
|
||||
|
||||
import com.yunzhupaas.base.entity.SuperExtendEntity;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 用户信息
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024-09-26 上午9:18
|
||||
*/
|
||||
@Data
|
||||
@TableName("base_user")
|
||||
public class UserEntity extends SuperExtendEntity.SuperExtendDEEntity<String> {
|
||||
/**
|
||||
* 账户
|
||||
*/
|
||||
@TableField("F_ACCOUNT")
|
||||
private String account;
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
*/
|
||||
@TableField("F_REAL_NAME")
|
||||
private String realName;
|
||||
|
||||
/**
|
||||
* 快速查询
|
||||
*/
|
||||
@TableField("F_QUICK_QUERY")
|
||||
private String quickQuery;
|
||||
|
||||
/**
|
||||
* 呢称
|
||||
*/
|
||||
@TableField("F_NICK_NAME")
|
||||
private String nickName;
|
||||
|
||||
/**
|
||||
* 头像
|
||||
*/
|
||||
@TableField("F_HEAD_ICON")
|
||||
private String headIcon;
|
||||
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
@TableField("F_GENDER")
|
||||
private String gender;
|
||||
|
||||
/**
|
||||
* 生日
|
||||
*/
|
||||
@TableField("F_BIRTHDAY")
|
||||
private Date birthday;
|
||||
|
||||
/**
|
||||
* 手机
|
||||
*/
|
||||
@TableField("F_MOBILE_PHONE")
|
||||
private String mobilePhone;
|
||||
|
||||
/**
|
||||
* 电话
|
||||
*/
|
||||
@TableField("F_TELE_PHONE")
|
||||
private String telePhone;
|
||||
|
||||
/**
|
||||
* 有效标志(0-禁用,1-启用)
|
||||
*/
|
||||
@TableField("F_ENABLED_MARK")
|
||||
private Integer enabledMark;
|
||||
|
||||
/**
|
||||
* F_Landline
|
||||
*/
|
||||
@TableField("F_LANDLINE")
|
||||
private String landline;
|
||||
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
@TableField("F_EMAIL")
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* 民族
|
||||
*/
|
||||
@TableField("F_NATION")
|
||||
private String nation;
|
||||
|
||||
/**
|
||||
* 籍贯
|
||||
*/
|
||||
@TableField("F_NATIVE_PLACE")
|
||||
private String nativePlace;
|
||||
|
||||
/**
|
||||
* 入职日期
|
||||
*/
|
||||
@TableField(value = "F_ENTRY_DATE")
|
||||
private Date entryDate;
|
||||
|
||||
/**
|
||||
* 证件类型
|
||||
*/
|
||||
@TableField("F_CERTIFICATES_TYPE")
|
||||
private String certificatesType;
|
||||
|
||||
/**
|
||||
* 证件号码
|
||||
*/
|
||||
@TableField("F_CERTIFICATES_NUMBER")
|
||||
private String certificatesNumber;
|
||||
|
||||
/**
|
||||
* 文化程度
|
||||
*/
|
||||
@TableField("F_EDUCATION")
|
||||
private String education;
|
||||
|
||||
/**
|
||||
* F_UrgentContacts
|
||||
*/
|
||||
@TableField("F_URGENT_CONTACTS")
|
||||
private String urgentContacts;
|
||||
|
||||
/**
|
||||
* 紧急电话
|
||||
*/
|
||||
@TableField("F_URGENT_TELE_PHONE")
|
||||
private String urgentTelePhone;
|
||||
|
||||
/**
|
||||
* 通讯地址
|
||||
*/
|
||||
@TableField("F_POSTAL_ADDRESS")
|
||||
private String postalAddress;
|
||||
|
||||
/**
|
||||
* 自我介绍
|
||||
*/
|
||||
@TableField("F_SIGNATURE")
|
||||
private String signature;
|
||||
|
||||
/**
|
||||
* 密码
|
||||
*/
|
||||
@TableField("F_PASSWORD")
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* 秘钥
|
||||
*/
|
||||
@TableField("F_SECRETKEY")
|
||||
private String secretkey;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField("F_CREATOR_TIME")
|
||||
private Date creatorTime;
|
||||
|
||||
/**
|
||||
* 首次登录时间
|
||||
*/
|
||||
@TableField("F_FIRST_LOG_TIME")
|
||||
private Date firstLogTime;
|
||||
|
||||
/**
|
||||
* 首次登录IP
|
||||
*/
|
||||
@TableField("F_FIRST_LOG_IP")
|
||||
private String firstLogIp;
|
||||
|
||||
/**
|
||||
* 前次登录时间
|
||||
*/
|
||||
@TableField("F_PREV_LOG_TIME")
|
||||
private Date prevLogTime;
|
||||
|
||||
/**
|
||||
* 前次登录IP
|
||||
*/
|
||||
@TableField("F_PREV_LOG_IP")
|
||||
private String prevLogIp;
|
||||
|
||||
/**
|
||||
* 最后登录时间
|
||||
*/
|
||||
@TableField("F_LAST_LOG_TIME")
|
||||
private Date lastLogTime;
|
||||
|
||||
/**
|
||||
* 最后登录IP
|
||||
*/
|
||||
@TableField("F_LAST_LOG_IP")
|
||||
private String lastLogIp;
|
||||
|
||||
/**
|
||||
* 登录成功次数
|
||||
*/
|
||||
@TableField("F_LOG_SUCCESS_COUNT")
|
||||
private Integer logSuccessCount;
|
||||
|
||||
/**
|
||||
* 登录错误次数
|
||||
*/
|
||||
@TableField("F_LOG_ERROR_COUNT")
|
||||
private Integer logErrorCount;
|
||||
|
||||
/**
|
||||
* 最后修改密码时间
|
||||
*/
|
||||
@TableField("F_CHANGE_PASSWORD_DATE")
|
||||
private Date changePasswordDate;
|
||||
|
||||
/**
|
||||
* 系统语言
|
||||
*/
|
||||
@TableField("F_LANGUAGE")
|
||||
private String language;
|
||||
|
||||
/**
|
||||
* 系统样式
|
||||
*/
|
||||
@TableField("F_THEME")
|
||||
private String theme;
|
||||
|
||||
/**
|
||||
* 常用菜单
|
||||
*/
|
||||
@TableField("F_COMMON_MENU")
|
||||
private String commonMenu;
|
||||
|
||||
/**
|
||||
* 是否管理员
|
||||
*/
|
||||
@TableField("F_IS_ADMINISTRATOR")
|
||||
private Integer isAdministrator;
|
||||
|
||||
/**
|
||||
* 扩展属性
|
||||
*/
|
||||
@TableField("F_PROPERTY_JSON")
|
||||
private String propertyJson;
|
||||
|
||||
/**
|
||||
* 主管主键
|
||||
*/
|
||||
@TableField("F_MANAGER_ID")
|
||||
private String managerId;
|
||||
|
||||
/**
|
||||
* 组织主键
|
||||
*/
|
||||
@TableField("F_ORGANIZE_ID")
|
||||
private String organizeId;
|
||||
|
||||
/**
|
||||
* 岗位主键
|
||||
*/
|
||||
@TableField("F_POSITION_ID")
|
||||
private String positionId;
|
||||
|
||||
/**
|
||||
* 角色主键
|
||||
*/
|
||||
@TableField("F_ROLE_ID")
|
||||
private String roleId;
|
||||
|
||||
/**
|
||||
* 门户主键
|
||||
*/
|
||||
@TableField("F_PORTAL_ID")
|
||||
private String portalId;
|
||||
|
||||
/**
|
||||
* 是否锁定
|
||||
*/
|
||||
@TableField("F_LOCK_MARK")
|
||||
private Integer lockMark;
|
||||
|
||||
/**
|
||||
* 解锁时间
|
||||
*/
|
||||
@TableField(value = "F_UNLOCK_TIME",updateStrategy = FieldStrategy.IGNORED)
|
||||
private Date unlockTime;
|
||||
|
||||
/**
|
||||
* 分组id
|
||||
*/
|
||||
@TableField("F_GROUP_ID")
|
||||
private String groupId;
|
||||
|
||||
/**
|
||||
* 系统id
|
||||
*/
|
||||
@TableField("F_SYSTEM_ID")
|
||||
private String systemId;
|
||||
|
||||
/**
|
||||
* App系统id
|
||||
*/
|
||||
@TableField("F_APP_SYSTEM_ID")
|
||||
private String appSystemId;
|
||||
|
||||
/**
|
||||
* 钉钉工号
|
||||
*/
|
||||
@TableField("F_DING_JOB_NUMBER")
|
||||
private String dingJobNumber;
|
||||
|
||||
/**
|
||||
* 交接状态
|
||||
*/
|
||||
@TableField("f_handover_mark")
|
||||
private Integer handoverMark;
|
||||
|
||||
/**
|
||||
* 职级
|
||||
*/
|
||||
@TableField("f_rank")
|
||||
private String ranks;
|
||||
|
||||
/**
|
||||
* 身份
|
||||
*/
|
||||
@TableField("F_STANDING")
|
||||
private Integer standing;
|
||||
|
||||
/**
|
||||
* 身份
|
||||
*/
|
||||
@TableField("F_APP_STANDING")
|
||||
private Integer appStanding;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.yunzhupaas.permission.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.yunzhupaas.base.entity.SuperExtendEntity;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 用户信息
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024-09-26 上午9:18
|
||||
*/
|
||||
@Data
|
||||
@TableName(value = "base_user_old_password")
|
||||
public class UserOldPasswordEntity extends SuperExtendEntity<String> {
|
||||
|
||||
/**
|
||||
* userid
|
||||
*/
|
||||
@TableField("F_USER_ID")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 账户
|
||||
*/
|
||||
@TableField("F_ACCOUNT")
|
||||
private String account;
|
||||
|
||||
/**
|
||||
* 旧密码
|
||||
*/
|
||||
@TableField("F_OLD_PASSWORD")
|
||||
private String oldPassword;
|
||||
|
||||
/**
|
||||
* 秘钥
|
||||
*/
|
||||
@TableField("F_SECRETKEY")
|
||||
private String secretkey;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.yunzhupaas.permission.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.yunzhupaas.base.entity.SuperExtendEntity;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 用户关系
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024-09-26 上午9:18
|
||||
*/
|
||||
@Data
|
||||
@TableName("base_user_relation")
|
||||
public class UserRelationEntity extends SuperExtendEntity<String> {
|
||||
|
||||
/**
|
||||
* 用户主键
|
||||
*/
|
||||
@TableField("F_USER_ID")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 对象类型
|
||||
*/
|
||||
@TableField("F_OBJECT_TYPE")
|
||||
private String objectType;
|
||||
|
||||
/**
|
||||
* 对象主键
|
||||
*/
|
||||
@TableField("F_OBJECT_ID")
|
||||
private String objectId;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
package com.yunzhupaas.permission.model.authorize;
|
||||
|
||||
import com.yunzhupaas.constant.DataInterfaceVarConst;
|
||||
import com.yunzhupaas.util.visiual.YunzhupaasKeyConsts;
|
||||
|
||||
/**
|
||||
* 数据权限过滤条件字段
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.2
|
||||
* @copyright 深圳市乐程软件有限公司(http://www.szlecheng.cn)
|
||||
* @date 2024/10/9
|
||||
*/
|
||||
public enum AuthorizeConditionEnum {
|
||||
/**
|
||||
* 表单主键
|
||||
*/
|
||||
FORMID(DataInterfaceVarConst.FORM_ID, "表单主键"),
|
||||
/**
|
||||
* 当前用户
|
||||
*/
|
||||
USER(DataInterfaceVarConst.USER, "当前用户"),
|
||||
/**
|
||||
* 当前用户及下属
|
||||
*/
|
||||
USERANDUNDER(DataInterfaceVarConst.USERANDSUB, "当前用户及下属"),
|
||||
/**
|
||||
* 当前组织
|
||||
*/
|
||||
ORGANIZE(DataInterfaceVarConst.ORG, "当前组织"),
|
||||
/**
|
||||
* 当前组织及子组织
|
||||
*/
|
||||
ORGANIZEANDUNDER(DataInterfaceVarConst.ORGANDSUB, "当前组织及子组织"),
|
||||
/**
|
||||
* 当前分管组织
|
||||
*/
|
||||
BRANCHMANAGEORG(DataInterfaceVarConst.CHARORG, "当前分管组织"),
|
||||
/**
|
||||
* 当前岗位
|
||||
*/
|
||||
POSITIONID(DataInterfaceVarConst.POSITIONID, "当前岗位"),
|
||||
/**
|
||||
* 当前部门
|
||||
*/
|
||||
DEPID(DataInterfaceVarConst.DEPID, "当前部门"),
|
||||
/**
|
||||
* 当前部门及下级部门
|
||||
*/
|
||||
DEPANDSUBORDINATES(DataInterfaceVarConst.DEPANDSUBORDINATES, "当前部门及下级部门"),
|
||||
/**
|
||||
* 当前时间
|
||||
*/
|
||||
CURRENTTIME(DataInterfaceVarConst.CURRENTTIME, "当前时间"),
|
||||
/**
|
||||
* 任意文本
|
||||
*/
|
||||
TEXT(YunzhupaasKeyConsts.COM_INPUT, "任意文本"),
|
||||
DATATIME(YunzhupaasKeyConsts.DATE, "日期选择"),
|
||||
INPUTNUMBER(YunzhupaasKeyConsts.NUM_INPUT, "数字输入"),
|
||||
COMSELECT(YunzhupaasKeyConsts.COMSELECT, "组织选择"),
|
||||
DEPSELECT(YunzhupaasKeyConsts.DEPSELECT, "部门选择"),
|
||||
POSSELECT(YunzhupaasKeyConsts.POSSELECT, "岗位选择"),
|
||||
ROLESELECT(YunzhupaasKeyConsts.ROLESELECT, "角色选择"),
|
||||
GROUPSELECT(YunzhupaasKeyConsts.GROUPSELECT, "分组选择"),
|
||||
USERSELECT(YunzhupaasKeyConsts.USERSELECT, "用户选择"),
|
||||
|
||||
;
|
||||
|
||||
private String condition;
|
||||
private String message;
|
||||
|
||||
AuthorizeConditionEnum(String condition, String message) {
|
||||
this.condition = condition;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public void setCondition(String condition) {
|
||||
this.condition = condition;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public static AuthorizeConditionEnum getByMessage(String condition) {
|
||||
for (AuthorizeConditionEnum status : AuthorizeConditionEnum.values()) {
|
||||
if (status.getCondition().equals(condition)) {
|
||||
return status;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.yunzhupaas.permission.model.authorize;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class AuthorizeConditionModel<T>{
|
||||
private QueryWrapper<T> obj;
|
||||
private String moduleId;
|
||||
private String tableName;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.yunzhupaas.permission.model.authorize;
|
||||
|
||||
import com.yunzhupaas.util.treeutil.SumTree;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 数据权限
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:04
|
||||
*/
|
||||
@Data
|
||||
public class AuthorizeDataModel extends SumTree {
|
||||
private String id;
|
||||
private String fullName;
|
||||
private String icon;
|
||||
private Boolean showcheck;
|
||||
private Integer checkstate;
|
||||
private String title;
|
||||
private String moduleId;
|
||||
private String type;
|
||||
private Date creatorTime;
|
||||
private String category;
|
||||
private boolean disabled;
|
||||
private Long sortCode=9999L;
|
||||
private String systemId;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.yunzhupaas.permission.model.authorize;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:26
|
||||
*/
|
||||
@Data
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class AuthorizeDataReturnModel {
|
||||
private String id;
|
||||
private String fullName;
|
||||
private String icon;
|
||||
private String type;
|
||||
private Long sortCode=999L;
|
||||
private String category;
|
||||
private boolean disabled;
|
||||
private Long creatorTime;
|
||||
private List<AuthorizeDataReturnModel> children;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.yunzhupaas.permission.model.authorize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:27
|
||||
*/
|
||||
@Data
|
||||
public class AuthorizeDataReturnVO {
|
||||
@Schema(description = "权限模型集合")
|
||||
List<AuthorizeDataReturnModel> list;
|
||||
@Schema(description = "id集合")
|
||||
List<String> ids;
|
||||
//all字段里面不包括菜单id
|
||||
@Schema(description = "所有的id")
|
||||
List<String> all;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.yunzhupaas.permission.model.authorize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:27
|
||||
*/
|
||||
@Data
|
||||
public class AuthorizeDataUpForm {
|
||||
@Schema(description = "对象类型")
|
||||
private String objectType;
|
||||
|
||||
@Schema(description = "按钮id")
|
||||
private String[] button;
|
||||
@Schema(description = "列表id")
|
||||
private String[] column;
|
||||
@Schema(description = "菜单id")
|
||||
private String[] module;
|
||||
@Schema(description = "数据权限方案id")
|
||||
private String[] resource;
|
||||
@Schema(description = "表单id")
|
||||
private String[] form;
|
||||
|
||||
|
||||
@Schema(description = "系统id")
|
||||
private String[] systemIds;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.yunzhupaas.permission.model.authorize;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:27
|
||||
*/
|
||||
@Data
|
||||
public class AuthorizeDataVO {
|
||||
private AuthorizeDataReturnVO module;
|
||||
private AuthorizeDataReturnVO button;
|
||||
private AuthorizeDataReturnVO column;
|
||||
private AuthorizeDataReturnVO resource;
|
||||
private AuthorizeDataReturnVO form;
|
||||
private AuthorizeDataReturnVO system;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.yunzhupaas.permission.model.authorize;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:27
|
||||
*/
|
||||
@Data
|
||||
public class AuthorizeDataValuesVO {
|
||||
List<AuthorizeDataReturnModel> list;
|
||||
List<String> ids;
|
||||
List<String> all;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.yunzhupaas.permission.model.authorize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:27
|
||||
*/
|
||||
@Data
|
||||
public class AuthorizeItemObjIdsVO {
|
||||
@Schema(description = "id集合")
|
||||
private List<String> ids;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.yunzhupaas.permission.model.authorize;
|
||||
|
||||
import com.yunzhupaas.util.treeutil.SumTree;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:27
|
||||
*/
|
||||
@Data
|
||||
public class AuthorizeModel extends SumTree {
|
||||
private String id;
|
||||
private String fullName;
|
||||
private String icon;
|
||||
|
||||
private Date creatorTime;
|
||||
private long sortCode;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
package com.yunzhupaas.permission.model.authorize;
|
||||
|
||||
import com.yunzhupaas.base.model.base.SystemBaeModel;
|
||||
import com.yunzhupaas.base.model.button.ButtonModel;
|
||||
import com.yunzhupaas.base.model.column.ColumnModel;
|
||||
import com.yunzhupaas.base.model.form.ModuleFormModel;
|
||||
import com.yunzhupaas.base.model.module.ModuleModel;
|
||||
import com.yunzhupaas.base.model.resource.ResourceModel;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:29
|
||||
*/
|
||||
@Data
|
||||
public class AuthorizeVO {
|
||||
// 菜单
|
||||
// private List<MenuModel> menuList;
|
||||
|
||||
/**
|
||||
* 功能
|
||||
*/
|
||||
private List<ModuleModel> moduleList = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* 按钮
|
||||
*/
|
||||
private List<ButtonModel> buttonList = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* 视图
|
||||
*/
|
||||
private List<ColumnModel> columnList = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* 资源
|
||||
*/
|
||||
private List<ResourceModel> resourceList = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* 表单
|
||||
*/
|
||||
private List<ModuleFormModel> formsList = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* 系统
|
||||
*/
|
||||
private List<SystemBaeModel> systemList = new ArrayList<>();
|
||||
|
||||
public AuthorizeVO(List<ModuleModel> moduleList, List<ButtonModel> buttonList, List<ColumnModel> columnList, List<ResourceModel> resourceList, List<ModuleFormModel> formsList, List<SystemBaeModel> systemList) {
|
||||
// this.menuList = menuList;
|
||||
this.moduleList = moduleList;
|
||||
this.buttonList = buttonList;
|
||||
this.columnList = columnList;
|
||||
this.resourceList = resourceList;
|
||||
this.formsList = formsList;
|
||||
this.systemList = systemList;
|
||||
}
|
||||
|
||||
public AuthorizeVO() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.yunzhupaas.permission.model.authorize;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class ConditionModel {
|
||||
private String logic;
|
||||
private List<ConditionItemModel> groups;
|
||||
|
||||
/**
|
||||
* 数据权限条件字段
|
||||
*/
|
||||
@Data
|
||||
public class ConditionItemModel{
|
||||
private String id;
|
||||
private String field;
|
||||
private String type;
|
||||
private String op;
|
||||
private String value;
|
||||
private String fieldRule;
|
||||
private String bindTable;
|
||||
private String conditionText;
|
||||
private String childTableKey;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.yunzhupaas.permission.model.authorize;
|
||||
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class DataValuesQuery {
|
||||
|
||||
@Schema(description = "类型")
|
||||
private String type;
|
||||
@Schema(description = "菜单id集合")
|
||||
private String moduleIds;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.yunzhupaas.permission.model.authorize;
|
||||
|
||||
import lombok.Data;
|
||||
import org.mybatis.dynamic.sql.BasicColumn;
|
||||
import org.mybatis.dynamic.sql.SqlColumn;
|
||||
import org.mybatis.dynamic.sql.SqlTable;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
*
|
||||
* dynamicSql模型
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.4.4
|
||||
* @copyright 深圳市乐程软件有限公司(http://www.szlecheng.cn)
|
||||
* @date 2022/9/27
|
||||
*/
|
||||
@Data
|
||||
public class OnlineDynamicSqlModel {
|
||||
private List<BasicColumn> columns;
|
||||
private SqlTable sqlTable;
|
||||
private String tableName;
|
||||
private boolean isMain;
|
||||
private String foreign;
|
||||
private String relationKey;
|
||||
|
||||
public OnlineDynamicSqlModel(){
|
||||
|
||||
}
|
||||
|
||||
public OnlineDynamicSqlModel(SqlTable sqlTable, List<BasicColumn> sqlColumns) {
|
||||
this.sqlTable = sqlTable;
|
||||
this.columns = sqlColumns;
|
||||
this.isMain = true;
|
||||
}
|
||||
|
||||
public OnlineDynamicSqlModel(SqlTable sqlTable, List<BasicColumn> sqlColumns,String foreign,String relationKey, boolean b) {
|
||||
this.sqlTable = sqlTable;
|
||||
this.columns = sqlColumns;
|
||||
this.foreign = foreign;
|
||||
this.relationKey = relationKey;
|
||||
this.isMain = b;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.yunzhupaas.permission.model.authorize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class ResourceVO {
|
||||
@Schema(description = "资源主键")
|
||||
private String id;
|
||||
@Schema(description = "资源名称")
|
||||
private String fullName;
|
||||
@Schema(description = "资源编码")
|
||||
private String enCode;
|
||||
@Schema(description = "条件规则")
|
||||
private String conditionJson;
|
||||
@Schema(description = "规则描述")
|
||||
private String conditionText;
|
||||
@Schema(description = "功能主键")
|
||||
private String moduleId;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.yunzhupaas.permission.model.authorize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class SaveBatchForm {
|
||||
@Schema(description = "角色id集合")
|
||||
private String[] roleIds;
|
||||
@Schema(description = "岗位id集合")
|
||||
private String[] positionIds;
|
||||
@Schema(description = "用户id集合")
|
||||
private String[] userIds;
|
||||
@Schema(description = "菜单id集合")
|
||||
private String[] module;
|
||||
@Schema(description = "按钮id集合")
|
||||
private String[] button;
|
||||
@Schema(description = "列表id集合")
|
||||
private String[] column;
|
||||
@Schema(description = "数据权限方案id集合")
|
||||
private String[] resource;
|
||||
@Schema(description = "表单id集合")
|
||||
private String[] form;
|
||||
|
||||
@Schema(description = "系统id集合")
|
||||
private String[] systemIds;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.yunzhupaas.permission.model.check;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class CheckResult {
|
||||
|
||||
private boolean pass = true;
|
||||
|
||||
private String errorMsg;
|
||||
|
||||
private Object value;
|
||||
|
||||
public CheckResult(boolean pass, String errorMsg, Object value) {
|
||||
this.pass = pass;
|
||||
this.errorMsg = errorMsg;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.yunzhupaas.permission.model.columnspurview;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 列表权限修改模型
|
||||
*
|
||||
* @author :云筑产品开发平台组
|
||||
* @version: V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date :2022/3/15 9:59
|
||||
*/
|
||||
@Data
|
||||
public class ColumnsPurviewUpForm implements Serializable {
|
||||
@Schema(description = "列表字段数组")
|
||||
private String fieldList;
|
||||
@Schema(description = "模块ID")
|
||||
@NotBlank(message = "操作模块不能为空")
|
||||
private String moduleId;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.yunzhupaas.permission.model.organize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
@Data
|
||||
public class OrganizeByAuthModel extends OrganizeModel {
|
||||
|
||||
@Schema(description = "是否可选")
|
||||
private Boolean disabled = false;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.yunzhupaas.permission.model.organize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.yunzhupaas.base.Page;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author :云筑产品开发平台组
|
||||
* @version: V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date :2022/6/8 14:05
|
||||
*/
|
||||
@Data
|
||||
public class OrganizeConditionModel extends Page implements Serializable {
|
||||
|
||||
@Schema(description = "部门id集合")
|
||||
private List<String> departIds;
|
||||
|
||||
private Map<String, String> orgIdNameMaps;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.yunzhupaas.permission.model.organize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class OrganizeCrForm {
|
||||
|
||||
@NotBlank(message = "公司上级不能为空")
|
||||
private String parentId;
|
||||
@NotBlank(message = "公司名称不能为空")
|
||||
private String fullName;
|
||||
@NotBlank(message = "公司编码不能为空")
|
||||
private String enCode;
|
||||
private String description;
|
||||
@NotNull(message = "公司状态不能为空")
|
||||
private Integer enabledMark;
|
||||
private OrganizeCrModel propertyJson;
|
||||
@Schema(description = "排序")
|
||||
private Long sortCode;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.yunzhupaas.permission.model.organize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class OrganizeCrModel {
|
||||
@NotBlank(message = "必填")
|
||||
@Schema(description = "公司简称")
|
||||
private String shortName;
|
||||
private String webSite;
|
||||
@NotBlank(message = "必填")
|
||||
@Schema(description = "所属行业")
|
||||
private String industry;
|
||||
private Long foundedTime;
|
||||
private String address;
|
||||
private String managerName;
|
||||
private String managerTelePhone;
|
||||
private String managerMobilePhone;
|
||||
private String manageEmail;
|
||||
private String bankName;
|
||||
private String bankAccount;
|
||||
private String businessscope;
|
||||
@NotBlank(message = "必填")
|
||||
@Schema(description = "公司性质")
|
||||
private String enterpriseNature;
|
||||
private String fax;
|
||||
private String telePhone;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.yunzhupaas.permission.model.organize;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class OrganizeDepartCrForm {
|
||||
|
||||
private String managerId;
|
||||
@NotBlank(message = "必填")
|
||||
@Schema(description = "上级ID")
|
||||
private String parentId;
|
||||
@NotBlank(message = "必填")
|
||||
@Schema(description = "部门名称")
|
||||
private String fullName;
|
||||
@NotBlank(message = "必填")
|
||||
@Schema(description = "部门编码")
|
||||
private String enCode;
|
||||
@Schema(description = "状态")
|
||||
private int enabledMark;
|
||||
private String description;
|
||||
@Schema(description = "排序")
|
||||
private Long sortCode;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.yunzhupaas.permission.model.organize;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class OrganizeDepartInfoVO {
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
@Schema(description = "父主键")
|
||||
private String parentId;
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "编码")
|
||||
private String enCode;
|
||||
@Schema(description = "状态")
|
||||
private Integer enabledMark;
|
||||
@Schema(description = "备注")
|
||||
private String description;
|
||||
@Schema(description = "主管id")
|
||||
private String managerId;
|
||||
@Schema(description = "排序码")
|
||||
private Long sortCode;
|
||||
|
||||
@Schema(description = "组织id树")
|
||||
private List<String> organizeIdTree;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.yunzhupaas.permission.model.organize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class OrganizeDepartListVO {
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
@Schema(description = "父主键")
|
||||
private String parentId;
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "编码")
|
||||
private String enCode;
|
||||
@Schema(description = "备注")
|
||||
private String description;
|
||||
@Schema(description = "创建时间")
|
||||
private Long creatorTime;
|
||||
@Schema(description = "部门经理")
|
||||
private String manager;
|
||||
@Schema(description = "状态")
|
||||
private Integer enabledMark;
|
||||
@Schema(description = "是否有下级菜单")
|
||||
private Boolean hasChildren;
|
||||
@Schema(description = "下级菜单列表")
|
||||
private List<OrganizeDepartListVO> children;
|
||||
@Schema(description = "排序")
|
||||
private Long sortCode;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.yunzhupaas.permission.model.organize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author :云筑产品开发平台组
|
||||
* @version: V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date :2022/6/28 9:35
|
||||
*/
|
||||
@Data
|
||||
public class OrganizeDepartSelectorByAuthListVO extends OrganizeDepartSelectorListVO implements Serializable {
|
||||
|
||||
@Schema(description = "是否可选")
|
||||
private Boolean disabled = false;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.yunzhupaas.permission.model.organize;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:17
|
||||
*/
|
||||
@Data
|
||||
public class OrganizeDepartSelectorListVO {
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
@Schema(description = "父主键")
|
||||
private String parentId;
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "图标")
|
||||
private String icon;
|
||||
@Schema(description = "是否有下级菜单")
|
||||
private Boolean hasChildren = true;
|
||||
@Schema(description = "状态")
|
||||
private Integer enabledMark;
|
||||
@Schema(description = "下级菜单列表")
|
||||
private List<OrganizeDepartSelectorListVO> children;
|
||||
@JSONField(name="category")
|
||||
private String type;
|
||||
private String organize;
|
||||
|
||||
@Schema(description = "组织id树")
|
||||
private List<String> organizeIds;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.yunzhupaas.permission.model.organize;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class OrganizeDepartUpForm extends OrganizeDepartCrForm {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.yunzhupaas.permission.model.organize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.yunzhupaas.permission.model.permission.PermissionVoBase;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class OrganizeInfoVO extends PermissionVoBase {
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
@Schema(description = "父主键")
|
||||
private String parentId;
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "编码")
|
||||
private String enCode;
|
||||
@Schema(description = "状态")
|
||||
private Integer enabledMark;
|
||||
@Schema(description = "备注")
|
||||
private String description;
|
||||
@Schema(description = "扩展属性")
|
||||
private String propertyJson;
|
||||
@Schema(description = "排序")
|
||||
private Long sortCode;
|
||||
|
||||
@Schema(description = "组织id树")
|
||||
private List<String> organizeIdTree;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.yunzhupaas.permission.model.organize;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:15
|
||||
*/
|
||||
@Data
|
||||
public class OrganizeListVO {
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
@Schema(description = "父主键")
|
||||
private String parentId;
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "编码")
|
||||
private String enCode;
|
||||
@Schema(description = "备注")
|
||||
private String description;
|
||||
@Schema(description = "状态")
|
||||
private Integer enabledMark;
|
||||
private Long creatorTime;
|
||||
@Schema(description = "是否有下级菜单")
|
||||
private Boolean hasChildren;
|
||||
@Schema(description = "下级菜单列表")
|
||||
private List<OrganizeListVO> children;
|
||||
@Schema(description = "排序")
|
||||
private Long sortCode;
|
||||
private String organizeIdTree;
|
||||
@Schema(description = "")
|
||||
private Boolean isLeaf;
|
||||
@JSONField(name="category")
|
||||
private String type;
|
||||
|
||||
@Schema(description = "图标")
|
||||
private String icon;
|
||||
|
||||
@Schema(description = "修改用户")
|
||||
private String lastFullName;
|
||||
|
||||
private String organize;
|
||||
|
||||
@Schema(description ="组织id树")
|
||||
private List<String> organizeIds;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.yunzhupaas.permission.model.organize;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.yunzhupaas.util.treeutil.SumTree;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Data
|
||||
public class OrganizeModel extends SumTree {
|
||||
private String fullName;
|
||||
private String enCode;
|
||||
private Long creatorTime;
|
||||
private String manager;
|
||||
private String description;
|
||||
private int enabledMark;
|
||||
private String icon;
|
||||
@JSONField(name="category")
|
||||
private String type;
|
||||
private long sortCode;
|
||||
private String organizeIdTree;
|
||||
private String organize;
|
||||
|
||||
@Schema(description = "组织id树")
|
||||
private List<String> organizeIds;
|
||||
|
||||
private String lastFullName;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.yunzhupaas.permission.model.organize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 组织树模型
|
||||
*
|
||||
* @author :云筑产品开发平台组
|
||||
* @version: V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date :2022/6/28 9:10
|
||||
*/
|
||||
@Data
|
||||
public class OrganizeSelectorByAuthVO implements Serializable {
|
||||
|
||||
@Schema(description = "是否可选")
|
||||
private Boolean disabled = false;
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
@Schema(description = "父主键")
|
||||
private String parentId;
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "图标")
|
||||
private String icon;
|
||||
@Schema(description = "是否可用")
|
||||
private Integer enabledMark;
|
||||
@Schema(description = "是否有下级菜单")
|
||||
private Boolean hasChildren;
|
||||
@Schema(description = "下级菜单列表")
|
||||
private List<OrganizeSelectorByAuthVO> children;
|
||||
private String organizeIdTree;
|
||||
|
||||
private String organize;
|
||||
|
||||
@Schema(description = "组织id树")
|
||||
private List<String> organizeIds;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
package com.yunzhupaas.permission.model.organize;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class OrganizeSelectorVO {
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
@Schema(description = "父主键")
|
||||
private String parentId;
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "编码")
|
||||
private String enCode;
|
||||
@Schema(description = "备注")
|
||||
private String description;
|
||||
@Schema(description = "图标")
|
||||
private String icon;
|
||||
@Schema(description = "是否可用")
|
||||
private Integer enabledMark;
|
||||
@Schema(description = "是否有下级菜单")
|
||||
private Boolean hasChildren;
|
||||
@Schema(description = "下级菜单列表")
|
||||
private List<OrganizeSelectorVO> children;
|
||||
@Schema(description = "")
|
||||
private Boolean isLeaf;
|
||||
@JSONField(name="category")
|
||||
private String type;
|
||||
|
||||
private Long creatorTime;
|
||||
@Schema(description = "排序")
|
||||
private Long sortCode;
|
||||
@Schema(description = "组织id树名称")
|
||||
private String organizeIdTree;
|
||||
|
||||
@Schema(description = "修改用户")
|
||||
private String lastFullName;
|
||||
|
||||
@Schema(description = "组织id")
|
||||
private String organize;
|
||||
|
||||
@Schema(description = "组织id树")
|
||||
private List<String> organizeIds;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.yunzhupaas.permission.model.organize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class OrganizeTreeVO {
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
@Schema(description = "父主键")
|
||||
private String parentId;
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "图标")
|
||||
private String icon;
|
||||
@Schema(description = "是否有下级菜单")
|
||||
private Boolean hasChildren;
|
||||
@Schema(description = "下级菜单列表")
|
||||
private List<OrganizeTreeVO> children;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.yunzhupaas.permission.model.organize;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class OrganizeUpForm extends OrganizeCrForm {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.yunzhupaas.permission.model.organize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.yunzhupaas.base.Pagination;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class PaginationOrganize extends Pagination {
|
||||
|
||||
@Schema(description = "状态")
|
||||
private Integer enabledMark;
|
||||
|
||||
private String type;
|
||||
|
||||
/** 查询key */
|
||||
private String[] selectKey;
|
||||
/** 功能id */
|
||||
private String moduleId;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.yunzhupaas.permission.model.organizeadministrator;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.yunzhupaas.util.treeutil.SumTree;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class ModuleSelectorModel extends SumTree implements Serializable {
|
||||
private String id;
|
||||
private String fullName;
|
||||
private String enCode;
|
||||
private String parentId;
|
||||
private String icon;
|
||||
private Integer type;
|
||||
private Long sortCode;
|
||||
private String category;
|
||||
private String propertyJson;
|
||||
|
||||
private String systemId;
|
||||
private Boolean hasModule;
|
||||
|
||||
@Schema(description = "是否有权限")
|
||||
private Integer isPermission;
|
||||
|
||||
private boolean disabled;
|
||||
|
||||
private long creatorTime;
|
||||
|
||||
// private String description;
|
||||
// private Boolean isData;
|
||||
// private Integer enabledMark;
|
||||
// private String urlAddress;
|
||||
// private String linkTarget;
|
||||
// private Integer isButtonAuthorize;
|
||||
// private Integer isColumnAuthorize;
|
||||
// private Integer isDataAuthorize;
|
||||
// private Integer isFormAuthorize;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.yunzhupaas.permission.model.organizeadministrator;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ModuleSelectorVO implements Serializable {
|
||||
|
||||
private String id;
|
||||
private String fullName;
|
||||
private String enCode;
|
||||
private String parentId;
|
||||
private String icon;
|
||||
private Integer type;
|
||||
private Long sortCode;
|
||||
private String category;
|
||||
private String propertyJson;
|
||||
|
||||
private String systemId;
|
||||
private Boolean hasModule;
|
||||
|
||||
@Schema(description ="是否有下级菜单")
|
||||
private Boolean hasChildren;
|
||||
@Schema(description ="下级菜单列表")
|
||||
private List<ModuleSelectorVO> children;
|
||||
|
||||
@Schema(description = "是否有权限")
|
||||
private Integer isPermission;
|
||||
|
||||
private boolean disabled;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.yunzhupaas.permission.model.organizeadministrator;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 机构分级管理员
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024-09-26 上午9:18
|
||||
*/
|
||||
@Data
|
||||
public class OrganizeAdminIsTratorCrForm implements Serializable {
|
||||
|
||||
/**
|
||||
* 用户主键
|
||||
**/
|
||||
@Schema(description = "用户主键")
|
||||
@NotBlank(message = "管理员不能为空")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 分级管理员模型集合
|
||||
*/
|
||||
@Schema(description = "分级管理员模型集合")
|
||||
private List<OrganizeAdministratorCrModel> orgAdminModel;
|
||||
|
||||
|
||||
@Schema(description = "菜单集合")
|
||||
private List<String> moduleIds;
|
||||
@Schema(description = "应用集合")
|
||||
private List<String> systemIds;
|
||||
@Schema(description = "管理组")
|
||||
private String managerGroup;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.yunzhupaas.permission.model.organizeadministrator;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author :云筑产品开发平台组
|
||||
* @version: V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date :2022/6/6 14:50
|
||||
*/
|
||||
@Data
|
||||
public class OrganizeAdministratorCrModel implements Serializable {
|
||||
@Schema(description = "主键")
|
||||
private String organizeId;
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "图标")
|
||||
private String icon;
|
||||
@Schema(description = "")
|
||||
private Boolean isLeaf;
|
||||
@Schema(description = "是否有下级菜单")
|
||||
private Boolean hasChildren;
|
||||
private String parentId;
|
||||
|
||||
private Integer thisLayerAdd = 0;
|
||||
private Integer thisLayerEdit = 0;
|
||||
private Integer thisLayerDelete = 0;
|
||||
private Integer thisLayerSelect = 0;
|
||||
private Integer subLayerAdd = 0;
|
||||
private Integer subLayerEdit = 0;
|
||||
private Integer subLayerDelete = 0;
|
||||
private Integer subLayerSelect = 0;
|
||||
private String organizeIdTree;
|
||||
@JsonIgnore
|
||||
private String category;
|
||||
@Schema(description = "管理组")
|
||||
private String managerGroup;
|
||||
|
||||
private List<OrganizeAdministratorCrModel> children;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.yunzhupaas.permission.model.organizeadministrator;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 组织关系表模型
|
||||
*
|
||||
* @author :云筑产品开发平台组
|
||||
* @version: V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date :2022/5/30 9:23
|
||||
*/
|
||||
@Data
|
||||
public class OrganizeAdministratorListVo implements Serializable {
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
@Schema(description = "账号")
|
||||
private String account;
|
||||
@Schema(description = "真实姓名")
|
||||
private String realName;
|
||||
@Schema(description = "性别")
|
||||
private String gender;
|
||||
@Schema(description = "手机号")
|
||||
private String mobilePhone;
|
||||
@Schema(description = "组织id")
|
||||
private String organizeId;
|
||||
@Schema(description = "创建时间")
|
||||
private Long creatorTime;
|
||||
@Schema(description = "管理组")
|
||||
private String managerGroup;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.yunzhupaas.permission.model.organizeadministrator;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 组织管理模型
|
||||
*
|
||||
* @author :云筑产品开发平台组
|
||||
* @version: V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date :2022/5/30 17:42
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class OrganizeAdministratorModel {
|
||||
|
||||
private List<String> addList = new ArrayList<>();
|
||||
private List<String> editList = new ArrayList<>();
|
||||
private List<String> deleteList = new ArrayList<>();
|
||||
private List<String> selectList = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.yunzhupaas.permission.model.organizeadministrator;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class OrganizeAdministratorSelectedVO implements Serializable {
|
||||
|
||||
@Schema(description = "组织权限集合")
|
||||
private List<OrganizeAdministratorSelectorVO> orgAdminList = new ArrayList<>();
|
||||
|
||||
@Schema(description = "应用权限集合")
|
||||
private List<SystemSelectorVO> systemPermissionList = new ArrayList<>();
|
||||
|
||||
@Schema(description = "菜单权限集合")
|
||||
private List<ModuleSelectorVO> modulePermissionList = new ArrayList<>();
|
||||
|
||||
@Schema(description = "有菜单权限集合")
|
||||
private List<String> moduleIds = new ArrayList<>();
|
||||
|
||||
@Schema(description = "有应用权限集合")
|
||||
private List<String> systemIds = new ArrayList<>();
|
||||
|
||||
@Schema(description = "管理组")
|
||||
private String managerGroup;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.yunzhupaas.permission.model.organizeadministrator;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.yunzhupaas.util.treeutil.SumTree;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author :云筑产品开发平台组
|
||||
* @version: V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date :2022/6/6 10:16
|
||||
*/
|
||||
@Data
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class OrganizeAdministratorSelectorModel extends SumTree {
|
||||
@Schema(description = "组织主键")
|
||||
private String organizeId;
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "图标")
|
||||
private String icon;
|
||||
/**
|
||||
* 0 可编辑
|
||||
* 1 已勾选
|
||||
* 2 已勾选不可编辑
|
||||
*/
|
||||
private Integer thisLayerAdd;
|
||||
private Integer thisLayerEdit;
|
||||
private Integer thisLayerDelete;
|
||||
private Integer thisLayerSelect;
|
||||
private Integer subLayerAdd;
|
||||
private Integer subLayerEdit;
|
||||
private Integer subLayerDelete;
|
||||
private Integer subLayerSelect;
|
||||
private String organizeIdTree;
|
||||
@Schema(description = "")
|
||||
private Boolean isLeaf;
|
||||
@JsonIgnore
|
||||
private String category;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.yunzhupaas.permission.model.organizeadministrator;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class OrganizeAdministratorSelectorVO implements Serializable {
|
||||
@Schema(description = "主键")
|
||||
private String organizeId;
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "图标")
|
||||
private String icon;
|
||||
@Schema(description = "")
|
||||
private Boolean isLeaf;
|
||||
@Schema(description = "是否有下级菜单")
|
||||
private Boolean hasChildren;
|
||||
private String parentId;
|
||||
|
||||
private Integer thisLayerAdd;
|
||||
private Integer thisLayerEdit;
|
||||
private Integer thisLayerDelete;
|
||||
private Integer thisLayerSelect;
|
||||
private Integer subLayerAdd;
|
||||
private Integer subLayerEdit;
|
||||
private Integer subLayerDelete;
|
||||
private Integer subLayerSelect;
|
||||
private String organizeIdTree;
|
||||
@JsonIgnore
|
||||
private String category;
|
||||
private String id;
|
||||
|
||||
private List<OrganizeAdministratorSelectorVO> children;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.yunzhupaas.permission.model.organizeadministrator;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class SystemSelectorVO implements Serializable {
|
||||
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
|
||||
@Schema(description = "编码")
|
||||
private String enCode;
|
||||
|
||||
@Schema(description = "图标")
|
||||
private String icon;
|
||||
|
||||
@Schema(description = "是否有权限")
|
||||
private Integer isPermission;
|
||||
|
||||
|
||||
private boolean disabled;
|
||||
|
||||
private long sortCode;
|
||||
|
||||
private long creatorTime;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.yunzhupaas.permission.model.permission;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.yunzhupaas.util.treeutil.SumTree;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* 个人信息设置 我的组织/我的岗位/(我的角色:暂无)
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.2.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/1/25
|
||||
*/
|
||||
@Data
|
||||
public class PermissionModel extends SumTree {
|
||||
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "id")
|
||||
private String id;
|
||||
@Schema(description = "是否为默认")
|
||||
private Boolean isDefault;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.yunzhupaas.permission.model.permission;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 可设置主要归属
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.3.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class PermissionVoBase {
|
||||
|
||||
public Boolean majorMark;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.yunzhupaas.permission.model.permissiongroup;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.yunzhupaas.base.Pagination;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class PaginationPermissionGroup extends Pagination implements Serializable {
|
||||
@Schema(description = "状态")
|
||||
private Integer enabledMark;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.yunzhupaas.permission.model.permissiongroup;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class PermissionGroupListVO implements Serializable {
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "编码")
|
||||
private String enCode;
|
||||
@Schema(description = "排序")
|
||||
private Long sortCode;
|
||||
@Schema(description = "说明")
|
||||
private String description;
|
||||
@Schema(description = "状态")
|
||||
private Integer enabledMark;
|
||||
@Schema(description = "权限成员")
|
||||
private String permissionMember;
|
||||
@Schema(description = "类型")
|
||||
private Integer type;
|
||||
@Schema(description = "创建时间")
|
||||
private Long creatorTime;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.yunzhupaas.permission.model.permissiongroup;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Schema(description = "模型")
|
||||
public class PermissionGroupModel implements Serializable {
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "编码")
|
||||
private String enCode;
|
||||
@Schema(description = "排序")
|
||||
private Long sortCode;
|
||||
@Schema(description = "状态")
|
||||
private Integer enabledMark;
|
||||
@Schema(description = "说明")
|
||||
private String description;
|
||||
@Schema(description = "类型")
|
||||
private Integer type;
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.yunzhupaas.permission.model.permissiongroup;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class ViewPermissionsModel implements Serializable {
|
||||
@NotNull(message = "对象主键不能为空")
|
||||
@Schema(description = "对象id")
|
||||
private String id;
|
||||
@Schema(description = "权限组id")
|
||||
private String permissionId;
|
||||
@NotNull(message = "对象类型不能为空")
|
||||
@Schema(description = "对象类型")
|
||||
private String objectType;
|
||||
@Schema(description = "权限类型")
|
||||
private String itemType;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.yunzhupaas.permission.model.permissiongroup;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.yunzhupaas.util.treeutil.SumTree;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class ViewPermissionsTreeModel extends SumTree implements Serializable {
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "图标")
|
||||
private String icon;
|
||||
private String moduleId;
|
||||
private Long creatorTime;
|
||||
private Long sortCode;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.yunzhupaas.permission.model.permissiongroup;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ViewPermissionsVO implements Serializable {
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "图标")
|
||||
private String icon;
|
||||
@Schema(description = "下级菜单列表")
|
||||
private List<ViewPermissionsVO> children;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.yunzhupaas.permission.model.portalManage;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.yunzhupaas.base.MyBatisPrimaryBase;
|
||||
import com.yunzhupaas.permission.entity.AuthorizeEntity;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 类功能
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version v3.4.8
|
||||
* @copyrignt 深圳市乐程软件有限公司
|
||||
* @date 2023-04-20
|
||||
*/
|
||||
@Data
|
||||
public class AuthorizePortalManagePrimary extends MyBatisPrimaryBase<AuthorizeEntity> {
|
||||
|
||||
@Schema(description = "权限类型")
|
||||
private final String objectType = "role";
|
||||
|
||||
@Schema(description = "条目类型")
|
||||
private final String itemType = "portalManage";
|
||||
|
||||
@Schema(description = "角色Id")
|
||||
private String roleId;
|
||||
|
||||
@Schema(description = "门户管理Id")
|
||||
private String portalManageId;
|
||||
|
||||
public AuthorizePortalManagePrimary(String roleId, String portalManageId){
|
||||
this.roleId = roleId;
|
||||
this.portalManageId = portalManageId;
|
||||
}
|
||||
|
||||
public QueryWrapper<AuthorizeEntity> getQuery(){
|
||||
queryWrapper.lambda().eq(AuthorizeEntity::getObjectType, objectType);
|
||||
queryWrapper.lambda().eq(AuthorizeEntity::getItemType, itemType);
|
||||
if(this.roleId != null) queryWrapper.lambda().eq(AuthorizeEntity::getObjectId, roleId);
|
||||
if(this.portalManageId != null) queryWrapper.lambda().eq(AuthorizeEntity::getItemId, portalManageId);
|
||||
return queryWrapper;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.yunzhupaas.permission.model.position;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.yunzhupaas.base.Pagination;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class PaginationPosition extends Pagination {
|
||||
@Schema(description = "组织id")
|
||||
private String organizeId;
|
||||
@Schema(description = "状态")
|
||||
private Integer enabledMark;
|
||||
@Schema(description = "类型")
|
||||
private String type;
|
||||
@JsonIgnore
|
||||
private String enCode;
|
||||
|
||||
/** 查询key */
|
||||
private String[] selectKey;
|
||||
/** 功能id */
|
||||
private String moduleId;
|
||||
|
||||
@Schema(description = "导出类型:0-公司和部门,1-公司,2-部门")
|
||||
private Integer dataType = 0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.yunzhupaas.permission.model.position;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class PosOrgConditionModel extends PosOrgModel {
|
||||
|
||||
private String organizeIdTree;
|
||||
|
||||
private String organizeId;
|
||||
|
||||
@Schema(description ="前端解析唯一标识")
|
||||
private String onlyId;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.yunzhupaas.permission.model.position;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.yunzhupaas.util.treeutil.SumTree;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class PosOrgModel extends SumTree {
|
||||
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "状态")
|
||||
private Integer enabledMark;
|
||||
@JSONField(name = "category")
|
||||
private String type;
|
||||
@Schema(description = "图标")
|
||||
private String icon;
|
||||
@Schema(description = "排序")
|
||||
private String sortCode;
|
||||
@Schema(description = "创建时间")
|
||||
private Date creatorTime;
|
||||
|
||||
|
||||
private String organize;
|
||||
@Schema(description = "组织id树")
|
||||
private List<String> organizeIds;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.yunzhupaas.permission.model.position;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class PositionConditionSelectorVO extends PositionSelectorVO implements Serializable {
|
||||
|
||||
@Schema(description = "组织id树")
|
||||
@JsonIgnore
|
||||
private String organizeIdTree;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.yunzhupaas.permission.model.position;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class PositionCrForm {
|
||||
@NotBlank(message = "必填")
|
||||
@Schema(description = "岗位编码")
|
||||
private String enCode;
|
||||
@NotBlank(message = "必填")
|
||||
@Schema(description = "所属部门(id)")
|
||||
private String organizeId;
|
||||
@NotNull(message = "必填")
|
||||
@Schema(description = "岗位状态")
|
||||
private Integer enabledMark;
|
||||
@NotBlank(message = "必填")
|
||||
@Schema(description = "岗位名称")
|
||||
private String fullName;
|
||||
|
||||
private String description;
|
||||
@NotNull(message = "必填")
|
||||
@Schema(description = "岗位类型(id)")
|
||||
private String type;
|
||||
@Schema(description = "排序")
|
||||
private Long sortCode;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.yunzhupaas.permission.model.position;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.yunzhupaas.permission.model.permission.PermissionVoBase;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class PositionInfoVO extends PermissionVoBase {
|
||||
@Schema(description = "id")
|
||||
private String id;
|
||||
@Schema(description = "上级id")
|
||||
private String organizeId;
|
||||
@Schema(description = "岗位名称")
|
||||
private String fullName;
|
||||
@Schema(description = "岗位编码")
|
||||
private String enCode;
|
||||
@Schema(description = "岗位类型")
|
||||
private String type;
|
||||
@Schema(description = "岗位状态")
|
||||
private Integer enabledMark;
|
||||
@Schema(description = "岗位说明")
|
||||
private String description;
|
||||
@Schema(description = "排序")
|
||||
private Long sortCode;
|
||||
|
||||
@Schema(description = "组织id树")
|
||||
private List<String> organizeIdTree;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.yunzhupaas.permission.model.position;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class PositionListAllVO {
|
||||
private String id;
|
||||
private String enCode;
|
||||
private String fullName;
|
||||
private String organizeId;
|
||||
private String type;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.yunzhupaas.permission.model.position;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class PositionListVO {
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "编码")
|
||||
private String enCode;
|
||||
@Schema(description = "分类")
|
||||
private String type;
|
||||
@Schema(description = "创建时间")
|
||||
private Long creatorTime;
|
||||
@Schema(description = "说明")
|
||||
private String description;
|
||||
@Schema(description = "部门")
|
||||
private String department;
|
||||
@Schema(description = "有效标志")
|
||||
private Integer enabledMark;
|
||||
@Schema(description = "排序")
|
||||
private Long sortCode;
|
||||
@Schema(description = "组织id")
|
||||
private String organizeId;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.yunzhupaas.permission.model.position;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class PositionSelectorVO {
|
||||
private String id;
|
||||
@Schema(description ="父级ID")
|
||||
private String parentId;
|
||||
@Schema(description ="名称")
|
||||
private String fullName;
|
||||
@Schema(description ="是否有下级菜单")
|
||||
private boolean hasChildren = true;
|
||||
@Schema(description ="状态")
|
||||
private Integer enabledMark;
|
||||
@Schema(description ="下级菜单列表")
|
||||
private List<PositionSelectorVO> children = new ArrayList<>();
|
||||
@JSONField(name="category")
|
||||
private String type;
|
||||
@Schema(description ="图标")
|
||||
private String icon;
|
||||
|
||||
|
||||
private String organize;
|
||||
@Schema(description ="组织id树")
|
||||
private List<String> organizeIds;
|
||||
|
||||
@Schema(description = "组织id树")
|
||||
@JsonIgnore
|
||||
private String organizeIdTree;
|
||||
|
||||
@Schema(description ="前端解析唯一标识")
|
||||
private String onlyId;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.yunzhupaas.permission.model.position;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class PositionUpForm extends PositionCrForm{
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.yunzhupaas.permission.model.position;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 通过组织id获取岗位列表
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司(http://www.szlecheng.cn)
|
||||
* @date 2024-12-21
|
||||
*/
|
||||
@Data
|
||||
public class PositionVo implements Serializable {
|
||||
private String id;
|
||||
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.yunzhupaas.permission.model.role;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class RoleCrForm {
|
||||
@NotBlank(message = "必填")
|
||||
@Schema(description = "角色名称")
|
||||
private String fullName;
|
||||
@NotBlank(message = "必填")
|
||||
@Schema(description = "角色编号")
|
||||
private String enCode;
|
||||
@NotNull(message = "必填")
|
||||
@Schema(description = "组织id集合")
|
||||
private List<List<String>> organizeIdsTree;
|
||||
@Schema(description = "是否全局(1:是,0:否)")
|
||||
private Integer globalMark;
|
||||
@NotNull(message = "必填")
|
||||
@Schema(description = "状态")
|
||||
private int enabledMark;
|
||||
private String description;
|
||||
@Schema(description = "排序")
|
||||
private long sortCode;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.yunzhupaas.permission.model.role;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.yunzhupaas.permission.model.permission.PermissionVoBase;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class RoleInfoVO extends PermissionVoBase {
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "编码")
|
||||
private String enCode;
|
||||
@Schema(description = "组织id数组树")
|
||||
private List<LinkedList<String>> organizeIdsTree;
|
||||
@Schema(description = "全局标识")
|
||||
private Integer globalMark;
|
||||
@Schema(description = "类型")
|
||||
private String type;
|
||||
@Schema(description = "状态")
|
||||
private Integer enabledMark;
|
||||
@Schema(description = "备注")
|
||||
private String description;
|
||||
@Schema(description = "排序")
|
||||
private Long sortCode;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.yunzhupaas.permission.model.role;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class RoleListVO {
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "编码")
|
||||
private String enCode;
|
||||
@Schema(description = "角色类型")
|
||||
private String type;
|
||||
@Schema(description = "所属组织")
|
||||
private String organizeInfo;
|
||||
@Schema(description = "备注")
|
||||
private String description;
|
||||
@Schema(description = "状态")
|
||||
private Integer enabledMark;
|
||||
private Long creatorTime;
|
||||
@Schema(description = "排序")
|
||||
private Long sortCode;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.yunzhupaas.permission.model.role;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.yunzhupaas.util.treeutil.SumTree;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class RoleModel extends SumTree<RoleModel> {
|
||||
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "编码")
|
||||
private String enCode;
|
||||
@Schema(description = "角色类型")
|
||||
private String type;
|
||||
@Schema(description = "备注")
|
||||
private String description;
|
||||
@Schema(description = "状态")
|
||||
private Integer enabledMark;
|
||||
@Schema(description = "创建时间")
|
||||
private Date creatorTime;
|
||||
@Schema(description = "排序")
|
||||
private Long sortCode;
|
||||
@Schema(description = "数量")
|
||||
private Long num;
|
||||
@Schema(description = "前端解析唯一标识")
|
||||
private String onlyId;
|
||||
@Schema(description = "图标")
|
||||
private String icon;
|
||||
|
||||
|
||||
private String organize;
|
||||
@Schema(description = "组织id树")
|
||||
private List<String> organizeIds;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.yunzhupaas.permission.model.role;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.yunzhupaas.base.Pagination;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class RolePagination extends Pagination {
|
||||
private String organizeId;
|
||||
@Schema(description = "状态")
|
||||
private Integer enabledMark;
|
||||
@Schema(description = "类型")
|
||||
private Integer type;
|
||||
/** 查询key */
|
||||
private String[] selectKey;
|
||||
/** 功能id */
|
||||
private String moduleId;
|
||||
|
||||
/** 查询过滤:0-当前页面,1-全部数据 */
|
||||
private Integer dataType;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.yunzhupaas.permission.model.role;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class RoleSelectorVO {
|
||||
|
||||
@Schema(description = "ID")
|
||||
private String id;
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
@Schema(description = "类型")
|
||||
private String type;
|
||||
@Schema(description = "数量")
|
||||
private Long num;
|
||||
@Schema(description = "前端解析唯一标识")
|
||||
private String onlyId;
|
||||
@Schema(description = "父节点ID")
|
||||
private String parentId;
|
||||
@Schema(description = "子类对象集合")
|
||||
private List<RoleSelectorVO> children;
|
||||
@Schema(description = "是否含有子类对象集合")
|
||||
private Boolean hasChildren;
|
||||
@Schema(description = "")
|
||||
private Boolean isLeaf;
|
||||
@Schema(description = "图标")
|
||||
private String icon;
|
||||
|
||||
|
||||
private String organize;
|
||||
@Schema(description = "组织id树")
|
||||
private List<String> organizeIds;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.yunzhupaas.permission.model.role;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/3/12 15:31
|
||||
*/
|
||||
@Data
|
||||
public class RoleUpForm extends RoleCrForm {
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.yunzhupaas.permission.model.socails;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.yunzhupaas.base.UserInfo;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 流程设计
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.4.2
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/9/8 11:33:59
|
||||
*/
|
||||
@Data
|
||||
public class SocialsUserInfo {
|
||||
UserInfo userInfo;
|
||||
JSONArray tenantUserInfo;
|
||||
String socialUnionid;
|
||||
String socialName;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.yunzhupaas.permission.model.socails;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 流程设计
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.4.2
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/7/14 11:02:42
|
||||
*/
|
||||
@Data
|
||||
public class SocialsUserModel {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private String id;
|
||||
/**
|
||||
* 系统用户id
|
||||
*/
|
||||
private String userId;
|
||||
/**
|
||||
* 第三方类型
|
||||
*/
|
||||
private String socialType;
|
||||
|
||||
/**
|
||||
* 第三方uuid
|
||||
*/
|
||||
private String socialId;
|
||||
/**
|
||||
* 第三方账号
|
||||
*/
|
||||
private String socialName;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date creatorTime;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private String description;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.yunzhupaas.permission.model.socails;
|
||||
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 第三方信息
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.4.2
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/7/14 11:00:30
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Schema(description = "第三方信息")
|
||||
public class SocialsUserVo {
|
||||
@Schema(description = "类型")
|
||||
private String enname;
|
||||
@Schema(description = "名称")
|
||||
private String name;
|
||||
@Schema(description = "描述")
|
||||
private String describetion;
|
||||
@Schema(description = "版本")
|
||||
private String since;
|
||||
@Schema(description = "logo")
|
||||
private String logo;
|
||||
@Schema(description = "官网api文档")
|
||||
private String apiDoc;
|
||||
@Schema(description = "是否首页展示")
|
||||
private boolean isLatest;
|
||||
@Schema(description = "图标")
|
||||
private String icon;
|
||||
@Schema(description = "绑定对象")
|
||||
private SocialsUserModel entity;
|
||||
@Schema(description = "获取登录地址")
|
||||
private String renderUrl;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.yunzhupaas.permission.model.user;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.yunzhupaas.permission.model.user.vo.UserBaseVO;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司(http://www.szlecheng.cn)
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
public class UserIdListVo extends UserBaseVO {
|
||||
|
||||
/**
|
||||
* 前端协议字段,以后将改回realName
|
||||
*/
|
||||
@Schema(description = "名称")
|
||||
private String fullName;
|
||||
|
||||
@Schema(description = "头像")
|
||||
private String headIcon;
|
||||
|
||||
@Schema(description = "性别")
|
||||
private String gender;
|
||||
|
||||
@Schema(description = "手机号")
|
||||
private String mobilePhone;
|
||||
|
||||
@Schema(description = "组织")
|
||||
private String organize;
|
||||
|
||||
@Schema(description = "图标")
|
||||
private String icon;
|
||||
|
||||
@Schema(description = "类型")
|
||||
private String type;
|
||||
|
||||
|
||||
@Schema(description ="组织id树")
|
||||
private List<String> organizeIds;
|
||||
|
||||
@JsonIgnore
|
||||
@Schema(description = "类型")
|
||||
private Integer enabledMark;
|
||||
|
||||
private Integer isAdministrator;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.yunzhupaas.permission.model.user;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.yunzhupaas.base.Pagination;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class UserLogForm extends Pagination implements Serializable {
|
||||
@Schema(description = "开始时间")
|
||||
private String startTime;
|
||||
@Schema(description = "结束时间")
|
||||
private String endTime;
|
||||
@Schema(description = "分类")
|
||||
private int category;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.yunzhupaas.permission.model.user;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class WorkHandoverModel implements Serializable {
|
||||
@NotNull(message = "工作移交人不能为空")
|
||||
private String fromId;
|
||||
@NotNull(message = "工作交接人不能为空")
|
||||
private String toId;
|
||||
private List<String> waitList = new ArrayList<>();
|
||||
private List<String> flowTaskList = new ArrayList<>();
|
||||
private List<String> chargeList = new ArrayList<>();
|
||||
private List<String> flowList = new ArrayList<>();
|
||||
private List<String> circulateList = new ArrayList<>();
|
||||
private List<String> permissionList = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.yunzhupaas.permission.model.user.form;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author 云筑产品开发平台组
|
||||
* @version V3.1.0
|
||||
* @copyright 深圳市乐程软件有限公司
|
||||
* @date 2024/5/14 8:47
|
||||
*/
|
||||
@Data
|
||||
public class UserAppDataForm {
|
||||
private String data;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user