From 18e54d0fcfcb5b6b34de49441c8f988366c2212f Mon Sep 17 00:00:00 2001
From: wangbao <197235339@qq.com>
Date: Wed, 31 Jul 2024 14:01:20 +0800
Subject: [PATCH 01/27] =?UTF-8?q?feat(flow):=20=E5=B7=A5=E4=BD=9C=E6=B5=81?=
=?UTF-8?q?=E6=8E=A5=E5=85=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../execution/EndExecutionListener.java | 15 +++++++++++++++
.../execution/StartExecutionListener.java | 18 ++++++++++++++++++
.../execution/TakeExecutionListener.java | 15 +++++++++++++++
.../listener/task/AssignmentTaskListener.java | 15 +++++++++++++++
.../listener/task/CompleteTaskListener.java | 19 +++++++++++++++++++
.../listener/task/CreateTaskListener.java | 18 ++++++++++++++++++
.../listener/task/DeleteTaskListener.java | 18 ++++++++++++++++++
.../listener/task/NoticeTaskListener.java | 16 ++++++++++++++++
.../listener/task/TimeOutTaskListener.java | 18 ++++++++++++++++++
.../listener/task/UpdateTaskListener.java | 18 ++++++++++++++++++
10 files changed, 170 insertions(+)
create mode 100644 src/main/java/com/olivia/peanut/flow/core/listener/execution/EndExecutionListener.java
create mode 100644 src/main/java/com/olivia/peanut/flow/core/listener/execution/StartExecutionListener.java
create mode 100644 src/main/java/com/olivia/peanut/flow/core/listener/execution/TakeExecutionListener.java
create mode 100644 src/main/java/com/olivia/peanut/flow/core/listener/task/AssignmentTaskListener.java
create mode 100644 src/main/java/com/olivia/peanut/flow/core/listener/task/CompleteTaskListener.java
create mode 100644 src/main/java/com/olivia/peanut/flow/core/listener/task/CreateTaskListener.java
create mode 100644 src/main/java/com/olivia/peanut/flow/core/listener/task/DeleteTaskListener.java
create mode 100644 src/main/java/com/olivia/peanut/flow/core/listener/task/NoticeTaskListener.java
create mode 100644 src/main/java/com/olivia/peanut/flow/core/listener/task/TimeOutTaskListener.java
create mode 100644 src/main/java/com/olivia/peanut/flow/core/listener/task/UpdateTaskListener.java
diff --git a/src/main/java/com/olivia/peanut/flow/core/listener/execution/EndExecutionListener.java b/src/main/java/com/olivia/peanut/flow/core/listener/execution/EndExecutionListener.java
new file mode 100644
index 0000000..15395a6
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/flow/core/listener/execution/EndExecutionListener.java
@@ -0,0 +1,15 @@
+package com.olivia.peanut.flow.core.listener.execution;
+
+import org.camunda.bpm.engine.delegate.DelegateExecution;
+import org.camunda.bpm.engine.delegate.ExecutionListener;
+
+/***
+ *
+ */
+public class EndExecutionListener implements ExecutionListener {
+
+ @Override
+ public void notify(DelegateExecution execution) throws Exception {
+
+ }
+}
diff --git a/src/main/java/com/olivia/peanut/flow/core/listener/execution/StartExecutionListener.java b/src/main/java/com/olivia/peanut/flow/core/listener/execution/StartExecutionListener.java
new file mode 100644
index 0000000..54f23bb
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/flow/core/listener/execution/StartExecutionListener.java
@@ -0,0 +1,18 @@
+package com.olivia.peanut.flow.core.listener.execution;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import org.camunda.bpm.engine.delegate.DelegateExecution;
+import org.camunda.bpm.engine.delegate.ExecutionListener;
+
+/***
+ *
+ */
+public class StartExecutionListener implements ExecutionListener {
+
+ @Override
+ public void notify(DelegateExecution execution) throws Exception {
+
+ }
+}
diff --git a/src/main/java/com/olivia/peanut/flow/core/listener/execution/TakeExecutionListener.java b/src/main/java/com/olivia/peanut/flow/core/listener/execution/TakeExecutionListener.java
new file mode 100644
index 0000000..0ee0a26
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/flow/core/listener/execution/TakeExecutionListener.java
@@ -0,0 +1,15 @@
+package com.olivia.peanut.flow.core.listener.execution;
+
+import org.camunda.bpm.engine.delegate.DelegateExecution;
+import org.camunda.bpm.engine.delegate.ExecutionListener;
+
+/***
+ *
+ */
+public class TakeExecutionListener implements ExecutionListener {
+
+ @Override
+ public void notify(DelegateExecution execution) throws Exception {
+
+ }
+}
diff --git a/src/main/java/com/olivia/peanut/flow/core/listener/task/AssignmentTaskListener.java b/src/main/java/com/olivia/peanut/flow/core/listener/task/AssignmentTaskListener.java
new file mode 100644
index 0000000..7fc2dcb
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/flow/core/listener/task/AssignmentTaskListener.java
@@ -0,0 +1,15 @@
+package com.olivia.peanut.flow.core.listener.task;
+
+import org.camunda.bpm.engine.delegate.DelegateTask;
+import org.camunda.bpm.engine.delegate.TaskListener;
+
+/***
+ *
+ */
+public class AssignmentTaskListener implements TaskListener {
+
+ @Override
+ public void notify(DelegateTask delegateTask) {
+
+ }
+}
diff --git a/src/main/java/com/olivia/peanut/flow/core/listener/task/CompleteTaskListener.java b/src/main/java/com/olivia/peanut/flow/core/listener/task/CompleteTaskListener.java
new file mode 100644
index 0000000..92dec4d
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/flow/core/listener/task/CompleteTaskListener.java
@@ -0,0 +1,19 @@
+package com.olivia.peanut.flow.core.listener.task;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import org.camunda.bpm.engine.delegate.DelegateTask;
+import org.camunda.bpm.engine.delegate.TaskListener;
+
+/***
+ *
+ */
+
+public class CompleteTaskListener implements TaskListener {
+
+ @Override
+ public void notify(DelegateTask delegateTask) {
+
+ }
+}
diff --git a/src/main/java/com/olivia/peanut/flow/core/listener/task/CreateTaskListener.java b/src/main/java/com/olivia/peanut/flow/core/listener/task/CreateTaskListener.java
new file mode 100644
index 0000000..0b10334
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/flow/core/listener/task/CreateTaskListener.java
@@ -0,0 +1,18 @@
+package com.olivia.peanut.flow.core.listener.task;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import org.camunda.bpm.engine.delegate.DelegateTask;
+import org.camunda.bpm.engine.delegate.TaskListener;
+
+/***
+ *
+ */
+public class CreateTaskListener implements TaskListener {
+
+ @Override
+ public void notify(DelegateTask delegateTask) {
+
+ }
+}
diff --git a/src/main/java/com/olivia/peanut/flow/core/listener/task/DeleteTaskListener.java b/src/main/java/com/olivia/peanut/flow/core/listener/task/DeleteTaskListener.java
new file mode 100644
index 0000000..66bbf18
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/flow/core/listener/task/DeleteTaskListener.java
@@ -0,0 +1,18 @@
+package com.olivia.peanut.flow.core.listener.task;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import org.camunda.bpm.engine.delegate.DelegateTask;
+import org.camunda.bpm.engine.delegate.TaskListener;
+
+/***
+ *
+ */
+public class DeleteTaskListener implements TaskListener {
+
+ @Override
+ public void notify(DelegateTask delegateTask) {
+
+ }
+}
diff --git a/src/main/java/com/olivia/peanut/flow/core/listener/task/NoticeTaskListener.java b/src/main/java/com/olivia/peanut/flow/core/listener/task/NoticeTaskListener.java
new file mode 100644
index 0000000..2f2c5a3
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/flow/core/listener/task/NoticeTaskListener.java
@@ -0,0 +1,16 @@
+package com.olivia.peanut.flow.core.listener.task;
+
+import org.camunda.bpm.engine.impl.pvm.delegate.ActivityBehavior;
+import org.camunda.bpm.engine.impl.pvm.delegate.ActivityExecution;
+
+/***
+ * 通知
+ */
+public class NoticeTaskListener implements ActivityBehavior {
+
+
+ @Override
+ public void execute(ActivityExecution execution) throws Exception {
+
+ }
+}
diff --git a/src/main/java/com/olivia/peanut/flow/core/listener/task/TimeOutTaskListener.java b/src/main/java/com/olivia/peanut/flow/core/listener/task/TimeOutTaskListener.java
new file mode 100644
index 0000000..68dd211
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/flow/core/listener/task/TimeOutTaskListener.java
@@ -0,0 +1,18 @@
+package com.olivia.peanut.flow.core.listener.task;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import org.camunda.bpm.engine.delegate.DelegateTask;
+import org.camunda.bpm.engine.delegate.TaskListener;
+
+/***
+ *
+ */
+public class TimeOutTaskListener implements TaskListener {
+
+ @Override
+ public void notify(DelegateTask delegateTask) {
+
+ }
+}
diff --git a/src/main/java/com/olivia/peanut/flow/core/listener/task/UpdateTaskListener.java b/src/main/java/com/olivia/peanut/flow/core/listener/task/UpdateTaskListener.java
new file mode 100644
index 0000000..0bb01b2
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/flow/core/listener/task/UpdateTaskListener.java
@@ -0,0 +1,18 @@
+package com.olivia.peanut.flow.core.listener.task;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import org.camunda.bpm.engine.delegate.DelegateTask;
+import org.camunda.bpm.engine.delegate.TaskListener;
+
+/***
+ *
+ */
+public class UpdateTaskListener implements TaskListener {
+
+ @Override
+ public void notify(DelegateTask delegateTask) {
+
+ }
+}
--
Gitee
From 9f549bbdf337a7b4bae06fdf4a1dc2a147ea7603 Mon Sep 17 00:00:00 2001
From: wangbao <197235339@qq.com>
Date: Wed, 31 Jul 2024 15:16:16 +0800
Subject: [PATCH 02/27] =?UTF-8?q?feat(role):=20=E8=A7=92=E8=89=B2=E8=A7=92?=
=?UTF-8?q?=E8=89=B2=E7=BB=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 2 +-
sql/tmp.sql | 139 ++++++++++
.../olivia/peanut/base/api/BaseDeptApi.java | 76 ++++++
.../peanut/base/api/BaseResourceApi.java | 76 ++++++
.../olivia/peanut/base/api/BaseRoleApi.java | 76 ++++++
.../peanut/base/api/BaseRoleGroupApi.java | 76 ++++++
.../peanut/base/api/BaseRoleResourceApi.java | 76 ++++++
.../peanut/base/api/BaseUserDeptApi.java | 76 ++++++
.../peanut/base/api/BaseUserRoleApi.java | 76 ++++++
.../peanut/base/api/BaseUserRoleGroupApi.java | 76 ++++++
.../baseDept/BaseDeptDeleteByIdListReq.java | 34 +++
.../baseDept/BaseDeptDeleteByIdListRes.java | 29 ++
.../base/api/entity/baseDept/BaseDeptDto.java | 52 ++++
.../BaseDeptExportQueryPageListInfoRes.java | 27 ++
.../BaseDeptExportQueryPageListReq.java | 34 +++
.../entity/baseDept/BaseDeptImportReq.java | 31 +++
.../entity/baseDept/BaseDeptImportRes.java | 31 +++
.../entity/baseDept/BaseDeptInsertReq.java | 25 ++
.../entity/baseDept/BaseDeptInsertRes.java | 29 ++
.../baseDept/BaseDeptQueryByIdListReq.java | 32 +++
.../baseDept/BaseDeptQueryByIdListRes.java | 31 +++
.../entity/baseDept/BaseDeptQueryListReq.java | 26 ++
.../entity/baseDept/BaseDeptQueryListRes.java | 31 +++
.../baseDept/BaseDeptUpdateByIdReq.java | 30 ++
.../baseDept/BaseDeptUpdateByIdRes.java | 24 ++
.../BaseResourceDeleteByIdListReq.java | 34 +++
.../BaseResourceDeleteByIdListRes.java | 29 ++
.../entity/baseResource/BaseResourceDto.java | 72 +++++
...aseResourceExportQueryPageListInfoRes.java | 27 ++
.../BaseResourceExportQueryPageListReq.java | 34 +++
.../baseResource/BaseResourceImportReq.java | 31 +++
.../baseResource/BaseResourceImportRes.java | 31 +++
.../baseResource/BaseResourceInsertReq.java | 25 ++
.../baseResource/BaseResourceInsertRes.java | 29 ++
.../BaseResourceQueryByIdListReq.java | 32 +++
.../BaseResourceQueryByIdListRes.java | 31 +++
.../BaseResourceQueryListReq.java | 26 ++
.../BaseResourceQueryListRes.java | 31 +++
.../BaseResourceUpdateByIdReq.java | 30 ++
.../BaseResourceUpdateByIdRes.java | 24 ++
.../baseRole/BaseRoleDeleteByIdListReq.java | 34 +++
.../baseRole/BaseRoleDeleteByIdListRes.java | 29 ++
.../base/api/entity/baseRole/BaseRoleDto.java | 42 +++
.../BaseRoleExportQueryPageListInfoRes.java | 27 ++
.../BaseRoleExportQueryPageListReq.java | 34 +++
.../entity/baseRole/BaseRoleImportReq.java | 31 +++
.../entity/baseRole/BaseRoleImportRes.java | 31 +++
.../entity/baseRole/BaseRoleInsertReq.java | 25 ++
.../entity/baseRole/BaseRoleInsertRes.java | 29 ++
.../baseRole/BaseRoleQueryByIdListReq.java | 32 +++
.../baseRole/BaseRoleQueryByIdListRes.java | 31 +++
.../entity/baseRole/BaseRoleQueryListReq.java | 26 ++
.../entity/baseRole/BaseRoleQueryListRes.java | 31 +++
.../baseRole/BaseRoleUpdateByIdReq.java | 30 ++
.../baseRole/BaseRoleUpdateByIdRes.java | 24 ++
.../BaseRoleGroupDeleteByIdListReq.java | 34 +++
.../BaseRoleGroupDeleteByIdListRes.java | 29 ++
.../baseRoleGroup/BaseRoleGroupDto.java | 42 +++
...seRoleGroupExportQueryPageListInfoRes.java | 27 ++
.../BaseRoleGroupExportQueryPageListReq.java | 34 +++
.../baseRoleGroup/BaseRoleGroupImportReq.java | 31 +++
.../baseRoleGroup/BaseRoleGroupImportRes.java | 31 +++
.../baseRoleGroup/BaseRoleGroupInsertReq.java | 25 ++
.../baseRoleGroup/BaseRoleGroupInsertRes.java | 29 ++
.../BaseRoleGroupQueryByIdListReq.java | 32 +++
.../BaseRoleGroupQueryByIdListRes.java | 31 +++
.../BaseRoleGroupQueryListReq.java | 26 ++
.../BaseRoleGroupQueryListRes.java | 31 +++
.../BaseRoleGroupUpdateByIdReq.java | 30 ++
.../BaseRoleGroupUpdateByIdRes.java | 24 ++
.../BaseRoleResourceDeleteByIdListReq.java | 34 +++
.../BaseRoleResourceDeleteByIdListRes.java | 29 ++
.../baseRoleResource/BaseRoleResourceDto.java | 42 +++
...oleResourceExportQueryPageListInfoRes.java | 27 ++
...aseRoleResourceExportQueryPageListReq.java | 34 +++
.../BaseRoleResourceImportReq.java | 31 +++
.../BaseRoleResourceImportRes.java | 31 +++
.../BaseRoleResourceInsertReq.java | 25 ++
.../BaseRoleResourceInsertRes.java | 29 ++
.../BaseRoleResourceQueryByIdListReq.java | 32 +++
.../BaseRoleResourceQueryByIdListRes.java | 31 +++
.../BaseRoleResourceQueryListReq.java | 26 ++
.../BaseRoleResourceQueryListRes.java | 31 +++
.../BaseRoleResourceUpdateByIdReq.java | 30 ++
.../BaseRoleResourceUpdateByIdRes.java | 24 ++
.../BaseUserDeptDeleteByIdListReq.java | 34 +++
.../BaseUserDeptDeleteByIdListRes.java | 29 ++
.../entity/baseUserDept/BaseUserDeptDto.java | 42 +++
...aseUserDeptExportQueryPageListInfoRes.java | 27 ++
.../BaseUserDeptExportQueryPageListReq.java | 34 +++
.../baseUserDept/BaseUserDeptImportReq.java | 31 +++
.../baseUserDept/BaseUserDeptImportRes.java | 31 +++
.../baseUserDept/BaseUserDeptInsertReq.java | 25 ++
.../baseUserDept/BaseUserDeptInsertRes.java | 29 ++
.../BaseUserDeptQueryByIdListReq.java | 32 +++
.../BaseUserDeptQueryByIdListRes.java | 31 +++
.../BaseUserDeptQueryListReq.java | 26 ++
.../BaseUserDeptQueryListRes.java | 31 +++
.../BaseUserDeptUpdateByIdReq.java | 30 ++
.../BaseUserDeptUpdateByIdRes.java | 24 ++
.../BaseUserRoleDeleteByIdListReq.java | 34 +++
.../BaseUserRoleDeleteByIdListRes.java | 29 ++
.../entity/baseUserRole/BaseUserRoleDto.java | 42 +++
...aseUserRoleExportQueryPageListInfoRes.java | 27 ++
.../BaseUserRoleExportQueryPageListReq.java | 34 +++
.../baseUserRole/BaseUserRoleImportReq.java | 31 +++
.../baseUserRole/BaseUserRoleImportRes.java | 31 +++
.../baseUserRole/BaseUserRoleInsertReq.java | 25 ++
.../baseUserRole/BaseUserRoleInsertRes.java | 29 ++
.../BaseUserRoleQueryByIdListReq.java | 32 +++
.../BaseUserRoleQueryByIdListRes.java | 31 +++
.../BaseUserRoleQueryListReq.java | 26 ++
.../BaseUserRoleQueryListRes.java | 31 +++
.../BaseUserRoleUpdateByIdReq.java | 30 ++
.../BaseUserRoleUpdateByIdRes.java | 24 ++
.../BaseUserRoleGroupDeleteByIdListReq.java | 34 +++
.../BaseUserRoleGroupDeleteByIdListRes.java | 29 ++
.../BaseUserRoleGroupDto.java | 42 +++
...erRoleGroupExportQueryPageListInfoRes.java | 27 ++
...seUserRoleGroupExportQueryPageListReq.java | 34 +++
.../BaseUserRoleGroupImportReq.java | 31 +++
.../BaseUserRoleGroupImportRes.java | 31 +++
.../BaseUserRoleGroupInsertReq.java | 25 ++
.../BaseUserRoleGroupInsertRes.java | 29 ++
.../BaseUserRoleGroupQueryByIdListReq.java | 32 +++
.../BaseUserRoleGroupQueryByIdListRes.java | 31 +++
.../BaseUserRoleGroupQueryListReq.java | 26 ++
.../BaseUserRoleGroupQueryListRes.java | 31 +++
.../BaseUserRoleGroupUpdateByIdReq.java | 30 ++
.../BaseUserRoleGroupUpdateByIdRes.java | 24 ++
.../peanut/base/api/impl/BaseDeptApiImpl.java | 104 +++++++
.../base/api/impl/BaseResourceApiImpl.java | 104 +++++++
.../peanut/base/api/impl/BaseRoleApiImpl.java | 104 +++++++
.../base/api/impl/BaseRoleGroupApiImpl.java | 104 +++++++
.../api/impl/BaseRoleResourceApiImpl.java | 104 +++++++
.../base/api/impl/BaseUserDeptApiImpl.java | 104 +++++++
.../base/api/impl/BaseUserRoleApiImpl.java | 104 +++++++
.../api/impl/BaseUserRoleGroupApiImpl.java | 104 +++++++
.../impl/listener/BaseDeptImportListener.java | 48 ++++
.../listener/BaseResourceImportListener.java | 48 ++++
.../listener/BaseRoleGroupImportListener.java | 48 ++++
.../impl/listener/BaseRoleImportListener.java | 48 ++++
.../BaseRoleResourceImportListener.java | 48 ++++
.../listener/BaseUserDeptImportListener.java | 48 ++++
.../BaseUserRoleGroupImportListener.java | 48 ++++
.../listener/BaseUserRoleImportListener.java | 48 ++++
.../peanut/base/mapper/BaseDeptMapper.java | 18 ++
.../base/mapper/BaseResourceMapper.java | 18 ++
.../base/mapper/BaseRoleGroupMapper.java | 18 ++
.../peanut/base/mapper/BaseRoleMapper.java | 18 ++
.../base/mapper/BaseRoleResourceMapper.java | 18 ++
.../base/mapper/BaseUserDeptMapper.java | 18 ++
.../base/mapper/BaseUserRoleGroupMapper.java | 18 ++
.../base/mapper/BaseUserRoleMapper.java | 18 ++
.../olivia/peanut/base/model/BaseDept.java | 43 +++
.../peanut/base/model/BaseResource.java | 59 ++++
.../olivia/peanut/base/model/BaseRole.java | 39 +++
.../peanut/base/model/BaseRoleGroup.java | 35 +++
.../peanut/base/model/BaseRoleResource.java | 35 +++
.../peanut/base/model/BaseUserDept.java | 35 +++
.../peanut/base/model/BaseUserRole.java | 35 +++
.../peanut/base/model/BaseUserRoleGroup.java | 35 +++
.../peanut/base/service/BaseDeptService.java | 26 ++
.../base/service/BaseResourceService.java | 26 ++
.../base/service/BaseRoleGroupService.java | 26 ++
.../base/service/BaseRoleResourceService.java | 26 ++
.../peanut/base/service/BaseRoleService.java | 26 ++
.../base/service/BaseUserDeptService.java | 26 ++
.../service/BaseUserRoleGroupService.java | 26 ++
.../base/service/BaseUserRoleService.java | 26 ++
.../service/impl/BaseDeptServiceImpl.java | 116 ++++++++
.../service/impl/BaseResourceServiceImpl.java | 120 ++++++++
.../impl/BaseRoleGroupServiceImpl.java | 114 ++++++++
.../impl/BaseRoleResourceServiceImpl.java | 114 ++++++++
.../service/impl/BaseRoleServiceImpl.java | 118 ++++++++
.../service/impl/BaseUserDeptServiceImpl.java | 114 ++++++++
.../impl/BaseUserRoleGroupServiceImpl.java | 114 ++++++++
.../service/impl/BaseUserRoleServiceImpl.java | 114 ++++++++
.../peanut/base/vue/baseDept/BaseDept.vue | 226 +++++++++++++++
.../base/vue/baseResource/BaseResource.vue | 258 ++++++++++++++++++
.../peanut/base/vue/baseRole/BaseRole.vue | 218 +++++++++++++++
.../base/vue/baseRoleGroup/BaseRoleGroup.vue | 210 ++++++++++++++
.../vue/baseRoleResource/BaseRoleResource.vue | 210 ++++++++++++++
.../base/vue/baseUserDept/BaseUserDept.vue | 210 ++++++++++++++
.../base/vue/baseUserRole/BaseUserRole.vue | 210 ++++++++++++++
.../baseUserRoleGroup/BaseUserRoleGroup.vue | 210 ++++++++++++++
.../peanut/portal/model/LoginAccount.java | 6 +
187 files changed, 9002 insertions(+), 1 deletion(-)
create mode 100644 src/main/java/com/olivia/peanut/base/api/BaseDeptApi.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/BaseResourceApi.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/BaseRoleApi.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/BaseRoleGroupApi.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/BaseRoleResourceApi.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/BaseUserDeptApi.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/BaseUserRoleApi.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/BaseUserRoleGroupApi.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptDeleteByIdListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptDeleteByIdListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptDto.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptExportQueryPageListInfoRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptExportQueryPageListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptImportReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptImportRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptInsertReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptInsertRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptQueryByIdListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptQueryByIdListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptQueryListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptQueryListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptUpdateByIdReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptUpdateByIdRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceDeleteByIdListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceDeleteByIdListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceDto.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceExportQueryPageListInfoRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceExportQueryPageListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceImportReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceImportRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceInsertReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceInsertRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceQueryByIdListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceQueryByIdListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceQueryListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceQueryListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceUpdateByIdReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceUpdateByIdRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleDeleteByIdListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleDeleteByIdListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleDto.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleExportQueryPageListInfoRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleExportQueryPageListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleImportReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleImportRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleInsertReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleInsertRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleQueryByIdListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleQueryByIdListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleQueryListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleQueryListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleUpdateByIdReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleUpdateByIdRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupDeleteByIdListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupDeleteByIdListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupDto.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupExportQueryPageListInfoRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupExportQueryPageListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupImportReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupImportRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupInsertReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupInsertRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupQueryByIdListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupQueryByIdListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupQueryListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupQueryListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupUpdateByIdReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupUpdateByIdRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceDeleteByIdListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceDeleteByIdListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceDto.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceExportQueryPageListInfoRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceExportQueryPageListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceImportReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceImportRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceInsertReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceInsertRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceQueryByIdListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceQueryByIdListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceQueryListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceQueryListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceUpdateByIdReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceUpdateByIdRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptDeleteByIdListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptDeleteByIdListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptDto.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptExportQueryPageListInfoRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptExportQueryPageListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptImportReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptImportRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptInsertReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptInsertRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptQueryByIdListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptQueryByIdListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptQueryListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptQueryListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptUpdateByIdReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptUpdateByIdRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleDeleteByIdListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleDeleteByIdListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleDto.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleExportQueryPageListInfoRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleExportQueryPageListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleImportReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleImportRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleInsertReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleInsertRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleQueryByIdListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleQueryByIdListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleQueryListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleQueryListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleUpdateByIdReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleUpdateByIdRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupDeleteByIdListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupDeleteByIdListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupDto.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupExportQueryPageListInfoRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupExportQueryPageListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupImportReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupImportRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupInsertReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupInsertRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupQueryByIdListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupQueryByIdListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupQueryListReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupQueryListRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupUpdateByIdReq.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupUpdateByIdRes.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/impl/BaseDeptApiImpl.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/impl/BaseResourceApiImpl.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/impl/BaseRoleApiImpl.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/impl/BaseRoleGroupApiImpl.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/impl/BaseRoleResourceApiImpl.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/impl/BaseUserDeptApiImpl.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/impl/BaseUserRoleApiImpl.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/impl/BaseUserRoleGroupApiImpl.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/impl/listener/BaseDeptImportListener.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/impl/listener/BaseResourceImportListener.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/impl/listener/BaseRoleGroupImportListener.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/impl/listener/BaseRoleImportListener.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/impl/listener/BaseRoleResourceImportListener.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/impl/listener/BaseUserDeptImportListener.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/impl/listener/BaseUserRoleGroupImportListener.java
create mode 100644 src/main/java/com/olivia/peanut/base/api/impl/listener/BaseUserRoleImportListener.java
create mode 100644 src/main/java/com/olivia/peanut/base/mapper/BaseDeptMapper.java
create mode 100644 src/main/java/com/olivia/peanut/base/mapper/BaseResourceMapper.java
create mode 100644 src/main/java/com/olivia/peanut/base/mapper/BaseRoleGroupMapper.java
create mode 100644 src/main/java/com/olivia/peanut/base/mapper/BaseRoleMapper.java
create mode 100644 src/main/java/com/olivia/peanut/base/mapper/BaseRoleResourceMapper.java
create mode 100644 src/main/java/com/olivia/peanut/base/mapper/BaseUserDeptMapper.java
create mode 100644 src/main/java/com/olivia/peanut/base/mapper/BaseUserRoleGroupMapper.java
create mode 100644 src/main/java/com/olivia/peanut/base/mapper/BaseUserRoleMapper.java
create mode 100644 src/main/java/com/olivia/peanut/base/model/BaseDept.java
create mode 100644 src/main/java/com/olivia/peanut/base/model/BaseResource.java
create mode 100644 src/main/java/com/olivia/peanut/base/model/BaseRole.java
create mode 100644 src/main/java/com/olivia/peanut/base/model/BaseRoleGroup.java
create mode 100644 src/main/java/com/olivia/peanut/base/model/BaseRoleResource.java
create mode 100644 src/main/java/com/olivia/peanut/base/model/BaseUserDept.java
create mode 100644 src/main/java/com/olivia/peanut/base/model/BaseUserRole.java
create mode 100644 src/main/java/com/olivia/peanut/base/model/BaseUserRoleGroup.java
create mode 100644 src/main/java/com/olivia/peanut/base/service/BaseDeptService.java
create mode 100644 src/main/java/com/olivia/peanut/base/service/BaseResourceService.java
create mode 100644 src/main/java/com/olivia/peanut/base/service/BaseRoleGroupService.java
create mode 100644 src/main/java/com/olivia/peanut/base/service/BaseRoleResourceService.java
create mode 100644 src/main/java/com/olivia/peanut/base/service/BaseRoleService.java
create mode 100644 src/main/java/com/olivia/peanut/base/service/BaseUserDeptService.java
create mode 100644 src/main/java/com/olivia/peanut/base/service/BaseUserRoleGroupService.java
create mode 100644 src/main/java/com/olivia/peanut/base/service/BaseUserRoleService.java
create mode 100644 src/main/java/com/olivia/peanut/base/service/impl/BaseDeptServiceImpl.java
create mode 100644 src/main/java/com/olivia/peanut/base/service/impl/BaseResourceServiceImpl.java
create mode 100644 src/main/java/com/olivia/peanut/base/service/impl/BaseRoleGroupServiceImpl.java
create mode 100644 src/main/java/com/olivia/peanut/base/service/impl/BaseRoleResourceServiceImpl.java
create mode 100644 src/main/java/com/olivia/peanut/base/service/impl/BaseRoleServiceImpl.java
create mode 100644 src/main/java/com/olivia/peanut/base/service/impl/BaseUserDeptServiceImpl.java
create mode 100644 src/main/java/com/olivia/peanut/base/service/impl/BaseUserRoleGroupServiceImpl.java
create mode 100644 src/main/java/com/olivia/peanut/base/service/impl/BaseUserRoleServiceImpl.java
create mode 100644 src/main/java/com/olivia/peanut/base/vue/baseDept/BaseDept.vue
create mode 100644 src/main/java/com/olivia/peanut/base/vue/baseResource/BaseResource.vue
create mode 100644 src/main/java/com/olivia/peanut/base/vue/baseRole/BaseRole.vue
create mode 100644 src/main/java/com/olivia/peanut/base/vue/baseRoleGroup/BaseRoleGroup.vue
create mode 100644 src/main/java/com/olivia/peanut/base/vue/baseRoleResource/BaseRoleResource.vue
create mode 100644 src/main/java/com/olivia/peanut/base/vue/baseUserDept/BaseUserDept.vue
create mode 100644 src/main/java/com/olivia/peanut/base/vue/baseUserRole/BaseUserRole.vue
create mode 100644 src/main/java/com/olivia/peanut/base/vue/baseUserRoleGroup/BaseUserRoleGroup.vue
diff --git a/pom.xml b/pom.xml
index 1f18177..d699b66 100644
--- a/pom.xml
+++ b/pom.xml
@@ -65,7 +65,7 @@
peanut-sdk
com.olivia
- 1.0.0-SNAPSHOT
+ 1.0.1-SNAPSHOT
com.mysql
diff --git a/sql/tmp.sql b/sql/tmp.sql
index e69de29..7922ed5 100644
--- a/sql/tmp.sql
+++ b/sql/tmp.sql
@@ -0,0 +1,139 @@
+
+alter table base_role_resource
+add column tenant_id bigint null comment '租户ID';
+
+
+create table if not exists base_role
+(
+ id bigint auto_increment comment 'ID 自增' primary key,
+ role_code varchar(64) null comment '角色编码',
+ role_name varchar(64) null comment '角色名称',
+ role_group_id bigint null comment '角色组',
+ is_delete tinyint(1) default 0 null comment '是否删除 0 否,1 是',
+ create_time datetime default CURRENT_TIMESTAMP null comment '创建时间',
+ create_by bigint null comment '创建人',
+ update_time datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '修改时间',
+ update_by bigint null comment '修改人',
+ trace_id varchar(64) null comment '调用链路',
+ version_num int default 0 null comment '版本号'
+
+) comment '角色表';
+
+create table if not exists base_role_group
+(
+ id bigint auto_increment comment 'ID 自增' primary key,
+ role_group_code varchar(64) null comment '角色组编码',
+ role_group_name varchar(64) null comment '角色组名称',
+ is_delete tinyint(1) default 0 null comment '是否删除 0 否,1 是',
+ create_time datetime default CURRENT_TIMESTAMP null comment '创建时间',
+ create_by bigint null comment '创建人',
+ update_time datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '修改时间',
+ update_by bigint null comment '修改人',
+ trace_id varchar(64) null comment '调用链路',
+ version_num int default 0 null comment '版本号'
+)
+ comment '角色组表';
+
+
+create table if not exists base_user_role
+(
+ id bigint auto_increment comment 'ID 自增' primary key,
+ user_id bigint null comment '用户ID',
+ role_id bigint null comment '角色ID',
+ is_delete tinyint(1) default 0 null comment '是否删除 0 否,1 是',
+ create_time datetime default CURRENT_TIMESTAMP null comment '创建时间',
+ create_by bigint null comment '创建人',
+ update_time datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '修改时间',
+ update_by bigint null comment '修改人',
+ trace_id varchar(64) null comment '调用链路',
+ version_num int default 0 null comment '版本号',
+ key idx_user_id (user_id)
+) comment '用户角色表';
+
+create table if not exists base_user_role_group
+(
+ id bigint auto_increment comment 'ID 自增' primary key,
+ user_id bigint null comment '用户ID',
+ role_group_id bigint null comment '角色组ID',
+ is_delete tinyint(1) default 0 null comment '是否删除 0 否,1 是',
+ create_time datetime default CURRENT_TIMESTAMP null comment '创建时间',
+ create_by bigint null comment '创建人',
+ update_time datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '修改时间',
+ update_by bigint null comment '修改人',
+ trace_id varchar(64) null comment '调用链路',
+ version_num int default 0 null comment '版本号',
+ key idx_user_id (user_id)
+) comment '用户角色组表';
+
+
+-- 部门
+create table if not exists base_dept
+(
+ id bigint auto_increment comment 'ID 自增' primary key,
+ dept_code varchar(64) null comment '部门编码',
+ dept_name varchar(64) null comment '部门名称',
+ parent_id bigint null comment '父部门ID',
+ path varchar(512) null comment '部门路径',
+ is_delete tinyint(1) default 0 null comment '是否删除 0 否,1 是',
+ create_time datetime default CURRENT_TIMESTAMP null comment '创建时间',
+ create_by bigint null comment '创建人',
+ update_time datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '修改时间',
+ update_by bigint null comment '修改人',
+ trace_id varchar(64) null comment '调用链路',
+ version_num int default 0 null comment '版本号'
+)
+comment '部门表';
+
+
+create table if not exists base_user_dept
+(
+ id bigint auto_increment comment 'ID 自增' primary key,
+ user_id bigint null comment '用户ID',
+ dept_id bigint null comment '部门ID',
+ is_delete tinyint(1) default 0 null comment '是否删除 0 否,1 是',
+ create_time datetime default CURRENT_TIMESTAMP null comment '创建时间',
+ create_by bigint null comment '创建人',
+ update_time datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '修改时间',
+ update_by bigint null comment '修改人',
+ trace_id varchar(64) null comment '调用链路',
+ version_num int default 0 null comment '版本号',
+ key idx_user_id_dept_id (user_id, dept_id)
+) comment '用户部门表';
+
+
+
+-- 菜单
+
+create table if not exists base_resource
+(
+ id bigint auto_increment comment 'ID 自增' primary key,
+ resource_code varchar(64) null comment '菜单编码',
+ resource_name varchar(64) null comment '菜单名称',
+ resource_url varchar(512) null comment '菜单URL',
+ resource_icon varchar(64) null comment '菜单图标',
+ resource_type varchar(64) null comment '菜单类型',
+ is_button tinyint(1) default 0 null comment '是否按钮 0 否,1 是',
+ parent_id bigint null comment '父菜单ID',
+ path varchar(512) null comment '菜单路径',
+ is_delete tinyint(1) default 0 null comment '是否删除 0 否,1 是',
+ create_time datetime default CURRENT_TIMESTAMP null comment '创建时间',
+ create_by bigint null comment '创建人',
+ update_time datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '修改时间',
+ update_by bigint null comment '修改人',
+ trace_id varchar(64) null comment '调用链路',
+ version_num int default 0 null comment '版本号'
+) comment '资源';
+
+create table if not exists base_role_resource
+(
+ id bigint auto_increment comment 'ID 自增' primary key,
+ role_id bigint null comment '角色ID',
+ resource_id bigint null comment '菜单ID',
+ is_delete tinyint(1) default 0 null comment '是否删除 0 否,1 是',
+ create_time datetime default CURRENT_TIMESTAMP null comment '创建时间',
+ create_by bigint null comment '创建人',
+ update_time datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '修改时间',
+ update_by bigint null comment '修改人',
+ trace_id varchar(64) null comment '调用链路',
+ version_num int default 0 null comment '版本号'
+) comment '角色资源表';
diff --git a/src/main/java/com/olivia/peanut/base/api/BaseDeptApi.java b/src/main/java/com/olivia/peanut/base/api/BaseDeptApi.java
new file mode 100644
index 0000000..7f2e9e6
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/BaseDeptApi.java
@@ -0,0 +1,76 @@
+package com.olivia.peanut.base.api;
+
+import org.springframework.validation.annotation.Validated;
+import com.olivia.sdk.utils.DynamicsPage;
+import jakarta.validation.Valid;
+import org.springframework.web.bind.annotation.*;
+import com.olivia.peanut.base.api.entity.baseDept.*;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import org.springframework.web.multipart.MultipartFile;
+import com.olivia.sdk.ann.InsertCheck;
+import com.olivia.sdk.ann.UpdateCheck;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+
+
+/**
+ * 部门表(BaseDept)对外API
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:30
+ */
+// @FeignClient(value = "",contextId = "baseDept-api",url = "${ portal..center.endpoint:}")
+public interface BaseDeptApi {
+
+ /**
+ * 保存 部门表
+ */
+ @PostMapping("/baseDept/insert")
+ BaseDeptInsertRes insert(@RequestBody @Validated(InsertCheck.class) BaseDeptInsertReq req);
+
+ /**
+ * 根据ID 删除 部门表
+ */
+ @PostMapping("/baseDept/deleteByIdList")
+ BaseDeptDeleteByIdListRes deleteByIdList(@RequestBody @Valid BaseDeptDeleteByIdListReq req);
+
+ /**
+ * 查询 部门表
+ */
+ @PostMapping("/baseDept/queryList")
+ BaseDeptQueryListRes queryList(@RequestBody @Valid BaseDeptQueryListReq req);
+
+ /**
+ * 根据ID 更新 部门表
+ */
+ @PostMapping("/baseDept/updateById")
+ BaseDeptUpdateByIdRes updateById(@RequestBody @Validated(UpdateCheck.class) BaseDeptUpdateByIdReq req);
+
+ /**
+ * 分页查询 部门表
+ */
+ @PostMapping("/baseDept/queryPageList")
+ DynamicsPage queryPageList(@RequestBody @Valid BaseDeptExportQueryPageListReq req);
+
+ /**
+ * 导出 部门表
+ */
+ @PostMapping("/baseDept/exportQueryPageList")
+ void queryPageListExport(@RequestBody @Valid BaseDeptExportQueryPageListReq req);
+
+ /**
+ * 导入
+ */
+ @PostMapping("/baseDept/importData")
+ BaseDeptImportRes importData(@RequestParam("file") MultipartFile file);
+
+
+ /**
+ * 根据ID 批量查询
+ */
+ @PostMapping("/baseDept/queryByIdList")
+ BaseDeptQueryByIdListRes queryByIdListRes(@RequestBody @Valid BaseDeptQueryByIdListReq req);
+
+
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/BaseResourceApi.java b/src/main/java/com/olivia/peanut/base/api/BaseResourceApi.java
new file mode 100644
index 0000000..4cf5e38
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/BaseResourceApi.java
@@ -0,0 +1,76 @@
+package com.olivia.peanut.base.api;
+
+import org.springframework.validation.annotation.Validated;
+import com.olivia.sdk.utils.DynamicsPage;
+import jakarta.validation.Valid;
+import org.springframework.web.bind.annotation.*;
+import com.olivia.peanut.base.api.entity.baseResource.*;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import org.springframework.web.multipart.MultipartFile;
+import com.olivia.sdk.ann.InsertCheck;
+import com.olivia.sdk.ann.UpdateCheck;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+
+
+/**
+ * 资源(BaseResource)对外API
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+// @FeignClient(value = "",contextId = "baseResource-api",url = "${ portal..center.endpoint:}")
+public interface BaseResourceApi {
+
+ /**
+ * 保存 资源
+ */
+ @PostMapping("/baseResource/insert")
+ BaseResourceInsertRes insert(@RequestBody @Validated(InsertCheck.class) BaseResourceInsertReq req);
+
+ /**
+ * 根据ID 删除 资源
+ */
+ @PostMapping("/baseResource/deleteByIdList")
+ BaseResourceDeleteByIdListRes deleteByIdList(@RequestBody @Valid BaseResourceDeleteByIdListReq req);
+
+ /**
+ * 查询 资源
+ */
+ @PostMapping("/baseResource/queryList")
+ BaseResourceQueryListRes queryList(@RequestBody @Valid BaseResourceQueryListReq req);
+
+ /**
+ * 根据ID 更新 资源
+ */
+ @PostMapping("/baseResource/updateById")
+ BaseResourceUpdateByIdRes updateById(@RequestBody @Validated(UpdateCheck.class) BaseResourceUpdateByIdReq req);
+
+ /**
+ * 分页查询 资源
+ */
+ @PostMapping("/baseResource/queryPageList")
+ DynamicsPage queryPageList(@RequestBody @Valid BaseResourceExportQueryPageListReq req);
+
+ /**
+ * 导出 资源
+ */
+ @PostMapping("/baseResource/exportQueryPageList")
+ void queryPageListExport(@RequestBody @Valid BaseResourceExportQueryPageListReq req);
+
+ /**
+ * 导入
+ */
+ @PostMapping("/baseResource/importData")
+ BaseResourceImportRes importData(@RequestParam("file") MultipartFile file);
+
+
+ /**
+ * 根据ID 批量查询
+ */
+ @PostMapping("/baseResource/queryByIdList")
+ BaseResourceQueryByIdListRes queryByIdListRes(@RequestBody @Valid BaseResourceQueryByIdListReq req);
+
+
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/BaseRoleApi.java b/src/main/java/com/olivia/peanut/base/api/BaseRoleApi.java
new file mode 100644
index 0000000..da11f16
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/BaseRoleApi.java
@@ -0,0 +1,76 @@
+package com.olivia.peanut.base.api;
+
+import org.springframework.validation.annotation.Validated;
+import com.olivia.sdk.utils.DynamicsPage;
+import jakarta.validation.Valid;
+import org.springframework.web.bind.annotation.*;
+import com.olivia.peanut.base.api.entity.baseRole.*;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import org.springframework.web.multipart.MultipartFile;
+import com.olivia.sdk.ann.InsertCheck;
+import com.olivia.sdk.ann.UpdateCheck;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+
+
+/**
+ * 角色表(BaseRole)对外API
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:34
+ */
+// @FeignClient(value = "",contextId = "baseRole-api",url = "${ portal..center.endpoint:}")
+public interface BaseRoleApi {
+
+ /**
+ * 保存 角色表
+ */
+ @PostMapping("/baseRole/insert")
+ BaseRoleInsertRes insert(@RequestBody @Validated(InsertCheck.class) BaseRoleInsertReq req);
+
+ /**
+ * 根据ID 删除 角色表
+ */
+ @PostMapping("/baseRole/deleteByIdList")
+ BaseRoleDeleteByIdListRes deleteByIdList(@RequestBody @Valid BaseRoleDeleteByIdListReq req);
+
+ /**
+ * 查询 角色表
+ */
+ @PostMapping("/baseRole/queryList")
+ BaseRoleQueryListRes queryList(@RequestBody @Valid BaseRoleQueryListReq req);
+
+ /**
+ * 根据ID 更新 角色表
+ */
+ @PostMapping("/baseRole/updateById")
+ BaseRoleUpdateByIdRes updateById(@RequestBody @Validated(UpdateCheck.class) BaseRoleUpdateByIdReq req);
+
+ /**
+ * 分页查询 角色表
+ */
+ @PostMapping("/baseRole/queryPageList")
+ DynamicsPage queryPageList(@RequestBody @Valid BaseRoleExportQueryPageListReq req);
+
+ /**
+ * 导出 角色表
+ */
+ @PostMapping("/baseRole/exportQueryPageList")
+ void queryPageListExport(@RequestBody @Valid BaseRoleExportQueryPageListReq req);
+
+ /**
+ * 导入
+ */
+ @PostMapping("/baseRole/importData")
+ BaseRoleImportRes importData(@RequestParam("file") MultipartFile file);
+
+
+ /**
+ * 根据ID 批量查询
+ */
+ @PostMapping("/baseRole/queryByIdList")
+ BaseRoleQueryByIdListRes queryByIdListRes(@RequestBody @Valid BaseRoleQueryByIdListReq req);
+
+
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/BaseRoleGroupApi.java b/src/main/java/com/olivia/peanut/base/api/BaseRoleGroupApi.java
new file mode 100644
index 0000000..cdcf745
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/BaseRoleGroupApi.java
@@ -0,0 +1,76 @@
+package com.olivia.peanut.base.api;
+
+import org.springframework.validation.annotation.Validated;
+import com.olivia.sdk.utils.DynamicsPage;
+import jakarta.validation.Valid;
+import org.springframework.web.bind.annotation.*;
+import com.olivia.peanut.base.api.entity.baseRoleGroup.*;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import org.springframework.web.multipart.MultipartFile;
+import com.olivia.sdk.ann.InsertCheck;
+import com.olivia.sdk.ann.UpdateCheck;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+
+
+/**
+ * 角色组表(BaseRoleGroup)对外API
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+// @FeignClient(value = "",contextId = "baseRoleGroup-api",url = "${ portal..center.endpoint:}")
+public interface BaseRoleGroupApi {
+
+ /**
+ * 保存 角色组表
+ */
+ @PostMapping("/baseRoleGroup/insert")
+ BaseRoleGroupInsertRes insert(@RequestBody @Validated(InsertCheck.class) BaseRoleGroupInsertReq req);
+
+ /**
+ * 根据ID 删除 角色组表
+ */
+ @PostMapping("/baseRoleGroup/deleteByIdList")
+ BaseRoleGroupDeleteByIdListRes deleteByIdList(@RequestBody @Valid BaseRoleGroupDeleteByIdListReq req);
+
+ /**
+ * 查询 角色组表
+ */
+ @PostMapping("/baseRoleGroup/queryList")
+ BaseRoleGroupQueryListRes queryList(@RequestBody @Valid BaseRoleGroupQueryListReq req);
+
+ /**
+ * 根据ID 更新 角色组表
+ */
+ @PostMapping("/baseRoleGroup/updateById")
+ BaseRoleGroupUpdateByIdRes updateById(@RequestBody @Validated(UpdateCheck.class) BaseRoleGroupUpdateByIdReq req);
+
+ /**
+ * 分页查询 角色组表
+ */
+ @PostMapping("/baseRoleGroup/queryPageList")
+ DynamicsPage queryPageList(@RequestBody @Valid BaseRoleGroupExportQueryPageListReq req);
+
+ /**
+ * 导出 角色组表
+ */
+ @PostMapping("/baseRoleGroup/exportQueryPageList")
+ void queryPageListExport(@RequestBody @Valid BaseRoleGroupExportQueryPageListReq req);
+
+ /**
+ * 导入
+ */
+ @PostMapping("/baseRoleGroup/importData")
+ BaseRoleGroupImportRes importData(@RequestParam("file") MultipartFile file);
+
+
+ /**
+ * 根据ID 批量查询
+ */
+ @PostMapping("/baseRoleGroup/queryByIdList")
+ BaseRoleGroupQueryByIdListRes queryByIdListRes(@RequestBody @Valid BaseRoleGroupQueryByIdListReq req);
+
+
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/BaseRoleResourceApi.java b/src/main/java/com/olivia/peanut/base/api/BaseRoleResourceApi.java
new file mode 100644
index 0000000..e4e98cd
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/BaseRoleResourceApi.java
@@ -0,0 +1,76 @@
+package com.olivia.peanut.base.api;
+
+import org.springframework.validation.annotation.Validated;
+import com.olivia.sdk.utils.DynamicsPage;
+import jakarta.validation.Valid;
+import org.springframework.web.bind.annotation.*;
+import com.olivia.peanut.base.api.entity.baseRoleResource.*;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import org.springframework.web.multipart.MultipartFile;
+import com.olivia.sdk.ann.InsertCheck;
+import com.olivia.sdk.ann.UpdateCheck;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+
+
+/**
+ * 角色资源表(BaseRoleResource)对外API
+ *
+ * @author peanut
+ * @since 2024-07-31 14:34:06
+ */
+// @FeignClient(value = "",contextId = "baseRoleResource-api",url = "${ portal..center.endpoint:}")
+public interface BaseRoleResourceApi {
+
+ /**
+ * 保存 角色资源表
+ */
+ @PostMapping("/baseRoleResource/insert")
+ BaseRoleResourceInsertRes insert(@RequestBody @Validated(InsertCheck.class) BaseRoleResourceInsertReq req);
+
+ /**
+ * 根据ID 删除 角色资源表
+ */
+ @PostMapping("/baseRoleResource/deleteByIdList")
+ BaseRoleResourceDeleteByIdListRes deleteByIdList(@RequestBody @Valid BaseRoleResourceDeleteByIdListReq req);
+
+ /**
+ * 查询 角色资源表
+ */
+ @PostMapping("/baseRoleResource/queryList")
+ BaseRoleResourceQueryListRes queryList(@RequestBody @Valid BaseRoleResourceQueryListReq req);
+
+ /**
+ * 根据ID 更新 角色资源表
+ */
+ @PostMapping("/baseRoleResource/updateById")
+ BaseRoleResourceUpdateByIdRes updateById(@RequestBody @Validated(UpdateCheck.class) BaseRoleResourceUpdateByIdReq req);
+
+ /**
+ * 分页查询 角色资源表
+ */
+ @PostMapping("/baseRoleResource/queryPageList")
+ DynamicsPage queryPageList(@RequestBody @Valid BaseRoleResourceExportQueryPageListReq req);
+
+ /**
+ * 导出 角色资源表
+ */
+ @PostMapping("/baseRoleResource/exportQueryPageList")
+ void queryPageListExport(@RequestBody @Valid BaseRoleResourceExportQueryPageListReq req);
+
+ /**
+ * 导入
+ */
+ @PostMapping("/baseRoleResource/importData")
+ BaseRoleResourceImportRes importData(@RequestParam("file") MultipartFile file);
+
+
+ /**
+ * 根据ID 批量查询
+ */
+ @PostMapping("/baseRoleResource/queryByIdList")
+ BaseRoleResourceQueryByIdListRes queryByIdListRes(@RequestBody @Valid BaseRoleResourceQueryByIdListReq req);
+
+
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/BaseUserDeptApi.java b/src/main/java/com/olivia/peanut/base/api/BaseUserDeptApi.java
new file mode 100644
index 0000000..5abab89
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/BaseUserDeptApi.java
@@ -0,0 +1,76 @@
+package com.olivia.peanut.base.api;
+
+import org.springframework.validation.annotation.Validated;
+import com.olivia.sdk.utils.DynamicsPage;
+import jakarta.validation.Valid;
+import org.springframework.web.bind.annotation.*;
+import com.olivia.peanut.base.api.entity.baseUserDept.*;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import org.springframework.web.multipart.MultipartFile;
+import com.olivia.sdk.ann.InsertCheck;
+import com.olivia.sdk.ann.UpdateCheck;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+
+
+/**
+ * 用户部门表(BaseUserDept)对外API
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+// @FeignClient(value = "",contextId = "baseUserDept-api",url = "${ portal..center.endpoint:}")
+public interface BaseUserDeptApi {
+
+ /**
+ * 保存 用户部门表
+ */
+ @PostMapping("/baseUserDept/insert")
+ BaseUserDeptInsertRes insert(@RequestBody @Validated(InsertCheck.class) BaseUserDeptInsertReq req);
+
+ /**
+ * 根据ID 删除 用户部门表
+ */
+ @PostMapping("/baseUserDept/deleteByIdList")
+ BaseUserDeptDeleteByIdListRes deleteByIdList(@RequestBody @Valid BaseUserDeptDeleteByIdListReq req);
+
+ /**
+ * 查询 用户部门表
+ */
+ @PostMapping("/baseUserDept/queryList")
+ BaseUserDeptQueryListRes queryList(@RequestBody @Valid BaseUserDeptQueryListReq req);
+
+ /**
+ * 根据ID 更新 用户部门表
+ */
+ @PostMapping("/baseUserDept/updateById")
+ BaseUserDeptUpdateByIdRes updateById(@RequestBody @Validated(UpdateCheck.class) BaseUserDeptUpdateByIdReq req);
+
+ /**
+ * 分页查询 用户部门表
+ */
+ @PostMapping("/baseUserDept/queryPageList")
+ DynamicsPage queryPageList(@RequestBody @Valid BaseUserDeptExportQueryPageListReq req);
+
+ /**
+ * 导出 用户部门表
+ */
+ @PostMapping("/baseUserDept/exportQueryPageList")
+ void queryPageListExport(@RequestBody @Valid BaseUserDeptExportQueryPageListReq req);
+
+ /**
+ * 导入
+ */
+ @PostMapping("/baseUserDept/importData")
+ BaseUserDeptImportRes importData(@RequestParam("file") MultipartFile file);
+
+
+ /**
+ * 根据ID 批量查询
+ */
+ @PostMapping("/baseUserDept/queryByIdList")
+ BaseUserDeptQueryByIdListRes queryByIdListRes(@RequestBody @Valid BaseUserDeptQueryByIdListReq req);
+
+
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/BaseUserRoleApi.java b/src/main/java/com/olivia/peanut/base/api/BaseUserRoleApi.java
new file mode 100644
index 0000000..775d477
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/BaseUserRoleApi.java
@@ -0,0 +1,76 @@
+package com.olivia.peanut.base.api;
+
+import org.springframework.validation.annotation.Validated;
+import com.olivia.sdk.utils.DynamicsPage;
+import jakarta.validation.Valid;
+import org.springframework.web.bind.annotation.*;
+import com.olivia.peanut.base.api.entity.baseUserRole.*;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import org.springframework.web.multipart.MultipartFile;
+import com.olivia.sdk.ann.InsertCheck;
+import com.olivia.sdk.ann.UpdateCheck;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+
+
+/**
+ * 用户角色表(BaseUserRole)对外API
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:02
+ */
+// @FeignClient(value = "",contextId = "baseUserRole-api",url = "${ portal..center.endpoint:}")
+public interface BaseUserRoleApi {
+
+ /**
+ * 保存 用户角色表
+ */
+ @PostMapping("/baseUserRole/insert")
+ BaseUserRoleInsertRes insert(@RequestBody @Validated(InsertCheck.class) BaseUserRoleInsertReq req);
+
+ /**
+ * 根据ID 删除 用户角色表
+ */
+ @PostMapping("/baseUserRole/deleteByIdList")
+ BaseUserRoleDeleteByIdListRes deleteByIdList(@RequestBody @Valid BaseUserRoleDeleteByIdListReq req);
+
+ /**
+ * 查询 用户角色表
+ */
+ @PostMapping("/baseUserRole/queryList")
+ BaseUserRoleQueryListRes queryList(@RequestBody @Valid BaseUserRoleQueryListReq req);
+
+ /**
+ * 根据ID 更新 用户角色表
+ */
+ @PostMapping("/baseUserRole/updateById")
+ BaseUserRoleUpdateByIdRes updateById(@RequestBody @Validated(UpdateCheck.class) BaseUserRoleUpdateByIdReq req);
+
+ /**
+ * 分页查询 用户角色表
+ */
+ @PostMapping("/baseUserRole/queryPageList")
+ DynamicsPage queryPageList(@RequestBody @Valid BaseUserRoleExportQueryPageListReq req);
+
+ /**
+ * 导出 用户角色表
+ */
+ @PostMapping("/baseUserRole/exportQueryPageList")
+ void queryPageListExport(@RequestBody @Valid BaseUserRoleExportQueryPageListReq req);
+
+ /**
+ * 导入
+ */
+ @PostMapping("/baseUserRole/importData")
+ BaseUserRoleImportRes importData(@RequestParam("file") MultipartFile file);
+
+
+ /**
+ * 根据ID 批量查询
+ */
+ @PostMapping("/baseUserRole/queryByIdList")
+ BaseUserRoleQueryByIdListRes queryByIdListRes(@RequestBody @Valid BaseUserRoleQueryByIdListReq req);
+
+
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/BaseUserRoleGroupApi.java b/src/main/java/com/olivia/peanut/base/api/BaseUserRoleGroupApi.java
new file mode 100644
index 0000000..729e3c4
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/BaseUserRoleGroupApi.java
@@ -0,0 +1,76 @@
+package com.olivia.peanut.base.api;
+
+import org.springframework.validation.annotation.Validated;
+import com.olivia.sdk.utils.DynamicsPage;
+import jakarta.validation.Valid;
+import org.springframework.web.bind.annotation.*;
+import com.olivia.peanut.base.api.entity.baseUserRoleGroup.*;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import org.springframework.web.multipart.MultipartFile;
+import com.olivia.sdk.ann.InsertCheck;
+import com.olivia.sdk.ann.UpdateCheck;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)对外API
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+// @FeignClient(value = "",contextId = "baseUserRoleGroup-api",url = "${ portal..center.endpoint:}")
+public interface BaseUserRoleGroupApi {
+
+ /**
+ * 保存 用户角色组表
+ */
+ @PostMapping("/baseUserRoleGroup/insert")
+ BaseUserRoleGroupInsertRes insert(@RequestBody @Validated(InsertCheck.class) BaseUserRoleGroupInsertReq req);
+
+ /**
+ * 根据ID 删除 用户角色组表
+ */
+ @PostMapping("/baseUserRoleGroup/deleteByIdList")
+ BaseUserRoleGroupDeleteByIdListRes deleteByIdList(@RequestBody @Valid BaseUserRoleGroupDeleteByIdListReq req);
+
+ /**
+ * 查询 用户角色组表
+ */
+ @PostMapping("/baseUserRoleGroup/queryList")
+ BaseUserRoleGroupQueryListRes queryList(@RequestBody @Valid BaseUserRoleGroupQueryListReq req);
+
+ /**
+ * 根据ID 更新 用户角色组表
+ */
+ @PostMapping("/baseUserRoleGroup/updateById")
+ BaseUserRoleGroupUpdateByIdRes updateById(@RequestBody @Validated(UpdateCheck.class) BaseUserRoleGroupUpdateByIdReq req);
+
+ /**
+ * 分页查询 用户角色组表
+ */
+ @PostMapping("/baseUserRoleGroup/queryPageList")
+ DynamicsPage queryPageList(@RequestBody @Valid BaseUserRoleGroupExportQueryPageListReq req);
+
+ /**
+ * 导出 用户角色组表
+ */
+ @PostMapping("/baseUserRoleGroup/exportQueryPageList")
+ void queryPageListExport(@RequestBody @Valid BaseUserRoleGroupExportQueryPageListReq req);
+
+ /**
+ * 导入
+ */
+ @PostMapping("/baseUserRoleGroup/importData")
+ BaseUserRoleGroupImportRes importData(@RequestParam("file") MultipartFile file);
+
+
+ /**
+ * 根据ID 批量查询
+ */
+ @PostMapping("/baseUserRoleGroup/queryByIdList")
+ BaseUserRoleGroupQueryByIdListRes queryByIdListRes(@RequestBody @Valid BaseUserRoleGroupQueryByIdListReq req);
+
+
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptDeleteByIdListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptDeleteByIdListReq.java
new file mode 100644
index 0000000..c7759c6
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptDeleteByIdListReq.java
@@ -0,0 +1,34 @@
+package com.olivia.peanut.base.api.entity.baseDept;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import jakarta.validation.constraints.NotEmpty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 部门表(BaseDept)根据ID删除多个入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:30
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseDeptDeleteByIdListReq {
+
+ /***
+ * 要删除的ID
+ */
+ @NotEmpty(message = "请选择删除对象")
+ private List idList;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptDeleteByIdListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptDeleteByIdListRes.java
new file mode 100644
index 0000000..7db59ac
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptDeleteByIdListRes.java
@@ -0,0 +1,29 @@
+package com.olivia.peanut.base.api.entity.baseDept;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 部门表(BaseDept)根据ID删除多个反参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:30
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseDeptDeleteByIdListRes {
+
+ /***
+ * 受影响行数
+ */
+ private int count;
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptDto.java b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptDto.java
new file mode 100644
index 0000000..7d8b778
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptDto.java
@@ -0,0 +1,52 @@
+package com.olivia.peanut.base.api.entity.baseDept;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import com.olivia.peanut.portal.api.entity.BaseEntityDto;
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import com.olivia.sdk.ann.InsertCheck;
+import com.olivia.sdk.ann.UpdateCheck;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * 部门表(BaseDept)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:31
+ */
+//@Accessors(chain=true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseDeptDto extends BaseEntityDto {
+
+ /***
+ * 部门编码
+ */
+ @NotBlank(message = "部门编码不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private String deptCode;
+ /***
+ * 部门名称
+ */
+ @NotBlank(message = "部门名称不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private String deptName;
+ /***
+ * 父部门ID
+ */
+ @NotNull(message = "父部门ID不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private Long parentId;
+ /***
+ * 部门路径
+ */
+ @NotBlank(message = "部门路径不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private String path;
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptExportQueryPageListInfoRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptExportQueryPageListInfoRes.java
new file mode 100644
index 0000000..b72b809
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptExportQueryPageListInfoRes.java
@@ -0,0 +1,27 @@
+package com.olivia.peanut.base.api.entity.baseDept;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 部门表(BaseDept)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:30
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseDeptExportQueryPageListInfoRes extends BaseDeptDto {
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptExportQueryPageListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptExportQueryPageListReq.java
new file mode 100644
index 0000000..02144fb
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptExportQueryPageListReq.java
@@ -0,0 +1,34 @@
+package com.olivia.peanut.base.api.entity.baseDept;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 部门表(BaseDept)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:30
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseDeptExportQueryPageListReq {
+
+ private int pageNum;
+ private int pageSize;
+ private Boolean queryPage = true;
+ private BaseDeptDto data;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptImportReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptImportReq.java
new file mode 100644
index 0000000..2c95986
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptImportReq.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseDept;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 部门表(BaseDept)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:30
+ */
+//@Accessors(chain=true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseDeptImportReq extends BaseDeptDto {
+
+
+ public void checkParam() {
+ }
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptImportRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptImportRes.java
new file mode 100644
index 0000000..125e3a4
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptImportRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseDept;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 部门表(BaseDept)保存返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:30
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseDeptImportRes {
+
+ /****
+ * 写入行数
+ */
+ private int count;
+ /**
+ * 错误信息
+ */
+ private List errorMsg;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptInsertReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptInsertReq.java
new file mode 100644
index 0000000..9d4ba54
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptInsertReq.java
@@ -0,0 +1,25 @@
+package com.olivia.peanut.base.api.entity.baseDept;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 部门表(BaseDept)保存入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:30
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseDeptInsertReq extends BaseDeptDto {
+
+ public void checkParam() {
+ }
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptInsertRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptInsertRes.java
new file mode 100644
index 0000000..c1f422c
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptInsertRes.java
@@ -0,0 +1,29 @@
+package com.olivia.peanut.base.api.entity.baseDept;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 部门表(BaseDept)保存返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:30
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseDeptInsertRes {
+
+ /****
+ * 写入行数
+ */
+ private int count;
+
+ private Long id;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptQueryByIdListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptQueryByIdListReq.java
new file mode 100644
index 0000000..255fd1f
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptQueryByIdListReq.java
@@ -0,0 +1,32 @@
+package com.olivia.peanut.base.api.entity.baseDept;
+
+import java.time.LocalDateTime;
+import java.util.List;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 部门表(BaseDept)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:31
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseDeptQueryByIdListReq {
+
+ private List idList;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptQueryByIdListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptQueryByIdListRes.java
new file mode 100644
index 0000000..b9cd9fa
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptQueryByIdListRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseDept;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 部门表(BaseDept)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:31
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseDeptQueryByIdListRes {
+
+ /***
+ * 返回对象列表
+ */
+ private List dataList;
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptQueryListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptQueryListReq.java
new file mode 100644
index 0000000..a3a05d6
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptQueryListReq.java
@@ -0,0 +1,26 @@
+package com.olivia.peanut.base.api.entity.baseDept;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 部门表(BaseDept)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:30
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseDeptQueryListReq {
+
+ private BaseDeptDto data;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptQueryListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptQueryListRes.java
new file mode 100644
index 0000000..0f995bd
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptQueryListRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseDept;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 部门表(BaseDept)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:30
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseDeptQueryListRes {
+
+ /***
+ * 返回对象列表
+ */
+ private List dataList;
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptUpdateByIdReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptUpdateByIdReq.java
new file mode 100644
index 0000000..64c0614
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptUpdateByIdReq.java
@@ -0,0 +1,30 @@
+package com.olivia.peanut.base.api.entity.baseDept;
+
+import java.time.LocalDateTime;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.ToString;
+import lombok.experimental.Accessors;
+
+/**
+ * 部门表(BaseDept)表实体类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:30
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseDeptUpdateByIdReq extends BaseDeptDto {
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptUpdateByIdRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptUpdateByIdRes.java
new file mode 100644
index 0000000..47e7c86
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseDept/BaseDeptUpdateByIdRes.java
@@ -0,0 +1,24 @@
+package com.olivia.peanut.base.api.entity.baseDept;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 部门表(BaseDept)修改对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:30
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseDeptUpdateByIdRes {
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceDeleteByIdListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceDeleteByIdListReq.java
new file mode 100644
index 0000000..90008c1
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceDeleteByIdListReq.java
@@ -0,0 +1,34 @@
+package com.olivia.peanut.base.api.entity.baseResource;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import jakarta.validation.constraints.NotEmpty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 资源(BaseResource)根据ID删除多个入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseResourceDeleteByIdListReq {
+
+ /***
+ * 要删除的ID
+ */
+ @NotEmpty(message = "请选择删除对象")
+ private List idList;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceDeleteByIdListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceDeleteByIdListRes.java
new file mode 100644
index 0000000..b1980e0
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceDeleteByIdListRes.java
@@ -0,0 +1,29 @@
+package com.olivia.peanut.base.api.entity.baseResource;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 资源(BaseResource)根据ID删除多个反参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseResourceDeleteByIdListRes {
+
+ /***
+ * 受影响行数
+ */
+ private int count;
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceDto.java b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceDto.java
new file mode 100644
index 0000000..3c52a98
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceDto.java
@@ -0,0 +1,72 @@
+package com.olivia.peanut.base.api.entity.baseResource;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import com.olivia.peanut.portal.api.entity.BaseEntityDto;
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import com.olivia.sdk.ann.InsertCheck;
+import com.olivia.sdk.ann.UpdateCheck;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * 资源(BaseResource)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+//@Accessors(chain=true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseResourceDto extends BaseEntityDto {
+
+ /***
+ * 菜单编码
+ */
+ @NotBlank(message = "菜单编码不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private String resourceCode;
+ /***
+ * 菜单名称
+ */
+ @NotBlank(message = "菜单名称不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private String resourceName;
+ /***
+ * 菜单URL
+ */
+ @NotBlank(message = "菜单URL不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private String resourceUrl;
+ /***
+ * 菜单图标
+ */
+ @NotBlank(message = "菜单图标不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private String resourceIcon;
+ /***
+ * 菜单类型
+ */
+ @NotBlank(message = "菜单类型不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private String resourceType;
+ /***
+ * 是否按钮 0 否,1 是
+ */
+ @NotNull(message = "是否按钮 0 否,1 是不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private Boolean isButton;
+ /***
+ * 父菜单ID
+ */
+ @NotNull(message = "父菜单ID不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private Long parentId;
+ /***
+ * 菜单路径
+ */
+ @NotBlank(message = "菜单路径不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private String path;
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceExportQueryPageListInfoRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceExportQueryPageListInfoRes.java
new file mode 100644
index 0000000..3994a43
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceExportQueryPageListInfoRes.java
@@ -0,0 +1,27 @@
+package com.olivia.peanut.base.api.entity.baseResource;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 资源(BaseResource)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseResourceExportQueryPageListInfoRes extends BaseResourceDto {
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceExportQueryPageListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceExportQueryPageListReq.java
new file mode 100644
index 0000000..4df2bea
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceExportQueryPageListReq.java
@@ -0,0 +1,34 @@
+package com.olivia.peanut.base.api.entity.baseResource;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 资源(BaseResource)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseResourceExportQueryPageListReq {
+
+ private int pageNum;
+ private int pageSize;
+ private Boolean queryPage = true;
+ private BaseResourceDto data;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceImportReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceImportReq.java
new file mode 100644
index 0000000..14e5615
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceImportReq.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseResource;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 资源(BaseResource)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+//@Accessors(chain=true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseResourceImportReq extends BaseResourceDto {
+
+
+ public void checkParam() {
+ }
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceImportRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceImportRes.java
new file mode 100644
index 0000000..f232662
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceImportRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseResource;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 资源(BaseResource)保存返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseResourceImportRes {
+
+ /****
+ * 写入行数
+ */
+ private int count;
+ /**
+ * 错误信息
+ */
+ private List errorMsg;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceInsertReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceInsertReq.java
new file mode 100644
index 0000000..ea7e6c3
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceInsertReq.java
@@ -0,0 +1,25 @@
+package com.olivia.peanut.base.api.entity.baseResource;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 资源(BaseResource)保存入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseResourceInsertReq extends BaseResourceDto {
+
+ public void checkParam() {
+ }
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceInsertRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceInsertRes.java
new file mode 100644
index 0000000..c56f209
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceInsertRes.java
@@ -0,0 +1,29 @@
+package com.olivia.peanut.base.api.entity.baseResource;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 资源(BaseResource)保存返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseResourceInsertRes {
+
+ /****
+ * 写入行数
+ */
+ private int count;
+
+ private Long id;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceQueryByIdListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceQueryByIdListReq.java
new file mode 100644
index 0000000..eed7c25
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceQueryByIdListReq.java
@@ -0,0 +1,32 @@
+package com.olivia.peanut.base.api.entity.baseResource;
+
+import java.time.LocalDateTime;
+import java.util.List;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 资源(BaseResource)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseResourceQueryByIdListReq {
+
+ private List idList;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceQueryByIdListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceQueryByIdListRes.java
new file mode 100644
index 0000000..77bcd58
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceQueryByIdListRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseResource;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 资源(BaseResource)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseResourceQueryByIdListRes {
+
+ /***
+ * 返回对象列表
+ */
+ private List dataList;
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceQueryListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceQueryListReq.java
new file mode 100644
index 0000000..4e81ed9
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceQueryListReq.java
@@ -0,0 +1,26 @@
+package com.olivia.peanut.base.api.entity.baseResource;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 资源(BaseResource)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseResourceQueryListReq {
+
+ private BaseResourceDto data;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceQueryListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceQueryListRes.java
new file mode 100644
index 0000000..1de22db
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceQueryListRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseResource;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 资源(BaseResource)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseResourceQueryListRes {
+
+ /***
+ * 返回对象列表
+ */
+ private List dataList;
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceUpdateByIdReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceUpdateByIdReq.java
new file mode 100644
index 0000000..d2395a6
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceUpdateByIdReq.java
@@ -0,0 +1,30 @@
+package com.olivia.peanut.base.api.entity.baseResource;
+
+import java.time.LocalDateTime;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.ToString;
+import lombok.experimental.Accessors;
+
+/**
+ * 资源(BaseResource)表实体类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseResourceUpdateByIdReq extends BaseResourceDto {
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceUpdateByIdRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceUpdateByIdRes.java
new file mode 100644
index 0000000..4aefb21
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseResource/BaseResourceUpdateByIdRes.java
@@ -0,0 +1,24 @@
+package com.olivia.peanut.base.api.entity.baseResource;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 资源(BaseResource)修改对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseResourceUpdateByIdRes {
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleDeleteByIdListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleDeleteByIdListReq.java
new file mode 100644
index 0000000..a3ac328
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleDeleteByIdListReq.java
@@ -0,0 +1,34 @@
+package com.olivia.peanut.base.api.entity.baseRole;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import jakarta.validation.constraints.NotEmpty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色表(BaseRole)根据ID删除多个入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:35
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleDeleteByIdListReq {
+
+ /***
+ * 要删除的ID
+ */
+ @NotEmpty(message = "请选择删除对象")
+ private List idList;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleDeleteByIdListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleDeleteByIdListRes.java
new file mode 100644
index 0000000..18114cf
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleDeleteByIdListRes.java
@@ -0,0 +1,29 @@
+package com.olivia.peanut.base.api.entity.baseRole;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色表(BaseRole)根据ID删除多个反参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:35
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleDeleteByIdListRes {
+
+ /***
+ * 受影响行数
+ */
+ private int count;
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleDto.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleDto.java
new file mode 100644
index 0000000..5918ef3
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleDto.java
@@ -0,0 +1,42 @@
+package com.olivia.peanut.base.api.entity.baseRole;
+
+import com.olivia.peanut.portal.api.entity.BaseEntityDto;
+import com.olivia.sdk.ann.InsertCheck;
+import com.olivia.sdk.ann.UpdateCheck;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * 角色表(BaseRole)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:35
+ */
+//@Accessors(chain=true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleDto extends BaseEntityDto {
+
+ /***
+ * 角色编码
+ */
+ @NotBlank(message = "角色编码不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private String roleCode;
+ /***
+ * 角色名称
+ */
+ @NotBlank(message = "角色名称不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private String roleName;
+ /***
+ * 角色组
+ */
+ @NotNull(message = "角色组不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private Long roleGroupId;
+
+ private String roleGroupName;
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleExportQueryPageListInfoRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleExportQueryPageListInfoRes.java
new file mode 100644
index 0000000..e703358
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleExportQueryPageListInfoRes.java
@@ -0,0 +1,27 @@
+package com.olivia.peanut.base.api.entity.baseRole;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色表(BaseRole)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:35
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleExportQueryPageListInfoRes extends BaseRoleDto {
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleExportQueryPageListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleExportQueryPageListReq.java
new file mode 100644
index 0000000..54e0663
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleExportQueryPageListReq.java
@@ -0,0 +1,34 @@
+package com.olivia.peanut.base.api.entity.baseRole;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色表(BaseRole)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:35
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleExportQueryPageListReq {
+
+ private int pageNum;
+ private int pageSize;
+ private Boolean queryPage = true;
+ private BaseRoleDto data;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleImportReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleImportReq.java
new file mode 100644
index 0000000..37a3507
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleImportReq.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseRole;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色表(BaseRole)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:35
+ */
+//@Accessors(chain=true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleImportReq extends BaseRoleDto {
+
+
+ public void checkParam() {
+ }
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleImportRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleImportRes.java
new file mode 100644
index 0000000..82988b9
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleImportRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseRole;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色表(BaseRole)保存返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:35
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleImportRes {
+
+ /****
+ * 写入行数
+ */
+ private int count;
+ /**
+ * 错误信息
+ */
+ private List errorMsg;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleInsertReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleInsertReq.java
new file mode 100644
index 0000000..5163f9b
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleInsertReq.java
@@ -0,0 +1,25 @@
+package com.olivia.peanut.base.api.entity.baseRole;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色表(BaseRole)保存入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:34
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleInsertReq extends BaseRoleDto {
+
+ public void checkParam() {
+ }
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleInsertRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleInsertRes.java
new file mode 100644
index 0000000..cbf49a4
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleInsertRes.java
@@ -0,0 +1,29 @@
+package com.olivia.peanut.base.api.entity.baseRole;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色表(BaseRole)保存返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:35
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleInsertRes {
+
+ /****
+ * 写入行数
+ */
+ private int count;
+
+ private Long id;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleQueryByIdListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleQueryByIdListReq.java
new file mode 100644
index 0000000..f13b5b5
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleQueryByIdListReq.java
@@ -0,0 +1,32 @@
+package com.olivia.peanut.base.api.entity.baseRole;
+
+import java.time.LocalDateTime;
+import java.util.List;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色表(BaseRole)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:35
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleQueryByIdListReq {
+
+ private List idList;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleQueryByIdListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleQueryByIdListRes.java
new file mode 100644
index 0000000..298797b
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleQueryByIdListRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseRole;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色表(BaseRole)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:35
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleQueryByIdListRes {
+
+ /***
+ * 返回对象列表
+ */
+ private List dataList;
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleQueryListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleQueryListReq.java
new file mode 100644
index 0000000..0aa5e08
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleQueryListReq.java
@@ -0,0 +1,26 @@
+package com.olivia.peanut.base.api.entity.baseRole;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色表(BaseRole)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:35
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleQueryListReq {
+
+ private BaseRoleDto data;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleQueryListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleQueryListRes.java
new file mode 100644
index 0000000..fb70f4b
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleQueryListRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseRole;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色表(BaseRole)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:35
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleQueryListRes {
+
+ /***
+ * 返回对象列表
+ */
+ private List dataList;
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleUpdateByIdReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleUpdateByIdReq.java
new file mode 100644
index 0000000..ad2b71b
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleUpdateByIdReq.java
@@ -0,0 +1,30 @@
+package com.olivia.peanut.base.api.entity.baseRole;
+
+import java.time.LocalDateTime;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.ToString;
+import lombok.experimental.Accessors;
+
+/**
+ * 角色表(BaseRole)表实体类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:35
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleUpdateByIdReq extends BaseRoleDto {
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleUpdateByIdRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleUpdateByIdRes.java
new file mode 100644
index 0000000..16e8a86
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRole/BaseRoleUpdateByIdRes.java
@@ -0,0 +1,24 @@
+package com.olivia.peanut.base.api.entity.baseRole;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色表(BaseRole)修改对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:35
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleUpdateByIdRes {
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupDeleteByIdListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupDeleteByIdListReq.java
new file mode 100644
index 0000000..9ecf8f6
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupDeleteByIdListReq.java
@@ -0,0 +1,34 @@
+package com.olivia.peanut.base.api.entity.baseRoleGroup;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import jakarta.validation.constraints.NotEmpty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色组表(BaseRoleGroup)根据ID删除多个入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleGroupDeleteByIdListReq {
+
+ /***
+ * 要删除的ID
+ */
+ @NotEmpty(message = "请选择删除对象")
+ private List idList;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupDeleteByIdListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupDeleteByIdListRes.java
new file mode 100644
index 0000000..ab2a5d6
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupDeleteByIdListRes.java
@@ -0,0 +1,29 @@
+package com.olivia.peanut.base.api.entity.baseRoleGroup;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色组表(BaseRoleGroup)根据ID删除多个反参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleGroupDeleteByIdListRes {
+
+ /***
+ * 受影响行数
+ */
+ private int count;
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupDto.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupDto.java
new file mode 100644
index 0000000..87ffe7c
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupDto.java
@@ -0,0 +1,42 @@
+package com.olivia.peanut.base.api.entity.baseRoleGroup;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import com.olivia.peanut.portal.api.entity.BaseEntityDto;
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import com.olivia.sdk.ann.InsertCheck;
+import com.olivia.sdk.ann.UpdateCheck;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * 角色组表(BaseRoleGroup)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:37
+ */
+//@Accessors(chain=true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleGroupDto extends BaseEntityDto {
+
+ /***
+ * 角色组编码
+ */
+ @NotBlank(message = "角色组编码不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private String roleGroupCode;
+ /***
+ * 角色组名称
+ */
+ @NotBlank(message = "角色组名称不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private String roleGroupName;
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupExportQueryPageListInfoRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupExportQueryPageListInfoRes.java
new file mode 100644
index 0000000..a696b5d
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupExportQueryPageListInfoRes.java
@@ -0,0 +1,27 @@
+package com.olivia.peanut.base.api.entity.baseRoleGroup;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色组表(BaseRoleGroup)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleGroupExportQueryPageListInfoRes extends BaseRoleGroupDto {
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupExportQueryPageListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupExportQueryPageListReq.java
new file mode 100644
index 0000000..8bcdea2
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupExportQueryPageListReq.java
@@ -0,0 +1,34 @@
+package com.olivia.peanut.base.api.entity.baseRoleGroup;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色组表(BaseRoleGroup)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleGroupExportQueryPageListReq {
+
+ private int pageNum;
+ private int pageSize;
+ private Boolean queryPage = true;
+ private BaseRoleGroupDto data;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupImportReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupImportReq.java
new file mode 100644
index 0000000..d6997a2
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupImportReq.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseRoleGroup;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色组表(BaseRoleGroup)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+//@Accessors(chain=true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleGroupImportReq extends BaseRoleGroupDto {
+
+
+ public void checkParam() {
+ }
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupImportRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupImportRes.java
new file mode 100644
index 0000000..90c5ddc
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupImportRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseRoleGroup;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色组表(BaseRoleGroup)保存返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleGroupImportRes {
+
+ /****
+ * 写入行数
+ */
+ private int count;
+ /**
+ * 错误信息
+ */
+ private List errorMsg;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupInsertReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupInsertReq.java
new file mode 100644
index 0000000..dea63c7
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupInsertReq.java
@@ -0,0 +1,25 @@
+package com.olivia.peanut.base.api.entity.baseRoleGroup;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色组表(BaseRoleGroup)保存入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleGroupInsertReq extends BaseRoleGroupDto {
+
+ public void checkParam() {
+ }
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupInsertRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupInsertRes.java
new file mode 100644
index 0000000..c718a04
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupInsertRes.java
@@ -0,0 +1,29 @@
+package com.olivia.peanut.base.api.entity.baseRoleGroup;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色组表(BaseRoleGroup)保存返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleGroupInsertRes {
+
+ /****
+ * 写入行数
+ */
+ private int count;
+
+ private Long id;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupQueryByIdListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupQueryByIdListReq.java
new file mode 100644
index 0000000..8c2bdde
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupQueryByIdListReq.java
@@ -0,0 +1,32 @@
+package com.olivia.peanut.base.api.entity.baseRoleGroup;
+
+import java.time.LocalDateTime;
+import java.util.List;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色组表(BaseRoleGroup)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleGroupQueryByIdListReq {
+
+ private List idList;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupQueryByIdListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupQueryByIdListRes.java
new file mode 100644
index 0000000..e206e18
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupQueryByIdListRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseRoleGroup;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色组表(BaseRoleGroup)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleGroupQueryByIdListRes {
+
+ /***
+ * 返回对象列表
+ */
+ private List dataList;
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupQueryListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupQueryListReq.java
new file mode 100644
index 0000000..17539f0
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupQueryListReq.java
@@ -0,0 +1,26 @@
+package com.olivia.peanut.base.api.entity.baseRoleGroup;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色组表(BaseRoleGroup)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleGroupQueryListReq {
+
+ private BaseRoleGroupDto data;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupQueryListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupQueryListRes.java
new file mode 100644
index 0000000..ca9fb4a
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupQueryListRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseRoleGroup;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色组表(BaseRoleGroup)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleGroupQueryListRes {
+
+ /***
+ * 返回对象列表
+ */
+ private List dataList;
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupUpdateByIdReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupUpdateByIdReq.java
new file mode 100644
index 0000000..d4daf9b
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupUpdateByIdReq.java
@@ -0,0 +1,30 @@
+package com.olivia.peanut.base.api.entity.baseRoleGroup;
+
+import java.time.LocalDateTime;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.ToString;
+import lombok.experimental.Accessors;
+
+/**
+ * 角色组表(BaseRoleGroup)表实体类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleGroupUpdateByIdReq extends BaseRoleGroupDto {
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupUpdateByIdRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupUpdateByIdRes.java
new file mode 100644
index 0000000..57adbcc
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleGroup/BaseRoleGroupUpdateByIdRes.java
@@ -0,0 +1,24 @@
+package com.olivia.peanut.base.api.entity.baseRoleGroup;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色组表(BaseRoleGroup)修改对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleGroupUpdateByIdRes {
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceDeleteByIdListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceDeleteByIdListReq.java
new file mode 100644
index 0000000..166ee16
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceDeleteByIdListReq.java
@@ -0,0 +1,34 @@
+package com.olivia.peanut.base.api.entity.baseRoleResource;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import jakarta.validation.constraints.NotEmpty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色资源表(BaseRoleResource)根据ID删除多个入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:34:07
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleResourceDeleteByIdListReq {
+
+ /***
+ * 要删除的ID
+ */
+ @NotEmpty(message = "请选择删除对象")
+ private List idList;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceDeleteByIdListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceDeleteByIdListRes.java
new file mode 100644
index 0000000..fdf722b
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceDeleteByIdListRes.java
@@ -0,0 +1,29 @@
+package com.olivia.peanut.base.api.entity.baseRoleResource;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色资源表(BaseRoleResource)根据ID删除多个反参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:34:06
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleResourceDeleteByIdListRes {
+
+ /***
+ * 受影响行数
+ */
+ private int count;
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceDto.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceDto.java
new file mode 100644
index 0000000..76a2f21
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceDto.java
@@ -0,0 +1,42 @@
+package com.olivia.peanut.base.api.entity.baseRoleResource;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import com.olivia.peanut.portal.api.entity.BaseEntityDto;
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import com.olivia.sdk.ann.InsertCheck;
+import com.olivia.sdk.ann.UpdateCheck;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * 角色资源表(BaseRoleResource)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:35:12
+ */
+//@Accessors(chain=true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleResourceDto extends BaseEntityDto {
+
+ /***
+ * 角色ID
+ */
+ @NotNull(message = "角色ID不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private Long roleId;
+ /***
+ * 菜单ID
+ */
+ @NotNull(message = "菜单ID不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private Long resourceId;
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceExportQueryPageListInfoRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceExportQueryPageListInfoRes.java
new file mode 100644
index 0000000..1a69067
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceExportQueryPageListInfoRes.java
@@ -0,0 +1,27 @@
+package com.olivia.peanut.base.api.entity.baseRoleResource;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色资源表(BaseRoleResource)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:34:07
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleResourceExportQueryPageListInfoRes extends BaseRoleResourceDto {
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceExportQueryPageListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceExportQueryPageListReq.java
new file mode 100644
index 0000000..13595ec
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceExportQueryPageListReq.java
@@ -0,0 +1,34 @@
+package com.olivia.peanut.base.api.entity.baseRoleResource;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色资源表(BaseRoleResource)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:34:57
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleResourceExportQueryPageListReq {
+
+ private int pageNum;
+ private int pageSize;
+ private Boolean queryPage = true;
+ private BaseRoleResourceDto data;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceImportReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceImportReq.java
new file mode 100644
index 0000000..71f7c20
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceImportReq.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseRoleResource;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色资源表(BaseRoleResource)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:35:01
+ */
+//@Accessors(chain=true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleResourceImportReq extends BaseRoleResourceDto {
+
+
+ public void checkParam() {
+ }
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceImportRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceImportRes.java
new file mode 100644
index 0000000..c1e111d
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceImportRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseRoleResource;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色资源表(BaseRoleResource)保存返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:35:03
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleResourceImportRes {
+
+ /****
+ * 写入行数
+ */
+ private int count;
+ /**
+ * 错误信息
+ */
+ private List errorMsg;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceInsertReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceInsertReq.java
new file mode 100644
index 0000000..b714b65
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceInsertReq.java
@@ -0,0 +1,25 @@
+package com.olivia.peanut.base.api.entity.baseRoleResource;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色资源表(BaseRoleResource)保存入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:34:06
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleResourceInsertReq extends BaseRoleResourceDto {
+
+ public void checkParam() {
+ }
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceInsertRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceInsertRes.java
new file mode 100644
index 0000000..b94547c
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceInsertRes.java
@@ -0,0 +1,29 @@
+package com.olivia.peanut.base.api.entity.baseRoleResource;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色资源表(BaseRoleResource)保存返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:34:06
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleResourceInsertRes {
+
+ /****
+ * 写入行数
+ */
+ private int count;
+
+ private Long id;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceQueryByIdListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceQueryByIdListReq.java
new file mode 100644
index 0000000..23aca5c
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceQueryByIdListReq.java
@@ -0,0 +1,32 @@
+package com.olivia.peanut.base.api.entity.baseRoleResource;
+
+import java.time.LocalDateTime;
+import java.util.List;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色资源表(BaseRoleResource)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:35:11
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleResourceQueryByIdListReq {
+
+ private List idList;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceQueryByIdListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceQueryByIdListRes.java
new file mode 100644
index 0000000..51ea1f8
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceQueryByIdListRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseRoleResource;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色资源表(BaseRoleResource)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:35:12
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleResourceQueryByIdListRes {
+
+ /***
+ * 返回对象列表
+ */
+ private List dataList;
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceQueryListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceQueryListReq.java
new file mode 100644
index 0000000..fe8cdd8
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceQueryListReq.java
@@ -0,0 +1,26 @@
+package com.olivia.peanut.base.api.entity.baseRoleResource;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色资源表(BaseRoleResource)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:34:07
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleResourceQueryListReq {
+
+ private BaseRoleResourceDto data;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceQueryListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceQueryListRes.java
new file mode 100644
index 0000000..2ae2c16
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceQueryListRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseRoleResource;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色资源表(BaseRoleResource)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:34:07
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleResourceQueryListRes {
+
+ /***
+ * 返回对象列表
+ */
+ private List dataList;
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceUpdateByIdReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceUpdateByIdReq.java
new file mode 100644
index 0000000..77a5663
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceUpdateByIdReq.java
@@ -0,0 +1,30 @@
+package com.olivia.peanut.base.api.entity.baseRoleResource;
+
+import java.time.LocalDateTime;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.ToString;
+import lombok.experimental.Accessors;
+
+/**
+ * 角色资源表(BaseRoleResource)表实体类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:34:07
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleResourceUpdateByIdReq extends BaseRoleResourceDto {
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceUpdateByIdRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceUpdateByIdRes.java
new file mode 100644
index 0000000..1ad10a0
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseRoleResource/BaseRoleResourceUpdateByIdRes.java
@@ -0,0 +1,24 @@
+package com.olivia.peanut.base.api.entity.baseRoleResource;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 角色资源表(BaseRoleResource)修改对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:34:07
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseRoleResourceUpdateByIdRes {
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptDeleteByIdListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptDeleteByIdListReq.java
new file mode 100644
index 0000000..e4b4ff1
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptDeleteByIdListReq.java
@@ -0,0 +1,34 @@
+package com.olivia.peanut.base.api.entity.baseUserDept;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import jakarta.validation.constraints.NotEmpty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户部门表(BaseUserDept)根据ID删除多个入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserDeptDeleteByIdListReq {
+
+ /***
+ * 要删除的ID
+ */
+ @NotEmpty(message = "请选择删除对象")
+ private List idList;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptDeleteByIdListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptDeleteByIdListRes.java
new file mode 100644
index 0000000..0693c72
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptDeleteByIdListRes.java
@@ -0,0 +1,29 @@
+package com.olivia.peanut.base.api.entity.baseUserDept;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户部门表(BaseUserDept)根据ID删除多个反参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserDeptDeleteByIdListRes {
+
+ /***
+ * 受影响行数
+ */
+ private int count;
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptDto.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptDto.java
new file mode 100644
index 0000000..380e0e5
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptDto.java
@@ -0,0 +1,42 @@
+package com.olivia.peanut.base.api.entity.baseUserDept;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import com.olivia.peanut.portal.api.entity.BaseEntityDto;
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import com.olivia.sdk.ann.InsertCheck;
+import com.olivia.sdk.ann.UpdateCheck;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * 用户部门表(BaseUserDept)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:02
+ */
+//@Accessors(chain=true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserDeptDto extends BaseEntityDto {
+
+ /***
+ * 用户ID
+ */
+ @NotNull(message = "用户ID不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private Long userId;
+ /***
+ * 部门ID
+ */
+ @NotNull(message = "部门ID不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private Long deptId;
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptExportQueryPageListInfoRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptExportQueryPageListInfoRes.java
new file mode 100644
index 0000000..ed60c3e
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptExportQueryPageListInfoRes.java
@@ -0,0 +1,27 @@
+package com.olivia.peanut.base.api.entity.baseUserDept;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户部门表(BaseUserDept)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserDeptExportQueryPageListInfoRes extends BaseUserDeptDto {
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptExportQueryPageListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptExportQueryPageListReq.java
new file mode 100644
index 0000000..6c2d9d7
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptExportQueryPageListReq.java
@@ -0,0 +1,34 @@
+package com.olivia.peanut.base.api.entity.baseUserDept;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户部门表(BaseUserDept)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserDeptExportQueryPageListReq {
+
+ private int pageNum;
+ private int pageSize;
+ private Boolean queryPage = true;
+ private BaseUserDeptDto data;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptImportReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptImportReq.java
new file mode 100644
index 0000000..289b43d
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptImportReq.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseUserDept;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户部门表(BaseUserDept)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+//@Accessors(chain=true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserDeptImportReq extends BaseUserDeptDto {
+
+
+ public void checkParam() {
+ }
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptImportRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptImportRes.java
new file mode 100644
index 0000000..885ea4d
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptImportRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseUserDept;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户部门表(BaseUserDept)保存返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserDeptImportRes {
+
+ /****
+ * 写入行数
+ */
+ private int count;
+ /**
+ * 错误信息
+ */
+ private List errorMsg;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptInsertReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptInsertReq.java
new file mode 100644
index 0000000..7ca5c8a
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptInsertReq.java
@@ -0,0 +1,25 @@
+package com.olivia.peanut.base.api.entity.baseUserDept;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户部门表(BaseUserDept)保存入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserDeptInsertReq extends BaseUserDeptDto {
+
+ public void checkParam() {
+ }
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptInsertRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptInsertRes.java
new file mode 100644
index 0000000..cc82ee9
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptInsertRes.java
@@ -0,0 +1,29 @@
+package com.olivia.peanut.base.api.entity.baseUserDept;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户部门表(BaseUserDept)保存返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserDeptInsertRes {
+
+ /****
+ * 写入行数
+ */
+ private int count;
+
+ private Long id;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptQueryByIdListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptQueryByIdListReq.java
new file mode 100644
index 0000000..4080e6b
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptQueryByIdListReq.java
@@ -0,0 +1,32 @@
+package com.olivia.peanut.base.api.entity.baseUserDept;
+
+import java.time.LocalDateTime;
+import java.util.List;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户部门表(BaseUserDept)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserDeptQueryByIdListReq {
+
+ private List idList;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptQueryByIdListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptQueryByIdListRes.java
new file mode 100644
index 0000000..b894447
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptQueryByIdListRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseUserDept;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户部门表(BaseUserDept)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserDeptQueryByIdListRes {
+
+ /***
+ * 返回对象列表
+ */
+ private List dataList;
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptQueryListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptQueryListReq.java
new file mode 100644
index 0000000..16c3dd5
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptQueryListReq.java
@@ -0,0 +1,26 @@
+package com.olivia.peanut.base.api.entity.baseUserDept;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户部门表(BaseUserDept)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserDeptQueryListReq {
+
+ private BaseUserDeptDto data;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptQueryListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptQueryListRes.java
new file mode 100644
index 0000000..ca4ce6c
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptQueryListRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseUserDept;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户部门表(BaseUserDept)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserDeptQueryListRes {
+
+ /***
+ * 返回对象列表
+ */
+ private List dataList;
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptUpdateByIdReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptUpdateByIdReq.java
new file mode 100644
index 0000000..2fe800e
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptUpdateByIdReq.java
@@ -0,0 +1,30 @@
+package com.olivia.peanut.base.api.entity.baseUserDept;
+
+import java.time.LocalDateTime;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.ToString;
+import lombok.experimental.Accessors;
+
+/**
+ * 用户部门表(BaseUserDept)表实体类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserDeptUpdateByIdReq extends BaseUserDeptDto {
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptUpdateByIdRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptUpdateByIdRes.java
new file mode 100644
index 0000000..42a9804
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserDept/BaseUserDeptUpdateByIdRes.java
@@ -0,0 +1,24 @@
+package com.olivia.peanut.base.api.entity.baseUserDept;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户部门表(BaseUserDept)修改对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserDeptUpdateByIdRes {
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleDeleteByIdListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleDeleteByIdListReq.java
new file mode 100644
index 0000000..5d848cf
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleDeleteByIdListReq.java
@@ -0,0 +1,34 @@
+package com.olivia.peanut.base.api.entity.baseUserRole;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import jakarta.validation.constraints.NotEmpty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色表(BaseUserRole)根据ID删除多个入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleDeleteByIdListReq {
+
+ /***
+ * 要删除的ID
+ */
+ @NotEmpty(message = "请选择删除对象")
+ private List idList;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleDeleteByIdListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleDeleteByIdListRes.java
new file mode 100644
index 0000000..5383dec
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleDeleteByIdListRes.java
@@ -0,0 +1,29 @@
+package com.olivia.peanut.base.api.entity.baseUserRole;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色表(BaseUserRole)根据ID删除多个反参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleDeleteByIdListRes {
+
+ /***
+ * 受影响行数
+ */
+ private int count;
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleDto.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleDto.java
new file mode 100644
index 0000000..28fb906
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleDto.java
@@ -0,0 +1,42 @@
+package com.olivia.peanut.base.api.entity.baseUserRole;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import com.olivia.peanut.portal.api.entity.BaseEntityDto;
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import com.olivia.sdk.ann.InsertCheck;
+import com.olivia.sdk.ann.UpdateCheck;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * 用户角色表(BaseUserRole)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+//@Accessors(chain=true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleDto extends BaseEntityDto {
+
+ /***
+ * 用户ID
+ */
+ @NotNull(message = "用户ID不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private Long userId;
+ /***
+ * 角色ID
+ */
+ @NotNull(message = "角色ID不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private Long roleId;
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleExportQueryPageListInfoRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleExportQueryPageListInfoRes.java
new file mode 100644
index 0000000..7130e53
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleExportQueryPageListInfoRes.java
@@ -0,0 +1,27 @@
+package com.olivia.peanut.base.api.entity.baseUserRole;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色表(BaseUserRole)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleExportQueryPageListInfoRes extends BaseUserRoleDto {
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleExportQueryPageListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleExportQueryPageListReq.java
new file mode 100644
index 0000000..d16f590
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleExportQueryPageListReq.java
@@ -0,0 +1,34 @@
+package com.olivia.peanut.base.api.entity.baseUserRole;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色表(BaseUserRole)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleExportQueryPageListReq {
+
+ private int pageNum;
+ private int pageSize;
+ private Boolean queryPage = true;
+ private BaseUserRoleDto data;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleImportReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleImportReq.java
new file mode 100644
index 0000000..81c48ca
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleImportReq.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseUserRole;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色表(BaseUserRole)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+//@Accessors(chain=true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleImportReq extends BaseUserRoleDto {
+
+
+ public void checkParam() {
+ }
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleImportRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleImportRes.java
new file mode 100644
index 0000000..23b9697
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleImportRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseUserRole;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色表(BaseUserRole)保存返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleImportRes {
+
+ /****
+ * 写入行数
+ */
+ private int count;
+ /**
+ * 错误信息
+ */
+ private List errorMsg;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleInsertReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleInsertReq.java
new file mode 100644
index 0000000..d1e3053
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleInsertReq.java
@@ -0,0 +1,25 @@
+package com.olivia.peanut.base.api.entity.baseUserRole;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色表(BaseUserRole)保存入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleInsertReq extends BaseUserRoleDto {
+
+ public void checkParam() {
+ }
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleInsertRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleInsertRes.java
new file mode 100644
index 0000000..651c0bb
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleInsertRes.java
@@ -0,0 +1,29 @@
+package com.olivia.peanut.base.api.entity.baseUserRole;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色表(BaseUserRole)保存返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleInsertRes {
+
+ /****
+ * 写入行数
+ */
+ private int count;
+
+ private Long id;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleQueryByIdListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleQueryByIdListReq.java
new file mode 100644
index 0000000..270da79
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleQueryByIdListReq.java
@@ -0,0 +1,32 @@
+package com.olivia.peanut.base.api.entity.baseUserRole;
+
+import java.time.LocalDateTime;
+import java.util.List;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色表(BaseUserRole)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleQueryByIdListReq {
+
+ private List idList;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleQueryByIdListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleQueryByIdListRes.java
new file mode 100644
index 0000000..5522370
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleQueryByIdListRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseUserRole;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色表(BaseUserRole)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleQueryByIdListRes {
+
+ /***
+ * 返回对象列表
+ */
+ private List dataList;
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleQueryListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleQueryListReq.java
new file mode 100644
index 0000000..f2c487c
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleQueryListReq.java
@@ -0,0 +1,26 @@
+package com.olivia.peanut.base.api.entity.baseUserRole;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色表(BaseUserRole)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleQueryListReq {
+
+ private BaseUserRoleDto data;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleQueryListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleQueryListRes.java
new file mode 100644
index 0000000..71740f5
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleQueryListRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseUserRole;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色表(BaseUserRole)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleQueryListRes {
+
+ /***
+ * 返回对象列表
+ */
+ private List dataList;
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleUpdateByIdReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleUpdateByIdReq.java
new file mode 100644
index 0000000..cedba87
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleUpdateByIdReq.java
@@ -0,0 +1,30 @@
+package com.olivia.peanut.base.api.entity.baseUserRole;
+
+import java.time.LocalDateTime;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.ToString;
+import lombok.experimental.Accessors;
+
+/**
+ * 用户角色表(BaseUserRole)表实体类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleUpdateByIdReq extends BaseUserRoleDto {
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleUpdateByIdRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleUpdateByIdRes.java
new file mode 100644
index 0000000..3d49089
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRole/BaseUserRoleUpdateByIdRes.java
@@ -0,0 +1,24 @@
+package com.olivia.peanut.base.api.entity.baseUserRole;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色表(BaseUserRole)修改对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleUpdateByIdRes {
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupDeleteByIdListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupDeleteByIdListReq.java
new file mode 100644
index 0000000..36789d8
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupDeleteByIdListReq.java
@@ -0,0 +1,34 @@
+package com.olivia.peanut.base.api.entity.baseUserRoleGroup;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import jakarta.validation.constraints.NotEmpty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)根据ID删除多个入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:04
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleGroupDeleteByIdListReq {
+
+ /***
+ * 要删除的ID
+ */
+ @NotEmpty(message = "请选择删除对象")
+ private List idList;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupDeleteByIdListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupDeleteByIdListRes.java
new file mode 100644
index 0000000..1f00279
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupDeleteByIdListRes.java
@@ -0,0 +1,29 @@
+package com.olivia.peanut.base.api.entity.baseUserRoleGroup;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)根据ID删除多个反参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:04
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleGroupDeleteByIdListRes {
+
+ /***
+ * 受影响行数
+ */
+ private int count;
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupDto.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupDto.java
new file mode 100644
index 0000000..ca17007
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupDto.java
@@ -0,0 +1,42 @@
+package com.olivia.peanut.base.api.entity.baseUserRoleGroup;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import com.olivia.peanut.portal.api.entity.BaseEntityDto;
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import com.olivia.sdk.ann.InsertCheck;
+import com.olivia.sdk.ann.UpdateCheck;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:04
+ */
+//@Accessors(chain=true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleGroupDto extends BaseEntityDto {
+
+ /***
+ * 用户ID
+ */
+ @NotNull(message = "用户ID不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private Long userId;
+ /***
+ * 角色组ID
+ */
+ @NotNull(message = "角色组ID不能为空", groups = {InsertCheck.class, UpdateCheck.class})
+ private Long roleGroupId;
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupExportQueryPageListInfoRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupExportQueryPageListInfoRes.java
new file mode 100644
index 0000000..8cd1b61
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupExportQueryPageListInfoRes.java
@@ -0,0 +1,27 @@
+package com.olivia.peanut.base.api.entity.baseUserRoleGroup;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:04
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleGroupExportQueryPageListInfoRes extends BaseUserRoleGroupDto {
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupExportQueryPageListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupExportQueryPageListReq.java
new file mode 100644
index 0000000..0519fd3
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupExportQueryPageListReq.java
@@ -0,0 +1,34 @@
+package com.olivia.peanut.base.api.entity.baseUserRoleGroup;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:04
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleGroupExportQueryPageListReq {
+
+ private int pageNum;
+ private int pageSize;
+ private Boolean queryPage = true;
+ private BaseUserRoleGroupDto data;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupImportReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupImportReq.java
new file mode 100644
index 0000000..7ca6539
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupImportReq.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseUserRoleGroup;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:04
+ */
+//@Accessors(chain=true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleGroupImportReq extends BaseUserRoleGroupDto {
+
+
+ public void checkParam() {
+ }
+
+}
+
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupImportRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupImportRes.java
new file mode 100644
index 0000000..c95beec
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupImportRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseUserRoleGroup;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)保存返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:04
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleGroupImportRes {
+
+ /****
+ * 写入行数
+ */
+ private int count;
+ /**
+ * 错误信息
+ */
+ private List errorMsg;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupInsertReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupInsertReq.java
new file mode 100644
index 0000000..e287190
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupInsertReq.java
@@ -0,0 +1,25 @@
+package com.olivia.peanut.base.api.entity.baseUserRoleGroup;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)保存入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:04
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleGroupInsertReq extends BaseUserRoleGroupDto {
+
+ public void checkParam() {
+ }
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupInsertRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupInsertRes.java
new file mode 100644
index 0000000..b84ad36
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupInsertRes.java
@@ -0,0 +1,29 @@
+package com.olivia.peanut.base.api.entity.baseUserRoleGroup;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)保存返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:04
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleGroupInsertRes {
+
+ /****
+ * 写入行数
+ */
+ private int count;
+
+ private Long id;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupQueryByIdListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupQueryByIdListReq.java
new file mode 100644
index 0000000..dba5b68
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupQueryByIdListReq.java
@@ -0,0 +1,32 @@
+package com.olivia.peanut.base.api.entity.baseUserRoleGroup;
+
+import java.time.LocalDateTime;
+import java.util.List;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:04
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleGroupQueryByIdListReq {
+
+ private List idList;
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupQueryByIdListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupQueryByIdListRes.java
new file mode 100644
index 0000000..f2bcb4a
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupQueryByIdListRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseUserRoleGroup;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:04
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleGroupQueryByIdListRes {
+
+ /***
+ * 返回对象列表
+ */
+ private List dataList;
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupQueryListReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupQueryListReq.java
new file mode 100644
index 0000000..7050930
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupQueryListReq.java
@@ -0,0 +1,26 @@
+package com.olivia.peanut.base.api.entity.baseUserRoleGroup;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)查询对象入参
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:04
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleGroupQueryListReq {
+
+ private BaseUserRoleGroupDto data;
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupQueryListRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupQueryListRes.java
new file mode 100644
index 0000000..a9956c8
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupQueryListRes.java
@@ -0,0 +1,31 @@
+package com.olivia.peanut.base.api.entity.baseUserRoleGroup;
+
+import java.time.LocalDateTime;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import java.util.List;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)查询对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:04
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleGroupQueryListRes {
+
+ /***
+ * 返回对象列表
+ */
+ private List dataList;
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupUpdateByIdReq.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupUpdateByIdReq.java
new file mode 100644
index 0000000..b1b1d80
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupUpdateByIdReq.java
@@ -0,0 +1,30 @@
+package com.olivia.peanut.base.api.entity.baseUserRoleGroup;
+
+import java.time.LocalDateTime;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.ToString;
+import lombok.experimental.Accessors;
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)表实体类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:04
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleGroupUpdateByIdReq extends BaseUserRoleGroupDto {
+
+
+ public void checkParam() {
+ }
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupUpdateByIdRes.java b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupUpdateByIdRes.java
new file mode 100644
index 0000000..9e561ad
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/entity/baseUserRoleGroup/BaseUserRoleGroupUpdateByIdRes.java
@@ -0,0 +1,24 @@
+package com.olivia.peanut.base.api.entity.baseUserRoleGroup;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)修改对象返回
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:04
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+@SuppressWarnings("serial")
+public class BaseUserRoleGroupUpdateByIdRes {
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/api/impl/BaseDeptApiImpl.java b/src/main/java/com/olivia/peanut/base/api/impl/BaseDeptApiImpl.java
new file mode 100644
index 0000000..a4f7470
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/impl/BaseDeptApiImpl.java
@@ -0,0 +1,104 @@
+package com.olivia.peanut.base.api.impl;
+
+import java.time.LocalDateTime;
+
+import com.olivia.peanut.base.model.BaseDept;
+import com.olivia.sdk.utils.$;
+import com.olivia.sdk.utils.DynamicsPage;
+import com.olivia.sdk.utils.PoiExcelUtil;
+import java.util.stream.Collectors;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.util.*;
+import org.apache.commons.lang3.StringUtils;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestBody;
+import com.olivia.peanut.base.api.entity.baseDept.*;
+import com.olivia.peanut.base.service.BaseDeptService;
+import com.olivia.peanut.base.model.*;
+import com.baomidou.mybatisplus.core.conditions.query.*;
+import com.github.yulichang.wrapper.MPJLambdaWrapper;
+import org.springframework.web.bind.annotation.*;
+import com.olivia.peanut.base.api.BaseDeptApi;
+
+import com.olivia.peanut.base.api.impl.listener.*;
+import org.springframework.web.multipart.MultipartFile;
+
+/**
+ * 部门表(BaseDept)表服务实现类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:30
+ */
+@RestController
+public class BaseDeptApiImpl implements BaseDeptApi {
+
+ private @Autowired BaseDeptService baseDeptService;
+
+ /****
+ * insert
+ *
+ */
+ public @Override BaseDeptInsertRes insert(BaseDeptInsertReq req) {
+ this.baseDeptService.save($.copy(req, BaseDept.class));
+ return new BaseDeptInsertRes().setCount(1);
+ }
+
+ /****
+ * deleteByIds
+ *
+ */
+ public @Override BaseDeptDeleteByIdListRes deleteByIdList(BaseDeptDeleteByIdListReq req) {
+ baseDeptService.removeByIds(req.getIdList());
+ return new BaseDeptDeleteByIdListRes();
+ }
+
+ /****
+ * queryList
+ *
+ */
+ public @Override BaseDeptQueryListRes queryList(BaseDeptQueryListReq req) {
+ return baseDeptService.queryList(req);
+ }
+
+ /****
+ * updateById
+ *
+ */
+ public @Override BaseDeptUpdateByIdRes updateById(BaseDeptUpdateByIdReq req) {
+ baseDeptService.updateById($.copy(req, BaseDept.class));
+ return new BaseDeptUpdateByIdRes();
+
+ }
+
+ public @Override DynamicsPage queryPageList(BaseDeptExportQueryPageListReq req) {
+ return baseDeptService.queryPageList(req);
+ }
+
+ public @Override void queryPageListExport(BaseDeptExportQueryPageListReq req) {
+ DynamicsPage page = queryPageList(req);
+ List list = page.getDataList();
+ // 类型转换, 更换枚举 等操作
+ List listInfoRes = $.copyList(list, BaseDeptExportQueryPageListInfoRes.class);
+ PoiExcelUtil.export(BaseDeptExportQueryPageListInfoRes.class, listInfoRes, "部门表");
+ }
+
+ public @Override BaseDeptImportRes importData(@RequestParam("file") MultipartFile file) {
+ List reqList = PoiExcelUtil.readData(file, new BaseDeptImportListener(), BaseDeptImportReq.class);
+ // 类型转换, 更换枚举 等操作
+ List readList = $.copyList(reqList, BaseDept.class);
+ boolean bool = baseDeptService.saveBatch(readList);
+ int c = bool ? readList.size() : 0;
+ return new BaseDeptImportRes().setCount(c);
+ }
+
+ public @Override BaseDeptQueryByIdListRes queryByIdListRes(BaseDeptQueryByIdListReq req) {
+ MPJLambdaWrapper q = new MPJLambdaWrapper(BaseDept.class)
+ .selectAll(BaseDept.class).in(BaseDept::getId, req.getIdList());
+ List list = this.baseDeptService.list(q);
+ List dataList = $.copyList(list, BaseDeptDto.class);
+ this.baseDeptService.setName(dataList);
+ return new BaseDeptQueryByIdListRes().setDataList(dataList);
+ }
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/impl/BaseResourceApiImpl.java b/src/main/java/com/olivia/peanut/base/api/impl/BaseResourceApiImpl.java
new file mode 100644
index 0000000..d106ced
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/impl/BaseResourceApiImpl.java
@@ -0,0 +1,104 @@
+package com.olivia.peanut.base.api.impl;
+
+import java.time.LocalDateTime;
+
+import com.olivia.peanut.base.model.BaseResource;
+import com.olivia.sdk.utils.$;
+import com.olivia.sdk.utils.DynamicsPage;
+import com.olivia.sdk.utils.PoiExcelUtil;
+import java.util.stream.Collectors;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.util.*;
+import org.apache.commons.lang3.StringUtils;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestBody;
+import com.olivia.peanut.base.api.entity.baseResource.*;
+import com.olivia.peanut.base.service.BaseResourceService;
+import com.olivia.peanut.base.model.*;
+import com.baomidou.mybatisplus.core.conditions.query.*;
+import com.github.yulichang.wrapper.MPJLambdaWrapper;
+import org.springframework.web.bind.annotation.*;
+import com.olivia.peanut.base.api.BaseResourceApi;
+
+import com.olivia.peanut.base.api.impl.listener.*;
+import org.springframework.web.multipart.MultipartFile;
+
+/**
+ * 资源(BaseResource)表服务实现类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+@RestController
+public class BaseResourceApiImpl implements BaseResourceApi {
+
+ private @Autowired BaseResourceService baseResourceService;
+
+ /****
+ * insert
+ *
+ */
+ public @Override BaseResourceInsertRes insert(BaseResourceInsertReq req) {
+ this.baseResourceService.save($.copy(req, BaseResource.class));
+ return new BaseResourceInsertRes().setCount(1);
+ }
+
+ /****
+ * deleteByIds
+ *
+ */
+ public @Override BaseResourceDeleteByIdListRes deleteByIdList(BaseResourceDeleteByIdListReq req) {
+ baseResourceService.removeByIds(req.getIdList());
+ return new BaseResourceDeleteByIdListRes();
+ }
+
+ /****
+ * queryList
+ *
+ */
+ public @Override BaseResourceQueryListRes queryList(BaseResourceQueryListReq req) {
+ return baseResourceService.queryList(req);
+ }
+
+ /****
+ * updateById
+ *
+ */
+ public @Override BaseResourceUpdateByIdRes updateById(BaseResourceUpdateByIdReq req) {
+ baseResourceService.updateById($.copy(req, BaseResource.class));
+ return new BaseResourceUpdateByIdRes();
+
+ }
+
+ public @Override DynamicsPage queryPageList(BaseResourceExportQueryPageListReq req) {
+ return baseResourceService.queryPageList(req);
+ }
+
+ public @Override void queryPageListExport(BaseResourceExportQueryPageListReq req) {
+ DynamicsPage page = queryPageList(req);
+ List list = page.getDataList();
+ // 类型转换, 更换枚举 等操作
+ List listInfoRes = $.copyList(list, BaseResourceExportQueryPageListInfoRes.class);
+ PoiExcelUtil.export(BaseResourceExportQueryPageListInfoRes.class, listInfoRes, "资源");
+ }
+
+ public @Override BaseResourceImportRes importData(@RequestParam("file") MultipartFile file) {
+ List reqList = PoiExcelUtil.readData(file, new BaseResourceImportListener(), BaseResourceImportReq.class);
+ // 类型转换, 更换枚举 等操作
+ List readList = $.copyList(reqList, BaseResource.class);
+ boolean bool = baseResourceService.saveBatch(readList);
+ int c = bool ? readList.size() : 0;
+ return new BaseResourceImportRes().setCount(c);
+ }
+
+ public @Override BaseResourceQueryByIdListRes queryByIdListRes(BaseResourceQueryByIdListReq req) {
+ MPJLambdaWrapper q = new MPJLambdaWrapper(BaseResource.class)
+ .selectAll(BaseResource.class).in(BaseResource::getId, req.getIdList());
+ List list = this.baseResourceService.list(q);
+ List dataList = $.copyList(list, BaseResourceDto.class);
+ this.baseResourceService.setName(dataList);
+ return new BaseResourceQueryByIdListRes().setDataList(dataList);
+ }
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/impl/BaseRoleApiImpl.java b/src/main/java/com/olivia/peanut/base/api/impl/BaseRoleApiImpl.java
new file mode 100644
index 0000000..b3d2737
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/impl/BaseRoleApiImpl.java
@@ -0,0 +1,104 @@
+package com.olivia.peanut.base.api.impl;
+
+import java.time.LocalDateTime;
+
+import com.olivia.peanut.base.model.BaseRole;
+import com.olivia.sdk.utils.$;
+import com.olivia.sdk.utils.DynamicsPage;
+import com.olivia.sdk.utils.PoiExcelUtil;
+import java.util.stream.Collectors;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.util.*;
+import org.apache.commons.lang3.StringUtils;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestBody;
+import com.olivia.peanut.base.api.entity.baseRole.*;
+import com.olivia.peanut.base.service.BaseRoleService;
+import com.olivia.peanut.base.model.*;
+import com.baomidou.mybatisplus.core.conditions.query.*;
+import com.github.yulichang.wrapper.MPJLambdaWrapper;
+import org.springframework.web.bind.annotation.*;
+import com.olivia.peanut.base.api.BaseRoleApi;
+
+import com.olivia.peanut.base.api.impl.listener.*;
+import org.springframework.web.multipart.MultipartFile;
+
+/**
+ * 角色表(BaseRole)表服务实现类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:34
+ */
+@RestController
+public class BaseRoleApiImpl implements BaseRoleApi {
+
+ private @Autowired BaseRoleService baseRoleService;
+
+ /****
+ * insert
+ *
+ */
+ public @Override BaseRoleInsertRes insert(BaseRoleInsertReq req) {
+ this.baseRoleService.save($.copy(req, BaseRole.class));
+ return new BaseRoleInsertRes().setCount(1);
+ }
+
+ /****
+ * deleteByIds
+ *
+ */
+ public @Override BaseRoleDeleteByIdListRes deleteByIdList(BaseRoleDeleteByIdListReq req) {
+ baseRoleService.removeByIds(req.getIdList());
+ return new BaseRoleDeleteByIdListRes();
+ }
+
+ /****
+ * queryList
+ *
+ */
+ public @Override BaseRoleQueryListRes queryList(BaseRoleQueryListReq req) {
+ return baseRoleService.queryList(req);
+ }
+
+ /****
+ * updateById
+ *
+ */
+ public @Override BaseRoleUpdateByIdRes updateById(BaseRoleUpdateByIdReq req) {
+ baseRoleService.updateById($.copy(req, BaseRole.class));
+ return new BaseRoleUpdateByIdRes();
+
+ }
+
+ public @Override DynamicsPage queryPageList(BaseRoleExportQueryPageListReq req) {
+ return baseRoleService.queryPageList(req);
+ }
+
+ public @Override void queryPageListExport(BaseRoleExportQueryPageListReq req) {
+ DynamicsPage page = queryPageList(req);
+ List list = page.getDataList();
+ // 类型转换, 更换枚举 等操作
+ List listInfoRes = $.copyList(list, BaseRoleExportQueryPageListInfoRes.class);
+ PoiExcelUtil.export(BaseRoleExportQueryPageListInfoRes.class, listInfoRes, "角色表");
+ }
+
+ public @Override BaseRoleImportRes importData(@RequestParam("file") MultipartFile file) {
+ List reqList = PoiExcelUtil.readData(file, new BaseRoleImportListener(), BaseRoleImportReq.class);
+ // 类型转换, 更换枚举 等操作
+ List readList = $.copyList(reqList, BaseRole.class);
+ boolean bool = baseRoleService.saveBatch(readList);
+ int c = bool ? readList.size() : 0;
+ return new BaseRoleImportRes().setCount(c);
+ }
+
+ public @Override BaseRoleQueryByIdListRes queryByIdListRes(BaseRoleQueryByIdListReq req) {
+ MPJLambdaWrapper q = new MPJLambdaWrapper(BaseRole.class)
+ .selectAll(BaseRole.class).in(BaseRole::getId, req.getIdList());
+ List list = this.baseRoleService.list(q);
+ List dataList = $.copyList(list, BaseRoleDto.class);
+ this.baseRoleService.setName(dataList);
+ return new BaseRoleQueryByIdListRes().setDataList(dataList);
+ }
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/impl/BaseRoleGroupApiImpl.java b/src/main/java/com/olivia/peanut/base/api/impl/BaseRoleGroupApiImpl.java
new file mode 100644
index 0000000..08645c4
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/impl/BaseRoleGroupApiImpl.java
@@ -0,0 +1,104 @@
+package com.olivia.peanut.base.api.impl;
+
+import java.time.LocalDateTime;
+
+import com.olivia.peanut.base.model.BaseRoleGroup;
+import com.olivia.sdk.utils.$;
+import com.olivia.sdk.utils.DynamicsPage;
+import com.olivia.sdk.utils.PoiExcelUtil;
+import java.util.stream.Collectors;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.util.*;
+import org.apache.commons.lang3.StringUtils;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestBody;
+import com.olivia.peanut.base.api.entity.baseRoleGroup.*;
+import com.olivia.peanut.base.service.BaseRoleGroupService;
+import com.olivia.peanut.base.model.*;
+import com.baomidou.mybatisplus.core.conditions.query.*;
+import com.github.yulichang.wrapper.MPJLambdaWrapper;
+import org.springframework.web.bind.annotation.*;
+import com.olivia.peanut.base.api.BaseRoleGroupApi;
+
+import com.olivia.peanut.base.api.impl.listener.*;
+import org.springframework.web.multipart.MultipartFile;
+
+/**
+ * 角色组表(BaseRoleGroup)表服务实现类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+@RestController
+public class BaseRoleGroupApiImpl implements BaseRoleGroupApi {
+
+ private @Autowired BaseRoleGroupService baseRoleGroupService;
+
+ /****
+ * insert
+ *
+ */
+ public @Override BaseRoleGroupInsertRes insert(BaseRoleGroupInsertReq req) {
+ this.baseRoleGroupService.save($.copy(req, BaseRoleGroup.class));
+ return new BaseRoleGroupInsertRes().setCount(1);
+ }
+
+ /****
+ * deleteByIds
+ *
+ */
+ public @Override BaseRoleGroupDeleteByIdListRes deleteByIdList(BaseRoleGroupDeleteByIdListReq req) {
+ baseRoleGroupService.removeByIds(req.getIdList());
+ return new BaseRoleGroupDeleteByIdListRes();
+ }
+
+ /****
+ * queryList
+ *
+ */
+ public @Override BaseRoleGroupQueryListRes queryList(BaseRoleGroupQueryListReq req) {
+ return baseRoleGroupService.queryList(req);
+ }
+
+ /****
+ * updateById
+ *
+ */
+ public @Override BaseRoleGroupUpdateByIdRes updateById(BaseRoleGroupUpdateByIdReq req) {
+ baseRoleGroupService.updateById($.copy(req, BaseRoleGroup.class));
+ return new BaseRoleGroupUpdateByIdRes();
+
+ }
+
+ public @Override DynamicsPage queryPageList(BaseRoleGroupExportQueryPageListReq req) {
+ return baseRoleGroupService.queryPageList(req);
+ }
+
+ public @Override void queryPageListExport(BaseRoleGroupExportQueryPageListReq req) {
+ DynamicsPage page = queryPageList(req);
+ List list = page.getDataList();
+ // 类型转换, 更换枚举 等操作
+ List listInfoRes = $.copyList(list, BaseRoleGroupExportQueryPageListInfoRes.class);
+ PoiExcelUtil.export(BaseRoleGroupExportQueryPageListInfoRes.class, listInfoRes, "角色组表");
+ }
+
+ public @Override BaseRoleGroupImportRes importData(@RequestParam("file") MultipartFile file) {
+ List reqList = PoiExcelUtil.readData(file, new BaseRoleGroupImportListener(), BaseRoleGroupImportReq.class);
+ // 类型转换, 更换枚举 等操作
+ List readList = $.copyList(reqList, BaseRoleGroup.class);
+ boolean bool = baseRoleGroupService.saveBatch(readList);
+ int c = bool ? readList.size() : 0;
+ return new BaseRoleGroupImportRes().setCount(c);
+ }
+
+ public @Override BaseRoleGroupQueryByIdListRes queryByIdListRes(BaseRoleGroupQueryByIdListReq req) {
+ MPJLambdaWrapper q = new MPJLambdaWrapper(BaseRoleGroup.class)
+ .selectAll(BaseRoleGroup.class).in(BaseRoleGroup::getId, req.getIdList());
+ List list = this.baseRoleGroupService.list(q);
+ List dataList = $.copyList(list, BaseRoleGroupDto.class);
+ this.baseRoleGroupService.setName(dataList);
+ return new BaseRoleGroupQueryByIdListRes().setDataList(dataList);
+ }
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/impl/BaseRoleResourceApiImpl.java b/src/main/java/com/olivia/peanut/base/api/impl/BaseRoleResourceApiImpl.java
new file mode 100644
index 0000000..576904e
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/impl/BaseRoleResourceApiImpl.java
@@ -0,0 +1,104 @@
+package com.olivia.peanut.base.api.impl;
+
+import java.time.LocalDateTime;
+
+import com.olivia.peanut.base.model.BaseRoleResource;
+import com.olivia.sdk.utils.$;
+import com.olivia.sdk.utils.DynamicsPage;
+import com.olivia.sdk.utils.PoiExcelUtil;
+import java.util.stream.Collectors;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.util.*;
+import org.apache.commons.lang3.StringUtils;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestBody;
+import com.olivia.peanut.base.api.entity.baseRoleResource.*;
+import com.olivia.peanut.base.service.BaseRoleResourceService;
+import com.olivia.peanut.base.model.*;
+import com.baomidou.mybatisplus.core.conditions.query.*;
+import com.github.yulichang.wrapper.MPJLambdaWrapper;
+import org.springframework.web.bind.annotation.*;
+import com.olivia.peanut.base.api.BaseRoleResourceApi;
+
+import com.olivia.peanut.base.api.impl.listener.*;
+import org.springframework.web.multipart.MultipartFile;
+
+/**
+ * 角色资源表(BaseRoleResource)表服务实现类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:34:06
+ */
+@RestController
+public class BaseRoleResourceApiImpl implements BaseRoleResourceApi {
+
+ private @Autowired BaseRoleResourceService baseRoleResourceService;
+
+ /****
+ * insert
+ *
+ */
+ public @Override BaseRoleResourceInsertRes insert(BaseRoleResourceInsertReq req) {
+ this.baseRoleResourceService.save($.copy(req, BaseRoleResource.class));
+ return new BaseRoleResourceInsertRes().setCount(1);
+ }
+
+ /****
+ * deleteByIds
+ *
+ */
+ public @Override BaseRoleResourceDeleteByIdListRes deleteByIdList(BaseRoleResourceDeleteByIdListReq req) {
+ baseRoleResourceService.removeByIds(req.getIdList());
+ return new BaseRoleResourceDeleteByIdListRes();
+ }
+
+ /****
+ * queryList
+ *
+ */
+ public @Override BaseRoleResourceQueryListRes queryList(BaseRoleResourceQueryListReq req) {
+ return baseRoleResourceService.queryList(req);
+ }
+
+ /****
+ * updateById
+ *
+ */
+ public @Override BaseRoleResourceUpdateByIdRes updateById(BaseRoleResourceUpdateByIdReq req) {
+ baseRoleResourceService.updateById($.copy(req, BaseRoleResource.class));
+ return new BaseRoleResourceUpdateByIdRes();
+
+ }
+
+ public @Override DynamicsPage queryPageList(BaseRoleResourceExportQueryPageListReq req) {
+ return baseRoleResourceService.queryPageList(req);
+ }
+
+ public @Override void queryPageListExport(BaseRoleResourceExportQueryPageListReq req) {
+ DynamicsPage page = queryPageList(req);
+ List list = page.getDataList();
+ // 类型转换, 更换枚举 等操作
+ List listInfoRes = $.copyList(list, BaseRoleResourceExportQueryPageListInfoRes.class);
+ PoiExcelUtil.export(BaseRoleResourceExportQueryPageListInfoRes.class, listInfoRes, "角色资源表");
+ }
+
+ public @Override BaseRoleResourceImportRes importData(@RequestParam("file") MultipartFile file) {
+ List reqList = PoiExcelUtil.readData(file, new BaseRoleResourceImportListener(), BaseRoleResourceImportReq.class);
+ // 类型转换, 更换枚举 等操作
+ List readList = $.copyList(reqList, BaseRoleResource.class);
+ boolean bool = baseRoleResourceService.saveBatch(readList);
+ int c = bool ? readList.size() : 0;
+ return new BaseRoleResourceImportRes().setCount(c);
+ }
+
+ public @Override BaseRoleResourceQueryByIdListRes queryByIdListRes(BaseRoleResourceQueryByIdListReq req) {
+ MPJLambdaWrapper q = new MPJLambdaWrapper(BaseRoleResource.class)
+ .selectAll(BaseRoleResource.class).in(BaseRoleResource::getId, req.getIdList());
+ List list = this.baseRoleResourceService.list(q);
+ List dataList = $.copyList(list, BaseRoleResourceDto.class);
+ this.baseRoleResourceService.setName(dataList);
+ return new BaseRoleResourceQueryByIdListRes().setDataList(dataList);
+ }
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/impl/BaseUserDeptApiImpl.java b/src/main/java/com/olivia/peanut/base/api/impl/BaseUserDeptApiImpl.java
new file mode 100644
index 0000000..628c74d
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/impl/BaseUserDeptApiImpl.java
@@ -0,0 +1,104 @@
+package com.olivia.peanut.base.api.impl;
+
+import java.time.LocalDateTime;
+
+import com.olivia.peanut.base.model.BaseUserDept;
+import com.olivia.sdk.utils.$;
+import com.olivia.sdk.utils.DynamicsPage;
+import com.olivia.sdk.utils.PoiExcelUtil;
+import java.util.stream.Collectors;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.util.*;
+import org.apache.commons.lang3.StringUtils;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestBody;
+import com.olivia.peanut.base.api.entity.baseUserDept.*;
+import com.olivia.peanut.base.service.BaseUserDeptService;
+import com.olivia.peanut.base.model.*;
+import com.baomidou.mybatisplus.core.conditions.query.*;
+import com.github.yulichang.wrapper.MPJLambdaWrapper;
+import org.springframework.web.bind.annotation.*;
+import com.olivia.peanut.base.api.BaseUserDeptApi;
+
+import com.olivia.peanut.base.api.impl.listener.*;
+import org.springframework.web.multipart.MultipartFile;
+
+/**
+ * 用户部门表(BaseUserDept)表服务实现类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+@RestController
+public class BaseUserDeptApiImpl implements BaseUserDeptApi {
+
+ private @Autowired BaseUserDeptService baseUserDeptService;
+
+ /****
+ * insert
+ *
+ */
+ public @Override BaseUserDeptInsertRes insert(BaseUserDeptInsertReq req) {
+ this.baseUserDeptService.save($.copy(req, BaseUserDept.class));
+ return new BaseUserDeptInsertRes().setCount(1);
+ }
+
+ /****
+ * deleteByIds
+ *
+ */
+ public @Override BaseUserDeptDeleteByIdListRes deleteByIdList(BaseUserDeptDeleteByIdListReq req) {
+ baseUserDeptService.removeByIds(req.getIdList());
+ return new BaseUserDeptDeleteByIdListRes();
+ }
+
+ /****
+ * queryList
+ *
+ */
+ public @Override BaseUserDeptQueryListRes queryList(BaseUserDeptQueryListReq req) {
+ return baseUserDeptService.queryList(req);
+ }
+
+ /****
+ * updateById
+ *
+ */
+ public @Override BaseUserDeptUpdateByIdRes updateById(BaseUserDeptUpdateByIdReq req) {
+ baseUserDeptService.updateById($.copy(req, BaseUserDept.class));
+ return new BaseUserDeptUpdateByIdRes();
+
+ }
+
+ public @Override DynamicsPage queryPageList(BaseUserDeptExportQueryPageListReq req) {
+ return baseUserDeptService.queryPageList(req);
+ }
+
+ public @Override void queryPageListExport(BaseUserDeptExportQueryPageListReq req) {
+ DynamicsPage page = queryPageList(req);
+ List list = page.getDataList();
+ // 类型转换, 更换枚举 等操作
+ List listInfoRes = $.copyList(list, BaseUserDeptExportQueryPageListInfoRes.class);
+ PoiExcelUtil.export(BaseUserDeptExportQueryPageListInfoRes.class, listInfoRes, "用户部门表");
+ }
+
+ public @Override BaseUserDeptImportRes importData(@RequestParam("file") MultipartFile file) {
+ List reqList = PoiExcelUtil.readData(file, new BaseUserDeptImportListener(), BaseUserDeptImportReq.class);
+ // 类型转换, 更换枚举 等操作
+ List readList = $.copyList(reqList, BaseUserDept.class);
+ boolean bool = baseUserDeptService.saveBatch(readList);
+ int c = bool ? readList.size() : 0;
+ return new BaseUserDeptImportRes().setCount(c);
+ }
+
+ public @Override BaseUserDeptQueryByIdListRes queryByIdListRes(BaseUserDeptQueryByIdListReq req) {
+ MPJLambdaWrapper q = new MPJLambdaWrapper(BaseUserDept.class)
+ .selectAll(BaseUserDept.class).in(BaseUserDept::getId, req.getIdList());
+ List list = this.baseUserDeptService.list(q);
+ List dataList = $.copyList(list, BaseUserDeptDto.class);
+ this.baseUserDeptService.setName(dataList);
+ return new BaseUserDeptQueryByIdListRes().setDataList(dataList);
+ }
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/impl/BaseUserRoleApiImpl.java b/src/main/java/com/olivia/peanut/base/api/impl/BaseUserRoleApiImpl.java
new file mode 100644
index 0000000..f9a0957
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/impl/BaseUserRoleApiImpl.java
@@ -0,0 +1,104 @@
+package com.olivia.peanut.base.api.impl;
+
+import java.time.LocalDateTime;
+
+import com.olivia.peanut.base.model.BaseUserRole;
+import com.olivia.sdk.utils.$;
+import com.olivia.sdk.utils.DynamicsPage;
+import com.olivia.sdk.utils.PoiExcelUtil;
+import java.util.stream.Collectors;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.util.*;
+import org.apache.commons.lang3.StringUtils;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestBody;
+import com.olivia.peanut.base.api.entity.baseUserRole.*;
+import com.olivia.peanut.base.service.BaseUserRoleService;
+import com.olivia.peanut.base.model.*;
+import com.baomidou.mybatisplus.core.conditions.query.*;
+import com.github.yulichang.wrapper.MPJLambdaWrapper;
+import org.springframework.web.bind.annotation.*;
+import com.olivia.peanut.base.api.BaseUserRoleApi;
+
+import com.olivia.peanut.base.api.impl.listener.*;
+import org.springframework.web.multipart.MultipartFile;
+
+/**
+ * 用户角色表(BaseUserRole)表服务实现类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:02
+ */
+@RestController
+public class BaseUserRoleApiImpl implements BaseUserRoleApi {
+
+ private @Autowired BaseUserRoleService baseUserRoleService;
+
+ /****
+ * insert
+ *
+ */
+ public @Override BaseUserRoleInsertRes insert(BaseUserRoleInsertReq req) {
+ this.baseUserRoleService.save($.copy(req, BaseUserRole.class));
+ return new BaseUserRoleInsertRes().setCount(1);
+ }
+
+ /****
+ * deleteByIds
+ *
+ */
+ public @Override BaseUserRoleDeleteByIdListRes deleteByIdList(BaseUserRoleDeleteByIdListReq req) {
+ baseUserRoleService.removeByIds(req.getIdList());
+ return new BaseUserRoleDeleteByIdListRes();
+ }
+
+ /****
+ * queryList
+ *
+ */
+ public @Override BaseUserRoleQueryListRes queryList(BaseUserRoleQueryListReq req) {
+ return baseUserRoleService.queryList(req);
+ }
+
+ /****
+ * updateById
+ *
+ */
+ public @Override BaseUserRoleUpdateByIdRes updateById(BaseUserRoleUpdateByIdReq req) {
+ baseUserRoleService.updateById($.copy(req, BaseUserRole.class));
+ return new BaseUserRoleUpdateByIdRes();
+
+ }
+
+ public @Override DynamicsPage queryPageList(BaseUserRoleExportQueryPageListReq req) {
+ return baseUserRoleService.queryPageList(req);
+ }
+
+ public @Override void queryPageListExport(BaseUserRoleExportQueryPageListReq req) {
+ DynamicsPage page = queryPageList(req);
+ List list = page.getDataList();
+ // 类型转换, 更换枚举 等操作
+ List listInfoRes = $.copyList(list, BaseUserRoleExportQueryPageListInfoRes.class);
+ PoiExcelUtil.export(BaseUserRoleExportQueryPageListInfoRes.class, listInfoRes, "用户角色表");
+ }
+
+ public @Override BaseUserRoleImportRes importData(@RequestParam("file") MultipartFile file) {
+ List reqList = PoiExcelUtil.readData(file, new BaseUserRoleImportListener(), BaseUserRoleImportReq.class);
+ // 类型转换, 更换枚举 等操作
+ List readList = $.copyList(reqList, BaseUserRole.class);
+ boolean bool = baseUserRoleService.saveBatch(readList);
+ int c = bool ? readList.size() : 0;
+ return new BaseUserRoleImportRes().setCount(c);
+ }
+
+ public @Override BaseUserRoleQueryByIdListRes queryByIdListRes(BaseUserRoleQueryByIdListReq req) {
+ MPJLambdaWrapper q = new MPJLambdaWrapper(BaseUserRole.class)
+ .selectAll(BaseUserRole.class).in(BaseUserRole::getId, req.getIdList());
+ List list = this.baseUserRoleService.list(q);
+ List dataList = $.copyList(list, BaseUserRoleDto.class);
+ this.baseUserRoleService.setName(dataList);
+ return new BaseUserRoleQueryByIdListRes().setDataList(dataList);
+ }
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/impl/BaseUserRoleGroupApiImpl.java b/src/main/java/com/olivia/peanut/base/api/impl/BaseUserRoleGroupApiImpl.java
new file mode 100644
index 0000000..04e6e39
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/impl/BaseUserRoleGroupApiImpl.java
@@ -0,0 +1,104 @@
+package com.olivia.peanut.base.api.impl;
+
+import java.time.LocalDateTime;
+
+import com.olivia.peanut.base.model.BaseUserRoleGroup;
+import com.olivia.sdk.utils.$;
+import com.olivia.sdk.utils.DynamicsPage;
+import com.olivia.sdk.utils.PoiExcelUtil;
+import java.util.stream.Collectors;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.util.*;
+import org.apache.commons.lang3.StringUtils;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestBody;
+import com.olivia.peanut.base.api.entity.baseUserRoleGroup.*;
+import com.olivia.peanut.base.service.BaseUserRoleGroupService;
+import com.olivia.peanut.base.model.*;
+import com.baomidou.mybatisplus.core.conditions.query.*;
+import com.github.yulichang.wrapper.MPJLambdaWrapper;
+import org.springframework.web.bind.annotation.*;
+import com.olivia.peanut.base.api.BaseUserRoleGroupApi;
+
+import com.olivia.peanut.base.api.impl.listener.*;
+import org.springframework.web.multipart.MultipartFile;
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)表服务实现类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+@RestController
+public class BaseUserRoleGroupApiImpl implements BaseUserRoleGroupApi {
+
+ private @Autowired BaseUserRoleGroupService baseUserRoleGroupService;
+
+ /****
+ * insert
+ *
+ */
+ public @Override BaseUserRoleGroupInsertRes insert(BaseUserRoleGroupInsertReq req) {
+ this.baseUserRoleGroupService.save($.copy(req, BaseUserRoleGroup.class));
+ return new BaseUserRoleGroupInsertRes().setCount(1);
+ }
+
+ /****
+ * deleteByIds
+ *
+ */
+ public @Override BaseUserRoleGroupDeleteByIdListRes deleteByIdList(BaseUserRoleGroupDeleteByIdListReq req) {
+ baseUserRoleGroupService.removeByIds(req.getIdList());
+ return new BaseUserRoleGroupDeleteByIdListRes();
+ }
+
+ /****
+ * queryList
+ *
+ */
+ public @Override BaseUserRoleGroupQueryListRes queryList(BaseUserRoleGroupQueryListReq req) {
+ return baseUserRoleGroupService.queryList(req);
+ }
+
+ /****
+ * updateById
+ *
+ */
+ public @Override BaseUserRoleGroupUpdateByIdRes updateById(BaseUserRoleGroupUpdateByIdReq req) {
+ baseUserRoleGroupService.updateById($.copy(req, BaseUserRoleGroup.class));
+ return new BaseUserRoleGroupUpdateByIdRes();
+
+ }
+
+ public @Override DynamicsPage queryPageList(BaseUserRoleGroupExportQueryPageListReq req) {
+ return baseUserRoleGroupService.queryPageList(req);
+ }
+
+ public @Override void queryPageListExport(BaseUserRoleGroupExportQueryPageListReq req) {
+ DynamicsPage page = queryPageList(req);
+ List list = page.getDataList();
+ // 类型转换, 更换枚举 等操作
+ List listInfoRes = $.copyList(list, BaseUserRoleGroupExportQueryPageListInfoRes.class);
+ PoiExcelUtil.export(BaseUserRoleGroupExportQueryPageListInfoRes.class, listInfoRes, "用户角色组表");
+ }
+
+ public @Override BaseUserRoleGroupImportRes importData(@RequestParam("file") MultipartFile file) {
+ List reqList = PoiExcelUtil.readData(file, new BaseUserRoleGroupImportListener(), BaseUserRoleGroupImportReq.class);
+ // 类型转换, 更换枚举 等操作
+ List readList = $.copyList(reqList, BaseUserRoleGroup.class);
+ boolean bool = baseUserRoleGroupService.saveBatch(readList);
+ int c = bool ? readList.size() : 0;
+ return new BaseUserRoleGroupImportRes().setCount(c);
+ }
+
+ public @Override BaseUserRoleGroupQueryByIdListRes queryByIdListRes(BaseUserRoleGroupQueryByIdListReq req) {
+ MPJLambdaWrapper q = new MPJLambdaWrapper(BaseUserRoleGroup.class)
+ .selectAll(BaseUserRoleGroup.class).in(BaseUserRoleGroup::getId, req.getIdList());
+ List list = this.baseUserRoleGroupService.list(q);
+ List dataList = $.copyList(list, BaseUserRoleGroupDto.class);
+ this.baseUserRoleGroupService.setName(dataList);
+ return new BaseUserRoleGroupQueryByIdListRes().setDataList(dataList);
+ }
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseDeptImportListener.java b/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseDeptImportListener.java
new file mode 100644
index 0000000..e7b1345
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseDeptImportListener.java
@@ -0,0 +1,48 @@
+package com.olivia.peanut.base.api.impl.listener;
+
+
+import com.olivia.peanut.base.model.BaseDept;
+import org.apache.ibatis.annotations.Mapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.olivia.peanut.base.api.entity.baseDept.*;
+import com.alibaba.excel.context.AnalysisContext;
+import com.alibaba.excel.event.AnalysisEventListener;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import lombok.Getter;
+import lombok.experimental.Accessors;
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * 部门表(BaseDept)文件导入监听
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:31
+ */
+public class BaseDeptImportListener extends AnalysisEventListener {
+
+ @Override
+ public void invoke(BaseDeptImportReq data, AnalysisContext analysisContext) {
+ // 文件校验
+ }
+
+ @Override
+ public void doAfterAllAnalysed(AnalysisContext analysisContext) {
+ // 数据处理完毕后的操作(如果需要)
+ }
+
+ @Override
+ public void onException(Exception exception, AnalysisContext context) throws Exception {
+ // 异常处理
+ super.onException(exception, context);
+ }
+
+ @Override
+ public void invokeHeadMap(Map headMap, AnalysisContext context) {
+ // log.info("headMap:{}", JSON.toJSONString(headMap));
+ super.invokeHeadMap(headMap, context);
+ }
+
+
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseResourceImportListener.java b/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseResourceImportListener.java
new file mode 100644
index 0000000..e7e3819
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseResourceImportListener.java
@@ -0,0 +1,48 @@
+package com.olivia.peanut.base.api.impl.listener;
+
+
+import com.olivia.peanut.base.model.BaseResource;
+import org.apache.ibatis.annotations.Mapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.olivia.peanut.base.api.entity.baseResource.*;
+import com.alibaba.excel.context.AnalysisContext;
+import com.alibaba.excel.event.AnalysisEventListener;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import lombok.Getter;
+import lombok.experimental.Accessors;
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * 资源(BaseResource)文件导入监听
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+public class BaseResourceImportListener extends AnalysisEventListener {
+
+ @Override
+ public void invoke(BaseResourceImportReq data, AnalysisContext analysisContext) {
+ // 文件校验
+ }
+
+ @Override
+ public void doAfterAllAnalysed(AnalysisContext analysisContext) {
+ // 数据处理完毕后的操作(如果需要)
+ }
+
+ @Override
+ public void onException(Exception exception, AnalysisContext context) throws Exception {
+ // 异常处理
+ super.onException(exception, context);
+ }
+
+ @Override
+ public void invokeHeadMap(Map headMap, AnalysisContext context) {
+ // log.info("headMap:{}", JSON.toJSONString(headMap));
+ super.invokeHeadMap(headMap, context);
+ }
+
+
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseRoleGroupImportListener.java b/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseRoleGroupImportListener.java
new file mode 100644
index 0000000..e96d269
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseRoleGroupImportListener.java
@@ -0,0 +1,48 @@
+package com.olivia.peanut.base.api.impl.listener;
+
+
+import com.olivia.peanut.base.model.BaseRoleGroup;
+import org.apache.ibatis.annotations.Mapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.olivia.peanut.base.api.entity.baseRoleGroup.*;
+import com.alibaba.excel.context.AnalysisContext;
+import com.alibaba.excel.event.AnalysisEventListener;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import lombok.Getter;
+import lombok.experimental.Accessors;
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * 角色组表(BaseRoleGroup)文件导入监听
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+public class BaseRoleGroupImportListener extends AnalysisEventListener {
+
+ @Override
+ public void invoke(BaseRoleGroupImportReq data, AnalysisContext analysisContext) {
+ // 文件校验
+ }
+
+ @Override
+ public void doAfterAllAnalysed(AnalysisContext analysisContext) {
+ // 数据处理完毕后的操作(如果需要)
+ }
+
+ @Override
+ public void onException(Exception exception, AnalysisContext context) throws Exception {
+ // 异常处理
+ super.onException(exception, context);
+ }
+
+ @Override
+ public void invokeHeadMap(Map headMap, AnalysisContext context) {
+ // log.info("headMap:{}", JSON.toJSONString(headMap));
+ super.invokeHeadMap(headMap, context);
+ }
+
+
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseRoleImportListener.java b/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseRoleImportListener.java
new file mode 100644
index 0000000..9bc9268
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseRoleImportListener.java
@@ -0,0 +1,48 @@
+package com.olivia.peanut.base.api.impl.listener;
+
+
+import com.olivia.peanut.base.model.BaseRole;
+import org.apache.ibatis.annotations.Mapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.olivia.peanut.base.api.entity.baseRole.*;
+import com.alibaba.excel.context.AnalysisContext;
+import com.alibaba.excel.event.AnalysisEventListener;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import lombok.Getter;
+import lombok.experimental.Accessors;
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * 角色表(BaseRole)文件导入监听
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:35
+ */
+public class BaseRoleImportListener extends AnalysisEventListener {
+
+ @Override
+ public void invoke(BaseRoleImportReq data, AnalysisContext analysisContext) {
+ // 文件校验
+ }
+
+ @Override
+ public void doAfterAllAnalysed(AnalysisContext analysisContext) {
+ // 数据处理完毕后的操作(如果需要)
+ }
+
+ @Override
+ public void onException(Exception exception, AnalysisContext context) throws Exception {
+ // 异常处理
+ super.onException(exception, context);
+ }
+
+ @Override
+ public void invokeHeadMap(Map headMap, AnalysisContext context) {
+ // log.info("headMap:{}", JSON.toJSONString(headMap));
+ super.invokeHeadMap(headMap, context);
+ }
+
+
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseRoleResourceImportListener.java b/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseRoleResourceImportListener.java
new file mode 100644
index 0000000..c307070
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseRoleResourceImportListener.java
@@ -0,0 +1,48 @@
+package com.olivia.peanut.base.api.impl.listener;
+
+
+import com.olivia.peanut.base.model.BaseRoleResource;
+import org.apache.ibatis.annotations.Mapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.olivia.peanut.base.api.entity.baseRoleResource.*;
+import com.alibaba.excel.context.AnalysisContext;
+import com.alibaba.excel.event.AnalysisEventListener;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import lombok.Getter;
+import lombok.experimental.Accessors;
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * 角色资源表(BaseRoleResource)文件导入监听
+ *
+ * @author peanut
+ * @since 2024-07-31 14:35:11
+ */
+public class BaseRoleResourceImportListener extends AnalysisEventListener {
+
+ @Override
+ public void invoke(BaseRoleResourceImportReq data, AnalysisContext analysisContext) {
+ // 文件校验
+ }
+
+ @Override
+ public void doAfterAllAnalysed(AnalysisContext analysisContext) {
+ // 数据处理完毕后的操作(如果需要)
+ }
+
+ @Override
+ public void onException(Exception exception, AnalysisContext context) throws Exception {
+ // 异常处理
+ super.onException(exception, context);
+ }
+
+ @Override
+ public void invokeHeadMap(Map headMap, AnalysisContext context) {
+ // log.info("headMap:{}", JSON.toJSONString(headMap));
+ super.invokeHeadMap(headMap, context);
+ }
+
+
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseUserDeptImportListener.java b/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseUserDeptImportListener.java
new file mode 100644
index 0000000..85027dd
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseUserDeptImportListener.java
@@ -0,0 +1,48 @@
+package com.olivia.peanut.base.api.impl.listener;
+
+
+import com.olivia.peanut.base.model.BaseUserDept;
+import org.apache.ibatis.annotations.Mapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.olivia.peanut.base.api.entity.baseUserDept.*;
+import com.alibaba.excel.context.AnalysisContext;
+import com.alibaba.excel.event.AnalysisEventListener;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import lombok.Getter;
+import lombok.experimental.Accessors;
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * 用户部门表(BaseUserDept)文件导入监听
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+public class BaseUserDeptImportListener extends AnalysisEventListener {
+
+ @Override
+ public void invoke(BaseUserDeptImportReq data, AnalysisContext analysisContext) {
+ // 文件校验
+ }
+
+ @Override
+ public void doAfterAllAnalysed(AnalysisContext analysisContext) {
+ // 数据处理完毕后的操作(如果需要)
+ }
+
+ @Override
+ public void onException(Exception exception, AnalysisContext context) throws Exception {
+ // 异常处理
+ super.onException(exception, context);
+ }
+
+ @Override
+ public void invokeHeadMap(Map headMap, AnalysisContext context) {
+ // log.info("headMap:{}", JSON.toJSONString(headMap));
+ super.invokeHeadMap(headMap, context);
+ }
+
+
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseUserRoleGroupImportListener.java b/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseUserRoleGroupImportListener.java
new file mode 100644
index 0000000..88e7ec3
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseUserRoleGroupImportListener.java
@@ -0,0 +1,48 @@
+package com.olivia.peanut.base.api.impl.listener;
+
+
+import com.olivia.peanut.base.model.BaseUserRoleGroup;
+import org.apache.ibatis.annotations.Mapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.olivia.peanut.base.api.entity.baseUserRoleGroup.*;
+import com.alibaba.excel.context.AnalysisContext;
+import com.alibaba.excel.event.AnalysisEventListener;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import lombok.Getter;
+import lombok.experimental.Accessors;
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)文件导入监听
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:04
+ */
+public class BaseUserRoleGroupImportListener extends AnalysisEventListener {
+
+ @Override
+ public void invoke(BaseUserRoleGroupImportReq data, AnalysisContext analysisContext) {
+ // 文件校验
+ }
+
+ @Override
+ public void doAfterAllAnalysed(AnalysisContext analysisContext) {
+ // 数据处理完毕后的操作(如果需要)
+ }
+
+ @Override
+ public void onException(Exception exception, AnalysisContext context) throws Exception {
+ // 异常处理
+ super.onException(exception, context);
+ }
+
+ @Override
+ public void invokeHeadMap(Map headMap, AnalysisContext context) {
+ // log.info("headMap:{}", JSON.toJSONString(headMap));
+ super.invokeHeadMap(headMap, context);
+ }
+
+
+}
diff --git a/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseUserRoleImportListener.java b/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseUserRoleImportListener.java
new file mode 100644
index 0000000..016330f
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/api/impl/listener/BaseUserRoleImportListener.java
@@ -0,0 +1,48 @@
+package com.olivia.peanut.base.api.impl.listener;
+
+
+import com.olivia.peanut.base.model.BaseUserRole;
+import org.apache.ibatis.annotations.Mapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.olivia.peanut.base.api.entity.baseUserRole.*;
+import com.alibaba.excel.context.AnalysisContext;
+import com.alibaba.excel.event.AnalysisEventListener;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import lombok.Getter;
+import lombok.experimental.Accessors;
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * 用户角色表(BaseUserRole)文件导入监听
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+public class BaseUserRoleImportListener extends AnalysisEventListener {
+
+ @Override
+ public void invoke(BaseUserRoleImportReq data, AnalysisContext analysisContext) {
+ // 文件校验
+ }
+
+ @Override
+ public void doAfterAllAnalysed(AnalysisContext analysisContext) {
+ // 数据处理完毕后的操作(如果需要)
+ }
+
+ @Override
+ public void onException(Exception exception, AnalysisContext context) throws Exception {
+ // 异常处理
+ super.onException(exception, context);
+ }
+
+ @Override
+ public void invokeHeadMap(Map headMap, AnalysisContext context) {
+ // log.info("headMap:{}", JSON.toJSONString(headMap));
+ super.invokeHeadMap(headMap, context);
+ }
+
+
+}
diff --git a/src/main/java/com/olivia/peanut/base/mapper/BaseDeptMapper.java b/src/main/java/com/olivia/peanut/base/mapper/BaseDeptMapper.java
new file mode 100644
index 0000000..19e0bd8
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/mapper/BaseDeptMapper.java
@@ -0,0 +1,18 @@
+package com.olivia.peanut.base.mapper;
+
+import com.github.yulichang.base.MPJBaseMapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.olivia.peanut.base.model.BaseDept;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 部门表(BaseDept)表数据库访问层
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:30
+ */
+@Mapper
+public interface BaseDeptMapper extends MPJBaseMapper {
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/mapper/BaseResourceMapper.java b/src/main/java/com/olivia/peanut/base/mapper/BaseResourceMapper.java
new file mode 100644
index 0000000..5fba1da
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/mapper/BaseResourceMapper.java
@@ -0,0 +1,18 @@
+package com.olivia.peanut.base.mapper;
+
+import com.github.yulichang.base.MPJBaseMapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.olivia.peanut.base.model.BaseResource;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 资源(BaseResource)表数据库访问层
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+@Mapper
+public interface BaseResourceMapper extends MPJBaseMapper {
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/mapper/BaseRoleGroupMapper.java b/src/main/java/com/olivia/peanut/base/mapper/BaseRoleGroupMapper.java
new file mode 100644
index 0000000..c114de4
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/mapper/BaseRoleGroupMapper.java
@@ -0,0 +1,18 @@
+package com.olivia.peanut.base.mapper;
+
+import com.github.yulichang.base.MPJBaseMapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.olivia.peanut.base.model.BaseRoleGroup;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 角色组表(BaseRoleGroup)表数据库访问层
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+@Mapper
+public interface BaseRoleGroupMapper extends MPJBaseMapper {
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/mapper/BaseRoleMapper.java b/src/main/java/com/olivia/peanut/base/mapper/BaseRoleMapper.java
new file mode 100644
index 0000000..62e5411
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/mapper/BaseRoleMapper.java
@@ -0,0 +1,18 @@
+package com.olivia.peanut.base.mapper;
+
+import com.github.yulichang.base.MPJBaseMapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.olivia.peanut.base.model.BaseRole;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 角色表(BaseRole)表数据库访问层
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:35
+ */
+@Mapper
+public interface BaseRoleMapper extends MPJBaseMapper {
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/mapper/BaseRoleResourceMapper.java b/src/main/java/com/olivia/peanut/base/mapper/BaseRoleResourceMapper.java
new file mode 100644
index 0000000..7b9ea3c
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/mapper/BaseRoleResourceMapper.java
@@ -0,0 +1,18 @@
+package com.olivia.peanut.base.mapper;
+
+import com.github.yulichang.base.MPJBaseMapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.olivia.peanut.base.model.BaseRoleResource;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 角色资源表(BaseRoleResource)表数据库访问层
+ *
+ * @author peanut
+ * @since 2024-07-31 14:35:08
+ */
+@Mapper
+public interface BaseRoleResourceMapper extends MPJBaseMapper {
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/mapper/BaseUserDeptMapper.java b/src/main/java/com/olivia/peanut/base/mapper/BaseUserDeptMapper.java
new file mode 100644
index 0000000..dcd3667
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/mapper/BaseUserDeptMapper.java
@@ -0,0 +1,18 @@
+package com.olivia.peanut.base.mapper;
+
+import com.github.yulichang.base.MPJBaseMapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.olivia.peanut.base.model.BaseUserDept;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 用户部门表(BaseUserDept)表数据库访问层
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+@Mapper
+public interface BaseUserDeptMapper extends MPJBaseMapper {
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/mapper/BaseUserRoleGroupMapper.java b/src/main/java/com/olivia/peanut/base/mapper/BaseUserRoleGroupMapper.java
new file mode 100644
index 0000000..7f13b3e
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/mapper/BaseUserRoleGroupMapper.java
@@ -0,0 +1,18 @@
+package com.olivia.peanut.base.mapper;
+
+import com.github.yulichang.base.MPJBaseMapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.olivia.peanut.base.model.BaseUserRoleGroup;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)表数据库访问层
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:04
+ */
+@Mapper
+public interface BaseUserRoleGroupMapper extends MPJBaseMapper {
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/mapper/BaseUserRoleMapper.java b/src/main/java/com/olivia/peanut/base/mapper/BaseUserRoleMapper.java
new file mode 100644
index 0000000..43a51dd
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/mapper/BaseUserRoleMapper.java
@@ -0,0 +1,18 @@
+package com.olivia.peanut.base.mapper;
+
+import com.github.yulichang.base.MPJBaseMapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.olivia.peanut.base.model.BaseUserRole;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 用户角色表(BaseUserRole)表数据库访问层
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+@Mapper
+public interface BaseUserRoleMapper extends MPJBaseMapper {
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/model/BaseDept.java b/src/main/java/com/olivia/peanut/base/model/BaseDept.java
new file mode 100644
index 0000000..8224e13
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/model/BaseDept.java
@@ -0,0 +1,43 @@
+package com.olivia.peanut.base.model;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import com.olivia.sdk.utils.BaseEntity;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+/**
+ * 部门表(BaseDept)表实体类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:30
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+//@SuppressWarnings("serial")
+@TableName("base_dept")
+public class BaseDept extends BaseEntity {
+
+ /***
+ * 部门编码
+ */
+ private String deptCode;
+ /***
+ * 部门名称
+ */
+ private String deptName;
+ /***
+ * 父部门ID
+ */
+ private Long parentId;
+ /***
+ * 部门路径
+ */
+ private String path;
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/model/BaseResource.java b/src/main/java/com/olivia/peanut/base/model/BaseResource.java
new file mode 100644
index 0000000..aac8cd7
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/model/BaseResource.java
@@ -0,0 +1,59 @@
+package com.olivia.peanut.base.model;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import com.olivia.sdk.utils.BaseEntity;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+/**
+ * 资源(BaseResource)表实体类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+//@SuppressWarnings("serial")
+@TableName("base_resource")
+public class BaseResource extends BaseEntity {
+
+ /***
+ * 菜单编码
+ */
+ private String resourceCode;
+ /***
+ * 菜单名称
+ */
+ private String resourceName;
+ /***
+ * 菜单URL
+ */
+ private String resourceUrl;
+ /***
+ * 菜单图标
+ */
+ private String resourceIcon;
+ /***
+ * 菜单类型
+ */
+ private String resourceType;
+ /***
+ * 是否按钮 0 否,1 是
+ */
+ private Boolean isButton;
+ /***
+ * 父菜单ID
+ */
+ private Long parentId;
+ /***
+ * 菜单路径
+ */
+ private String path;
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/model/BaseRole.java b/src/main/java/com/olivia/peanut/base/model/BaseRole.java
new file mode 100644
index 0000000..b62682c
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/model/BaseRole.java
@@ -0,0 +1,39 @@
+package com.olivia.peanut.base.model;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import com.olivia.sdk.utils.BaseEntity;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+/**
+ * 角色表(BaseRole)表实体类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:35
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+//@SuppressWarnings("serial")
+@TableName("base_role")
+public class BaseRole extends BaseEntity {
+
+ /***
+ * 角色编码
+ */
+ private String roleCode;
+ /***
+ * 角色名称
+ */
+ private String roleName;
+ /***
+ * 角色组
+ */
+ private Long roleGroupId;
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/model/BaseRoleGroup.java b/src/main/java/com/olivia/peanut/base/model/BaseRoleGroup.java
new file mode 100644
index 0000000..d4d00fb
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/model/BaseRoleGroup.java
@@ -0,0 +1,35 @@
+package com.olivia.peanut.base.model;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import com.olivia.sdk.utils.BaseEntity;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+/**
+ * 角色组表(BaseRoleGroup)表实体类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+//@SuppressWarnings("serial")
+@TableName("base_role_group")
+public class BaseRoleGroup extends BaseEntity {
+
+ /***
+ * 角色组编码
+ */
+ private String roleGroupCode;
+ /***
+ * 角色组名称
+ */
+ private String roleGroupName;
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/model/BaseRoleResource.java b/src/main/java/com/olivia/peanut/base/model/BaseRoleResource.java
new file mode 100644
index 0000000..c6074f3
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/model/BaseRoleResource.java
@@ -0,0 +1,35 @@
+package com.olivia.peanut.base.model;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import com.olivia.sdk.utils.BaseEntity;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+/**
+ * 角色资源表(BaseRoleResource)表实体类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:35:05
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+//@SuppressWarnings("serial")
+@TableName("base_role_resource")
+public class BaseRoleResource extends BaseEntity {
+
+ /***
+ * 角色ID
+ */
+ private Long roleId;
+ /***
+ * 菜单ID
+ */
+ private Long resourceId;
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/model/BaseUserDept.java b/src/main/java/com/olivia/peanut/base/model/BaseUserDept.java
new file mode 100644
index 0000000..499a498
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/model/BaseUserDept.java
@@ -0,0 +1,35 @@
+package com.olivia.peanut.base.model;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import com.olivia.sdk.utils.BaseEntity;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+/**
+ * 用户部门表(BaseUserDept)表实体类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+//@SuppressWarnings("serial")
+@TableName("base_user_dept")
+public class BaseUserDept extends BaseEntity {
+
+ /***
+ * 用户ID
+ */
+ private Long userId;
+ /***
+ * 部门ID
+ */
+ private Long deptId;
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/model/BaseUserRole.java b/src/main/java/com/olivia/peanut/base/model/BaseUserRole.java
new file mode 100644
index 0000000..c244c46
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/model/BaseUserRole.java
@@ -0,0 +1,35 @@
+package com.olivia.peanut.base.model;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import com.olivia.sdk.utils.BaseEntity;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+/**
+ * 用户角色表(BaseUserRole)表实体类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+//@SuppressWarnings("serial")
+@TableName("base_user_role")
+public class BaseUserRole extends BaseEntity {
+
+ /***
+ * 用户ID
+ */
+ private Long userId;
+ /***
+ * 角色ID
+ */
+ private Long roleId;
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/model/BaseUserRoleGroup.java b/src/main/java/com/olivia/peanut/base/model/BaseUserRoleGroup.java
new file mode 100644
index 0000000..a97560d
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/model/BaseUserRoleGroup.java
@@ -0,0 +1,35 @@
+package com.olivia.peanut.base.model;
+
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import com.olivia.sdk.utils.BaseEntity;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)表实体类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:04
+ */
+@Accessors(chain = true)
+@Getter
+@Setter
+//@SuppressWarnings("serial")
+@TableName("base_user_role_group")
+public class BaseUserRoleGroup extends BaseEntity {
+
+ /***
+ * 用户ID
+ */
+ private Long userId;
+ /***
+ * 角色组ID
+ */
+ private Long roleGroupId;
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/service/BaseDeptService.java b/src/main/java/com/olivia/peanut/base/service/BaseDeptService.java
new file mode 100644
index 0000000..1d76de3
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/service/BaseDeptService.java
@@ -0,0 +1,26 @@
+package com.olivia.peanut.base.service;
+
+import com.olivia.sdk.utils.DynamicsPage;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.olivia.peanut.base.model.BaseDept;
+import java.util.List;
+import com.github.yulichang.base.MPJBaseService;
+
+import com.olivia.peanut.base.api.entity.baseDept.*;
+
+/**
+ * 部门表(BaseDept)表服务接口
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:31
+ */
+public interface BaseDeptService extends MPJBaseService {
+
+ BaseDeptQueryListRes queryList(BaseDeptQueryListReq req);
+
+ DynamicsPage queryPageList(BaseDeptExportQueryPageListReq req);
+
+
+ void setName(List extends BaseDeptDto> baseDeptDtoList);
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/service/BaseResourceService.java b/src/main/java/com/olivia/peanut/base/service/BaseResourceService.java
new file mode 100644
index 0000000..b57370d
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/service/BaseResourceService.java
@@ -0,0 +1,26 @@
+package com.olivia.peanut.base.service;
+
+import com.olivia.sdk.utils.DynamicsPage;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.olivia.peanut.base.model.BaseResource;
+import java.util.List;
+import com.github.yulichang.base.MPJBaseService;
+
+import com.olivia.peanut.base.api.entity.baseResource.*;
+
+/**
+ * 资源(BaseResource)表服务接口
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+public interface BaseResourceService extends MPJBaseService {
+
+ BaseResourceQueryListRes queryList(BaseResourceQueryListReq req);
+
+ DynamicsPage queryPageList(BaseResourceExportQueryPageListReq req);
+
+
+ void setName(List extends BaseResourceDto> baseResourceDtoList);
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/service/BaseRoleGroupService.java b/src/main/java/com/olivia/peanut/base/service/BaseRoleGroupService.java
new file mode 100644
index 0000000..65741f8
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/service/BaseRoleGroupService.java
@@ -0,0 +1,26 @@
+package com.olivia.peanut.base.service;
+
+import com.olivia.sdk.utils.DynamicsPage;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.olivia.peanut.base.model.BaseRoleGroup;
+import java.util.List;
+import com.github.yulichang.base.MPJBaseService;
+
+import com.olivia.peanut.base.api.entity.baseRoleGroup.*;
+
+/**
+ * 角色组表(BaseRoleGroup)表服务接口
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+public interface BaseRoleGroupService extends MPJBaseService {
+
+ BaseRoleGroupQueryListRes queryList(BaseRoleGroupQueryListReq req);
+
+ DynamicsPage queryPageList(BaseRoleGroupExportQueryPageListReq req);
+
+
+ void setName(List extends BaseRoleGroupDto> baseRoleGroupDtoList);
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/service/BaseRoleResourceService.java b/src/main/java/com/olivia/peanut/base/service/BaseRoleResourceService.java
new file mode 100644
index 0000000..03a09d6
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/service/BaseRoleResourceService.java
@@ -0,0 +1,26 @@
+package com.olivia.peanut.base.service;
+
+import com.olivia.sdk.utils.DynamicsPage;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.olivia.peanut.base.model.BaseRoleResource;
+import java.util.List;
+import com.github.yulichang.base.MPJBaseService;
+
+import com.olivia.peanut.base.api.entity.baseRoleResource.*;
+
+/**
+ * 角色资源表(BaseRoleResource)表服务接口
+ *
+ * @author peanut
+ * @since 2024-07-31 14:35:10
+ */
+public interface BaseRoleResourceService extends MPJBaseService {
+
+ BaseRoleResourceQueryListRes queryList(BaseRoleResourceQueryListReq req);
+
+ DynamicsPage queryPageList(BaseRoleResourceExportQueryPageListReq req);
+
+
+ void setName(List extends BaseRoleResourceDto> baseRoleResourceDtoList);
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/service/BaseRoleService.java b/src/main/java/com/olivia/peanut/base/service/BaseRoleService.java
new file mode 100644
index 0000000..f6b9d4e
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/service/BaseRoleService.java
@@ -0,0 +1,26 @@
+package com.olivia.peanut.base.service;
+
+import com.olivia.sdk.utils.DynamicsPage;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.olivia.peanut.base.model.BaseRole;
+import java.util.List;
+import com.github.yulichang.base.MPJBaseService;
+
+import com.olivia.peanut.base.api.entity.baseRole.*;
+
+/**
+ * 角色表(BaseRole)表服务接口
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:35
+ */
+public interface BaseRoleService extends MPJBaseService {
+
+ BaseRoleQueryListRes queryList(BaseRoleQueryListReq req);
+
+ DynamicsPage queryPageList(BaseRoleExportQueryPageListReq req);
+
+
+ void setName(List extends BaseRoleDto> baseRoleDtoList);
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/service/BaseUserDeptService.java b/src/main/java/com/olivia/peanut/base/service/BaseUserDeptService.java
new file mode 100644
index 0000000..6d11d97
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/service/BaseUserDeptService.java
@@ -0,0 +1,26 @@
+package com.olivia.peanut.base.service;
+
+import com.olivia.sdk.utils.DynamicsPage;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.olivia.peanut.base.model.BaseUserDept;
+import java.util.List;
+import com.github.yulichang.base.MPJBaseService;
+
+import com.olivia.peanut.base.api.entity.baseUserDept.*;
+
+/**
+ * 用户部门表(BaseUserDept)表服务接口
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+public interface BaseUserDeptService extends MPJBaseService {
+
+ BaseUserDeptQueryListRes queryList(BaseUserDeptQueryListReq req);
+
+ DynamicsPage queryPageList(BaseUserDeptExportQueryPageListReq req);
+
+
+ void setName(List extends BaseUserDeptDto> baseUserDeptDtoList);
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/service/BaseUserRoleGroupService.java b/src/main/java/com/olivia/peanut/base/service/BaseUserRoleGroupService.java
new file mode 100644
index 0000000..25b7ea5
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/service/BaseUserRoleGroupService.java
@@ -0,0 +1,26 @@
+package com.olivia.peanut.base.service;
+
+import com.olivia.sdk.utils.DynamicsPage;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.olivia.peanut.base.model.BaseUserRoleGroup;
+import java.util.List;
+import com.github.yulichang.base.MPJBaseService;
+
+import com.olivia.peanut.base.api.entity.baseUserRoleGroup.*;
+
+/**
+ * 用户角色组表(BaseUserRoleGroup)表服务接口
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:04
+ */
+public interface BaseUserRoleGroupService extends MPJBaseService {
+
+ BaseUserRoleGroupQueryListRes queryList(BaseUserRoleGroupQueryListReq req);
+
+ DynamicsPage queryPageList(BaseUserRoleGroupExportQueryPageListReq req);
+
+
+ void setName(List extends BaseUserRoleGroupDto> baseUserRoleGroupDtoList);
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/service/BaseUserRoleService.java b/src/main/java/com/olivia/peanut/base/service/BaseUserRoleService.java
new file mode 100644
index 0000000..f5944cd
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/service/BaseUserRoleService.java
@@ -0,0 +1,26 @@
+package com.olivia.peanut.base.service;
+
+import com.olivia.sdk.utils.DynamicsPage;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.olivia.peanut.base.model.BaseUserRole;
+import java.util.List;
+import com.github.yulichang.base.MPJBaseService;
+
+import com.olivia.peanut.base.api.entity.baseUserRole.*;
+
+/**
+ * 用户角色表(BaseUserRole)表服务接口
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:03
+ */
+public interface BaseUserRoleService extends MPJBaseService {
+
+ BaseUserRoleQueryListRes queryList(BaseUserRoleQueryListReq req);
+
+ DynamicsPage queryPageList(BaseUserRoleExportQueryPageListReq req);
+
+
+ void setName(List extends BaseUserRoleDto> baseUserRoleDtoList);
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/service/impl/BaseDeptServiceImpl.java b/src/main/java/com/olivia/peanut/base/service/impl/BaseDeptServiceImpl.java
new file mode 100644
index 0000000..08271d1
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/service/impl/BaseDeptServiceImpl.java
@@ -0,0 +1,116 @@
+package com.olivia.peanut.base.service.impl;
+
+import org.springframework.aop.framework.AopContext;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.github.yulichang.base.MPJBaseServiceImpl;
+import com.github.yulichang.wrapper.MPJLambdaWrapper;
+import com.google.common.cache.Cache;
+import com.google.common.cache.CacheBuilder;
+import jakarta.annotation.Resource;
+import com.olivia.sdk.utils.$;
+import com.olivia.sdk.utils.DynamicsPage;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+import com.olivia.peanut.base.mapper.BaseDeptMapper;
+import com.olivia.peanut.base.model.BaseDept;
+import com.olivia.peanut.base.service.BaseDeptService;
+import cn.hutool.core.collection.CollUtil;
+//import com.olivia.peanut.base.service.BaseTableHeaderService;
+import com.olivia.peanut.portal.service.BaseTableHeaderService;
+import com.olivia.peanut.base.api.entity.baseDept.*;
+import com.olivia.peanut.util.SetNamePojoUtils;
+import com.olivia.sdk.service.SetNameService;
+
+/**
+ * 部门表(BaseDept)表服务实现类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:31
+ */
+@Service("baseDeptService")
+@Transactional
+public class BaseDeptServiceImpl extends MPJBaseServiceImpl implements BaseDeptService {
+
+ final static Cache> cache = CacheBuilder.newBuilder().maximumSize(100).expireAfterWrite(30, TimeUnit.MINUTES).build();
+
+ @Resource
+ BaseTableHeaderService tableHeaderService;
+ @Resource
+ SetNameService setNameService;
+
+
+ public @Override BaseDeptQueryListRes queryList(BaseDeptQueryListReq req) {
+
+ MPJLambdaWrapper q = getWrapper(req.getData());
+ List list = this.list(q);
+
+ List dataList = list.stream().map(t -> $.copy(t, BaseDeptDto.class)).collect(Collectors.toList());
+ ((BaseDeptService) AopContext.currentProxy()).setName(dataList);
+ return new BaseDeptQueryListRes().setDataList(dataList);
+ }
+
+
+ public @Override DynamicsPage queryPageList(BaseDeptExportQueryPageListReq req) {
+
+ DynamicsPage page = new DynamicsPage<>();
+ page.setCurrent(req.getPageNum()).setSize(req.getPageSize());
+ setQueryListHeader(page);
+ MPJLambdaWrapper q = getWrapper(req.getData());
+ List records;
+ if (Boolean.TRUE.equals(req.getQueryPage())) {
+ IPage list = this.page(page, q);
+ IPage dataList = list.convert(t -> $.copy(t, BaseDeptExportQueryPageListInfoRes.class));
+ records = dataList.getRecords();
+ } else {
+ records = $.copyList(this.list(q), BaseDeptExportQueryPageListInfoRes.class);
+ }
+
+ // 类型转换, 更换枚举 等操作
+
+ List listInfoRes = $.copyList(records, BaseDeptExportQueryPageListInfoRes.class);
+ ((BaseDeptService) AopContext.currentProxy()).setName(listInfoRes);
+
+ return DynamicsPage.init(page, listInfoRes);
+ }
+
+ // 以下为私有对象封装
+
+ public @Override void setName(List extends BaseDeptDto> list) {
+
+ // setNameService.setName(list, SetNamePojoUtils.FACTORY, SetNamePojoUtils.OP_USER_NAME);
+
+ }
+
+
+ private MPJLambdaWrapper getWrapper(BaseDeptDto obj) {
+ MPJLambdaWrapper q = new MPJLambdaWrapper<>();
+
+ if (Objects.nonNull(obj)) {
+ q
+ .eq(StringUtils.isNoneBlank(obj.getDeptCode()), BaseDept::getDeptCode, obj.getDeptCode())
+ .eq(StringUtils.isNoneBlank(obj.getDeptName()), BaseDept::getDeptName, obj.getDeptName())
+ .eq(Objects.nonNull(obj.getParentId()), BaseDept::getParentId, obj.getParentId())
+ .eq(StringUtils.isNoneBlank(obj.getPath()), BaseDept::getPath, obj.getPath())
+
+ ;
+ }
+ q.orderByDesc(BaseDept::getId);
+ return q;
+
+ }
+
+ private void setQueryListHeader(DynamicsPage page) {
+
+ tableHeaderService.listByBizKey(page, "BaseDeptService#queryPageList");
+
+ }
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/service/impl/BaseResourceServiceImpl.java b/src/main/java/com/olivia/peanut/base/service/impl/BaseResourceServiceImpl.java
new file mode 100644
index 0000000..6ee5173
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/service/impl/BaseResourceServiceImpl.java
@@ -0,0 +1,120 @@
+package com.olivia.peanut.base.service.impl;
+
+import org.springframework.aop.framework.AopContext;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.github.yulichang.base.MPJBaseServiceImpl;
+import com.github.yulichang.wrapper.MPJLambdaWrapper;
+import com.google.common.cache.Cache;
+import com.google.common.cache.CacheBuilder;
+import jakarta.annotation.Resource;
+import com.olivia.sdk.utils.$;
+import com.olivia.sdk.utils.DynamicsPage;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+import com.olivia.peanut.base.mapper.BaseResourceMapper;
+import com.olivia.peanut.base.model.BaseResource;
+import com.olivia.peanut.base.service.BaseResourceService;
+import cn.hutool.core.collection.CollUtil;
+//import com.olivia.peanut.base.service.BaseTableHeaderService;
+import com.olivia.peanut.portal.service.BaseTableHeaderService;
+import com.olivia.peanut.base.api.entity.baseResource.*;
+import com.olivia.peanut.util.SetNamePojoUtils;
+import com.olivia.sdk.service.SetNameService;
+
+/**
+ * 资源(BaseResource)表服务实现类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:33
+ */
+@Service("baseResourceService")
+@Transactional
+public class BaseResourceServiceImpl extends MPJBaseServiceImpl implements BaseResourceService {
+
+ final static Cache> cache = CacheBuilder.newBuilder().maximumSize(100).expireAfterWrite(30, TimeUnit.MINUTES).build();
+
+ @Resource
+ BaseTableHeaderService tableHeaderService;
+ @Resource
+ SetNameService setNameService;
+
+
+ public @Override BaseResourceQueryListRes queryList(BaseResourceQueryListReq req) {
+
+ MPJLambdaWrapper q = getWrapper(req.getData());
+ List list = this.list(q);
+
+ List dataList = list.stream().map(t -> $.copy(t, BaseResourceDto.class)).collect(Collectors.toList());
+ ((BaseResourceService) AopContext.currentProxy()).setName(dataList);
+ return new BaseResourceQueryListRes().setDataList(dataList);
+ }
+
+
+ public @Override DynamicsPage queryPageList(BaseResourceExportQueryPageListReq req) {
+
+ DynamicsPage page = new DynamicsPage<>();
+ page.setCurrent(req.getPageNum()).setSize(req.getPageSize());
+ setQueryListHeader(page);
+ MPJLambdaWrapper q = getWrapper(req.getData());
+ List records;
+ if (Boolean.TRUE.equals(req.getQueryPage())) {
+ IPage list = this.page(page, q);
+ IPage dataList = list.convert(t -> $.copy(t, BaseResourceExportQueryPageListInfoRes.class));
+ records = dataList.getRecords();
+ } else {
+ records = $.copyList(this.list(q), BaseResourceExportQueryPageListInfoRes.class);
+ }
+
+ // 类型转换, 更换枚举 等操作
+
+ List listInfoRes = $.copyList(records, BaseResourceExportQueryPageListInfoRes.class);
+ ((BaseResourceService) AopContext.currentProxy()).setName(listInfoRes);
+
+ return DynamicsPage.init(page, listInfoRes);
+ }
+
+ // 以下为私有对象封装
+
+ public @Override void setName(List extends BaseResourceDto> list) {
+
+ // setNameService.setName(list, SetNamePojoUtils.FACTORY, SetNamePojoUtils.OP_USER_NAME);
+
+ }
+
+
+ private MPJLambdaWrapper getWrapper(BaseResourceDto obj) {
+ MPJLambdaWrapper q = new MPJLambdaWrapper<>();
+
+ if (Objects.nonNull(obj)) {
+ q
+ .eq(StringUtils.isNoneBlank(obj.getResourceCode()), BaseResource::getResourceCode, obj.getResourceCode())
+ .eq(StringUtils.isNoneBlank(obj.getResourceName()), BaseResource::getResourceName, obj.getResourceName())
+ .eq(StringUtils.isNoneBlank(obj.getResourceUrl()), BaseResource::getResourceUrl, obj.getResourceUrl())
+ .eq(StringUtils.isNoneBlank(obj.getResourceIcon()), BaseResource::getResourceIcon, obj.getResourceIcon())
+ .eq(StringUtils.isNoneBlank(obj.getResourceType()), BaseResource::getResourceType, obj.getResourceType())
+ .eq(Objects.nonNull(obj.getIsButton()), BaseResource::getIsButton, obj.getIsButton())
+ .eq(Objects.nonNull(obj.getParentId()), BaseResource::getParentId, obj.getParentId())
+ .eq(StringUtils.isNoneBlank(obj.getPath()), BaseResource::getPath, obj.getPath())
+
+ ;
+ }
+ q.orderByDesc(BaseResource::getId);
+ return q;
+
+ }
+
+ private void setQueryListHeader(DynamicsPage page) {
+
+ tableHeaderService.listByBizKey(page, "BaseResourceService#queryPageList");
+
+ }
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/service/impl/BaseRoleGroupServiceImpl.java b/src/main/java/com/olivia/peanut/base/service/impl/BaseRoleGroupServiceImpl.java
new file mode 100644
index 0000000..90ca34b
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/service/impl/BaseRoleGroupServiceImpl.java
@@ -0,0 +1,114 @@
+package com.olivia.peanut.base.service.impl;
+
+import org.springframework.aop.framework.AopContext;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.github.yulichang.base.MPJBaseServiceImpl;
+import com.github.yulichang.wrapper.MPJLambdaWrapper;
+import com.google.common.cache.Cache;
+import com.google.common.cache.CacheBuilder;
+import jakarta.annotation.Resource;
+import com.olivia.sdk.utils.$;
+import com.olivia.sdk.utils.DynamicsPage;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+import com.olivia.peanut.base.mapper.BaseRoleGroupMapper;
+import com.olivia.peanut.base.model.BaseRoleGroup;
+import com.olivia.peanut.base.service.BaseRoleGroupService;
+import cn.hutool.core.collection.CollUtil;
+//import com.olivia.peanut.base.service.BaseTableHeaderService;
+import com.olivia.peanut.portal.service.BaseTableHeaderService;
+import com.olivia.peanut.base.api.entity.baseRoleGroup.*;
+import com.olivia.peanut.util.SetNamePojoUtils;
+import com.olivia.sdk.service.SetNameService;
+
+/**
+ * 角色组表(BaseRoleGroup)表服务实现类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:36
+ */
+@Service("baseRoleGroupService")
+@Transactional
+public class BaseRoleGroupServiceImpl extends MPJBaseServiceImpl implements BaseRoleGroupService {
+
+ final static Cache> cache = CacheBuilder.newBuilder().maximumSize(100).expireAfterWrite(30, TimeUnit.MINUTES).build();
+
+ @Resource
+ BaseTableHeaderService tableHeaderService;
+ @Resource
+ SetNameService setNameService;
+
+
+ public @Override BaseRoleGroupQueryListRes queryList(BaseRoleGroupQueryListReq req) {
+
+ MPJLambdaWrapper q = getWrapper(req.getData());
+ List list = this.list(q);
+
+ List dataList = list.stream().map(t -> $.copy(t, BaseRoleGroupDto.class)).collect(Collectors.toList());
+ ((BaseRoleGroupService) AopContext.currentProxy()).setName(dataList);
+ return new BaseRoleGroupQueryListRes().setDataList(dataList);
+ }
+
+
+ public @Override DynamicsPage queryPageList(BaseRoleGroupExportQueryPageListReq req) {
+
+ DynamicsPage page = new DynamicsPage<>();
+ page.setCurrent(req.getPageNum()).setSize(req.getPageSize());
+ setQueryListHeader(page);
+ MPJLambdaWrapper q = getWrapper(req.getData());
+ List records;
+ if (Boolean.TRUE.equals(req.getQueryPage())) {
+ IPage list = this.page(page, q);
+ IPage dataList = list.convert(t -> $.copy(t, BaseRoleGroupExportQueryPageListInfoRes.class));
+ records = dataList.getRecords();
+ } else {
+ records = $.copyList(this.list(q), BaseRoleGroupExportQueryPageListInfoRes.class);
+ }
+
+ // 类型转换, 更换枚举 等操作
+
+ List listInfoRes = $.copyList(records, BaseRoleGroupExportQueryPageListInfoRes.class);
+ ((BaseRoleGroupService) AopContext.currentProxy()).setName(listInfoRes);
+
+ return DynamicsPage.init(page, listInfoRes);
+ }
+
+ // 以下为私有对象封装
+
+ public @Override void setName(List extends BaseRoleGroupDto> list) {
+
+ // setNameService.setName(list, SetNamePojoUtils.FACTORY, SetNamePojoUtils.OP_USER_NAME);
+
+ }
+
+
+ private MPJLambdaWrapper getWrapper(BaseRoleGroupDto obj) {
+ MPJLambdaWrapper q = new MPJLambdaWrapper<>();
+
+ if (Objects.nonNull(obj)) {
+ q
+ .eq(StringUtils.isNoneBlank(obj.getRoleGroupCode()), BaseRoleGroup::getRoleGroupCode, obj.getRoleGroupCode())
+ .eq(StringUtils.isNoneBlank(obj.getRoleGroupName()), BaseRoleGroup::getRoleGroupName, obj.getRoleGroupName())
+
+ ;
+ }
+ q.orderByDesc(BaseRoleGroup::getId);
+ return q;
+
+ }
+
+ private void setQueryListHeader(DynamicsPage page) {
+
+ tableHeaderService.listByBizKey(page, "BaseRoleGroupService#queryPageList");
+
+ }
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/service/impl/BaseRoleResourceServiceImpl.java b/src/main/java/com/olivia/peanut/base/service/impl/BaseRoleResourceServiceImpl.java
new file mode 100644
index 0000000..a583161
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/service/impl/BaseRoleResourceServiceImpl.java
@@ -0,0 +1,114 @@
+package com.olivia.peanut.base.service.impl;
+
+import org.springframework.aop.framework.AopContext;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.github.yulichang.base.MPJBaseServiceImpl;
+import com.github.yulichang.wrapper.MPJLambdaWrapper;
+import com.google.common.cache.Cache;
+import com.google.common.cache.CacheBuilder;
+import jakarta.annotation.Resource;
+import com.olivia.sdk.utils.$;
+import com.olivia.sdk.utils.DynamicsPage;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+import com.olivia.peanut.base.mapper.BaseRoleResourceMapper;
+import com.olivia.peanut.base.model.BaseRoleResource;
+import com.olivia.peanut.base.service.BaseRoleResourceService;
+import cn.hutool.core.collection.CollUtil;
+//import com.olivia.peanut.base.service.BaseTableHeaderService;
+import com.olivia.peanut.portal.service.BaseTableHeaderService;
+import com.olivia.peanut.base.api.entity.baseRoleResource.*;
+import com.olivia.peanut.util.SetNamePojoUtils;
+import com.olivia.sdk.service.SetNameService;
+
+/**
+ * 角色资源表(BaseRoleResource)表服务实现类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:35:10
+ */
+@Service("baseRoleResourceService")
+@Transactional
+public class BaseRoleResourceServiceImpl extends MPJBaseServiceImpl implements BaseRoleResourceService {
+
+ final static Cache> cache = CacheBuilder.newBuilder().maximumSize(100).expireAfterWrite(30, TimeUnit.MINUTES).build();
+
+ @Resource
+ BaseTableHeaderService tableHeaderService;
+ @Resource
+ SetNameService setNameService;
+
+
+ public @Override BaseRoleResourceQueryListRes queryList(BaseRoleResourceQueryListReq req) {
+
+ MPJLambdaWrapper q = getWrapper(req.getData());
+ List list = this.list(q);
+
+ List dataList = list.stream().map(t -> $.copy(t, BaseRoleResourceDto.class)).collect(Collectors.toList());
+ ((BaseRoleResourceService) AopContext.currentProxy()).setName(dataList);
+ return new BaseRoleResourceQueryListRes().setDataList(dataList);
+ }
+
+
+ public @Override DynamicsPage queryPageList(BaseRoleResourceExportQueryPageListReq req) {
+
+ DynamicsPage page = new DynamicsPage<>();
+ page.setCurrent(req.getPageNum()).setSize(req.getPageSize());
+ setQueryListHeader(page);
+ MPJLambdaWrapper q = getWrapper(req.getData());
+ List records;
+ if (Boolean.TRUE.equals(req.getQueryPage())) {
+ IPage list = this.page(page, q);
+ IPage dataList = list.convert(t -> $.copy(t, BaseRoleResourceExportQueryPageListInfoRes.class));
+ records = dataList.getRecords();
+ } else {
+ records = $.copyList(this.list(q), BaseRoleResourceExportQueryPageListInfoRes.class);
+ }
+
+ // 类型转换, 更换枚举 等操作
+
+ List listInfoRes = $.copyList(records, BaseRoleResourceExportQueryPageListInfoRes.class);
+ ((BaseRoleResourceService) AopContext.currentProxy()).setName(listInfoRes);
+
+ return DynamicsPage.init(page, listInfoRes);
+ }
+
+ // 以下为私有对象封装
+
+ public @Override void setName(List extends BaseRoleResourceDto> list) {
+
+ // setNameService.setName(list, SetNamePojoUtils.FACTORY, SetNamePojoUtils.OP_USER_NAME);
+
+ }
+
+
+ private MPJLambdaWrapper getWrapper(BaseRoleResourceDto obj) {
+ MPJLambdaWrapper q = new MPJLambdaWrapper<>();
+
+ if (Objects.nonNull(obj)) {
+ q
+ .eq(Objects.nonNull(obj.getRoleId()), BaseRoleResource::getRoleId, obj.getRoleId())
+ .eq(Objects.nonNull(obj.getResourceId()), BaseRoleResource::getResourceId, obj.getResourceId())
+
+ ;
+ }
+ q.orderByDesc(BaseRoleResource::getId);
+ return q;
+
+ }
+
+ private void setQueryListHeader(DynamicsPage page) {
+
+ tableHeaderService.listByBizKey(page, "BaseRoleResourceService#queryPageList");
+
+ }
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/service/impl/BaseRoleServiceImpl.java b/src/main/java/com/olivia/peanut/base/service/impl/BaseRoleServiceImpl.java
new file mode 100644
index 0000000..7df60af
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/service/impl/BaseRoleServiceImpl.java
@@ -0,0 +1,118 @@
+package com.olivia.peanut.base.service.impl;
+
+import com.olivia.peanut.base.service.BaseRoleGroupService;
+import org.springframework.aop.framework.AopContext;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.github.yulichang.base.MPJBaseServiceImpl;
+import com.github.yulichang.wrapper.MPJLambdaWrapper;
+import com.google.common.cache.Cache;
+import com.google.common.cache.CacheBuilder;
+import jakarta.annotation.Resource;
+import com.olivia.sdk.utils.$;
+import com.olivia.sdk.utils.DynamicsPage;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+import com.olivia.peanut.base.mapper.BaseRoleMapper;
+import com.olivia.peanut.base.model.BaseRole;
+import com.olivia.peanut.base.service.BaseRoleService;
+import cn.hutool.core.collection.CollUtil;
+//import com.olivia.peanut.base.service.BaseTableHeaderService;
+import com.olivia.peanut.portal.service.BaseTableHeaderService;
+import com.olivia.peanut.base.api.entity.baseRole.*;
+import com.olivia.peanut.util.SetNamePojoUtils;
+import com.olivia.sdk.service.SetNameService;
+
+/**
+ * 角色表(BaseRole)表服务实现类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:33:35
+ */
+@Service("baseRoleService")
+@Transactional
+public class BaseRoleServiceImpl extends MPJBaseServiceImpl implements BaseRoleService {
+
+ final static Cache> cache = CacheBuilder.newBuilder().maximumSize(100).expireAfterWrite(30, TimeUnit.MINUTES).build();
+
+ @Resource
+ BaseTableHeaderService tableHeaderService;
+ @Resource
+ SetNameService setNameService;
+
+
+ public @Override BaseRoleQueryListRes queryList(BaseRoleQueryListReq req) {
+
+ MPJLambdaWrapper q = getWrapper(req.getData());
+ List list = this.list(q);
+
+ List dataList = list.stream().map(t -> $.copy(t, BaseRoleDto.class)).collect(Collectors.toList());
+ ((BaseRoleService) AopContext.currentProxy()).setName(dataList);
+ return new BaseRoleQueryListRes().setDataList(dataList);
+ }
+
+
+ public @Override DynamicsPage queryPageList(BaseRoleExportQueryPageListReq req) {
+
+ DynamicsPage page = new DynamicsPage<>();
+ page.setCurrent(req.getPageNum()).setSize(req.getPageSize());
+ setQueryListHeader(page);
+ MPJLambdaWrapper q = getWrapper(req.getData());
+ List records;
+ if (Boolean.TRUE.equals(req.getQueryPage())) {
+ IPage list = this.page(page, q);
+ IPage dataList = list.convert(t -> $.copy(t, BaseRoleExportQueryPageListInfoRes.class));
+ records = dataList.getRecords();
+ } else {
+ records = $.copyList(this.list(q), BaseRoleExportQueryPageListInfoRes.class);
+ }
+
+ // 类型转换, 更换枚举 等操作
+
+ List listInfoRes = $.copyList(records, BaseRoleExportQueryPageListInfoRes.class);
+ ((BaseRoleService) AopContext.currentProxy()).setName(listInfoRes);
+
+ return DynamicsPage.init(page, listInfoRes);
+ }
+
+ // 以下为私有对象封装
+
+ public @Override void setName(List extends BaseRoleDto> list) {
+
+ setNameService.setName(list, SetNamePojoUtils.getSetNamePojo(BaseRoleGroupService.class,
+ "roleGroupName","roleGroupId","roleGroupName"));
+
+
+ }
+
+
+ private MPJLambdaWrapper getWrapper(BaseRoleDto obj) {
+ MPJLambdaWrapper q = new MPJLambdaWrapper<>();
+
+ if (Objects.nonNull(obj)) {
+ q
+ .eq(StringUtils.isNoneBlank(obj.getRoleCode()), BaseRole::getRoleCode, obj.getRoleCode())
+ .eq(StringUtils.isNoneBlank(obj.getRoleName()), BaseRole::getRoleName, obj.getRoleName())
+ .eq(Objects.nonNull(obj.getRoleGroupId()), BaseRole::getRoleGroupId, obj.getRoleGroupId())
+
+ ;
+ }
+ q.orderByDesc(BaseRole::getId);
+ return q;
+
+ }
+
+ private void setQueryListHeader(DynamicsPage page) {
+
+ tableHeaderService.listByBizKey(page, "BaseRoleService#queryPageList");
+
+ }
+
+
+}
+
diff --git a/src/main/java/com/olivia/peanut/base/service/impl/BaseUserDeptServiceImpl.java b/src/main/java/com/olivia/peanut/base/service/impl/BaseUserDeptServiceImpl.java
new file mode 100644
index 0000000..9f77ceb
--- /dev/null
+++ b/src/main/java/com/olivia/peanut/base/service/impl/BaseUserDeptServiceImpl.java
@@ -0,0 +1,114 @@
+package com.olivia.peanut.base.service.impl;
+
+import org.springframework.aop.framework.AopContext;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.github.yulichang.base.MPJBaseServiceImpl;
+import com.github.yulichang.wrapper.MPJLambdaWrapper;
+import com.google.common.cache.Cache;
+import com.google.common.cache.CacheBuilder;
+import jakarta.annotation.Resource;
+import com.olivia.sdk.utils.$;
+import com.olivia.sdk.utils.DynamicsPage;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+import com.olivia.peanut.base.mapper.BaseUserDeptMapper;
+import com.olivia.peanut.base.model.BaseUserDept;
+import com.olivia.peanut.base.service.BaseUserDeptService;
+import cn.hutool.core.collection.CollUtil;
+//import com.olivia.peanut.base.service.BaseTableHeaderService;
+import com.olivia.peanut.portal.service.BaseTableHeaderService;
+import com.olivia.peanut.base.api.entity.baseUserDept.*;
+import com.olivia.peanut.util.SetNamePojoUtils;
+import com.olivia.sdk.service.SetNameService;
+
+/**
+ * 用户部门表(BaseUserDept)表服务实现类
+ *
+ * @author peanut
+ * @since 2024-07-31 14:36:01
+ */
+@Service("baseUserDeptService")
+@Transactional
+public class BaseUserDeptServiceImpl extends MPJBaseServiceImpl implements BaseUserDeptService {
+
+ final static Cache> cache = CacheBuilder.newBuilder().maximumSize(100).expireAfterWrite(30, TimeUnit.MINUTES).build();
+
+ @Resource
+ BaseTableHeaderService tableHeaderService;
+ @Resource
+ SetNameService setNameService;
+
+
+ public @Override BaseUserDeptQueryListRes queryList(BaseUserDeptQueryListReq req) {
+
+ MPJLambdaWrapper q = getWrapper(req.getData());
+ List list = this.list(q);
+
+ List dataList = list.stream().map(t -> $.copy(t, BaseUserDeptDto.class)).collect(Collectors.toList());
+ ((BaseUserDeptService) AopContext.currentProxy()).setName(dataList);
+ return new BaseUserDeptQueryListRes().setDataList(dataList);
+ }
+
+
+ public @Override DynamicsPage queryPageList(BaseUserDeptExportQueryPageListReq req) {
+
+ DynamicsPage page = new DynamicsPage<>();
+ page.setCurrent(req.getPageNum()).setSize(req.getPageSize());
+ setQueryListHeader(page);
+ MPJLambdaWrapper q = getWrapper(req.getData());
+ List records;
+ if (Boolean.TRUE.equals(req.getQueryPage())) {
+ IPage list = this.page(page, q);
+ IPage