Compare commits
291 Commits
d4a68f7473
...
feature/re
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5f46f3044b | ||
|
|
1a65c76613 | ||
|
|
34e996019e | ||
|
|
4ed514a806 | ||
|
|
563e97d377 | ||
|
|
54fe64c7ea | ||
|
|
c7bb6ebb7f | ||
|
|
42fb1c3d7a | ||
|
|
16dc1360ef | ||
|
|
f586059272 | ||
|
|
3d7c2cb156 | ||
|
|
4c059f6a27 | ||
|
|
9087a0cf93 | ||
|
|
675171c15f | ||
|
|
287c4a3b0f | ||
|
|
08d94cc344 | ||
|
|
8fda834249 | ||
|
|
aeff59186e | ||
|
|
22fd0ccd29 | ||
|
|
9230988009 | ||
|
|
ba4d88637b | ||
|
|
6574f5cb02 | ||
|
|
218428eeac | ||
|
|
0ac155ce58 | ||
|
|
20eca448a4 | ||
|
|
bbeb3e4ff7 | ||
|
|
016285919b | ||
|
|
67236a523a | ||
|
|
dcc64b2de9 | ||
|
|
e739cc110a | ||
|
|
9c11e5abe6 | ||
|
|
e9eff0c8f6 | ||
|
|
d92e30a097 | ||
|
|
9a4904ad66 | ||
|
|
3cbae167dc | ||
|
|
03aae62a4c | ||
|
|
27d9d26a90 | ||
|
|
d1804ffbea | ||
|
|
22a63e5fa8 | ||
|
|
74343084dc | ||
|
|
3e629b8318 | ||
|
|
d680308aea | ||
|
|
026bded12d | ||
|
|
5f8bdab765 | ||
|
|
4de27cf581 | ||
|
|
b691bedc13 | ||
|
|
f03cf99d5c | ||
|
|
03c2876e0e | ||
|
|
eb388089f7 | ||
|
|
72e8dae4b9 | ||
|
|
fa9fe2148f | ||
|
|
5e34812077 | ||
|
|
d09ca0a04e | ||
|
|
0337933b18 | ||
|
|
a2cd6c10bb | ||
|
|
7c048fe254 | ||
|
|
1749442161 | ||
|
|
48ec145e7a | ||
|
|
75b4440cf5 | ||
|
|
c502a2b303 | ||
|
|
f89e1da57e | ||
|
|
51c48672d7 | ||
|
|
204c59c065 | ||
|
|
55d6cac588 | ||
|
|
81edcdf796 | ||
|
|
6c8d89da91 | ||
|
|
0fe41ee355 | ||
|
|
b5b7ce2ad6 | ||
|
|
65e49ffdc2 | ||
|
|
e258254e2f | ||
|
|
42c386e470 | ||
|
|
9598cacfc8 | ||
|
|
3731aefec8 | ||
|
|
d0c9eb320a | ||
|
|
076fa284aa | ||
|
|
5814f4d7ec | ||
|
|
90cf0947be | ||
|
|
f4496385a5 | ||
|
|
92297cb559 | ||
|
|
8eefb0108b | ||
|
|
1a5bf3461f | ||
|
|
0fdf23fa16 | ||
|
|
3967188942 | ||
|
|
76b9188b7d | ||
|
|
2ae7616fde | ||
|
|
faa8e0ad5e | ||
|
|
804b25a875 | ||
|
|
2ef09ec104 | ||
|
|
8e80e320f8 | ||
|
|
472d2b96fc | ||
|
|
065999ddd2 | ||
|
|
065ca953e6 | ||
|
|
ac9001ed87 | ||
|
|
2b03000c51 | ||
|
|
9dd70b28ab | ||
|
|
c3f3ab872a | ||
|
|
7837eabd56 | ||
|
|
c4422375c9 | ||
|
|
74073a3657 | ||
|
|
40bbe179ac | ||
|
|
a75d638d30 | ||
|
|
8085c3d8c4 | ||
|
|
043165fe70 | ||
|
|
abd6af31ed | ||
|
|
8e7851eebe | ||
|
|
b7f60a6a08 | ||
|
|
9d7b44d1dd | ||
|
|
f7f8642401 | ||
|
|
575e101082 | ||
|
|
96bd946635 | ||
|
|
eb2c409100 | ||
|
|
40bc0b612b | ||
|
|
a70c5d3cd9 | ||
|
|
55d9cc3ec0 | ||
|
|
c04fabedd3 | ||
|
|
0016179356 | ||
|
|
07adda7439 | ||
|
|
c304f70b74 | ||
|
|
aaa031cacc | ||
|
|
186a095232 | ||
|
|
d17153ed50 | ||
|
|
6c10050fe7 | ||
|
|
40382150ff | ||
|
|
e6b18ed211 | ||
|
|
7fb6fcc344 | ||
|
|
c54a9684d7 | ||
|
|
bbb9542433 | ||
|
|
7df3b8d643 | ||
|
|
7d46e96bfa | ||
|
|
5e353cf7fd | ||
|
|
6d9048f31c | ||
|
|
b57f4a7a77 | ||
|
|
7466dcfdd7 | ||
|
|
c8b3720947 | ||
|
|
84233484f4 | ||
|
|
6c5a4d0805 | ||
|
|
1550b78912 | ||
|
|
807fc6cbda | ||
|
|
d5e3533d2d | ||
|
|
d1ff37370c | ||
|
|
e173c62c0c | ||
|
|
6eaf2bf471 | ||
|
|
2deaac0c5b | ||
|
|
79a420f07c | ||
|
|
3a289f9f2e | ||
|
|
3777de6edc | ||
|
|
6c100b2ebf | ||
|
|
81c44e1c16 | ||
|
|
eb72b4b1b9 | ||
|
|
55ee26a7c5 | ||
|
|
a8131f63b4 | ||
|
|
469607fef0 | ||
|
|
92358e29c7 | ||
|
|
d5eb759303 | ||
|
|
55e7c22469 | ||
|
|
832b5a86a8 | ||
|
|
524308b2d8 | ||
|
|
de1f5eb145 | ||
|
|
1d954bafc3 | ||
|
|
992c686882 | ||
|
|
1c0eb50c90 | ||
|
|
0dba6276d3 | ||
|
|
935f868f26 | ||
|
|
594f416b77 | ||
|
|
59be8b6237 | ||
|
|
38116a13f1 | ||
|
|
03e6bd043a | ||
|
|
b47e403fbd | ||
|
|
21c09b3fa4 | ||
|
|
c7d303d45a | ||
|
|
ec67475fe8 | ||
|
|
3b2ae3c597 | ||
|
|
9b902bfd84 | ||
|
|
e8a0ad3356 | ||
|
|
c454de459c | ||
|
|
35889fe4f7 | ||
|
|
7d00f7fd68 | ||
|
|
1fbc95e907 | ||
|
|
bb726cc05f | ||
|
|
eea575213a | ||
|
|
f2b9497a00 | ||
|
|
695f730432 | ||
|
|
d6a2d26811 | ||
|
|
8b39b00e3c | ||
|
|
d55b89b337 | ||
|
|
727e5d94fd | ||
|
|
5d004dbd5c | ||
|
|
467076a067 | ||
|
|
c96fb94625 | ||
|
|
12f8d5076d | ||
|
|
d0dee7f7a4 | ||
|
|
0207122187 | ||
|
|
f5723b3106 | ||
|
|
dd0404b6a6 | ||
|
|
b79f2a441a | ||
|
|
4ca38eb471 | ||
|
|
2fbc507344 | ||
|
|
cb31b698f0 | ||
|
|
24811ccedc | ||
|
|
d7059ec8ee | ||
|
|
a5acd67571 | ||
|
|
136e79d519 | ||
|
|
80bad2ce04 | ||
|
|
73f187ef96 | ||
|
|
219c104355 | ||
|
|
1e4b518f48 | ||
|
|
554109d766 | ||
|
|
ae14da53b2 | ||
|
|
7992f751f6 | ||
|
|
ffffc468c1 | ||
|
|
a279c826e5 | ||
|
|
f106e5631f | ||
|
|
ee53817fc6 | ||
|
|
c02cc6fb64 | ||
|
|
6fa0ff1354 | ||
|
|
8f086f8d7e | ||
|
|
3087685644 | ||
|
|
a103740be6 | ||
|
|
23eed50dd6 | ||
|
|
d907dcfae9 | ||
|
|
06ccebb3c4 | ||
|
|
cebc586d28 | ||
|
|
e244f4aab4 | ||
|
|
aaeb672b5d | ||
|
|
a54834473d | ||
|
|
cd3a860a34 | ||
|
|
17a07ea4bc | ||
|
|
761d076ace | ||
|
|
76b53a7c8d | ||
|
|
cfbdb84261 | ||
|
|
2dcf1afe7f | ||
|
|
129081ff60 | ||
|
|
df88bb2376 | ||
|
|
b4c7f052fd | ||
|
|
ce30352c3d | ||
|
|
b47ee5029f | ||
|
|
bd2897437f | ||
|
|
e61648bc98 | ||
|
|
e7644ea1f0 | ||
|
|
476631b74b | ||
|
|
448eb7dbff | ||
|
|
7865018df5 | ||
|
|
65a42dfcaf | ||
|
|
967a65f571 | ||
|
|
d1e99f28ed | ||
|
|
dea76d6da2 | ||
|
|
ea9fc9fad2 | ||
|
|
25d6ad11a1 | ||
|
|
adab077708 | ||
|
|
1621fe49e4 | ||
|
|
3b7c6e6715 | ||
|
|
33998c7d7d | ||
|
|
5e98fb4175 | ||
|
|
fd9a31e6c1 | ||
|
|
9ee1cb789e | ||
|
|
a392f6aa83 | ||
|
|
cf6ac064d9 | ||
|
|
b1848e3ab3 | ||
|
|
95d4b02aad | ||
|
|
e6109d59cc | ||
|
|
24240ee01e | ||
|
|
af65a433ef | ||
|
|
735c181fc8 | ||
|
|
91dd6fad8e | ||
|
|
33cf4d306d | ||
|
|
af3d3d1e60 | ||
|
|
533e800221 | ||
|
|
7c42e46432 | ||
| 62f82f2224 | |||
| daf62f7527 | |||
|
|
9846b2e604 | ||
|
|
ee3fb6d4c6 | ||
|
|
3d4ecd7de7 | ||
|
|
ee7b118a3c | ||
| 390679e2aa | |||
| b9c12bb09d | |||
| 88d73a1a05 | |||
| 16d2282681 | |||
|
|
df42ac93f8 | ||
|
|
ebdaef9543 | ||
|
|
64aec35014 | ||
|
|
8da56d1d09 | ||
|
|
e87be1a9e1 | ||
|
|
7b2ed51bf4 | ||
|
|
9e0a2d1a35 | ||
| e28c06dd32 | |||
|
|
366e253deb | ||
| 9b08c847d1 | |||
|
|
59f1766bee | ||
| 8ad015968f | |||
| 65e17f074e |
22
.gitattributes
vendored
22
.gitattributes
vendored
@@ -1,10 +1,12 @@
|
||||
* text=auto
|
||||
*.sh eol=lf
|
||||
*.md eol=lf
|
||||
*.yaml eol=lf
|
||||
*.yml eol=lf
|
||||
*.sql eol=lf
|
||||
*.txt eol=lf
|
||||
*.conf eol=lf
|
||||
*.xml eol=lf
|
||||
*.bat eol=crlf
|
||||
* text=auto
|
||||
*.sh text eol=lf
|
||||
*.md text eol=lf
|
||||
*.yaml text eol=lf
|
||||
*.yml text eol=lf
|
||||
*.sql text eol=lf
|
||||
*.txt text eol=lf
|
||||
*.conf text eol=lf
|
||||
*.xml text eol=lf
|
||||
*.bat text eol=crlf
|
||||
*.png binary
|
||||
*.jpg binary
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -40,6 +40,8 @@ nbdist/
|
||||
*.log
|
||||
*.xml.versionsBackup
|
||||
*.swp
|
||||
*.bak
|
||||
tmp
|
||||
|
||||
!*/build/*.java
|
||||
!*/build/*.html
|
||||
|
||||
43
README.md
43
README.md
@@ -1,17 +1,20 @@
|
||||
# Back-End at CRM
|
||||
# WANFI 客户平台
|
||||
|
||||
## 项目介绍
|
||||
WfcCloud-Vue-AntD是一个基于Spring Cloud、OAuth2.0、Ant Design Vue的前后端分离的开发平台,提供了一整套微服务解决方案,包括核心模块如:组织机构、角色用户、菜单权限、网关路由、数据权限等,常用中间件如:日志脱敏、任务调度、短信邮箱、接口文档、代码生成等,高效稳定,极大的缩短研发周期,帮助企业快速构建业务系统。
|
||||
|
||||
基于Spring Cloud、Ant Design Vue的前后端分离的开发平台, 提供了一整套微服务解决方案,包括核心模块如:组织机构、角色用户、菜单权限、网关路由、数据权限等,常用中间件如:日志脱敏、任务调度、短信邮箱、接口文档、代码生成等,高效稳定,极大的缩短研发周期,帮助企业快速构建业务系统。
|
||||
|
||||
## 系统模块
|
||||
|
||||
~~~
|
||||
org.wfc
|
||||
├── wfc-gateway // 网关模块 [8080]
|
||||
├── wfc-auth // 认证中心 [9200]
|
||||
├── wfc-api // 接口模块
|
||||
│ └── wfc-api-system // 系统接口
|
||||
├── wfc-common // 通用模块
|
||||
├── wfc-gateway // 网关模块 [8080]
|
||||
├── wfc-auth // 认证中心 [9200]
|
||||
├── wfc-api // 接口模块
|
||||
│ └── wfc-api-system // 系统模块接口
|
||||
│ └── wfc-api-user // 用户平台模块接口
|
||||
│ └── wfc-api-omada // omada平台接口
|
||||
├── wfc-common // 通用模块
|
||||
│ └── wfc-common-core // 核心模块
|
||||
│ └── wfc-common-datascope // 权限范围
|
||||
│ └── wfc-common-datasource // 多数据源
|
||||
@@ -21,14 +24,15 @@ org.wfc
|
||||
│ └── wfc-common-security // 安全模块
|
||||
│ └── wfc-common-sensitive // 数据脱敏
|
||||
│ └── wfc-common-swagger // 系统接口
|
||||
├── wfc-modules // 业务模块
|
||||
├── wfc-modules // 业务模块
|
||||
│ └── wfc-system // 系统模块 [9201]
|
||||
│ └── wfc-user // 用户平台模块 [9208]
|
||||
│ └── wfc-gen // 代码生成 [9202]
|
||||
│ └── wfc-job // 定时任务 [9203]
|
||||
│ └── wfc-file // 文件服务 [9300]
|
||||
├── wfc-visual // 图形化管理模块
|
||||
├── wfc-visual // 图形化管理模块
|
||||
│ └── wfc-visual-monitor // 监控中心 [9100]
|
||||
├──pom.xml // 公共依赖
|
||||
├──pom.xml // 公共依赖
|
||||
~~~
|
||||
|
||||
## 环境部署
|
||||
@@ -37,24 +41,24 @@ org.wfc
|
||||
|
||||
```
|
||||
JDK >= 1.8 (推荐1.8版本)
|
||||
Maven >= 3.6.3
|
||||
Mysql >= 5.7.0 (推荐5.7版本)
|
||||
Redis >= 3.0
|
||||
Maven >= 3.0
|
||||
nacos >= 2.0.4
|
||||
sentinel >= 1.6.0
|
||||
Redis >= 7.4.2
|
||||
nacos >= v2.5.0
|
||||
sentinel >= 1.6.0 (optional)
|
||||
```
|
||||
### 运行系统
|
||||
|
||||
1、 创建数据库wfc-cloud并导入数据脚本.sql(必须),quartz.sql(可选)
|
||||
1. 部署运行nacos选择mysql数据源配置
|
||||
3. 创建数据库wfc_config_db并导入数据脚本wfc_config_db.sql(nacos-必须)
|
||||
4. 创建数据库wfc_system_db并导入数据脚本wfc_system_db.sql(客户平台-必须)
|
||||
5. 创建数据库wfc_user_db并导入数据脚本wfc_user_db.sql(用户平台-必须)
|
||||
|
||||
2、 创建数据库wfc-config并导入数据脚本wfc-config.sql(必须)
|
||||
|
||||
3、 配置nacos持久化,修改conf/application.properties文件,增加支持mysql数据源配置
|
||||
```
|
||||
# db mysql
|
||||
spring.datasource.platform=mysql
|
||||
db.num=1
|
||||
db.url.0=jdbc:mysql://localhost:3306/wfc-config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
|
||||
db.url.0=jdbc:mysql://localhost:3306/wfc_system_db?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
|
||||
db.user=root
|
||||
db.password=password
|
||||
```
|
||||
@@ -64,6 +68,7 @@ db.password=password
|
||||
* WfcGatewayApplication (网关模块 必须)
|
||||
* WfcAuthApplication (认证模块 必须)
|
||||
* WfcSystemApplication (系统模块 必须)
|
||||
* WfcUserApplication (用户平台模块 必须)
|
||||
* WfcMonitorApplication (监控中心 可选)
|
||||
* WfcGenApplication (代码生成 可选)
|
||||
* WfcJobApplication (定时任务 可选)
|
||||
|
||||
24
docker/.env
Normal file
24
docker/.env
Normal file
@@ -0,0 +1,24 @@
|
||||
MYSQL_ROOT_PASSWORD=123456
|
||||
MYSQL_DATABASE=wfc_system_db
|
||||
WFC_CONFIG_DATABASE=wfc_config_db
|
||||
WFC_SYSTEM_DATABASE=wfc_system_db
|
||||
WFC_USER_DATABASE=wfc_user_db
|
||||
MYSQL_PORT=3306
|
||||
MYSQL_USER=mysql
|
||||
MYSQL_PASSWORD=123456
|
||||
REDIS_PORT=6379
|
||||
NACOS_NAME_SPACE=wfc-test
|
||||
WFC_SERVER_PORT=80
|
||||
NACOS_SERVER_PORT=8848
|
||||
GATEWAY_SERVER_PORT=8080
|
||||
AUTH_SERVER_PORT=8081
|
||||
WFC_JOB_PORT=9203
|
||||
WFC_PAYMENT_PORT=9204
|
||||
WFC_SYSTEM_PORT=9205
|
||||
WFC_USER_PORT=9206
|
||||
WFC_SERVER_IP=192.168.2.248
|
||||
NACOS_SERVER_IP=${WFC_SERVER_IP}
|
||||
GATEWAY_SERVER_IP=${WFC_SERVER_IP}
|
||||
AUTH_SERVER_IP=${WFC_SERVER_IP}
|
||||
RESTART_OPTION=on-failure:5
|
||||
|
||||
@@ -1,12 +1,17 @@
|
||||
@echo off
|
||||
|
||||
echo begin copy sql
|
||||
copy ..\sql\wfc-cloud.sql .\mysql\db
|
||||
copy ..\sql\wfc-config.sql .\mysql\db
|
||||
copy ..\sql\wfc_config_db\wfc_config_db.sql .\mysql\db
|
||||
copy ..\sql\wfc_system_db\wfc_system_db.sql .\mysql\db
|
||||
copy ..\sql\wfc_user_db\wfc_user_db.sql .\mysql\db
|
||||
|
||||
REM 复制 HTML 文件
|
||||
echo begin copy html
|
||||
xcopy /E /I ..\..\fe.wfc\dist\* .\nginx\html\dist
|
||||
echo begin copy sys html
|
||||
rmdir /s /q .\nginx\html\dist\sys
|
||||
xcopy /E /I /Y ..\..\fe.wfc\dist\* .\nginx\html\dist\sys
|
||||
echo begin copy user html
|
||||
rmdir /s /q .\nginx\html\dist\u
|
||||
xcopy /E /I /Y ..\..\fe.wfc.user\dist\* .\nginx\html\dist\u
|
||||
|
||||
REM 复制 JAR 文件
|
||||
echo begin copy wfc-gateway
|
||||
@@ -22,7 +27,7 @@ echo begin copy wfc-modules-system
|
||||
copy ..\wfc-modules\wfc-system\target\wfc-modules-system.jar .\wfc\modules\system\jar
|
||||
|
||||
echo begin copy wfc-modules-user
|
||||
copy ..\wfc-modules\wfc-modules-user\target\wfc-modules-user.jar .\wfc\modules\user\jar
|
||||
copy ..\wfc-modules\wfc-user\target\wfc-modules-user.jar .\wfc\modules\user\jar
|
||||
|
||||
echo begin copy wfc-modules-file
|
||||
copy ..\wfc-modules\wfc-file\target\wfc-modules-file.jar .\wfc\modules\file\jar
|
||||
|
||||
@@ -9,13 +9,21 @@ usage() {
|
||||
|
||||
# copy sql
|
||||
echo "begin copy sql "
|
||||
cp ../sql/wfc-cloud.sql ./mysql/db
|
||||
cp ../sql/wfc-config.sql ./mysql/db
|
||||
cp ../sql/wfc_config_db/wfc_config_db.sql ./mysql/db
|
||||
cp ../sql/wfc_system_db/wfc_system_db.sql ./mysql/db
|
||||
cp ../sql/wfc_user_db/wfc_user_db.sql ./mysql/db
|
||||
ln -sf /tmp ./mysql/
|
||||
|
||||
# copy html
|
||||
echo "begin copy html "
|
||||
cp -r ../../fe.wfc/dist/** ./nginx/html/dist
|
||||
echo "begin copy system html "
|
||||
mkdir -p ./nginx/html/dist/sys
|
||||
rm -rf ./nginx/html/dist/sys/*
|
||||
cp -rf ../../fe.wfc/dist/* ./nginx/html/dist/sys/
|
||||
|
||||
echo "begin copy user html "
|
||||
mkdir -p ./nginx/html/dist/u
|
||||
rm -rf ./nginx/html/dist/u/*
|
||||
cp -rf ../../fe.wfc.user/dist/* ./nginx/html/dist/u/
|
||||
|
||||
# copy jar
|
||||
echo "begin copy wfc-gateway "
|
||||
@@ -25,13 +33,13 @@ echo "begin copy wfc-auth "
|
||||
cp ../wfc-auth/target/wfc-auth.jar ./wfc/auth/jar
|
||||
|
||||
echo "begin copy wfc-visual "
|
||||
cp ../wfc-visual/wfc-monitor/target/wfc-visual-monitor.jar ./wfc/visual/monitor/jar
|
||||
cp ../wfc-visual/wfc-visual-monitor/target/wfc-visual-monitor.jar ./wfc/visual/monitor/jar
|
||||
|
||||
echo "begin copy wfc-modules-system "
|
||||
cp ../wfc-modules/wfc-system/target/wfc-modules-system.jar ./wfc/modules/system/jar
|
||||
|
||||
echo "begin copy wfc-modules-user "
|
||||
cp ../wfc-modules/wfc-modules-user/target/wfc-modules-user.jar ./wfc/modules/user/jar
|
||||
cp ../wfc-modules/wfc-user/target/wfc-modules-user.jar ./wfc/modules/user/jar
|
||||
|
||||
echo "begin copy wfc-modules-file "
|
||||
cp ../wfc-modules/wfc-file/target/wfc-modules-file.jar ./wfc/modules/file/jar
|
||||
|
||||
@@ -12,7 +12,7 @@ goto usage
|
||||
|
||||
REM 使用说明,用来提示输入参数
|
||||
:usage
|
||||
echo Usage: deploy.bat [port^|base^|modules^|stop^|rm]
|
||||
echo Usage: deploy.bat [port^|base^|modules^|backend^|stop^|rm]
|
||||
exit /b 1
|
||||
|
||||
REM 开启所需端口
|
||||
@@ -46,7 +46,7 @@ exit /b 0
|
||||
|
||||
REM 启动程序模块(后端)
|
||||
:backend
|
||||
docker-compose up -d wfc-gateway wfc-auth wfc-modules-system wfc-modules-user wfc-modules-payment
|
||||
docker-compose up -d wfc-gateway wfc-auth wfc-modules-system wfc-modules-user wfc-modules-payment wfc-modules-job wfc-modules-file wfc-modules-gen
|
||||
exit /b 0
|
||||
|
||||
REM 启动程序模块(前端)
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# 使用说明,用来提示输入参数
|
||||
usage() {
|
||||
echo "Usage: sh 执行脚本.sh [port|base|modules|stop|rm]"
|
||||
echo "Usage: sh deploy.sh [port|base|modules|backend|frontend|stop|rm]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ modules(){
|
||||
|
||||
# 启动程序模块(后端)
|
||||
backend(){
|
||||
docker-compose up -d wfc-gateway wfc-auth wfc-modules-system wfc-modules-user wfc-modules-payment
|
||||
docker-compose up -d wfc-gateway wfc-auth wfc-modules-system wfc-modules-user wfc-modules-payment wfc-modules-job wfc-modules-file wfc-modules-gen
|
||||
}
|
||||
|
||||
# 启动程序模块(前端)
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
version : '3.8'
|
||||
services:
|
||||
wfc-nacos:
|
||||
container_name: wfc-nacos
|
||||
@@ -7,6 +6,8 @@ services:
|
||||
context: ./nacos
|
||||
environment:
|
||||
- MODE=standalone
|
||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||
volumes:
|
||||
- ./nacos/logs/:/home/nacos/logs
|
||||
- ./nacos/conf/application.properties:/home/nacos/conf/application.properties
|
||||
@@ -24,9 +25,11 @@ services:
|
||||
ports:
|
||||
- "3306:3306"
|
||||
volumes:
|
||||
- ./mysql/db:/docker-entrypoint-initdb.d # 挂载 SQL 文件
|
||||
- ./mysql/conf:/etc/mysql/conf.d
|
||||
- ./mysql/logs:/logs
|
||||
- ./mysql/data:/var/lib/mysql
|
||||
- ./mysql/tmp:/tmp
|
||||
command: [
|
||||
'mysqld',
|
||||
'--innodb-buffer-pool-size=80M',
|
||||
@@ -36,7 +39,7 @@ services:
|
||||
'--lower-case-table-names=1'
|
||||
]
|
||||
environment:
|
||||
MYSQL_DATABASE: 'wfc-cloud'
|
||||
MYSQL_DATABASE: 'wfc_system_db'
|
||||
MYSQL_ROOT_PASSWORD: 123456
|
||||
wfc-redis:
|
||||
container_name: wfc-redis
|
||||
@@ -46,25 +49,10 @@ services:
|
||||
ports:
|
||||
- "6379:6379"
|
||||
volumes:
|
||||
- ./redis/conf/redis.conf:/home/wfc/redis/redis.conf
|
||||
- ./redis/conf/redis.conf:/opt/wfc/redis/redis.conf
|
||||
- ./redis/data:/data
|
||||
command: redis-server /home/wfc/redis/redis.conf
|
||||
wfc-nginx:
|
||||
container_name: wfc-nginx
|
||||
image: nginx
|
||||
build:
|
||||
context: ./nginx
|
||||
ports:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ./nginx/html/dist:/home/wfc/projects/wfc-ui
|
||||
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./nginx/logs:/var/log/nginx
|
||||
- ./nginx/conf.d:/etc/nginx/conf.d
|
||||
depends_on:
|
||||
- wfc-gateway
|
||||
links:
|
||||
- wfc-gateway
|
||||
command: redis-server /opt/wfc/redis/redis.conf
|
||||
|
||||
wfc-gateway:
|
||||
container_name: wfc-gateway
|
||||
build:
|
||||
@@ -72,10 +60,15 @@ services:
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- ./wfc/gateway/jar/wfc-gateway.jar:/opt/wfc/wfc-gateway.jar
|
||||
depends_on:
|
||||
- wfc-redis
|
||||
links:
|
||||
- wfc-redis
|
||||
environment:
|
||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||
wfc-auth:
|
||||
container_name: wfc-auth
|
||||
build:
|
||||
@@ -83,10 +76,15 @@ services:
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "9200:9200"
|
||||
volumes:
|
||||
- ./wfc/auth/jar/wfc-auth.jar:/opt/wfc/wfc-auth.jar
|
||||
depends_on:
|
||||
- wfc-redis
|
||||
links:
|
||||
- wfc-redis
|
||||
environment:
|
||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||
wfc-modules-system:
|
||||
container_name: wfc-modules-system
|
||||
build:
|
||||
@@ -94,12 +92,17 @@ services:
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "9201:9201"
|
||||
volumes:
|
||||
- ./wfc/modules/system/jar/wfc-modules-system.jar:/opt/wfc/wfc-modules-system.jar
|
||||
depends_on:
|
||||
- wfc-redis
|
||||
- wfc-mysql
|
||||
links:
|
||||
- wfc-redis
|
||||
- wfc-mysql
|
||||
environment:
|
||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||
wfc-modules-user:
|
||||
container_name: wfc-modules-user
|
||||
build:
|
||||
@@ -107,12 +110,17 @@ services:
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "9204:9204"
|
||||
volumes:
|
||||
- ./wfc/modules/user/jar/wfc-modules-user.jar:/opt/wfc/wfc-modules-user.jar
|
||||
depends_on:
|
||||
- wfc-redis
|
||||
- wfc-mysql
|
||||
links:
|
||||
- wfc-redis
|
||||
- wfc-mysql
|
||||
environment:
|
||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||
wfc-modules-gen:
|
||||
container_name: wfc-modules-gen
|
||||
build:
|
||||
@@ -120,10 +128,15 @@ services:
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "9202:9202"
|
||||
volumes:
|
||||
- ./wfc/modules/gen/jar/wfc-modules-gen.jar:/opt/wfc/wfc-modules-gen.jar
|
||||
depends_on:
|
||||
- wfc-mysql
|
||||
links:
|
||||
- wfc-mysql
|
||||
environment:
|
||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||
wfc-modules-job:
|
||||
container_name: wfc-modules-job
|
||||
build:
|
||||
@@ -131,10 +144,15 @@ services:
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "9203:9203"
|
||||
volumes:
|
||||
- ./wfc/modules/job/jar/wfc-modules-job.jar:/opt/wfc/wfc-modules-job.jar
|
||||
depends_on:
|
||||
- wfc-mysql
|
||||
links:
|
||||
- wfc-mysql
|
||||
environment:
|
||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||
wfc-modules-file:
|
||||
container_name: wfc-modules-file
|
||||
build:
|
||||
@@ -143,7 +161,11 @@ services:
|
||||
ports:
|
||||
- "9300:9300"
|
||||
volumes:
|
||||
- ./wfc/uploadPath:/home/wfc/uploadPath
|
||||
- ./wfc/modules/file/jar/wfc-modules-file.jar:/opt/wfc/wfc-modules-file.jar
|
||||
- ./nginx/html/dist/img:/opt/wfc/upload
|
||||
environment:
|
||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||
wfc-modules-payment:
|
||||
container_name: wfc-modules-payment
|
||||
build:
|
||||
@@ -151,10 +173,15 @@ services:
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "9306:9306"
|
||||
volumes:
|
||||
- ./wfc/modules/payment/jar/wfc-modules-payment.jar:/opt/wfc/wfc-modules-payment.jar
|
||||
depends_on:
|
||||
- wfc-mysql
|
||||
links:
|
||||
- wfc-mysql
|
||||
environment:
|
||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||
wfc-visual-monitor:
|
||||
container_name: wfc-visual-monitor
|
||||
build:
|
||||
@@ -162,3 +189,24 @@ services:
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "9100:9100"
|
||||
volumes:
|
||||
- ./wfc/visual/monitor/jar/wfc-visual-monitor.jar:/opt/wfc/wfc-visual-monitor.jar
|
||||
environment:
|
||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||
wfc-nginx:
|
||||
container_name: wfc-nginx
|
||||
image: nginx
|
||||
build:
|
||||
context: ./nginx
|
||||
ports:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ./nginx/html/dist:/opt/wfc/portal
|
||||
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./nginx/logs:/var/log/nginx
|
||||
- ./nginx/conf.d:/etc/nginx/conf.d
|
||||
depends_on:
|
||||
- wfc-gateway
|
||||
links:
|
||||
- wfc-gateway
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
spring.datasource.platform=mysql
|
||||
db.num=1
|
||||
db.url.0=jdbc:mysql://wfc-mysql:3306/wfc-config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
|
||||
db.url.0=jdbc:mysql://wfc-mysql:3306/wfc_config_db?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
|
||||
db.user=root
|
||||
db.password=123456
|
||||
|
||||
nacos.naming.empty-service.auto-clean=true
|
||||
nacos.naming.empty-service.clean.initial-delay-ms=50000
|
||||
nacos.naming.empty-service.clean.period-time-ms=30000
|
||||
# nacos.server.ip=${nacos.server.ip}
|
||||
|
||||
management.endpoints.web.exposure.include=*
|
||||
|
||||
|
||||
@@ -14,18 +14,40 @@ http {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
root /home/wfc/projects/wfc-ui;
|
||||
location /sys {
|
||||
root /opt/wfc/portal;
|
||||
try_files $uri $uri/ /index.html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
location /prod-api/{
|
||||
location /img {
|
||||
alias /opt/wfc/portal/img;
|
||||
|
||||
autoindex on;
|
||||
autoindex_exact_size off;
|
||||
autoindex_localtime on;
|
||||
}
|
||||
|
||||
location /sys-api/{
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header REMOTE-HOST $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_pass http://192.168.2.248:8080/;
|
||||
proxy_pass http://wfc-gateway:8080/;
|
||||
}
|
||||
|
||||
location /u {
|
||||
root /opt/wfc/portal;
|
||||
try_files $uri $uri/ /index.html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
location /u-api/{
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header REMOTE-HOST $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_pass http://wfc-gateway:8080/;
|
||||
}
|
||||
|
||||
# 避免actuator暴露
|
||||
|
||||
@@ -2,14 +2,9 @@
|
||||
FROM nginx
|
||||
# author
|
||||
MAINTAINER wfc
|
||||
|
||||
# 挂载目录
|
||||
VOLUME /home/wfc/projects/wfc-ui
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/wfc/projects/wfc-ui
|
||||
# 指定路径
|
||||
WORKDIR /home/wfc/projects/wfc-ui
|
||||
# 工作目录
|
||||
WORKDIR /opt/wfc/portal
|
||||
# 复制conf文件到路径
|
||||
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
|
||||
# 复制html文件到路径
|
||||
COPY ./html/dist /home/wfc/projects/wfc-ui
|
||||
COPY ./html /opt/wfc/portal
|
||||
|
||||
1
docker/nginx/html/dist/readme.txt
vendored
1
docker/nginx/html/dist/readme.txt
vendored
@@ -1 +0,0 @@
|
||||
<EFBFBD><EFBFBD><EFBFBD>ǰ<EFBFBD><EFBFBD>wfc-ui<75><69><EFBFBD><EFBFBD><EFBFBD>õľ<C3B5>̬<EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>nginx<6E><78><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʡ<EFBFBD>
|
||||
3
docker/nginx/html/readme.txt
Normal file
3
docker/nginx/html/readme.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
1. 目录./sys存放客户平台(sys portal)前端文件
|
||||
2. 目录./u存放用户平台(user portal)前端文件
|
||||
用于nginx自动执行
|
||||
@@ -4,10 +4,10 @@ FROM redis
|
||||
MAINTAINER wfc
|
||||
|
||||
# 挂载目录
|
||||
VOLUME /home/wfc/redis
|
||||
VOLUME /opt/wfc/redis
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/wfc/redis
|
||||
RUN mkdir -p /opt/wfc/redis
|
||||
# 指定路径
|
||||
WORKDIR /home/wfc/redis
|
||||
WORKDIR /opt/wfc/redis
|
||||
# 复制conf文件到路径
|
||||
COPY ./conf/redis.conf /home/wfc/redis/redis.conf
|
||||
COPY ./conf/redis.conf /opt/wfc/redis/redis.conf
|
||||
|
||||
45
docker/start-backend.bat
Normal file
45
docker/start-backend.bat
Normal file
@@ -0,0 +1,45 @@
|
||||
@echo off
|
||||
|
||||
set profile_name=test
|
||||
if not "%1"=="" (
|
||||
set profile_name=%1
|
||||
)
|
||||
cd ..
|
||||
git pull
|
||||
call mvn clean package -Dmaven.test.skip=true -P %profile_name%
|
||||
cd docker
|
||||
call copy.bat
|
||||
|
||||
docker stop wfc-gateway
|
||||
docker rm wfc-gateway
|
||||
docker rmi docker-wfc-gateway
|
||||
|
||||
docker stop wfc-auth
|
||||
docker rm wfc-auth
|
||||
docker rmi docker-wfc-auth
|
||||
|
||||
docker stop wfc-modules-file
|
||||
docker rm wfc-modules-file
|
||||
docker rmi docker-wfc-modules-file
|
||||
|
||||
docker stop wfc-modules-gen
|
||||
docker rm wfc-modules-gen
|
||||
docker rmi docker-wfc-modules-gen
|
||||
|
||||
docker stop wfc-modules-job
|
||||
docker rm wfc-modules-job
|
||||
docker rmi docker-wfc-modules-job
|
||||
|
||||
docker stop wfc-modules-system
|
||||
docker rm wfc-modules-system
|
||||
docker rmi docker-wfc-modules-system
|
||||
|
||||
docker stop wfc-modules-user
|
||||
docker rm wfc-modules-user
|
||||
docker rmi docker-wfc-modules-user
|
||||
|
||||
docker stop wfc-modules-payment
|
||||
docker rm wfc-modules-payment
|
||||
docker rmi docker-wfc-modules-payment
|
||||
|
||||
call deploy.bat backend
|
||||
@@ -1,21 +1,42 @@
|
||||
#!/bin/sh
|
||||
|
||||
profile_name=test
|
||||
if [ "$1" != "" ]; then
|
||||
profile_name=$1
|
||||
fi
|
||||
|
||||
cd ..
|
||||
git pull
|
||||
mvn clean package -P test
|
||||
mvn clean package -Dmaven.test.skip=true -P ${profile_name}
|
||||
cd docker
|
||||
./copy.sh
|
||||
|
||||
sudo docker stop wfc-gateway
|
||||
sudo docker rm wfc-gateway
|
||||
sudo docker rmi docker_wfc-gateway
|
||||
|
||||
sudo docker stop wfc-auth
|
||||
sudo docker rm wfc-auth
|
||||
sudo docker rmi docker_wfc-auth
|
||||
|
||||
sudo docker stop wfc-modules-system
|
||||
sudo docker rm wfc-modules-system
|
||||
sudo docker rmi docker_wfc-modules-system
|
||||
|
||||
sudo docker stop wfc-modules-user
|
||||
sudo docker rm wfc-modules-user
|
||||
sudo docker rmi docker_wfc-modules-user
|
||||
|
||||
sudo docker stop wfc-modules-job
|
||||
sudo docker rm wfc-modules-job
|
||||
sudo docker rmi docker_wfc-modules-job
|
||||
|
||||
sudo docker stop wfc-modules-file
|
||||
sudo docker rm wfc-modules-file
|
||||
sudo docker rmi docker_wfc-modules-file
|
||||
|
||||
sudo docker stop wfc-modules-gen
|
||||
sudo docker rm wfc-modules-gen
|
||||
sudo docker rmi docker_wfc-modules-gen
|
||||
|
||||
sudo ./deploy.sh backend
|
||||
sudo docker restart wfc-modules-system
|
||||
|
||||
22
docker/start-frontend.bat
Normal file
22
docker/start-frontend.bat
Normal file
@@ -0,0 +1,22 @@
|
||||
@echo off
|
||||
|
||||
REM Change to the fe.wfc directory and update the repository
|
||||
cd /d ..\..\fe.wfc
|
||||
git pull
|
||||
call pnpm install
|
||||
call pnpm build
|
||||
|
||||
REM Change to the fe.wfc.user directory and update the repository
|
||||
cd /d ..\fe.wfc.user
|
||||
git pull
|
||||
call pnpm install
|
||||
call pnpm build
|
||||
|
||||
REM Change to the be.wfc/docker directory and run the copy script
|
||||
cd /d ..\be.wfc\docker
|
||||
call copy.bat
|
||||
|
||||
REM Stop, remove, and deploy the Docker container for wfc-nginx
|
||||
docker stop wfc-nginx
|
||||
docker rm wfc-nginx
|
||||
call deploy.bat frontend
|
||||
@@ -1,12 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd ../../fe.wfc/
|
||||
#
|
||||
cd ../../fe.wfc
|
||||
git pull
|
||||
pnpm i
|
||||
pnpm build
|
||||
cd ../be.wfc/docker/
|
||||
|
||||
#
|
||||
cd ../fe.wfc.user
|
||||
git pull
|
||||
pnpm i
|
||||
pnpm build
|
||||
|
||||
#
|
||||
cd ../be.wfc/docker
|
||||
./copy.sh
|
||||
|
||||
sudo docker stop wfc-nginx
|
||||
sudo docker rm wfc-nginx
|
||||
sudo docker rmi nginx
|
||||
sudo ./deploy.sh frontend
|
||||
|
||||
@@ -4,12 +4,12 @@ FROM openjdk:8-jre
|
||||
MAINTAINER wfc
|
||||
|
||||
# 挂载目录
|
||||
VOLUME /home/wfc
|
||||
VOLUME /opt/wfc
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/wfc
|
||||
RUN mkdir -p /opt/wfc
|
||||
# 指定路径
|
||||
WORKDIR /home/wfc
|
||||
WORKDIR /opt/wfc
|
||||
# 复制jar文件到路径
|
||||
COPY ./jar/wfc-auth.jar /home/wfc/wfc-auth.jar
|
||||
COPY ./jar/wfc-auth.jar /opt/wfc/wfc-auth.jar
|
||||
# 启动认证服务
|
||||
ENTRYPOINT ["java","-jar","wfc-auth.jar"]
|
||||
@@ -4,12 +4,12 @@ FROM openjdk:8-jre
|
||||
MAINTAINER wfc
|
||||
|
||||
# 挂载目录
|
||||
VOLUME /home/wfc
|
||||
VOLUME /opt/wfc
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/wfc
|
||||
RUN mkdir -p /opt/wfc
|
||||
# 指定路径
|
||||
WORKDIR /home/wfc
|
||||
WORKDIR /opt/wfc
|
||||
# 复制jar文件到路径
|
||||
COPY ./jar/wfc-gateway.jar /home/wfc/wfc-gateway.jar
|
||||
COPY ./jar/wfc-gateway.jar /opt/wfc/wfc-gateway.jar
|
||||
# 启动网关服务
|
||||
ENTRYPOINT ["java","-jar","wfc-gateway.jar"]
|
||||
@@ -4,12 +4,12 @@ FROM openjdk:8-jre
|
||||
MAINTAINER wfc
|
||||
|
||||
# 挂载目录
|
||||
VOLUME /home/wfc
|
||||
VOLUME /opt/wfc
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/wfc
|
||||
RUN mkdir -p /opt/wfc
|
||||
# 指定路径
|
||||
WORKDIR /home/wfc
|
||||
WORKDIR /opt/wfc
|
||||
# 复制jar文件到路径
|
||||
COPY ./jar/wfc-modules-file.jar /home/wfc/wfc-modules-file.jar
|
||||
COPY ./jar/wfc-modules-file.jar /opt/wfc/wfc-modules-file.jar
|
||||
# 启动文件服务
|
||||
ENTRYPOINT ["java","-jar","wfc-modules-file.jar"]
|
||||
@@ -4,12 +4,12 @@ FROM openjdk:8-jre
|
||||
MAINTAINER wfc
|
||||
|
||||
# 挂载目录
|
||||
VOLUME /home/wfc
|
||||
VOLUME /opt/wfc
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/wfc
|
||||
RUN mkdir -p /opt/wfc
|
||||
# 指定路径
|
||||
WORKDIR /home/wfc
|
||||
WORKDIR /opt/wfc
|
||||
# 复制jar文件到路径
|
||||
COPY ./jar/wfc-modules-gen.jar /home/wfc/wfc-modules-gen.jar
|
||||
COPY ./jar/wfc-modules-gen.jar /opt/wfc/wfc-modules-gen.jar
|
||||
# 启动代码生成服务
|
||||
ENTRYPOINT ["java","-jar","wfc-modules-gen.jar"]
|
||||
@@ -4,12 +4,12 @@ FROM openjdk:8-jre
|
||||
MAINTAINER wfc
|
||||
|
||||
# 挂载目录
|
||||
VOLUME /home/wfc
|
||||
VOLUME /opt/wfc
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/wfc
|
||||
RUN mkdir -p /opt/wfc
|
||||
# 指定路径
|
||||
WORKDIR /home/wfc
|
||||
WORKDIR /opt/wfc
|
||||
# 复制jar文件到路径
|
||||
COPY ./jar/wfc-modules-job.jar /home/wfc/wfc-modules-job.jar
|
||||
COPY ./jar/wfc-modules-job.jar /opt/wfc/wfc-modules-job.jar
|
||||
# 启动定时任务服务
|
||||
ENTRYPOINT ["java","-jar","wfc-modules-job.jar"]
|
||||
@@ -4,12 +4,12 @@ FROM openjdk:8-jre
|
||||
LABEL org.wfc.image.authors="wfc@wfc.org"
|
||||
|
||||
# 挂载目录
|
||||
VOLUME /home/wfc
|
||||
VOLUME /opt/wfc
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/wfc
|
||||
RUN mkdir -p /opt/wfc
|
||||
# 指定路径
|
||||
WORKDIR /home/wfc
|
||||
WORKDIR /opt/wfc
|
||||
# 复制jar文件到路径
|
||||
COPY ./jar/wfc-modules-payment.jar /home/wfc/wfc-modules-payment.jar
|
||||
COPY ./jar/wfc-modules-payment.jar /opt/wfc/wfc-modules-payment.jar
|
||||
# 启动系统服务
|
||||
ENTRYPOINT ["java","-jar","wfc-modules-payment.jar"]
|
||||
@@ -4,12 +4,12 @@ FROM openjdk:8-jre
|
||||
MAINTAINER wfc
|
||||
|
||||
# 挂载目录
|
||||
VOLUME /home/wfc
|
||||
VOLUME /opt/wfc
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/wfc
|
||||
RUN mkdir -p /opt/wfc
|
||||
# 指定路径
|
||||
WORKDIR /home/wfc
|
||||
WORKDIR /opt/wfc
|
||||
# 复制jar文件到路径
|
||||
COPY ./jar/wfc-modules-system.jar /home/wfc/wfc-modules-system.jar
|
||||
COPY ./jar/wfc-modules-system.jar /opt/wfc/wfc-modules-system.jar
|
||||
# 启动系统服务
|
||||
ENTRYPOINT ["java","-jar","wfc-modules-system.jar"]
|
||||
@@ -4,12 +4,12 @@ FROM openjdk:8-jre
|
||||
MAINTAINER wfc
|
||||
|
||||
# 挂载目录
|
||||
VOLUME /home/wfc
|
||||
VOLUME /opt/wfc
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/wfc
|
||||
RUN mkdir -p /opt/wfc
|
||||
# 指定路径
|
||||
WORKDIR /home/wfc
|
||||
WORKDIR /opt/wfc
|
||||
# 复制jar文件到路径
|
||||
COPY ./jar/wfc-modules-user.jar /home/wfc/wfc-modules-user.jar
|
||||
COPY ./jar/wfc-modules-user.jar /opt/wfc/wfc-modules-user.jar
|
||||
# 启动系统服务
|
||||
ENTRYPOINT ["java","-jar","wfc-modules-user.jar"]
|
||||
@@ -4,12 +4,12 @@ FROM openjdk:8-jre
|
||||
MAINTAINER wfc
|
||||
|
||||
# 挂载目录
|
||||
VOLUME /home/wfc
|
||||
VOLUME /opt/wfc
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/wfc
|
||||
RUN mkdir -p /opt/wfc
|
||||
# 指定路径
|
||||
WORKDIR /home/wfc
|
||||
WORKDIR /opt/wfc
|
||||
# 复制jar文件到路径
|
||||
COPY ./jar/wfc-visual-monitor.jar /home/wfc/wfc-visual-monitor.jar
|
||||
COPY ./jar/wfc-visual-monitor.jar /opt/wfc/wfc-visual-monitor.jar
|
||||
# 启动系统服务
|
||||
ENTRYPOINT ["java","-jar","wfc-visual-monitor.jar"]
|
||||
82
pom.xml
82
pom.xml
@@ -6,13 +6,13 @@
|
||||
|
||||
<groupId>org.wfc</groupId>
|
||||
<artifactId>wfc</artifactId>
|
||||
<version>3.6.5</version>
|
||||
<version>1.0.13</version>
|
||||
|
||||
<name>wfc</name>
|
||||
<description>管理系统</description>
|
||||
<description>WANFi Control and Billing System</description>
|
||||
|
||||
<properties>
|
||||
<wfc.version>3.6.5</wfc.version>
|
||||
<wfc.version>1.0.13</wfc.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<java.version>1.8</java.version>
|
||||
@@ -20,6 +20,7 @@
|
||||
<spring-cloud.version>2021.0.9</spring-cloud.version>
|
||||
<spring-cloud-alibaba.version>2021.0.6.1</spring-cloud-alibaba.version>
|
||||
<spring-boot-admin.version>2.7.16</spring-boot-admin.version>
|
||||
<mybatis-plus.version>3.5.9</mybatis-plus.version>
|
||||
<tobato.version>1.27.2</tobato.version>
|
||||
<kaptcha.version>2.3.3</kaptcha.version>
|
||||
<pagehelper.boot.version>2.0.0</pagehelper.boot.version>
|
||||
@@ -35,7 +36,13 @@
|
||||
<transmittable-thread-local.version>2.14.4</transmittable-thread-local.version>
|
||||
<hutool.version>5.8.33</hutool.version>
|
||||
<lombok.version>1.18.36</lombok.version>
|
||||
<swagger.core.version>1.6.2</swagger.core.version>
|
||||
<org.mapstruct.version>1.6.3</org.mapstruct.version>
|
||||
<mail.version>1.6.2</mail.version>
|
||||
<ijapy.version>2.9.11</ijapy.version>
|
||||
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
|
||||
<wfc.nacos.server>${env.NACOS_SERVER_NAME}</wfc.nacos.server>
|
||||
<wfc.nacos.port>${env.NACOS_SERVER_PORT}</wfc.nacos.port>
|
||||
|
||||
<!-- override dependency version -->
|
||||
<tomcat.version>9.0.96</tomcat.version>
|
||||
@@ -83,6 +90,18 @@
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- Mybatis-Plus 配置 -->
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||
<version>${mybatis-plus.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-generator</artifactId>
|
||||
<version>${mybatis-plus.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 覆盖logback的依赖配置-->
|
||||
<dependency>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
@@ -248,6 +267,13 @@
|
||||
<version>${wfc.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Swagger 依赖配置 -->
|
||||
<dependency>
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-annotations</artifactId>
|
||||
<version>${swagger.core.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 日志记录 -->
|
||||
<dependency>
|
||||
<groupId>org.wfc</groupId>
|
||||
@@ -262,6 +288,20 @@
|
||||
<version>${wfc.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- mybatis服务 -->
|
||||
<dependency>
|
||||
<groupId>org.wfc</groupId>
|
||||
<artifactId>wfc-common-mybatis</artifactId>
|
||||
<version>${wfc.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- MapStruct -->
|
||||
<dependency>
|
||||
<groupId>org.mapstruct</groupId>
|
||||
<artifactId>mapstruct</artifactId>
|
||||
<version>${org.mapstruct.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 系统接口 -->
|
||||
<dependency>
|
||||
<groupId>org.wfc</groupId>
|
||||
@@ -296,6 +336,13 @@
|
||||
<artifactId>javax.mail</artifactId>
|
||||
<version>${mail.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 支付 -->
|
||||
<dependency>
|
||||
<groupId>com.github.javen205</groupId>
|
||||
<artifactId>IJPay-All</artifactId>
|
||||
<version>${ijapy.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
@@ -322,12 +369,37 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>${maven-compiler-plugin.version}</version>
|
||||
<configuration>
|
||||
<source>${java.version}</source>
|
||||
<target>${java.version}</target>
|
||||
<encoding>${project.build.sourceEncoding}</encoding>
|
||||
<annotationProcessorPaths>
|
||||
<path>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>${lombok.version}</version>
|
||||
</path>
|
||||
<path>
|
||||
<groupId>org.mapstruct</groupId>
|
||||
<artifactId>mapstruct-processor</artifactId>
|
||||
<version>${org.mapstruct.version}</version>
|
||||
</path>
|
||||
</annotationProcessorPaths>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifestEntries>
|
||||
<Implementation-Version>${wfc.version}</Implementation-Version>
|
||||
</manifestEntries>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
@@ -410,7 +482,7 @@
|
||||
<properties>
|
||||
<!--当前环境-->
|
||||
<profileName>prod</profileName>
|
||||
<nacosServerAddr>192.168.2.248:8848</nacosServerAddr>
|
||||
<nacosServerAddr>${wfc.nacos.server}:${wfc.nacos.port}</nacosServerAddr>
|
||||
<nacosNamespace>wfc-prod</nacosNamespace>
|
||||
</properties>
|
||||
</profile>
|
||||
@@ -420,7 +492,7 @@
|
||||
<properties>
|
||||
<!--当前环境-->
|
||||
<profileName>cyc</profileName>
|
||||
<nacosServerAddr>192.168.2.248:8848</nacosServerAddr>
|
||||
<nacosServerAddr>localhost:8848</nacosServerAddr>
|
||||
<nacosNamespace>wfc-cyc</nacosNamespace>
|
||||
</properties>
|
||||
</profile>
|
||||
|
||||
174
sql/quartz.sql
174
sql/quartz.sql
@@ -1,174 +0,0 @@
|
||||
DROP TABLE IF EXISTS QRTZ_FIRED_TRIGGERS;
|
||||
DROP TABLE IF EXISTS QRTZ_PAUSED_TRIGGER_GRPS;
|
||||
DROP TABLE IF EXISTS QRTZ_SCHEDULER_STATE;
|
||||
DROP TABLE IF EXISTS QRTZ_LOCKS;
|
||||
DROP TABLE IF EXISTS QRTZ_SIMPLE_TRIGGERS;
|
||||
DROP TABLE IF EXISTS QRTZ_SIMPROP_TRIGGERS;
|
||||
DROP TABLE IF EXISTS QRTZ_CRON_TRIGGERS;
|
||||
DROP TABLE IF EXISTS QRTZ_BLOB_TRIGGERS;
|
||||
DROP TABLE IF EXISTS QRTZ_TRIGGERS;
|
||||
DROP TABLE IF EXISTS QRTZ_JOB_DETAILS;
|
||||
DROP TABLE IF EXISTS QRTZ_CALENDARS;
|
||||
|
||||
-- ----------------------------
|
||||
-- 1、存储每一个已配置的 jobDetail 的详细信息
|
||||
-- ----------------------------
|
||||
create table QRTZ_JOB_DETAILS (
|
||||
sched_name varchar(120) not null comment '调度名称',
|
||||
job_name varchar(200) not null comment '任务名称',
|
||||
job_group varchar(200) not null comment '任务组名',
|
||||
description varchar(250) null comment '相关介绍',
|
||||
job_class_name varchar(250) not null comment '执行任务类名称',
|
||||
is_durable varchar(1) not null comment '是否持久化',
|
||||
is_nonconcurrent varchar(1) not null comment '是否并发',
|
||||
is_update_data varchar(1) not null comment '是否更新数据',
|
||||
requests_recovery varchar(1) not null comment '是否接受恢复执行',
|
||||
job_data blob null comment '存放持久化job对象',
|
||||
primary key (sched_name, job_name, job_group)
|
||||
) engine=innodb comment = '任务详细信息表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 2、 存储已配置的 Trigger 的信息
|
||||
-- ----------------------------
|
||||
create table QRTZ_TRIGGERS (
|
||||
sched_name varchar(120) not null comment '调度名称',
|
||||
trigger_name varchar(200) not null comment '触发器的名字',
|
||||
trigger_group varchar(200) not null comment '触发器所属组的名字',
|
||||
job_name varchar(200) not null comment 'qrtz_job_details表job_name的外键',
|
||||
job_group varchar(200) not null comment 'qrtz_job_details表job_group的外键',
|
||||
description varchar(250) null comment '相关介绍',
|
||||
next_fire_time bigint(13) null comment '上一次触发时间(毫秒)',
|
||||
prev_fire_time bigint(13) null comment '下一次触发时间(默认为-1表示不触发)',
|
||||
priority integer null comment '优先级',
|
||||
trigger_state varchar(16) not null comment '触发器状态',
|
||||
trigger_type varchar(8) not null comment '触发器的类型',
|
||||
start_time bigint(13) not null comment '开始时间',
|
||||
end_time bigint(13) null comment '结束时间',
|
||||
calendar_name varchar(200) null comment '日程表名称',
|
||||
misfire_instr smallint(2) null comment '补偿执行的策略',
|
||||
job_data blob null comment '存放持久化job对象',
|
||||
primary key (sched_name, trigger_name, trigger_group),
|
||||
foreign key (sched_name, job_name, job_group) references QRTZ_JOB_DETAILS(sched_name, job_name, job_group)
|
||||
) engine=innodb comment = '触发器详细信息表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 3、 存储简单的 Trigger,包括重复次数,间隔,以及已触发的次数
|
||||
-- ----------------------------
|
||||
create table QRTZ_SIMPLE_TRIGGERS (
|
||||
sched_name varchar(120) not null comment '调度名称',
|
||||
trigger_name varchar(200) not null comment 'qrtz_triggers表trigger_name的外键',
|
||||
trigger_group varchar(200) not null comment 'qrtz_triggers表trigger_group的外键',
|
||||
repeat_count bigint(7) not null comment '重复的次数统计',
|
||||
repeat_interval bigint(12) not null comment '重复的间隔时间',
|
||||
times_triggered bigint(10) not null comment '已经触发的次数',
|
||||
primary key (sched_name, trigger_name, trigger_group),
|
||||
foreign key (sched_name, trigger_name, trigger_group) references QRTZ_TRIGGERS(sched_name, trigger_name, trigger_group)
|
||||
) engine=innodb comment = '简单触发器的信息表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 4、 存储 Cron Trigger,包括 Cron 表达式和时区信息
|
||||
-- ----------------------------
|
||||
create table QRTZ_CRON_TRIGGERS (
|
||||
sched_name varchar(120) not null comment '调度名称',
|
||||
trigger_name varchar(200) not null comment 'qrtz_triggers表trigger_name的外键',
|
||||
trigger_group varchar(200) not null comment 'qrtz_triggers表trigger_group的外键',
|
||||
cron_expression varchar(200) not null comment 'cron表达式',
|
||||
time_zone_id varchar(80) comment '时区',
|
||||
primary key (sched_name, trigger_name, trigger_group),
|
||||
foreign key (sched_name, trigger_name, trigger_group) references QRTZ_TRIGGERS(sched_name, trigger_name, trigger_group)
|
||||
) engine=innodb comment = 'Cron类型的触发器表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 5、 Trigger 作为 Blob 类型存储(用于 Quartz 用户用 JDBC 创建他们自己定制的 Trigger 类型,JobStore 并不知道如何存储实例的时候)
|
||||
-- ----------------------------
|
||||
create table QRTZ_BLOB_TRIGGERS (
|
||||
sched_name varchar(120) not null comment '调度名称',
|
||||
trigger_name varchar(200) not null comment 'qrtz_triggers表trigger_name的外键',
|
||||
trigger_group varchar(200) not null comment 'qrtz_triggers表trigger_group的外键',
|
||||
blob_data blob null comment '存放持久化Trigger对象',
|
||||
primary key (sched_name, trigger_name, trigger_group),
|
||||
foreign key (sched_name, trigger_name, trigger_group) references QRTZ_TRIGGERS(sched_name, trigger_name, trigger_group)
|
||||
) engine=innodb comment = 'Blob类型的触发器表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 6、 以 Blob 类型存储存放日历信息, quartz可配置一个日历来指定一个时间范围
|
||||
-- ----------------------------
|
||||
create table QRTZ_CALENDARS (
|
||||
sched_name varchar(120) not null comment '调度名称',
|
||||
calendar_name varchar(200) not null comment '日历名称',
|
||||
calendar blob not null comment '存放持久化calendar对象',
|
||||
primary key (sched_name, calendar_name)
|
||||
) engine=innodb comment = '日历信息表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 7、 存储已暂停的 Trigger 组的信息
|
||||
-- ----------------------------
|
||||
create table QRTZ_PAUSED_TRIGGER_GRPS (
|
||||
sched_name varchar(120) not null comment '调度名称',
|
||||
trigger_group varchar(200) not null comment 'qrtz_triggers表trigger_group的外键',
|
||||
primary key (sched_name, trigger_group)
|
||||
) engine=innodb comment = '暂停的触发器表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 8、 存储与已触发的 Trigger 相关的状态信息,以及相联 Job 的执行信息
|
||||
-- ----------------------------
|
||||
create table QRTZ_FIRED_TRIGGERS (
|
||||
sched_name varchar(120) not null comment '调度名称',
|
||||
entry_id varchar(95) not null comment '调度器实例id',
|
||||
trigger_name varchar(200) not null comment 'qrtz_triggers表trigger_name的外键',
|
||||
trigger_group varchar(200) not null comment 'qrtz_triggers表trigger_group的外键',
|
||||
instance_name varchar(200) not null comment '调度器实例名',
|
||||
fired_time bigint(13) not null comment '触发的时间',
|
||||
sched_time bigint(13) not null comment '定时器制定的时间',
|
||||
priority integer not null comment '优先级',
|
||||
state varchar(16) not null comment '状态',
|
||||
job_name varchar(200) null comment '任务名称',
|
||||
job_group varchar(200) null comment '任务组名',
|
||||
is_nonconcurrent varchar(1) null comment '是否并发',
|
||||
requests_recovery varchar(1) null comment '是否接受恢复执行',
|
||||
primary key (sched_name, entry_id)
|
||||
) engine=innodb comment = '已触发的触发器表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 9、 存储少量的有关 Scheduler 的状态信息,假如是用于集群中,可以看到其他的 Scheduler 实例
|
||||
-- ----------------------------
|
||||
create table QRTZ_SCHEDULER_STATE (
|
||||
sched_name varchar(120) not null comment '调度名称',
|
||||
instance_name varchar(200) not null comment '实例名称',
|
||||
last_checkin_time bigint(13) not null comment '上次检查时间',
|
||||
checkin_interval bigint(13) not null comment '检查间隔时间',
|
||||
primary key (sched_name, instance_name)
|
||||
) engine=innodb comment = '调度器状态表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 10、 存储程序的悲观锁的信息(假如使用了悲观锁)
|
||||
-- ----------------------------
|
||||
create table QRTZ_LOCKS (
|
||||
sched_name varchar(120) not null comment '调度名称',
|
||||
lock_name varchar(40) not null comment '悲观锁名称',
|
||||
primary key (sched_name, lock_name)
|
||||
) engine=innodb comment = '存储的悲观锁信息表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 11、 Quartz集群实现同步机制的行锁表
|
||||
-- ----------------------------
|
||||
create table QRTZ_SIMPROP_TRIGGERS (
|
||||
sched_name varchar(120) not null comment '调度名称',
|
||||
trigger_name varchar(200) not null comment 'qrtz_triggers表trigger_name的外键',
|
||||
trigger_group varchar(200) not null comment 'qrtz_triggers表trigger_group的外键',
|
||||
str_prop_1 varchar(512) null comment 'String类型的trigger的第一个参数',
|
||||
str_prop_2 varchar(512) null comment 'String类型的trigger的第二个参数',
|
||||
str_prop_3 varchar(512) null comment 'String类型的trigger的第三个参数',
|
||||
int_prop_1 int null comment 'int类型的trigger的第一个参数',
|
||||
int_prop_2 int null comment 'int类型的trigger的第二个参数',
|
||||
long_prop_1 bigint null comment 'long类型的trigger的第一个参数',
|
||||
long_prop_2 bigint null comment 'long类型的trigger的第二个参数',
|
||||
dec_prop_1 numeric(13,4) null comment 'decimal类型的trigger的第一个参数',
|
||||
dec_prop_2 numeric(13,4) null comment 'decimal类型的trigger的第二个参数',
|
||||
bool_prop_1 varchar(1) null comment 'Boolean类型的trigger的第一个参数',
|
||||
bool_prop_2 varchar(1) null comment 'Boolean类型的trigger的第二个参数',
|
||||
primary key (sched_name, trigger_name, trigger_group),
|
||||
foreign key (sched_name, trigger_name, trigger_group) references QRTZ_TRIGGERS(sched_name, trigger_name, trigger_group)
|
||||
) engine=innodb comment = '同步机制的行锁表';
|
||||
|
||||
commit;
|
||||
1100
sql/ry-cloud.sql
1100
sql/ry-cloud.sql
File diff suppressed because it is too large
Load Diff
@@ -1,295 +0,0 @@
|
||||
/*
|
||||
Navicat Premium Data Transfer
|
||||
|
||||
Source Server : mysql
|
||||
Source Server Type : MySQL
|
||||
Source Server Version : 80023
|
||||
Source Host : localhost:3306
|
||||
Source Schema : ry-config
|
||||
|
||||
Target Server Type : MySQL
|
||||
Target Server Version : 80023
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 10/06/2024 11:56:59
|
||||
*/
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for config_info
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `config_info`;
|
||||
CREATE TABLE `config_info` (
|
||||
`id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
|
||||
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'content',
|
||||
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'md5',
|
||||
`gmt_create` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
|
||||
`gmt_modified` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '修改时间',
|
||||
`src_user` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT 'source user',
|
||||
`src_ip` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'source ip',
|
||||
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT '租户字段',
|
||||
`c_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
|
||||
`c_use` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
|
||||
`effect` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
|
||||
`type` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
|
||||
`c_schema` text CHARACTER SET utf8 COLLATE utf8_bin NULL,
|
||||
`encrypted_data_key` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT '秘钥',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_configinfo_datagrouptenant`(`data_id`, `group_id`, `tenant_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'config_info' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of config_info
|
||||
-- ----------------------------
|
||||
INSERT INTO `config_info` VALUES (1, 'application-dev.yml', 'DEFAULT_GROUP', 'spring:\n autoconfigure:\n exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure\n mvc:\n pathmatch:\n matching-strategy: ant_path_matcher\n\n# feign 配置\nfeign:\n sentinel:\n enabled: true\n okhttp:\n enabled: true\n httpclient:\n enabled: false\n client:\n config:\n default:\n connectTimeout: 10000\n readTimeout: 10000\n compression:\n request:\n enabled: true\n min-request-size: 8192\n response:\n enabled: true\n\n# 暴露监控端点\nmanagement:\n endpoints:\n web:\n exposure:\n include: \'*\'\n', '58dde4e3760499d3bac2d77a3a1e9018', '2020-05-20 12:00:00', '2023-12-04 08:08:23', 'nacos', '0:0:0:0:0:0:0:1', '', '', '通用配置', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (2, 'ruoyi-gateway-dev.yml', 'DEFAULT_GROUP', 'spring:\n redis:\n host: localhost\n port: 6379\n password:\n cloud:\n gateway:\n discovery:\n locator:\n lowerCaseServiceId: true\n enabled: true\n routes:\n # 认证中心\n - id: ruoyi-auth\n uri: lb://ruoyi-auth\n predicates:\n - Path=/auth/**\n filters:\n # 验证码处理\n - CacheRequestFilter\n - ValidateCodeFilter\n - StripPrefix=1\n # 代码生成\n - id: ruoyi-gen\n uri: lb://ruoyi-gen\n predicates:\n - Path=/code/**\n filters:\n - StripPrefix=1\n # 定时任务\n - id: ruoyi-job\n uri: lb://ruoyi-job\n predicates:\n - Path=/schedule/**\n filters:\n - StripPrefix=1\n # 系统模块\n - id: ruoyi-system\n uri: lb://ruoyi-system\n predicates:\n - Path=/system/**\n filters:\n - StripPrefix=1\n # 文件服务\n - id: ruoyi-file\n uri: lb://ruoyi-file\n predicates:\n - Path=/file/**\n filters:\n - StripPrefix=1\n\n# 安全配置\nsecurity:\n # 验证码\n captcha:\n enabled: true\n type: math\n # 防止XSS攻击\n xss:\n enabled: true\n excludeUrls:\n - /system/notice\n # 不校验白名单\n ignore:\n whites:\n - /auth/logout\n - /auth/login\n - /auth/register\n - /*/v2/api-docs\n - /csrf\n', '57cec5abd0e0a6b77d853750344a9dc0', '2020-05-14 14:17:55', '2022-09-29 02:48:32', 'nacos', '0:0:0:0:0:0:0:1', '', '', '网关模块', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (3, 'ruoyi-auth-dev.yml', 'DEFAULT_GROUP', 'spring:\n redis:\n host: localhost\n port: 6379\n password:\n', '8bd9dada9a94822feeab40de55efced6', '2020-11-20 00:00:00', '2022-09-29 02:48:42', 'nacos', '0:0:0:0:0:0:0:1', '', '', '认证中心', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (4, 'ruoyi-monitor-dev.yml', 'DEFAULT_GROUP', '# spring\nspring:\n security:\n user:\n name: ruoyi\n password: 123456\n boot:\n admin:\n ui:\n title: 若依服务状态监控\n', '6f122fd2bfb8d45f858e7d6529a9cd44', '2020-11-20 00:00:00', '2022-09-29 02:48:54', 'nacos', '0:0:0:0:0:0:0:1', '', '', '监控中心', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (5, 'ruoyi-system-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.ruoyi.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By ruoyi\n licenseUrl: https://ruoyi.vip', 'e0b2d5062c85cae4cb98484ab9bd888b', '2020-11-20 00:00:00', '2024-05-09 13:13:47', NULL, '192.168.1.7', '', '', '系统模块', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (6, 'ruoyi-gen-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.ruoyi.gen.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 代码生成接口文档\n license: Powered By ruoyi\n licenseUrl: https://ruoyi.vip\n\n# 代码生成\ngen:\n # 作者\n author: ruoyi\n # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool\n packageName: com.ruoyi.system\n # 自动去除表前缀,默认是false\n autoRemovePre: false\n # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)\n tablePrefix: sys_\n', 'eb592420b3fceae1402881887b8a6a0d', '2020-11-20 00:00:00', '2022-09-29 02:49:42', 'nacos', '0:0:0:0:0:0:0:1', '', '', '代码生成', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (7, 'ruoyi-job-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password: \n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.ruoyi.job.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 定时任务接口文档\n license: Powered By ruoyi\n licenseUrl: https://ruoyi.vip\n', 'edcf0e3fe13fea07b4ec08b1088f30b3', '2020-11-20 00:00:00', '2022-09-29 02:50:50', 'nacos', '0:0:0:0:0:0:0:1', '', '', '定时任务', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (8, 'ruoyi-file-dev.yml', 'DEFAULT_GROUP', '# 本地文件上传 \r\nfile:\r\n domain: http://127.0.0.1:9300\r\n path: D:/ruoyi/uploadPath\r\n prefix: /statics\r\n\r\n# FastDFS配置\r\nfdfs:\r\n domain: http://8.129.231.12\r\n soTimeout: 3000\r\n connectTimeout: 2000\r\n trackerList: 8.129.231.12:22122\r\n\r\n# Minio配置\r\nminio:\r\n url: http://8.129.231.12:9000\r\n accessKey: minioadmin\r\n secretKey: minioadmin\r\n bucketName: test', '5382b93f3d8059d6068c0501fdd41195', '2020-11-20 00:00:00', '2020-12-21 21:01:59', NULL, '0:0:0:0:0:0:0:1', '', '', '文件服务', 'null', 'null', 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (9, 'sentinel-ruoyi-gateway', 'DEFAULT_GROUP', '[\r\n {\r\n \"resource\": \"ruoyi-auth\",\r\n \"count\": 500,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"ruoyi-system\",\r\n \"count\": 1000,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"ruoyi-gen\",\r\n \"count\": 200,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"ruoyi-job\",\r\n \"count\": 300,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n }\r\n]', '9f3a3069261598f74220bc47958ec252', '2020-11-20 00:00:00', '2020-11-20 00:00:00', NULL, '0:0:0:0:0:0:0:1', '', '', '限流策略', 'null', 'null', 'json', NULL, '');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for config_info_aggr
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `config_info_aggr`;
|
||||
CREATE TABLE `config_info_aggr` (
|
||||
`id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
|
||||
`datum_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'datum_id',
|
||||
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '内容',
|
||||
`gmt_modified` datetime(0) NOT NULL COMMENT '修改时间',
|
||||
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT '租户字段',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_configinfoaggr_datagrouptenantdatum`(`data_id`, `group_id`, `tenant_id`, `datum_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '增加租户字段' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of config_info_aggr
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for config_info_beta
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `config_info_beta`;
|
||||
CREATE TABLE `config_info_beta` (
|
||||
`id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
|
||||
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'app_name',
|
||||
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'content',
|
||||
`beta_ips` varchar(1024) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'betaIps',
|
||||
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'md5',
|
||||
`gmt_create` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
|
||||
`gmt_modified` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '修改时间',
|
||||
`src_user` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT 'source user',
|
||||
`src_ip` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'source ip',
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT '租户字段',
|
||||
`encrypted_data_key` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT '秘钥',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_configinfobeta_datagrouptenant`(`data_id`, `group_id`, `tenant_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'config_info_beta' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of config_info_beta
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for config_info_tag
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `config_info_tag`;
|
||||
CREATE TABLE `config_info_tag` (
|
||||
`id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT 'tenant_id',
|
||||
`tag_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'tag_id',
|
||||
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'app_name',
|
||||
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'content',
|
||||
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'md5',
|
||||
`gmt_create` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
|
||||
`gmt_modified` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '修改时间',
|
||||
`src_user` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT 'source user',
|
||||
`src_ip` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'source ip',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_configinfotag_datagrouptenanttag`(`data_id`, `group_id`, `tenant_id`, `tag_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'config_info_tag' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of config_info_tag
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for config_tags_relation
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `config_tags_relation`;
|
||||
CREATE TABLE `config_tags_relation` (
|
||||
`id` bigint(0) NOT NULL COMMENT 'id',
|
||||
`tag_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'tag_name',
|
||||
`tag_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'tag_type',
|
||||
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT 'tenant_id',
|
||||
`nid` bigint(0) NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY (`nid`) USING BTREE,
|
||||
UNIQUE INDEX `uk_configtagrelation_configidtag`(`id`, `tag_name`, `tag_type`) USING BTREE,
|
||||
INDEX `idx_tenant_id`(`tenant_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'config_tag_relation' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of config_tags_relation
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for group_capacity
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `group_capacity`;
|
||||
CREATE TABLE `group_capacity` (
|
||||
`id` bigint(0) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'Group ID,空字符表示整个集群',
|
||||
`quota` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '配额,0表示使用默认值',
|
||||
`usage` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '使用量',
|
||||
`max_size` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '单个配置大小上限,单位为字节,0表示使用默认值',
|
||||
`max_aggr_count` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '聚合子配置最大个数,,0表示使用默认值',
|
||||
`max_aggr_size` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值',
|
||||
`max_history_count` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最大变更历史数量',
|
||||
`gmt_create` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
|
||||
`gmt_modified` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_group_id`(`group_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '集群、各Group容量信息表' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of group_capacity
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for his_config_info
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `his_config_info`;
|
||||
CREATE TABLE `his_config_info` (
|
||||
`id` bigint(0) UNSIGNED NOT NULL,
|
||||
`nid` bigint(0) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
|
||||
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
|
||||
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'app_name',
|
||||
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
|
||||
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
|
||||
`gmt_create` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||
`gmt_modified` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||
`src_user` text CHARACTER SET utf8 COLLATE utf8_bin NULL,
|
||||
`src_ip` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
|
||||
`op_type` char(10) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT '租户字段',
|
||||
`encrypted_data_key` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT '秘钥',
|
||||
PRIMARY KEY (`nid`) USING BTREE,
|
||||
INDEX `idx_gmt_create`(`gmt_create`) USING BTREE,
|
||||
INDEX `idx_gmt_modified`(`gmt_modified`) USING BTREE,
|
||||
INDEX `idx_did`(`data_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '多租户改造' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of his_config_info
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for permissions
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `permissions`;
|
||||
CREATE TABLE `permissions` (
|
||||
`role` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
||||
`resource` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
||||
`action` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
||||
UNIQUE INDEX `uk_role_permission`(`role`, `resource`, `action`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of permissions
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for roles
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `roles`;
|
||||
CREATE TABLE `roles` (
|
||||
`username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
||||
`role` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
||||
UNIQUE INDEX `idx_user_role`(`username`, `role`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of roles
|
||||
-- ----------------------------
|
||||
INSERT INTO `roles` VALUES ('nacos', 'ROLE_ADMIN');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for tenant_capacity
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `tenant_capacity`;
|
||||
CREATE TABLE `tenant_capacity` (
|
||||
`id` bigint(0) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'Tenant ID',
|
||||
`quota` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '配额,0表示使用默认值',
|
||||
`usage` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '使用量',
|
||||
`max_size` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '单个配置大小上限,单位为字节,0表示使用默认值',
|
||||
`max_aggr_count` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '聚合子配置最大个数',
|
||||
`max_aggr_size` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值',
|
||||
`max_history_count` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最大变更历史数量',
|
||||
`gmt_create` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
|
||||
`gmt_modified` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_tenant_id`(`tenant_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '租户容量信息表' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of tenant_capacity
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for tenant_info
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `tenant_info`;
|
||||
CREATE TABLE `tenant_info` (
|
||||
`id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`kp` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'kp',
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT 'tenant_id',
|
||||
`tenant_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT 'tenant_name',
|
||||
`tenant_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'tenant_desc',
|
||||
`create_source` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'create_source',
|
||||
`gmt_create` bigint(0) NOT NULL COMMENT '创建时间',
|
||||
`gmt_modified` bigint(0) NOT NULL COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_tenant_info_kptenantid`(`kp`, `tenant_id`) USING BTREE,
|
||||
INDEX `idx_tenant_id`(`tenant_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'tenant_info' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of tenant_info
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for users
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `users`;
|
||||
CREATE TABLE `users` (
|
||||
`username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
||||
`password` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
||||
`enabled` tinyint(1) NOT NULL,
|
||||
PRIMARY KEY (`username`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of users
|
||||
-- ----------------------------
|
||||
INSERT INTO `users` VALUES ('nacos', '$2a$10$EuWPZHzz32dJN7jexM34MOeYirDdFAZm2kuWj7VEOJhhZkDrxfvUu', 1);
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
@@ -1,696 +0,0 @@
|
||||
SET NAMES utf8mb4;
|
||||
|
||||
-- ----------------------------
|
||||
-- 1、部门表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_dept;
|
||||
create table sys_dept (
|
||||
dept_id bigint(20) not null auto_increment comment '部门id',
|
||||
parent_id bigint(20) default 0 comment '父部门id',
|
||||
ancestors varchar(50) default '' comment '祖级列表',
|
||||
dept_name varchar(30) default '' comment '部门名称',
|
||||
order_num int(4) default 0 comment '显示顺序',
|
||||
leader varchar(20) default null comment '负责人',
|
||||
phone varchar(11) default null comment '联系电话',
|
||||
email varchar(50) default null comment '邮箱',
|
||||
status char(1) default '0' comment '部门状态(0正常 1停用)',
|
||||
del_flag char(1) default '0' comment '删除标志(0代表存在 2代表删除)',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
primary key (dept_id)
|
||||
) engine=innodb auto_increment=200 comment = '部门表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-部门表数据
|
||||
-- ----------------------------
|
||||
insert into sys_dept values(100, 0, '0', '若依科技', 0, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null);
|
||||
insert into sys_dept values(101, 100, '0,100', '深圳总公司', 1, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null);
|
||||
insert into sys_dept values(102, 100, '0,100', '长沙分公司', 2, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null);
|
||||
insert into sys_dept values(103, 101, '0,100,101', '研发部门', 1, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null);
|
||||
insert into sys_dept values(104, 101, '0,100,101', '市场部门', 2, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null);
|
||||
insert into sys_dept values(105, 101, '0,100,101', '测试部门', 3, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null);
|
||||
insert into sys_dept values(106, 101, '0,100,101', '财务部门', 4, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null);
|
||||
insert into sys_dept values(107, 101, '0,100,101', '运维部门', 5, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null);
|
||||
insert into sys_dept values(108, 102, '0,100,102', '市场部门', 1, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null);
|
||||
insert into sys_dept values(109, 102, '0,100,102', '财务部门', 2, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null);
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 2、用户信息表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_user;
|
||||
create table sys_user (
|
||||
user_id bigint(20) not null auto_increment comment '用户ID',
|
||||
dept_id bigint(20) default null comment '部门ID',
|
||||
user_name varchar(30) not null comment '用户账号',
|
||||
nick_name varchar(30) not null comment '用户昵称',
|
||||
user_type varchar(2) default '00' comment '用户类型(00系统用户)',
|
||||
email varchar(50) default '' comment '用户邮箱',
|
||||
phonenumber varchar(11) default '' comment '手机号码',
|
||||
sex char(1) default '0' comment '用户性别(0男 1女 2未知)',
|
||||
avatar varchar(100) default '' comment '头像地址',
|
||||
password varchar(100) default '' comment '密码',
|
||||
status char(1) default '0' comment '帐号状态(0正常 1停用)',
|
||||
del_flag char(1) default '0' comment '删除标志(0代表存在 2代表删除)',
|
||||
login_ip varchar(128) default '' comment '最后登录IP',
|
||||
login_date datetime comment '最后登录时间',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
remark varchar(500) default null comment '备注',
|
||||
primary key (user_id)
|
||||
) engine=innodb auto_increment=100 comment = '用户信息表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-用户信息表数据
|
||||
-- ----------------------------
|
||||
insert into sys_user values(1, 103, 'admin', '若依', '00', 'ry@163.com', '15888888888', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', sysdate(), 'admin', sysdate(), '', null, '管理员');
|
||||
insert into sys_user values(2, 105, 'ry', '若依', '00', 'ry@qq.com', '15666666666', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', sysdate(), 'admin', sysdate(), '', null, '测试员');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 3、岗位信息表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_post;
|
||||
create table sys_post
|
||||
(
|
||||
post_id bigint(20) not null auto_increment comment '岗位ID',
|
||||
post_code varchar(64) not null comment '岗位编码',
|
||||
post_name varchar(50) not null comment '岗位名称',
|
||||
post_sort int(4) not null comment '显示顺序',
|
||||
status char(1) not null comment '状态(0正常 1停用)',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
remark varchar(500) default null comment '备注',
|
||||
primary key (post_id)
|
||||
) engine=innodb comment = '岗位信息表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-岗位信息表数据
|
||||
-- ----------------------------
|
||||
insert into sys_post values(1, 'ceo', '董事长', 1, '0', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_post values(2, 'se', '项目经理', 2, '0', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_post values(3, 'hr', '人力资源', 3, '0', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_post values(4, 'user', '普通员工', 4, '0', 'admin', sysdate(), '', null, '');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 4、角色信息表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_role;
|
||||
create table sys_role (
|
||||
role_id bigint(20) not null auto_increment comment '角色ID',
|
||||
role_name varchar(30) not null comment '角色名称',
|
||||
role_key varchar(100) not null comment '角色权限字符串',
|
||||
role_sort int(4) not null comment '显示顺序',
|
||||
data_scope char(1) default '1' comment '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)',
|
||||
menu_check_strictly tinyint(1) default 1 comment '菜单树选择项是否关联显示',
|
||||
dept_check_strictly tinyint(1) default 1 comment '部门树选择项是否关联显示',
|
||||
status char(1) not null comment '角色状态(0正常 1停用)',
|
||||
del_flag char(1) default '0' comment '删除标志(0代表存在 2代表删除)',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
remark varchar(500) default null comment '备注',
|
||||
primary key (role_id)
|
||||
) engine=innodb auto_increment=100 comment = '角色信息表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-角色信息表数据
|
||||
-- ----------------------------
|
||||
insert into sys_role values('1', '超级管理员', 'admin', 1, 1, 1, 1, '0', '0', 'admin', sysdate(), '', null, '超级管理员');
|
||||
insert into sys_role values('2', '普通角色', 'common', 2, 2, 1, 1, '0', '0', 'admin', sysdate(), '', null, '普通角色');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 5、菜单权限表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_menu;
|
||||
create table sys_menu (
|
||||
menu_id bigint(20) not null auto_increment comment '菜单ID',
|
||||
menu_name varchar(50) not null comment '菜单名称',
|
||||
parent_id bigint(20) default 0 comment '父菜单ID',
|
||||
order_num int(4) default 0 comment '显示顺序',
|
||||
path varchar(200) default '' comment '路由地址',
|
||||
component varchar(255) default null comment '组件路径',
|
||||
query varchar(255) default null comment '路由参数',
|
||||
is_frame int(1) default 1 comment '是否为外链(0是 1否)',
|
||||
is_cache int(1) default 0 comment '是否缓存(0缓存 1不缓存)',
|
||||
menu_type char(1) default '' comment '菜单类型(M目录 C菜单 F按钮)',
|
||||
visible char(1) default 0 comment '菜单状态(0显示 1隐藏)',
|
||||
status char(1) default 0 comment '菜单状态(0正常 1停用)',
|
||||
perms varchar(100) default null comment '权限标识',
|
||||
icon varchar(100) default '#' comment '菜单图标',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
remark varchar(500) default '' comment '备注',
|
||||
primary key (menu_id)
|
||||
) engine=innodb auto_increment=2000 comment = '菜单权限表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-菜单信息表数据
|
||||
-- ----------------------------
|
||||
-- 一级菜单
|
||||
insert into sys_menu values('1', '系统管理', '0', '1', 'system', null, '', 1, 0, 'M', '0', '0', '', 'system', 'admin', sysdate(), '', null, '系统管理目录');
|
||||
insert into sys_menu values('2', '系统监控', '0', '2', 'monitor', null, '', 1, 0, 'M', '0', '0', '', 'monitor', 'admin', sysdate(), '', null, '系统监控目录');
|
||||
insert into sys_menu values('3', '系统工具', '0', '3', 'tool', null, '', 1, 0, 'M', '0', '0', '', 'tool', 'admin', sysdate(), '', null, '系统工具目录');
|
||||
insert into sys_menu values('4', '若依官网', '0', '4', 'http://ruoyi.vip', null, '', 0, 0, 'M', '0', '0', '', 'guide', 'admin', sysdate(), '', null, '若依官网地址');
|
||||
-- 二级菜单
|
||||
insert into sys_menu values('100', '用户管理', '1', '1', 'user', 'system/user/index', '', 1, 0, 'C', '0', '0', 'system:user:list', 'user', 'admin', sysdate(), '', null, '用户管理菜单');
|
||||
insert into sys_menu values('101', '角色管理', '1', '2', 'role', 'system/role/index', '', 1, 0, 'C', '0', '0', 'system:role:list', 'peoples', 'admin', sysdate(), '', null, '角色管理菜单');
|
||||
insert into sys_menu values('102', '菜单管理', '1', '3', 'menu', 'system/menu/index', '', 1, 0, 'C', '0', '0', 'system:menu:list', 'tree-table', 'admin', sysdate(), '', null, '菜单管理菜单');
|
||||
insert into sys_menu values('103', '部门管理', '1', '4', 'dept', 'system/dept/index', '', 1, 0, 'C', '0', '0', 'system:dept:list', 'tree', 'admin', sysdate(), '', null, '部门管理菜单');
|
||||
insert into sys_menu values('104', '岗位管理', '1', '5', 'post', 'system/post/index', '', 1, 0, 'C', '0', '0', 'system:post:list', 'post', 'admin', sysdate(), '', null, '岗位管理菜单');
|
||||
insert into sys_menu values('105', '字典管理', '1', '6', 'dict', 'system/dict/index', '', 1, 0, 'C', '0', '0', 'system:dict:list', 'dict', 'admin', sysdate(), '', null, '字典管理菜单');
|
||||
insert into sys_menu values('106', '参数设置', '1', '7', 'config', 'system/config/index', '', 1, 0, 'C', '0', '0', 'system:config:list', 'edit', 'admin', sysdate(), '', null, '参数设置菜单');
|
||||
insert into sys_menu values('107', '通知公告', '1', '8', 'notice', 'system/notice/index', '', 1, 0, 'C', '0', '0', 'system:notice:list', 'message', 'admin', sysdate(), '', null, '通知公告菜单');
|
||||
insert into sys_menu values('108', '日志管理', '1', '9', 'log', '', '', 1, 0, 'M', '0', '0', '', 'log', 'admin', sysdate(), '', null, '日志管理菜单');
|
||||
insert into sys_menu values('109', '在线用户', '2', '1', 'online', 'monitor/online/index', '', 1, 0, 'C', '0', '0', 'monitor:online:list', 'online', 'admin', sysdate(), '', null, '在线用户菜单');
|
||||
insert into sys_menu values('110', '定时任务', '2', '2', 'job', 'monitor/job/index', '', 1, 0, 'C', '0', '0', 'monitor:job:list', 'job', 'admin', sysdate(), '', null, '定时任务菜单');
|
||||
insert into sys_menu values('111', 'Sentinel控制台', '2', '3', 'http://localhost:8718', '', '', 0, 0, 'C', '0', '0', 'monitor:sentinel:list', 'sentinel', 'admin', sysdate(), '', null, '流量控制菜单');
|
||||
insert into sys_menu values('112', 'Nacos控制台', '2', '4', 'http://localhost:8848/nacos', '', '', 0, 0, 'C', '0', '0', 'monitor:nacos:list', 'nacos', 'admin', sysdate(), '', null, '服务治理菜单');
|
||||
insert into sys_menu values('113', 'Admin控制台', '2', '5', 'http://localhost:9100/login', '', '', 0, 0, 'C', '0', '0', 'monitor:server:list', 'server', 'admin', sysdate(), '', null, '服务监控菜单');
|
||||
insert into sys_menu values('114', '表单构建', '3', '1', 'build', 'tool/build/index', '', 1, 0, 'C', '0', '0', 'tool:build:list', 'build', 'admin', sysdate(), '', null, '表单构建菜单');
|
||||
insert into sys_menu values('115', '代码生成', '3', '2', 'gen', 'tool/gen/index', '', 1, 0, 'C', '0', '0', 'tool:gen:list', 'code', 'admin', sysdate(), '', null, '代码生成菜单');
|
||||
insert into sys_menu values('116', '系统接口', '3', '3', 'http://localhost:8080/swagger-ui/index.html', '', '', 0, 0, 'C', '0', '0', 'tool:swagger:list', 'swagger', 'admin', sysdate(), '', null, '系统接口菜单');
|
||||
-- 三级菜单
|
||||
insert into sys_menu values('500', '操作日志', '108', '1', 'operlog', 'system/operlog/index', '', 1, 0, 'C', '0', '0', 'system:operlog:list', 'form', 'admin', sysdate(), '', null, '操作日志菜单');
|
||||
insert into sys_menu values('501', '登录日志', '108', '2', 'logininfor', 'system/logininfor/index', '', 1, 0, 'C', '0', '0', 'system:logininfor:list', 'logininfor', 'admin', sysdate(), '', null, '登录日志菜单');
|
||||
-- 用户管理按钮
|
||||
insert into sys_menu values('1000', '用户查询', '100', '1', '', '', '', 1, 0, 'F', '0', '0', 'system:user:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1001', '用户新增', '100', '2', '', '', '', 1, 0, 'F', '0', '0', 'system:user:add', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1002', '用户修改', '100', '3', '', '', '', 1, 0, 'F', '0', '0', 'system:user:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1003', '用户删除', '100', '4', '', '', '', 1, 0, 'F', '0', '0', 'system:user:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1004', '用户导出', '100', '5', '', '', '', 1, 0, 'F', '0', '0', 'system:user:export', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1005', '用户导入', '100', '6', '', '', '', 1, 0, 'F', '0', '0', 'system:user:import', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1006', '重置密码', '100', '7', '', '', '', 1, 0, 'F', '0', '0', 'system:user:resetPwd', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 角色管理按钮
|
||||
insert into sys_menu values('1007', '角色查询', '101', '1', '', '', '', 1, 0, 'F', '0', '0', 'system:role:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1008', '角色新增', '101', '2', '', '', '', 1, 0, 'F', '0', '0', 'system:role:add', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1009', '角色修改', '101', '3', '', '', '', 1, 0, 'F', '0', '0', 'system:role:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1010', '角色删除', '101', '4', '', '', '', 1, 0, 'F', '0', '0', 'system:role:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1011', '角色导出', '101', '5', '', '', '', 1, 0, 'F', '0', '0', 'system:role:export', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 菜单管理按钮
|
||||
insert into sys_menu values('1012', '菜单查询', '102', '1', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1013', '菜单新增', '102', '2', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:add', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1014', '菜单修改', '102', '3', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1015', '菜单删除', '102', '4', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 部门管理按钮
|
||||
insert into sys_menu values('1016', '部门查询', '103', '1', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1017', '部门新增', '103', '2', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:add', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1018', '部门修改', '103', '3', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1019', '部门删除', '103', '4', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 岗位管理按钮
|
||||
insert into sys_menu values('1020', '岗位查询', '104', '1', '', '', '', 1, 0, 'F', '0', '0', 'system:post:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1021', '岗位新增', '104', '2', '', '', '', 1, 0, 'F', '0', '0', 'system:post:add', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1022', '岗位修改', '104', '3', '', '', '', 1, 0, 'F', '0', '0', 'system:post:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1023', '岗位删除', '104', '4', '', '', '', 1, 0, 'F', '0', '0', 'system:post:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1024', '岗位导出', '104', '5', '', '', '', 1, 0, 'F', '0', '0', 'system:post:export', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 字典管理按钮
|
||||
insert into sys_menu values('1025', '字典查询', '105', '1', '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1026', '字典新增', '105', '2', '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:add', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1027', '字典修改', '105', '3', '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1028', '字典删除', '105', '4', '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1029', '字典导出', '105', '5', '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:export', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 参数设置按钮
|
||||
insert into sys_menu values('1030', '参数查询', '106', '1', '#', '', '', 1, 0, 'F', '0', '0', 'system:config:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1031', '参数新增', '106', '2', '#', '', '', 1, 0, 'F', '0', '0', 'system:config:add', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1032', '参数修改', '106', '3', '#', '', '', 1, 0, 'F', '0', '0', 'system:config:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1033', '参数删除', '106', '4', '#', '', '', 1, 0, 'F', '0', '0', 'system:config:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1034', '参数导出', '106', '5', '#', '', '', 1, 0, 'F', '0', '0', 'system:config:export', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 通知公告按钮
|
||||
insert into sys_menu values('1035', '公告查询', '107', '1', '#', '', '', 1, 0, 'F', '0', '0', 'system:notice:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1036', '公告新增', '107', '2', '#', '', '', 1, 0, 'F', '0', '0', 'system:notice:add', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1037', '公告修改', '107', '3', '#', '', '', 1, 0, 'F', '0', '0', 'system:notice:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1038', '公告删除', '107', '4', '#', '', '', 1, 0, 'F', '0', '0', 'system:notice:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 操作日志按钮
|
||||
insert into sys_menu values('1039', '操作查询', '500', '1', '#', '', '', 1, 0, 'F', '0', '0', 'system:operlog:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1040', '操作删除', '500', '2', '#', '', '', 1, 0, 'F', '0', '0', 'system:operlog:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1041', '日志导出', '500', '3', '#', '', '', 1, 0, 'F', '0', '0', 'system:operlog:export', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 登录日志按钮
|
||||
insert into sys_menu values('1042', '登录查询', '501', '1', '#', '', '', 1, 0, 'F', '0', '0', 'system:logininfor:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1043', '登录删除', '501', '2', '#', '', '', 1, 0, 'F', '0', '0', 'system:logininfor:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1044', '日志导出', '501', '3', '#', '', '', 1, 0, 'F', '0', '0', 'system:logininfor:export', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1045', '账户解锁', '501', '4', '#', '', '', 1, 0, 'F', '0', '0', 'system:logininfor:unlock', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 在线用户按钮
|
||||
insert into sys_menu values('1046', '在线查询', '109', '1', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:online:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1047', '批量强退', '109', '2', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:online:batchLogout', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1048', '单条强退', '109', '3', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:online:forceLogout', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 定时任务按钮
|
||||
insert into sys_menu values('1049', '任务查询', '110', '1', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1050', '任务新增', '110', '2', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:add', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1051', '任务修改', '110', '3', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1052', '任务删除', '110', '4', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1053', '状态修改', '110', '5', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:changeStatus', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1054', '任务导出', '110', '6', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:export', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 代码生成按钮
|
||||
insert into sys_menu values('1055', '生成查询', '115', '1', '#', '', '', 1, 0, 'F', '0', '0', 'tool:gen:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1056', '生成修改', '115', '2', '#', '', '', 1, 0, 'F', '0', '0', 'tool:gen:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1057', '生成删除', '115', '3', '#', '', '', 1, 0, 'F', '0', '0', 'tool:gen:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1058', '导入代码', '115', '2', '#', '', '', 1, 0, 'F', '0', '0', 'tool:gen:import', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1059', '预览代码', '115', '4', '#', '', '', 1, 0, 'F', '0', '0', 'tool:gen:preview', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1060', '生成代码', '115', '5', '#', '', '', 1, 0, 'F', '0', '0', 'tool:gen:code', '#', 'admin', sysdate(), '', null, '');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 6、用户和角色关联表 用户N-1角色
|
||||
-- ----------------------------
|
||||
drop table if exists sys_user_role;
|
||||
create table sys_user_role (
|
||||
user_id bigint(20) not null comment '用户ID',
|
||||
role_id bigint(20) not null comment '角色ID',
|
||||
primary key(user_id, role_id)
|
||||
) engine=innodb comment = '用户和角色关联表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-用户和角色关联表数据
|
||||
-- ----------------------------
|
||||
insert into sys_user_role values ('1', '1');
|
||||
insert into sys_user_role values ('2', '2');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 7、角色和菜单关联表 角色1-N菜单
|
||||
-- ----------------------------
|
||||
drop table if exists sys_role_menu;
|
||||
create table sys_role_menu (
|
||||
role_id bigint(20) not null comment '角色ID',
|
||||
menu_id bigint(20) not null comment '菜单ID',
|
||||
primary key(role_id, menu_id)
|
||||
) engine=innodb comment = '角色和菜单关联表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-角色和菜单关联表数据
|
||||
-- ----------------------------
|
||||
insert into sys_role_menu values ('2', '1');
|
||||
insert into sys_role_menu values ('2', '2');
|
||||
insert into sys_role_menu values ('2', '3');
|
||||
insert into sys_role_menu values ('2', '4');
|
||||
insert into sys_role_menu values ('2', '100');
|
||||
insert into sys_role_menu values ('2', '101');
|
||||
insert into sys_role_menu values ('2', '102');
|
||||
insert into sys_role_menu values ('2', '103');
|
||||
insert into sys_role_menu values ('2', '104');
|
||||
insert into sys_role_menu values ('2', '105');
|
||||
insert into sys_role_menu values ('2', '106');
|
||||
insert into sys_role_menu values ('2', '107');
|
||||
insert into sys_role_menu values ('2', '108');
|
||||
insert into sys_role_menu values ('2', '109');
|
||||
insert into sys_role_menu values ('2', '110');
|
||||
insert into sys_role_menu values ('2', '111');
|
||||
insert into sys_role_menu values ('2', '112');
|
||||
insert into sys_role_menu values ('2', '113');
|
||||
insert into sys_role_menu values ('2', '114');
|
||||
insert into sys_role_menu values ('2', '115');
|
||||
insert into sys_role_menu values ('2', '116');
|
||||
insert into sys_role_menu values ('2', '500');
|
||||
insert into sys_role_menu values ('2', '501');
|
||||
insert into sys_role_menu values ('2', '1000');
|
||||
insert into sys_role_menu values ('2', '1001');
|
||||
insert into sys_role_menu values ('2', '1002');
|
||||
insert into sys_role_menu values ('2', '1003');
|
||||
insert into sys_role_menu values ('2', '1004');
|
||||
insert into sys_role_menu values ('2', '1005');
|
||||
insert into sys_role_menu values ('2', '1006');
|
||||
insert into sys_role_menu values ('2', '1007');
|
||||
insert into sys_role_menu values ('2', '1008');
|
||||
insert into sys_role_menu values ('2', '1009');
|
||||
insert into sys_role_menu values ('2', '1010');
|
||||
insert into sys_role_menu values ('2', '1011');
|
||||
insert into sys_role_menu values ('2', '1012');
|
||||
insert into sys_role_menu values ('2', '1013');
|
||||
insert into sys_role_menu values ('2', '1014');
|
||||
insert into sys_role_menu values ('2', '1015');
|
||||
insert into sys_role_menu values ('2', '1016');
|
||||
insert into sys_role_menu values ('2', '1017');
|
||||
insert into sys_role_menu values ('2', '1018');
|
||||
insert into sys_role_menu values ('2', '1019');
|
||||
insert into sys_role_menu values ('2', '1020');
|
||||
insert into sys_role_menu values ('2', '1021');
|
||||
insert into sys_role_menu values ('2', '1022');
|
||||
insert into sys_role_menu values ('2', '1023');
|
||||
insert into sys_role_menu values ('2', '1024');
|
||||
insert into sys_role_menu values ('2', '1025');
|
||||
insert into sys_role_menu values ('2', '1026');
|
||||
insert into sys_role_menu values ('2', '1027');
|
||||
insert into sys_role_menu values ('2', '1028');
|
||||
insert into sys_role_menu values ('2', '1029');
|
||||
insert into sys_role_menu values ('2', '1030');
|
||||
insert into sys_role_menu values ('2', '1031');
|
||||
insert into sys_role_menu values ('2', '1032');
|
||||
insert into sys_role_menu values ('2', '1033');
|
||||
insert into sys_role_menu values ('2', '1034');
|
||||
insert into sys_role_menu values ('2', '1035');
|
||||
insert into sys_role_menu values ('2', '1036');
|
||||
insert into sys_role_menu values ('2', '1037');
|
||||
insert into sys_role_menu values ('2', '1038');
|
||||
insert into sys_role_menu values ('2', '1039');
|
||||
insert into sys_role_menu values ('2', '1040');
|
||||
insert into sys_role_menu values ('2', '1041');
|
||||
insert into sys_role_menu values ('2', '1042');
|
||||
insert into sys_role_menu values ('2', '1043');
|
||||
insert into sys_role_menu values ('2', '1044');
|
||||
insert into sys_role_menu values ('2', '1045');
|
||||
insert into sys_role_menu values ('2', '1046');
|
||||
insert into sys_role_menu values ('2', '1047');
|
||||
insert into sys_role_menu values ('2', '1048');
|
||||
insert into sys_role_menu values ('2', '1049');
|
||||
insert into sys_role_menu values ('2', '1050');
|
||||
insert into sys_role_menu values ('2', '1051');
|
||||
insert into sys_role_menu values ('2', '1052');
|
||||
insert into sys_role_menu values ('2', '1053');
|
||||
insert into sys_role_menu values ('2', '1054');
|
||||
insert into sys_role_menu values ('2', '1055');
|
||||
insert into sys_role_menu values ('2', '1056');
|
||||
insert into sys_role_menu values ('2', '1057');
|
||||
insert into sys_role_menu values ('2', '1058');
|
||||
insert into sys_role_menu values ('2', '1059');
|
||||
insert into sys_role_menu values ('2', '1060');
|
||||
|
||||
-- ----------------------------
|
||||
-- 8、角色和部门关联表 角色1-N部门
|
||||
-- ----------------------------
|
||||
drop table if exists sys_role_dept;
|
||||
create table sys_role_dept (
|
||||
role_id bigint(20) not null comment '角色ID',
|
||||
dept_id bigint(20) not null comment '部门ID',
|
||||
primary key(role_id, dept_id)
|
||||
) engine=innodb comment = '角色和部门关联表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-角色和部门关联表数据
|
||||
-- ----------------------------
|
||||
insert into sys_role_dept values ('2', '100');
|
||||
insert into sys_role_dept values ('2', '101');
|
||||
insert into sys_role_dept values ('2', '105');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 9、用户与岗位关联表 用户1-N岗位
|
||||
-- ----------------------------
|
||||
drop table if exists sys_user_post;
|
||||
create table sys_user_post
|
||||
(
|
||||
user_id bigint(20) not null comment '用户ID',
|
||||
post_id bigint(20) not null comment '岗位ID',
|
||||
primary key (user_id, post_id)
|
||||
) engine=innodb comment = '用户与岗位关联表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-用户与岗位关联表数据
|
||||
-- ----------------------------
|
||||
insert into sys_user_post values ('1', '1');
|
||||
insert into sys_user_post values ('2', '2');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 10、操作日志记录
|
||||
-- ----------------------------
|
||||
drop table if exists sys_oper_log;
|
||||
create table sys_oper_log (
|
||||
oper_id bigint(20) not null auto_increment comment '日志主键',
|
||||
title varchar(50) default '' comment '模块标题',
|
||||
business_type int(2) default 0 comment '业务类型(0其它 1新增 2修改 3删除)',
|
||||
method varchar(100) default '' comment '方法名称',
|
||||
request_method varchar(10) default '' comment '请求方式',
|
||||
operator_type int(1) default 0 comment '操作类别(0其它 1后台用户 2手机端用户)',
|
||||
oper_name varchar(50) default '' comment '操作人员',
|
||||
dept_name varchar(50) default '' comment '部门名称',
|
||||
oper_url varchar(255) default '' comment '请求URL',
|
||||
oper_ip varchar(128) default '' comment '主机地址',
|
||||
oper_location varchar(255) default '' comment '操作地点',
|
||||
oper_param varchar(2000) default '' comment '请求参数',
|
||||
json_result varchar(2000) default '' comment '返回参数',
|
||||
status int(1) default 0 comment '操作状态(0正常 1异常)',
|
||||
error_msg varchar(2000) default '' comment '错误消息',
|
||||
oper_time datetime comment '操作时间',
|
||||
cost_time bigint(20) default 0 comment '消耗时间',
|
||||
primary key (oper_id),
|
||||
key idx_sys_oper_log_bt (business_type),
|
||||
key idx_sys_oper_log_s (status),
|
||||
key idx_sys_oper_log_ot (oper_time)
|
||||
) engine=innodb auto_increment=100 comment = '操作日志记录';
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 11、字典类型表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_dict_type;
|
||||
create table sys_dict_type
|
||||
(
|
||||
dict_id bigint(20) not null auto_increment comment '字典主键',
|
||||
dict_name varchar(100) default '' comment '字典名称',
|
||||
dict_type varchar(100) default '' comment '字典类型',
|
||||
status char(1) default '0' comment '状态(0正常 1停用)',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
remark varchar(500) default null comment '备注',
|
||||
primary key (dict_id),
|
||||
unique (dict_type)
|
||||
) engine=innodb auto_increment=100 comment = '字典类型表';
|
||||
|
||||
insert into sys_dict_type values(1, '用户性别', 'sys_user_sex', '0', 'admin', sysdate(), '', null, '用户性别列表');
|
||||
insert into sys_dict_type values(2, '菜单状态', 'sys_show_hide', '0', 'admin', sysdate(), '', null, '菜单状态列表');
|
||||
insert into sys_dict_type values(3, '系统开关', 'sys_normal_disable', '0', 'admin', sysdate(), '', null, '系统开关列表');
|
||||
insert into sys_dict_type values(4, '任务状态', 'sys_job_status', '0', 'admin', sysdate(), '', null, '任务状态列表');
|
||||
insert into sys_dict_type values(5, '任务分组', 'sys_job_group', '0', 'admin', sysdate(), '', null, '任务分组列表');
|
||||
insert into sys_dict_type values(6, '系统是否', 'sys_yes_no', '0', 'admin', sysdate(), '', null, '系统是否列表');
|
||||
insert into sys_dict_type values(7, '通知类型', 'sys_notice_type', '0', 'admin', sysdate(), '', null, '通知类型列表');
|
||||
insert into sys_dict_type values(8, '通知状态', 'sys_notice_status', '0', 'admin', sysdate(), '', null, '通知状态列表');
|
||||
insert into sys_dict_type values(9, '操作类型', 'sys_oper_type', '0', 'admin', sysdate(), '', null, '操作类型列表');
|
||||
insert into sys_dict_type values(10, '系统状态', 'sys_common_status', '0', 'admin', sysdate(), '', null, '登录状态列表');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 12、字典数据表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_dict_data;
|
||||
create table sys_dict_data
|
||||
(
|
||||
dict_code bigint(20) not null auto_increment comment '字典编码',
|
||||
dict_sort int(4) default 0 comment '字典排序',
|
||||
dict_label varchar(100) default '' comment '字典标签',
|
||||
dict_value varchar(100) default '' comment '字典键值',
|
||||
dict_type varchar(100) default '' comment '字典类型',
|
||||
css_class varchar(100) default null comment '样式属性(其他样式扩展)',
|
||||
list_class varchar(100) default null comment '表格回显样式',
|
||||
is_default char(1) default 'N' comment '是否默认(Y是 N否)',
|
||||
status char(1) default '0' comment '状态(0正常 1停用)',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
remark varchar(500) default null comment '备注',
|
||||
primary key (dict_code)
|
||||
) engine=innodb auto_increment=100 comment = '字典数据表';
|
||||
|
||||
insert into sys_dict_data values(1, 1, '男', '0', 'sys_user_sex', '', '', 'Y', '0', 'admin', sysdate(), '', null, '性别男');
|
||||
insert into sys_dict_data values(2, 2, '女', '1', 'sys_user_sex', '', '', 'N', '0', 'admin', sysdate(), '', null, '性别女');
|
||||
insert into sys_dict_data values(3, 3, '未知', '2', 'sys_user_sex', '', '', 'N', '0', 'admin', sysdate(), '', null, '性别未知');
|
||||
insert into sys_dict_data values(4, 1, '显示', '0', 'sys_show_hide', '', 'primary', 'Y', '0', 'admin', sysdate(), '', null, '显示菜单');
|
||||
insert into sys_dict_data values(5, 2, '隐藏', '1', 'sys_show_hide', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '隐藏菜单');
|
||||
insert into sys_dict_data values(6, 1, '正常', '0', 'sys_normal_disable', '', 'primary', 'Y', '0', 'admin', sysdate(), '', null, '正常状态');
|
||||
insert into sys_dict_data values(7, 2, '停用', '1', 'sys_normal_disable', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '停用状态');
|
||||
insert into sys_dict_data values(8, 1, '正常', '0', 'sys_job_status', '', 'primary', 'Y', '0', 'admin', sysdate(), '', null, '正常状态');
|
||||
insert into sys_dict_data values(9, 2, '暂停', '1', 'sys_job_status', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '停用状态');
|
||||
insert into sys_dict_data values(10, 1, '默认', 'DEFAULT', 'sys_job_group', '', '', 'Y', '0', 'admin', sysdate(), '', null, '默认分组');
|
||||
insert into sys_dict_data values(11, 2, '系统', 'SYSTEM', 'sys_job_group', '', '', 'N', '0', 'admin', sysdate(), '', null, '系统分组');
|
||||
insert into sys_dict_data values(12, 1, '是', 'Y', 'sys_yes_no', '', 'primary', 'Y', '0', 'admin', sysdate(), '', null, '系统默认是');
|
||||
insert into sys_dict_data values(13, 2, '否', 'N', 'sys_yes_no', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '系统默认否');
|
||||
insert into sys_dict_data values(14, 1, '通知', '1', 'sys_notice_type', '', 'warning', 'Y', '0', 'admin', sysdate(), '', null, '通知');
|
||||
insert into sys_dict_data values(15, 2, '公告', '2', 'sys_notice_type', '', 'success', 'N', '0', 'admin', sysdate(), '', null, '公告');
|
||||
insert into sys_dict_data values(16, 1, '正常', '0', 'sys_notice_status', '', 'primary', 'Y', '0', 'admin', sysdate(), '', null, '正常状态');
|
||||
insert into sys_dict_data values(17, 2, '关闭', '1', 'sys_notice_status', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '关闭状态');
|
||||
insert into sys_dict_data values(18, 99, '其他', '0', 'sys_oper_type', '', 'info', 'N', '0', 'admin', sysdate(), '', null, '其他操作');
|
||||
insert into sys_dict_data values(19, 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', '0', 'admin', sysdate(), '', null, '新增操作');
|
||||
insert into sys_dict_data values(20, 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', '0', 'admin', sysdate(), '', null, '修改操作');
|
||||
insert into sys_dict_data values(21, 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '删除操作');
|
||||
insert into sys_dict_data values(22, 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', '0', 'admin', sysdate(), '', null, '授权操作');
|
||||
insert into sys_dict_data values(23, 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', sysdate(), '', null, '导出操作');
|
||||
insert into sys_dict_data values(24, 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', sysdate(), '', null, '导入操作');
|
||||
insert into sys_dict_data values(25, 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '强退操作');
|
||||
insert into sys_dict_data values(26, 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', sysdate(), '', null, '生成操作');
|
||||
insert into sys_dict_data values(27, 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '清空操作');
|
||||
insert into sys_dict_data values(28, 1, '成功', '0', 'sys_common_status', '', 'primary', 'N', '0', 'admin', sysdate(), '', null, '正常状态');
|
||||
insert into sys_dict_data values(29, 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '停用状态');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 13、参数配置表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_config;
|
||||
create table sys_config (
|
||||
config_id int(5) not null auto_increment comment '参数主键',
|
||||
config_name varchar(100) default '' comment '参数名称',
|
||||
config_key varchar(100) default '' comment '参数键名',
|
||||
config_value varchar(500) default '' comment '参数键值',
|
||||
config_type char(1) default 'N' comment '系统内置(Y是 N否)',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
remark varchar(500) default null comment '备注',
|
||||
primary key (config_id)
|
||||
) engine=innodb auto_increment=100 comment = '参数配置表';
|
||||
|
||||
insert into sys_config values(1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 'admin', sysdate(), '', null, '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow' );
|
||||
insert into sys_config values(2, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', sysdate(), '', null, '初始化密码 123456' );
|
||||
insert into sys_config values(3, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', sysdate(), '', null, '深色主题theme-dark,浅色主题theme-light' );
|
||||
insert into sys_config values(4, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'Y', 'admin', sysdate(), '', null, '是否开启注册用户功能(true开启,false关闭)');
|
||||
insert into sys_config values(5, '用户登录-黑名单列表', 'sys.login.blackIPList', '', 'Y', 'admin', sysdate(), '', null, '设置登录IP黑名单限制,多个匹配项以;分隔,支持匹配(*通配、网段)');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 14、系统访问记录
|
||||
-- ----------------------------
|
||||
drop table if exists sys_logininfor;
|
||||
create table sys_logininfor (
|
||||
info_id bigint(20) not null auto_increment comment '访问ID',
|
||||
user_name varchar(50) default '' comment '用户账号',
|
||||
ipaddr varchar(128) default '' comment '登录IP地址',
|
||||
status char(1) default '0' comment '登录状态(0成功 1失败)',
|
||||
msg varchar(255) default '' comment '提示信息',
|
||||
access_time datetime comment '访问时间',
|
||||
primary key (info_id),
|
||||
key idx_sys_logininfor_s (status),
|
||||
key idx_sys_logininfor_lt (access_time)
|
||||
) engine=innodb auto_increment=100 comment = '系统访问记录';
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 15、定时任务调度表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_job;
|
||||
create table sys_job (
|
||||
job_id bigint(20) not null auto_increment comment '任务ID',
|
||||
job_name varchar(64) default '' comment '任务名称',
|
||||
job_group varchar(64) default 'DEFAULT' comment '任务组名',
|
||||
invoke_target varchar(500) not null comment '调用目标字符串',
|
||||
cron_expression varchar(255) default '' comment 'cron执行表达式',
|
||||
misfire_policy varchar(20) default '3' comment '计划执行错误策略(1立即执行 2执行一次 3放弃执行)',
|
||||
concurrent char(1) default '1' comment '是否并发执行(0允许 1禁止)',
|
||||
status char(1) default '0' comment '状态(0正常 1暂停)',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
remark varchar(500) default '' comment '备注信息',
|
||||
primary key (job_id, job_name, job_group)
|
||||
) engine=innodb auto_increment=100 comment = '定时任务调度表';
|
||||
|
||||
insert into sys_job values(1, '系统默认(无参)', 'DEFAULT', 'ryTask.ryNoParams', '0/10 * * * * ?', '3', '1', '1', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_job values(2, '系统默认(有参)', 'DEFAULT', 'ryTask.ryParams(\'ry\')', '0/15 * * * * ?', '3', '1', '1', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_job values(3, '系统默认(多参)', 'DEFAULT', 'ryTask.ryMultipleParams(\'ry\', true, 2000L, 316.50D, 100)', '0/20 * * * * ?', '3', '1', '1', 'admin', sysdate(), '', null, '');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 16、定时任务调度日志表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_job_log;
|
||||
create table sys_job_log (
|
||||
job_log_id bigint(20) not null auto_increment comment '任务日志ID',
|
||||
job_name varchar(64) not null comment '任务名称',
|
||||
job_group varchar(64) not null comment '任务组名',
|
||||
invoke_target varchar(500) not null comment '调用目标字符串',
|
||||
job_message varchar(500) comment '日志信息',
|
||||
status char(1) default '0' comment '执行状态(0正常 1失败)',
|
||||
exception_info varchar(2000) default '' comment '异常信息',
|
||||
create_time datetime comment '创建时间',
|
||||
primary key (job_log_id)
|
||||
) engine=innodb comment = '定时任务调度日志表';
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 17、通知公告表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_notice;
|
||||
create table sys_notice (
|
||||
notice_id int(4) not null auto_increment comment '公告ID',
|
||||
notice_title varchar(50) not null comment '公告标题',
|
||||
notice_type char(1) not null comment '公告类型(1通知 2公告)',
|
||||
notice_content longblob default null comment '公告内容',
|
||||
status char(1) default '0' comment '公告状态(0正常 1关闭)',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
remark varchar(255) default null comment '备注',
|
||||
primary key (notice_id)
|
||||
) engine=innodb auto_increment=10 comment = '通知公告表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-公告信息表数据
|
||||
-- ----------------------------
|
||||
insert into sys_notice values('1', '温馨提醒:2018-07-01 若依新版本发布啦', '2', '新版本内容', '0', 'admin', sysdate(), '', null, '管理员');
|
||||
insert into sys_notice values('2', '维护通知:2018-07-01 若依系统凌晨维护', '1', '维护内容', '0', 'admin', sysdate(), '', null, '管理员');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 18、代码生成业务表
|
||||
-- ----------------------------
|
||||
drop table if exists gen_table;
|
||||
create table gen_table (
|
||||
table_id bigint(20) not null auto_increment comment '编号',
|
||||
table_name varchar(200) default '' comment '表名称',
|
||||
table_comment varchar(500) default '' comment '表描述',
|
||||
sub_table_name varchar(64) default null comment '关联子表的表名',
|
||||
sub_table_fk_name varchar(64) default null comment '子表关联的外键名',
|
||||
class_name varchar(100) default '' comment '实体类名称',
|
||||
tpl_category varchar(200) default 'crud' comment '使用的模板(crud单表操作 tree树表操作)',
|
||||
tpl_web_type varchar(30) default '' comment '前端模板类型(element-ui模版 element-plus模版)',
|
||||
package_name varchar(100) comment '生成包路径',
|
||||
module_name varchar(30) comment '生成模块名',
|
||||
business_name varchar(30) comment '生成业务名',
|
||||
function_name varchar(50) comment '生成功能名',
|
||||
function_author varchar(50) comment '生成功能作者',
|
||||
gen_type char(1) default '0' comment '生成代码方式(0zip压缩包 1自定义路径)',
|
||||
gen_path varchar(200) default '/' comment '生成路径(不填默认项目路径)',
|
||||
options varchar(1000) comment '其它生成选项',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
remark varchar(500) default null comment '备注',
|
||||
primary key (table_id)
|
||||
) engine=innodb auto_increment=1 comment = '代码生成业务表';
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 19、代码生成业务表字段
|
||||
-- ----------------------------
|
||||
drop table if exists gen_table_column;
|
||||
create table gen_table_column (
|
||||
column_id bigint(20) not null auto_increment comment '编号',
|
||||
table_id bigint(20) comment '归属表编号',
|
||||
column_name varchar(200) comment '列名称',
|
||||
column_comment varchar(500) comment '列描述',
|
||||
column_type varchar(100) comment '列类型',
|
||||
java_type varchar(500) comment 'JAVA类型',
|
||||
java_field varchar(200) comment 'JAVA字段名',
|
||||
is_pk char(1) comment '是否主键(1是)',
|
||||
is_increment char(1) comment '是否自增(1是)',
|
||||
is_required char(1) comment '是否必填(1是)',
|
||||
is_insert char(1) comment '是否为插入字段(1是)',
|
||||
is_edit char(1) comment '是否编辑字段(1是)',
|
||||
is_list char(1) comment '是否列表字段(1是)',
|
||||
is_query char(1) comment '是否查询字段(1是)',
|
||||
query_type varchar(200) default 'EQ' comment '查询方式(等于、不等于、大于、小于、范围)',
|
||||
html_type varchar(200) comment '显示类型(文本框、文本域、下拉框、复选框、单选框、日期控件)',
|
||||
dict_type varchar(200) default '' comment '字典类型',
|
||||
sort int comment '排序',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
primary key (column_id)
|
||||
) engine=innodb auto_increment=1 comment = '代码生成业务表字段';
|
||||
@@ -1,697 +0,0 @@
|
||||
SET NAMES utf8mb4;
|
||||
|
||||
-- ----------------------------
|
||||
-- 1、部门表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_dept;
|
||||
create table sys_dept (
|
||||
dept_id bigint(20) not null auto_increment comment '部门id',
|
||||
parent_id bigint(20) default 0 comment '父部门id',
|
||||
ancestors varchar(50) default '' comment '祖级列表',
|
||||
dept_name varchar(30) default '' comment '部门名称',
|
||||
order_num int(4) default 0 comment '显示顺序',
|
||||
leader varchar(20) default null comment '负责人',
|
||||
phone varchar(11) default null comment '联系电话',
|
||||
email varchar(50) default null comment '邮箱',
|
||||
status char(1) default '0' comment '部门状态(0正常 1停用)',
|
||||
del_flag char(1) default '0' comment '删除标志(0代表存在 2代表删除)',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
primary key (dept_id)
|
||||
) engine=innodb auto_increment=200 comment = '部门表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-部门表数据
|
||||
-- ----------------------------
|
||||
insert into sys_dept values(100, 0, '0', '若依科技', 0, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null);
|
||||
insert into sys_dept values(101, 100, '0,100', '深圳总公司', 1, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null);
|
||||
insert into sys_dept values(102, 100, '0,100', '长沙分公司', 2, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null);
|
||||
insert into sys_dept values(103, 101, '0,100,101', '研发部门', 1, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null);
|
||||
insert into sys_dept values(104, 101, '0,100,101', '市场部门', 2, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null);
|
||||
insert into sys_dept values(105, 101, '0,100,101', '测试部门', 3, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null);
|
||||
insert into sys_dept values(106, 101, '0,100,101', '财务部门', 4, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null);
|
||||
insert into sys_dept values(107, 101, '0,100,101', '运维部门', 5, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null);
|
||||
insert into sys_dept values(108, 102, '0,100,102', '市场部门', 1, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null);
|
||||
insert into sys_dept values(109, 102, '0,100,102', '财务部门', 2, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null);
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 2、用户信息表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_user;
|
||||
create table sys_user (
|
||||
user_id bigint(20) not null auto_increment comment '用户ID',
|
||||
dept_id bigint(20) default null comment '部门ID',
|
||||
user_name varchar(30) not null comment '用户账号',
|
||||
nick_name varchar(30) not null comment '用户昵称',
|
||||
user_type varchar(2) default '00' comment '用户类型(00系统用户)',
|
||||
email varchar(50) default '' comment '用户邮箱',
|
||||
phonenumber varchar(11) default '' comment '手机号码',
|
||||
sex char(1) default '0' comment '用户性别(0男 1女 2未知)',
|
||||
avatar varchar(100) default '' comment '头像地址',
|
||||
password varchar(100) default '' comment '密码',
|
||||
status char(1) default '0' comment '帐号状态(0正常 1停用)',
|
||||
del_flag char(1) default '0' comment '删除标志(0代表存在 2代表删除)',
|
||||
login_ip varchar(128) default '' comment '最后登录IP',
|
||||
login_date datetime comment '最后登录时间',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
remark varchar(500) default null comment '备注',
|
||||
primary key (user_id)
|
||||
) engine=innodb auto_increment=100 comment = '用户信息表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-用户信息表数据
|
||||
-- ----------------------------
|
||||
insert into sys_user values(1, 103, 'admin', '若依', '00', 'ry@163.com', '15888888888', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', sysdate(), 'admin', sysdate(), '', null, '管理员');
|
||||
insert into sys_user values(2, 105, 'ry', '若依', '00', 'ry@qq.com', '15666666666', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', sysdate(), 'admin', sysdate(), '', null, '测试员');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 3、岗位信息表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_post;
|
||||
create table sys_post
|
||||
(
|
||||
post_id bigint(20) not null auto_increment comment '岗位ID',
|
||||
post_code varchar(64) not null comment '岗位编码',
|
||||
post_name varchar(50) not null comment '岗位名称',
|
||||
post_sort int(4) not null comment '显示顺序',
|
||||
status char(1) not null comment '状态(0正常 1停用)',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
remark varchar(500) default null comment '备注',
|
||||
primary key (post_id)
|
||||
) engine=innodb comment = '岗位信息表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-岗位信息表数据
|
||||
-- ----------------------------
|
||||
insert into sys_post values(1, 'ceo', '董事长', 1, '0', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_post values(2, 'se', '项目经理', 2, '0', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_post values(3, 'hr', '人力资源', 3, '0', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_post values(4, 'user', '普通员工', 4, '0', 'admin', sysdate(), '', null, '');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 4、角色信息表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_role;
|
||||
create table sys_role (
|
||||
role_id bigint(20) not null auto_increment comment '角色ID',
|
||||
role_name varchar(30) not null comment '角色名称',
|
||||
role_key varchar(100) not null comment '角色权限字符串',
|
||||
role_sort int(4) not null comment '显示顺序',
|
||||
data_scope char(1) default '1' comment '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)',
|
||||
menu_check_strictly tinyint(1) default 1 comment '菜单树选择项是否关联显示',
|
||||
dept_check_strictly tinyint(1) default 1 comment '部门树选择项是否关联显示',
|
||||
status char(1) not null comment '角色状态(0正常 1停用)',
|
||||
del_flag char(1) default '0' comment '删除标志(0代表存在 2代表删除)',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
remark varchar(500) default null comment '备注',
|
||||
primary key (role_id)
|
||||
) engine=innodb auto_increment=100 comment = '角色信息表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-角色信息表数据
|
||||
-- ----------------------------
|
||||
insert into sys_role values('1', '超级管理员', 'admin', 1, 1, 1, 1, '0', '0', 'admin', sysdate(), '', null, '超级管理员');
|
||||
insert into sys_role values('2', '普通角色', 'common', 2, 2, 1, 1, '0', '0', 'admin', sysdate(), '', null, '普通角色');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 5、菜单权限表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_menu;
|
||||
create table sys_menu (
|
||||
menu_id bigint(20) not null auto_increment comment '菜单ID',
|
||||
menu_name varchar(50) not null comment '菜单名称',
|
||||
parent_id bigint(20) default 0 comment '父菜单ID',
|
||||
order_num int(4) default 0 comment '显示顺序',
|
||||
path varchar(200) default '' comment '路由地址',
|
||||
component varchar(255) default null comment '组件路径',
|
||||
query varchar(255) default null comment '路由参数',
|
||||
route_name varchar(50) default '' comment '路由名称',
|
||||
is_frame int(1) default 1 comment '是否为外链(0是 1否)',
|
||||
is_cache int(1) default 0 comment '是否缓存(0缓存 1不缓存)',
|
||||
menu_type char(1) default '' comment '菜单类型(M目录 C菜单 F按钮)',
|
||||
visible char(1) default 0 comment '菜单状态(0显示 1隐藏)',
|
||||
status char(1) default 0 comment '菜单状态(0正常 1停用)',
|
||||
perms varchar(100) default null comment '权限标识',
|
||||
icon varchar(100) default '#' comment '菜单图标',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
remark varchar(500) default '' comment '备注',
|
||||
primary key (menu_id)
|
||||
) engine=innodb auto_increment=2000 comment = '菜单权限表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-菜单信息表数据
|
||||
-- ----------------------------
|
||||
-- 一级菜单
|
||||
insert into sys_menu values('1', '系统管理', '0', '1', 'system', null, '', '', 1, 0, 'M', '0', '0', '', 'system', 'admin', sysdate(), '', null, '系统管理目录');
|
||||
insert into sys_menu values('2', '系统监控', '0', '2', 'monitor', null, '', '', 1, 0, 'M', '0', '0', '', 'monitor', 'admin', sysdate(), '', null, '系统监控目录');
|
||||
insert into sys_menu values('3', '系统工具', '0', '3', 'tool', null, '', '', 1, 0, 'M', '0', '0', '', 'tool', 'admin', sysdate(), '', null, '系统工具目录');
|
||||
insert into sys_menu values('4', '若依官网', '0', '4', 'http://ruoyi.vip', null, '', '', 0, 0, 'M', '0', '0', '', 'guide', 'admin', sysdate(), '', null, '若依官网地址');
|
||||
-- 二级菜单
|
||||
insert into sys_menu values('100', '用户管理', '1', '1', 'user', 'system/user/index', '', '', 1, 0, 'C', '0', '0', 'system:user:list', 'user', 'admin', sysdate(), '', null, '用户管理菜单');
|
||||
insert into sys_menu values('101', '角色管理', '1', '2', 'role', 'system/role/index', '', '', 1, 0, 'C', '0', '0', 'system:role:list', 'peoples', 'admin', sysdate(), '', null, '角色管理菜单');
|
||||
insert into sys_menu values('102', '菜单管理', '1', '3', 'menu', 'system/menu/index', '', '', 1, 0, 'C', '0', '0', 'system:menu:list', 'tree-table', 'admin', sysdate(), '', null, '菜单管理菜单');
|
||||
insert into sys_menu values('103', '部门管理', '1', '4', 'dept', 'system/dept/index', '', '', 1, 0, 'C', '0', '0', 'system:dept:list', 'tree', 'admin', sysdate(), '', null, '部门管理菜单');
|
||||
insert into sys_menu values('104', '岗位管理', '1', '5', 'post', 'system/post/index', '', '', 1, 0, 'C', '0', '0', 'system:post:list', 'post', 'admin', sysdate(), '', null, '岗位管理菜单');
|
||||
insert into sys_menu values('105', '字典管理', '1', '6', 'dict', 'system/dict/index', '', '', 1, 0, 'C', '0', '0', 'system:dict:list', 'dict', 'admin', sysdate(), '', null, '字典管理菜单');
|
||||
insert into sys_menu values('106', '参数设置', '1', '7', 'config', 'system/config/index', '', '', 1, 0, 'C', '0', '0', 'system:config:list', 'edit', 'admin', sysdate(), '', null, '参数设置菜单');
|
||||
insert into sys_menu values('107', '通知公告', '1', '8', 'notice', 'system/notice/index', '', '', 1, 0, 'C', '0', '0', 'system:notice:list', 'message', 'admin', sysdate(), '', null, '通知公告菜单');
|
||||
insert into sys_menu values('108', '日志管理', '1', '9', 'log', '', '', '', 1, 0, 'M', '0', '0', '', 'log', 'admin', sysdate(), '', null, '日志管理菜单');
|
||||
insert into sys_menu values('109', '在线用户', '2', '1', 'online', 'monitor/online/index', '', '', 1, 0, 'C', '0', '0', 'monitor:online:list', 'online', 'admin', sysdate(), '', null, '在线用户菜单');
|
||||
insert into sys_menu values('110', '定时任务', '2', '2', 'job', 'monitor/job/index', '', '', 1, 0, 'C', '0', '0', 'monitor:job:list', 'job', 'admin', sysdate(), '', null, '定时任务菜单');
|
||||
insert into sys_menu values('111', 'Sentinel控制台', '2', '3', 'http://localhost:8718', '', '', '', 0, 0, 'C', '0', '0', 'monitor:sentinel:list', 'sentinel', 'admin', sysdate(), '', null, '流量控制菜单');
|
||||
insert into sys_menu values('112', 'Nacos控制台', '2', '4', 'http://localhost:8848/nacos', '', '', '', 0, 0, 'C', '0', '0', 'monitor:nacos:list', 'nacos', 'admin', sysdate(), '', null, '服务治理菜单');
|
||||
insert into sys_menu values('113', 'Admin控制台', '2', '5', 'http://localhost:9100/login', '', '', '', 0, 0, 'C', '0', '0', 'monitor:server:list', 'server', 'admin', sysdate(), '', null, '服务监控菜单');
|
||||
insert into sys_menu values('114', '表单构建', '3', '1', 'build', 'tool/build/index', '', '', 1, 0, 'C', '0', '0', 'tool:build:list', 'build', 'admin', sysdate(), '', null, '表单构建菜单');
|
||||
insert into sys_menu values('115', '代码生成', '3', '2', 'gen', 'tool/gen/index', '', '', 1, 0, 'C', '0', '0', 'tool:gen:list', 'code', 'admin', sysdate(), '', null, '代码生成菜单');
|
||||
insert into sys_menu values('116', '系统接口', '3', '3', 'http://localhost:8080/swagger-ui/index.html', '', '', '', 0, 0, 'C', '0', '0', 'tool:swagger:list', 'swagger', 'admin', sysdate(), '', null, '系统接口菜单');
|
||||
-- 三级菜单
|
||||
insert into sys_menu values('500', '操作日志', '108', '1', 'operlog', 'system/operlog/index', '', '', 1, 0, 'C', '0', '0', 'system:operlog:list', 'form', 'admin', sysdate(), '', null, '操作日志菜单');
|
||||
insert into sys_menu values('501', '登录日志', '108', '2', 'logininfor', 'system/logininfor/index', '', '', 1, 0, 'C', '0', '0', 'system:logininfor:list', 'logininfor', 'admin', sysdate(), '', null, '登录日志菜单');
|
||||
-- 用户管理按钮
|
||||
insert into sys_menu values('1000', '用户查询', '100', '1', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1001', '用户新增', '100', '2', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:add', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1002', '用户修改', '100', '3', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1003', '用户删除', '100', '4', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1004', '用户导出', '100', '5', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:export', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1005', '用户导入', '100', '6', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:import', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1006', '重置密码', '100', '7', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:resetPwd', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 角色管理按钮
|
||||
insert into sys_menu values('1007', '角色查询', '101', '1', '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1008', '角色新增', '101', '2', '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:add', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1009', '角色修改', '101', '3', '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1010', '角色删除', '101', '4', '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1011', '角色导出', '101', '5', '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:export', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 菜单管理按钮
|
||||
insert into sys_menu values('1012', '菜单查询', '102', '1', '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1013', '菜单新增', '102', '2', '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:add', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1014', '菜单修改', '102', '3', '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1015', '菜单删除', '102', '4', '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 部门管理按钮
|
||||
insert into sys_menu values('1016', '部门查询', '103', '1', '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1017', '部门新增', '103', '2', '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:add', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1018', '部门修改', '103', '3', '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1019', '部门删除', '103', '4', '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 岗位管理按钮
|
||||
insert into sys_menu values('1020', '岗位查询', '104', '1', '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1021', '岗位新增', '104', '2', '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:add', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1022', '岗位修改', '104', '3', '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1023', '岗位删除', '104', '4', '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1024', '岗位导出', '104', '5', '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:export', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 字典管理按钮
|
||||
insert into sys_menu values('1025', '字典查询', '105', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1026', '字典新增', '105', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:add', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1027', '字典修改', '105', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1028', '字典删除', '105', '4', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1029', '字典导出', '105', '5', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:export', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 参数设置按钮
|
||||
insert into sys_menu values('1030', '参数查询', '106', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1031', '参数新增', '106', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:add', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1032', '参数修改', '106', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1033', '参数删除', '106', '4', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1034', '参数导出', '106', '5', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:export', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 通知公告按钮
|
||||
insert into sys_menu values('1035', '公告查询', '107', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1036', '公告新增', '107', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:add', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1037', '公告修改', '107', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1038', '公告删除', '107', '4', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 操作日志按钮
|
||||
insert into sys_menu values('1039', '操作查询', '500', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:operlog:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1040', '操作删除', '500', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:operlog:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1041', '日志导出', '500', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:operlog:export', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 登录日志按钮
|
||||
insert into sys_menu values('1042', '登录查询', '501', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:logininfor:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1043', '登录删除', '501', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:logininfor:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1044', '日志导出', '501', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:logininfor:export', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1045', '账户解锁', '501', '4', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:logininfor:unlock', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 在线用户按钮
|
||||
insert into sys_menu values('1046', '在线查询', '109', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1047', '批量强退', '109', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:batchLogout', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1048', '单条强退', '109', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:forceLogout', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 定时任务按钮
|
||||
insert into sys_menu values('1049', '任务查询', '110', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1050', '任务新增', '110', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:add', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1051', '任务修改', '110', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1052', '任务删除', '110', '4', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1053', '状态修改', '110', '5', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:changeStatus', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1054', '任务导出', '110', '6', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:export', '#', 'admin', sysdate(), '', null, '');
|
||||
-- 代码生成按钮
|
||||
insert into sys_menu values('1055', '生成查询', '115', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:query', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1056', '生成修改', '115', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:edit', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1057', '生成删除', '115', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:remove', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1058', '导入代码', '115', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:import', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1059', '预览代码', '115', '4', '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:preview', '#', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_menu values('1060', '生成代码', '115', '5', '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:code', '#', 'admin', sysdate(), '', null, '');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 6、用户和角色关联表 用户N-1角色
|
||||
-- ----------------------------
|
||||
drop table if exists sys_user_role;
|
||||
create table sys_user_role (
|
||||
user_id bigint(20) not null comment '用户ID',
|
||||
role_id bigint(20) not null comment '角色ID',
|
||||
primary key(user_id, role_id)
|
||||
) engine=innodb comment = '用户和角色关联表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-用户和角色关联表数据
|
||||
-- ----------------------------
|
||||
insert into sys_user_role values ('1', '1');
|
||||
insert into sys_user_role values ('2', '2');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 7、角色和菜单关联表 角色1-N菜单
|
||||
-- ----------------------------
|
||||
drop table if exists sys_role_menu;
|
||||
create table sys_role_menu (
|
||||
role_id bigint(20) not null comment '角色ID',
|
||||
menu_id bigint(20) not null comment '菜单ID',
|
||||
primary key(role_id, menu_id)
|
||||
) engine=innodb comment = '角色和菜单关联表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-角色和菜单关联表数据
|
||||
-- ----------------------------
|
||||
insert into sys_role_menu values ('2', '1');
|
||||
insert into sys_role_menu values ('2', '2');
|
||||
insert into sys_role_menu values ('2', '3');
|
||||
insert into sys_role_menu values ('2', '4');
|
||||
insert into sys_role_menu values ('2', '100');
|
||||
insert into sys_role_menu values ('2', '101');
|
||||
insert into sys_role_menu values ('2', '102');
|
||||
insert into sys_role_menu values ('2', '103');
|
||||
insert into sys_role_menu values ('2', '104');
|
||||
insert into sys_role_menu values ('2', '105');
|
||||
insert into sys_role_menu values ('2', '106');
|
||||
insert into sys_role_menu values ('2', '107');
|
||||
insert into sys_role_menu values ('2', '108');
|
||||
insert into sys_role_menu values ('2', '109');
|
||||
insert into sys_role_menu values ('2', '110');
|
||||
insert into sys_role_menu values ('2', '111');
|
||||
insert into sys_role_menu values ('2', '112');
|
||||
insert into sys_role_menu values ('2', '113');
|
||||
insert into sys_role_menu values ('2', '114');
|
||||
insert into sys_role_menu values ('2', '115');
|
||||
insert into sys_role_menu values ('2', '116');
|
||||
insert into sys_role_menu values ('2', '500');
|
||||
insert into sys_role_menu values ('2', '501');
|
||||
insert into sys_role_menu values ('2', '1000');
|
||||
insert into sys_role_menu values ('2', '1001');
|
||||
insert into sys_role_menu values ('2', '1002');
|
||||
insert into sys_role_menu values ('2', '1003');
|
||||
insert into sys_role_menu values ('2', '1004');
|
||||
insert into sys_role_menu values ('2', '1005');
|
||||
insert into sys_role_menu values ('2', '1006');
|
||||
insert into sys_role_menu values ('2', '1007');
|
||||
insert into sys_role_menu values ('2', '1008');
|
||||
insert into sys_role_menu values ('2', '1009');
|
||||
insert into sys_role_menu values ('2', '1010');
|
||||
insert into sys_role_menu values ('2', '1011');
|
||||
insert into sys_role_menu values ('2', '1012');
|
||||
insert into sys_role_menu values ('2', '1013');
|
||||
insert into sys_role_menu values ('2', '1014');
|
||||
insert into sys_role_menu values ('2', '1015');
|
||||
insert into sys_role_menu values ('2', '1016');
|
||||
insert into sys_role_menu values ('2', '1017');
|
||||
insert into sys_role_menu values ('2', '1018');
|
||||
insert into sys_role_menu values ('2', '1019');
|
||||
insert into sys_role_menu values ('2', '1020');
|
||||
insert into sys_role_menu values ('2', '1021');
|
||||
insert into sys_role_menu values ('2', '1022');
|
||||
insert into sys_role_menu values ('2', '1023');
|
||||
insert into sys_role_menu values ('2', '1024');
|
||||
insert into sys_role_menu values ('2', '1025');
|
||||
insert into sys_role_menu values ('2', '1026');
|
||||
insert into sys_role_menu values ('2', '1027');
|
||||
insert into sys_role_menu values ('2', '1028');
|
||||
insert into sys_role_menu values ('2', '1029');
|
||||
insert into sys_role_menu values ('2', '1030');
|
||||
insert into sys_role_menu values ('2', '1031');
|
||||
insert into sys_role_menu values ('2', '1032');
|
||||
insert into sys_role_menu values ('2', '1033');
|
||||
insert into sys_role_menu values ('2', '1034');
|
||||
insert into sys_role_menu values ('2', '1035');
|
||||
insert into sys_role_menu values ('2', '1036');
|
||||
insert into sys_role_menu values ('2', '1037');
|
||||
insert into sys_role_menu values ('2', '1038');
|
||||
insert into sys_role_menu values ('2', '1039');
|
||||
insert into sys_role_menu values ('2', '1040');
|
||||
insert into sys_role_menu values ('2', '1041');
|
||||
insert into sys_role_menu values ('2', '1042');
|
||||
insert into sys_role_menu values ('2', '1043');
|
||||
insert into sys_role_menu values ('2', '1044');
|
||||
insert into sys_role_menu values ('2', '1045');
|
||||
insert into sys_role_menu values ('2', '1046');
|
||||
insert into sys_role_menu values ('2', '1047');
|
||||
insert into sys_role_menu values ('2', '1048');
|
||||
insert into sys_role_menu values ('2', '1049');
|
||||
insert into sys_role_menu values ('2', '1050');
|
||||
insert into sys_role_menu values ('2', '1051');
|
||||
insert into sys_role_menu values ('2', '1052');
|
||||
insert into sys_role_menu values ('2', '1053');
|
||||
insert into sys_role_menu values ('2', '1054');
|
||||
insert into sys_role_menu values ('2', '1055');
|
||||
insert into sys_role_menu values ('2', '1056');
|
||||
insert into sys_role_menu values ('2', '1057');
|
||||
insert into sys_role_menu values ('2', '1058');
|
||||
insert into sys_role_menu values ('2', '1059');
|
||||
insert into sys_role_menu values ('2', '1060');
|
||||
|
||||
-- ----------------------------
|
||||
-- 8、角色和部门关联表 角色1-N部门
|
||||
-- ----------------------------
|
||||
drop table if exists sys_role_dept;
|
||||
create table sys_role_dept (
|
||||
role_id bigint(20) not null comment '角色ID',
|
||||
dept_id bigint(20) not null comment '部门ID',
|
||||
primary key(role_id, dept_id)
|
||||
) engine=innodb comment = '角色和部门关联表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-角色和部门关联表数据
|
||||
-- ----------------------------
|
||||
insert into sys_role_dept values ('2', '100');
|
||||
insert into sys_role_dept values ('2', '101');
|
||||
insert into sys_role_dept values ('2', '105');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 9、用户与岗位关联表 用户1-N岗位
|
||||
-- ----------------------------
|
||||
drop table if exists sys_user_post;
|
||||
create table sys_user_post
|
||||
(
|
||||
user_id bigint(20) not null comment '用户ID',
|
||||
post_id bigint(20) not null comment '岗位ID',
|
||||
primary key (user_id, post_id)
|
||||
) engine=innodb comment = '用户与岗位关联表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-用户与岗位关联表数据
|
||||
-- ----------------------------
|
||||
insert into sys_user_post values ('1', '1');
|
||||
insert into sys_user_post values ('2', '2');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 10、操作日志记录
|
||||
-- ----------------------------
|
||||
drop table if exists sys_oper_log;
|
||||
create table sys_oper_log (
|
||||
oper_id bigint(20) not null auto_increment comment '日志主键',
|
||||
title varchar(50) default '' comment '模块标题',
|
||||
business_type int(2) default 0 comment '业务类型(0其它 1新增 2修改 3删除)',
|
||||
method varchar(200) default '' comment '方法名称',
|
||||
request_method varchar(10) default '' comment '请求方式',
|
||||
operator_type int(1) default 0 comment '操作类别(0其它 1后台用户 2手机端用户)',
|
||||
oper_name varchar(50) default '' comment '操作人员',
|
||||
dept_name varchar(50) default '' comment '部门名称',
|
||||
oper_url varchar(255) default '' comment '请求URL',
|
||||
oper_ip varchar(128) default '' comment '主机地址',
|
||||
oper_location varchar(255) default '' comment '操作地点',
|
||||
oper_param varchar(2000) default '' comment '请求参数',
|
||||
json_result varchar(2000) default '' comment '返回参数',
|
||||
status int(1) default 0 comment '操作状态(0正常 1异常)',
|
||||
error_msg varchar(2000) default '' comment '错误消息',
|
||||
oper_time datetime comment '操作时间',
|
||||
cost_time bigint(20) default 0 comment '消耗时间',
|
||||
primary key (oper_id),
|
||||
key idx_sys_oper_log_bt (business_type),
|
||||
key idx_sys_oper_log_s (status),
|
||||
key idx_sys_oper_log_ot (oper_time)
|
||||
) engine=innodb auto_increment=100 comment = '操作日志记录';
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 11、字典类型表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_dict_type;
|
||||
create table sys_dict_type
|
||||
(
|
||||
dict_id bigint(20) not null auto_increment comment '字典主键',
|
||||
dict_name varchar(100) default '' comment '字典名称',
|
||||
dict_type varchar(100) default '' comment '字典类型',
|
||||
status char(1) default '0' comment '状态(0正常 1停用)',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
remark varchar(500) default null comment '备注',
|
||||
primary key (dict_id),
|
||||
unique (dict_type)
|
||||
) engine=innodb auto_increment=100 comment = '字典类型表';
|
||||
|
||||
insert into sys_dict_type values(1, '用户性别', 'sys_user_sex', '0', 'admin', sysdate(), '', null, '用户性别列表');
|
||||
insert into sys_dict_type values(2, '菜单状态', 'sys_show_hide', '0', 'admin', sysdate(), '', null, '菜单状态列表');
|
||||
insert into sys_dict_type values(3, '系统开关', 'sys_normal_disable', '0', 'admin', sysdate(), '', null, '系统开关列表');
|
||||
insert into sys_dict_type values(4, '任务状态', 'sys_job_status', '0', 'admin', sysdate(), '', null, '任务状态列表');
|
||||
insert into sys_dict_type values(5, '任务分组', 'sys_job_group', '0', 'admin', sysdate(), '', null, '任务分组列表');
|
||||
insert into sys_dict_type values(6, '系统是否', 'sys_yes_no', '0', 'admin', sysdate(), '', null, '系统是否列表');
|
||||
insert into sys_dict_type values(7, '通知类型', 'sys_notice_type', '0', 'admin', sysdate(), '', null, '通知类型列表');
|
||||
insert into sys_dict_type values(8, '通知状态', 'sys_notice_status', '0', 'admin', sysdate(), '', null, '通知状态列表');
|
||||
insert into sys_dict_type values(9, '操作类型', 'sys_oper_type', '0', 'admin', sysdate(), '', null, '操作类型列表');
|
||||
insert into sys_dict_type values(10, '系统状态', 'sys_common_status', '0', 'admin', sysdate(), '', null, '登录状态列表');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 12、字典数据表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_dict_data;
|
||||
create table sys_dict_data
|
||||
(
|
||||
dict_code bigint(20) not null auto_increment comment '字典编码',
|
||||
dict_sort int(4) default 0 comment '字典排序',
|
||||
dict_label varchar(100) default '' comment '字典标签',
|
||||
dict_value varchar(100) default '' comment '字典键值',
|
||||
dict_type varchar(100) default '' comment '字典类型',
|
||||
css_class varchar(100) default null comment '样式属性(其他样式扩展)',
|
||||
list_class varchar(100) default null comment '表格回显样式',
|
||||
is_default char(1) default 'N' comment '是否默认(Y是 N否)',
|
||||
status char(1) default '0' comment '状态(0正常 1停用)',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
remark varchar(500) default null comment '备注',
|
||||
primary key (dict_code)
|
||||
) engine=innodb auto_increment=100 comment = '字典数据表';
|
||||
|
||||
insert into sys_dict_data values(1, 1, '男', '0', 'sys_user_sex', '', '', 'Y', '0', 'admin', sysdate(), '', null, '性别男');
|
||||
insert into sys_dict_data values(2, 2, '女', '1', 'sys_user_sex', '', '', 'N', '0', 'admin', sysdate(), '', null, '性别女');
|
||||
insert into sys_dict_data values(3, 3, '未知', '2', 'sys_user_sex', '', '', 'N', '0', 'admin', sysdate(), '', null, '性别未知');
|
||||
insert into sys_dict_data values(4, 1, '显示', '0', 'sys_show_hide', '', 'primary', 'Y', '0', 'admin', sysdate(), '', null, '显示菜单');
|
||||
insert into sys_dict_data values(5, 2, '隐藏', '1', 'sys_show_hide', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '隐藏菜单');
|
||||
insert into sys_dict_data values(6, 1, '正常', '0', 'sys_normal_disable', '', 'primary', 'Y', '0', 'admin', sysdate(), '', null, '正常状态');
|
||||
insert into sys_dict_data values(7, 2, '停用', '1', 'sys_normal_disable', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '停用状态');
|
||||
insert into sys_dict_data values(8, 1, '正常', '0', 'sys_job_status', '', 'primary', 'Y', '0', 'admin', sysdate(), '', null, '正常状态');
|
||||
insert into sys_dict_data values(9, 2, '暂停', '1', 'sys_job_status', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '停用状态');
|
||||
insert into sys_dict_data values(10, 1, '默认', 'DEFAULT', 'sys_job_group', '', '', 'Y', '0', 'admin', sysdate(), '', null, '默认分组');
|
||||
insert into sys_dict_data values(11, 2, '系统', 'SYSTEM', 'sys_job_group', '', '', 'N', '0', 'admin', sysdate(), '', null, '系统分组');
|
||||
insert into sys_dict_data values(12, 1, '是', 'Y', 'sys_yes_no', '', 'primary', 'Y', '0', 'admin', sysdate(), '', null, '系统默认是');
|
||||
insert into sys_dict_data values(13, 2, '否', 'N', 'sys_yes_no', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '系统默认否');
|
||||
insert into sys_dict_data values(14, 1, '通知', '1', 'sys_notice_type', '', 'warning', 'Y', '0', 'admin', sysdate(), '', null, '通知');
|
||||
insert into sys_dict_data values(15, 2, '公告', '2', 'sys_notice_type', '', 'success', 'N', '0', 'admin', sysdate(), '', null, '公告');
|
||||
insert into sys_dict_data values(16, 1, '正常', '0', 'sys_notice_status', '', 'primary', 'Y', '0', 'admin', sysdate(), '', null, '正常状态');
|
||||
insert into sys_dict_data values(17, 2, '关闭', '1', 'sys_notice_status', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '关闭状态');
|
||||
insert into sys_dict_data values(18, 99, '其他', '0', 'sys_oper_type', '', 'info', 'N', '0', 'admin', sysdate(), '', null, '其他操作');
|
||||
insert into sys_dict_data values(19, 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', '0', 'admin', sysdate(), '', null, '新增操作');
|
||||
insert into sys_dict_data values(20, 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', '0', 'admin', sysdate(), '', null, '修改操作');
|
||||
insert into sys_dict_data values(21, 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '删除操作');
|
||||
insert into sys_dict_data values(22, 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', '0', 'admin', sysdate(), '', null, '授权操作');
|
||||
insert into sys_dict_data values(23, 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', sysdate(), '', null, '导出操作');
|
||||
insert into sys_dict_data values(24, 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', sysdate(), '', null, '导入操作');
|
||||
insert into sys_dict_data values(25, 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '强退操作');
|
||||
insert into sys_dict_data values(26, 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', sysdate(), '', null, '生成操作');
|
||||
insert into sys_dict_data values(27, 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '清空操作');
|
||||
insert into sys_dict_data values(28, 1, '成功', '0', 'sys_common_status', '', 'primary', 'N', '0', 'admin', sysdate(), '', null, '正常状态');
|
||||
insert into sys_dict_data values(29, 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '停用状态');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 13、参数配置表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_config;
|
||||
create table sys_config (
|
||||
config_id int(5) not null auto_increment comment '参数主键',
|
||||
config_name varchar(100) default '' comment '参数名称',
|
||||
config_key varchar(100) default '' comment '参数键名',
|
||||
config_value varchar(500) default '' comment '参数键值',
|
||||
config_type char(1) default 'N' comment '系统内置(Y是 N否)',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
remark varchar(500) default null comment '备注',
|
||||
primary key (config_id)
|
||||
) engine=innodb auto_increment=100 comment = '参数配置表';
|
||||
|
||||
insert into sys_config values(1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 'admin', sysdate(), '', null, '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow' );
|
||||
insert into sys_config values(2, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', sysdate(), '', null, '初始化密码 123456' );
|
||||
insert into sys_config values(3, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', sysdate(), '', null, '深色主题theme-dark,浅色主题theme-light' );
|
||||
insert into sys_config values(4, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'Y', 'admin', sysdate(), '', null, '是否开启注册用户功能(true开启,false关闭)');
|
||||
insert into sys_config values(5, '用户登录-黑名单列表', 'sys.login.blackIPList', '', 'Y', 'admin', sysdate(), '', null, '设置登录IP黑名单限制,多个匹配项以;分隔,支持匹配(*通配、网段)');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 14、系统访问记录
|
||||
-- ----------------------------
|
||||
drop table if exists sys_logininfor;
|
||||
create table sys_logininfor (
|
||||
info_id bigint(20) not null auto_increment comment '访问ID',
|
||||
user_name varchar(50) default '' comment '用户账号',
|
||||
ipaddr varchar(128) default '' comment '登录IP地址',
|
||||
status char(1) default '0' comment '登录状态(0成功 1失败)',
|
||||
msg varchar(255) default '' comment '提示信息',
|
||||
access_time datetime comment '访问时间',
|
||||
primary key (info_id),
|
||||
key idx_sys_logininfor_s (status),
|
||||
key idx_sys_logininfor_lt (access_time)
|
||||
) engine=innodb auto_increment=100 comment = '系统访问记录';
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 15、定时任务调度表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_job;
|
||||
create table sys_job (
|
||||
job_id bigint(20) not null auto_increment comment '任务ID',
|
||||
job_name varchar(64) default '' comment '任务名称',
|
||||
job_group varchar(64) default 'DEFAULT' comment '任务组名',
|
||||
invoke_target varchar(500) not null comment '调用目标字符串',
|
||||
cron_expression varchar(255) default '' comment 'cron执行表达式',
|
||||
misfire_policy varchar(20) default '3' comment '计划执行错误策略(1立即执行 2执行一次 3放弃执行)',
|
||||
concurrent char(1) default '1' comment '是否并发执行(0允许 1禁止)',
|
||||
status char(1) default '0' comment '状态(0正常 1暂停)',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
remark varchar(500) default '' comment '备注信息',
|
||||
primary key (job_id, job_name, job_group)
|
||||
) engine=innodb auto_increment=100 comment = '定时任务调度表';
|
||||
|
||||
insert into sys_job values(1, '系统默认(无参)', 'DEFAULT', 'ryTask.ryNoParams', '0/10 * * * * ?', '3', '1', '1', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_job values(2, '系统默认(有参)', 'DEFAULT', 'ryTask.ryParams(\'ry\')', '0/15 * * * * ?', '3', '1', '1', 'admin', sysdate(), '', null, '');
|
||||
insert into sys_job values(3, '系统默认(多参)', 'DEFAULT', 'ryTask.ryMultipleParams(\'ry\', true, 2000L, 316.50D, 100)', '0/20 * * * * ?', '3', '1', '1', 'admin', sysdate(), '', null, '');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 16、定时任务调度日志表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_job_log;
|
||||
create table sys_job_log (
|
||||
job_log_id bigint(20) not null auto_increment comment '任务日志ID',
|
||||
job_name varchar(64) not null comment '任务名称',
|
||||
job_group varchar(64) not null comment '任务组名',
|
||||
invoke_target varchar(500) not null comment '调用目标字符串',
|
||||
job_message varchar(500) comment '日志信息',
|
||||
status char(1) default '0' comment '执行状态(0正常 1失败)',
|
||||
exception_info varchar(2000) default '' comment '异常信息',
|
||||
create_time datetime comment '创建时间',
|
||||
primary key (job_log_id)
|
||||
) engine=innodb comment = '定时任务调度日志表';
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 17、通知公告表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_notice;
|
||||
create table sys_notice (
|
||||
notice_id int(4) not null auto_increment comment '公告ID',
|
||||
notice_title varchar(50) not null comment '公告标题',
|
||||
notice_type char(1) not null comment '公告类型(1通知 2公告)',
|
||||
notice_content longblob default null comment '公告内容',
|
||||
status char(1) default '0' comment '公告状态(0正常 1关闭)',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
remark varchar(255) default null comment '备注',
|
||||
primary key (notice_id)
|
||||
) engine=innodb auto_increment=10 comment = '通知公告表';
|
||||
|
||||
-- ----------------------------
|
||||
-- 初始化-公告信息表数据
|
||||
-- ----------------------------
|
||||
insert into sys_notice values('1', '温馨提醒:2018-07-01 若依新版本发布啦', '2', '新版本内容', '0', 'admin', sysdate(), '', null, '管理员');
|
||||
insert into sys_notice values('2', '维护通知:2018-07-01 若依系统凌晨维护', '1', '维护内容', '0', 'admin', sysdate(), '', null, '管理员');
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 18、代码生成业务表
|
||||
-- ----------------------------
|
||||
drop table if exists gen_table;
|
||||
create table gen_table (
|
||||
table_id bigint(20) not null auto_increment comment '编号',
|
||||
table_name varchar(200) default '' comment '表名称',
|
||||
table_comment varchar(500) default '' comment '表描述',
|
||||
sub_table_name varchar(64) default null comment '关联子表的表名',
|
||||
sub_table_fk_name varchar(64) default null comment '子表关联的外键名',
|
||||
class_name varchar(100) default '' comment '实体类名称',
|
||||
tpl_category varchar(200) default 'crud' comment '使用的模板(crud单表操作 tree树表操作)',
|
||||
tpl_web_type varchar(30) default '' comment '前端模板类型(element-ui模版 element-plus模版)',
|
||||
package_name varchar(100) comment '生成包路径',
|
||||
module_name varchar(30) comment '生成模块名',
|
||||
business_name varchar(30) comment '生成业务名',
|
||||
function_name varchar(50) comment '生成功能名',
|
||||
function_author varchar(50) comment '生成功能作者',
|
||||
gen_type char(1) default '0' comment '生成代码方式(0zip压缩包 1自定义路径)',
|
||||
gen_path varchar(200) default '/' comment '生成路径(不填默认项目路径)',
|
||||
options varchar(1000) comment '其它生成选项',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
remark varchar(500) default null comment '备注',
|
||||
primary key (table_id)
|
||||
) engine=innodb auto_increment=1 comment = '代码生成业务表';
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 19、代码生成业务表字段
|
||||
-- ----------------------------
|
||||
drop table if exists gen_table_column;
|
||||
create table gen_table_column (
|
||||
column_id bigint(20) not null auto_increment comment '编号',
|
||||
table_id bigint(20) comment '归属表编号',
|
||||
column_name varchar(200) comment '列名称',
|
||||
column_comment varchar(500) comment '列描述',
|
||||
column_type varchar(100) comment '列类型',
|
||||
java_type varchar(500) comment 'JAVA类型',
|
||||
java_field varchar(200) comment 'JAVA字段名',
|
||||
is_pk char(1) comment '是否主键(1是)',
|
||||
is_increment char(1) comment '是否自增(1是)',
|
||||
is_required char(1) comment '是否必填(1是)',
|
||||
is_insert char(1) comment '是否为插入字段(1是)',
|
||||
is_edit char(1) comment '是否编辑字段(1是)',
|
||||
is_list char(1) comment '是否列表字段(1是)',
|
||||
is_query char(1) comment '是否查询字段(1是)',
|
||||
query_type varchar(200) default 'EQ' comment '查询方式(等于、不等于、大于、小于、范围)',
|
||||
html_type varchar(200) comment '显示类型(文本框、文本域、下拉框、复选框、单选框、日期控件)',
|
||||
dict_type varchar(200) default '' comment '字典类型',
|
||||
sort int comment '排序',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
primary key (column_id)
|
||||
) engine=innodb auto_increment=1 comment = '代码生成业务表字段';
|
||||
@@ -1,219 +0,0 @@
|
||||
DROP DATABASE IF EXISTS `ry-config`;
|
||||
|
||||
CREATE DATABASE `ry-config` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
USE `ry-config`;
|
||||
|
||||
/******************************************/
|
||||
/* 表名称 = config_info */
|
||||
/******************************************/
|
||||
CREATE TABLE `config_info` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(255) DEFAULT NULL,
|
||||
`content` longtext NOT NULL COMMENT 'content',
|
||||
`md5` varchar(32) DEFAULT NULL COMMENT 'md5',
|
||||
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
`src_user` text COMMENT 'source user',
|
||||
`src_ip` varchar(50) DEFAULT NULL COMMENT 'source ip',
|
||||
`app_name` varchar(128) DEFAULT NULL,
|
||||
`tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段',
|
||||
`c_desc` varchar(256) DEFAULT NULL,
|
||||
`c_use` varchar(64) DEFAULT NULL,
|
||||
`effect` varchar(64) DEFAULT NULL,
|
||||
`type` varchar(64) DEFAULT NULL,
|
||||
`c_schema` text,
|
||||
`encrypted_data_key` text COMMENT '秘钥',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_configinfo_datagrouptenant` (`data_id`,`group_id`,`tenant_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_info';
|
||||
|
||||
insert into config_info(id, data_id, group_id, content, md5, gmt_create, gmt_modified, src_user, src_ip, app_name, tenant_id, c_desc, c_use, effect, type, c_schema, encrypted_data_key) values
|
||||
(1,'application-dev.yml','DEFAULT_GROUP','spring:\n autoconfigure:\n exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure\n mvc:\n pathmatch:\n matching-strategy: ant_path_matcher\n\n# feign 配置\nfeign:\n sentinel:\n enabled: true\n okhttp:\n enabled: true\n httpclient:\n enabled: false\n client:\n config:\n default:\n connectTimeout: 10000\n readTimeout: 10000\n compression:\n request:\n enabled: true\n min-request-size: 8192\n response:\n enabled: true\n\n# 暴露监控端点\nmanagement:\n endpoints:\n web:\n exposure:\n include: \'*\'\n','58dde4e3760499d3bac2d77a3a1e9018','2020-05-20 12:00:00','2023-12-04 08:08:23','nacos','0:0:0:0:0:0:0:1','','','通用配置','null','null','yaml','',''),
|
||||
(2,'wfc-gateway-dev.yml','DEFAULT_GROUP','spring:\n redis:\n host: localhost\n port: 6379\n password:\n cloud:\n gateway:\n discovery:\n locator:\n lowerCaseServiceId: true\n enabled: true\n routes:\n # 认证中心\n - id: wfc-auth\n uri: lb://wfc-auth\n predicates:\n - Path=/auth/**\n filters:\n # 验证码处理\n - CacheRequestFilter\n - ValidateCodeFilter\n - StripPrefix=1\n # 代码生成\n - id: wfc-gen\n uri: lb://wfc-gen\n predicates:\n - Path=/code/**\n filters:\n - StripPrefix=1\n # 定时任务\n - id: wfc-job\n uri: lb://wfc-job\n predicates:\n - Path=/schedule/**\n filters:\n - StripPrefix=1\n # 系统模块\n - id: wfc-system\n uri: lb://wfc-system\n predicates:\n - Path=/system/**\n filters:\n - StripPrefix=1\n # 文件服务\n - id: wfc-file\n uri: lb://wfc-file\n predicates:\n - Path=/file/**\n filters:\n - StripPrefix=1\n\n# 安全配置\nsecurity:\n # 验证码\n captcha:\n enabled: true\n type: math\n # 防止XSS攻击\n xss:\n enabled: true\n excludeUrls:\n - /system/notice\n # 不校验白名单\n ignore:\n whites:\n - /auth/logout\n - /auth/login\n - /auth/register\n - /*/v2/api-docs\n - /csrf\n','57cec5abd0e0a6b77d853750344a9dc0','2020-05-14 14:17:55','2022-09-29 02:48:32','nacos','0:0:0:0:0:0:0:1','','','网关模块','null','null','yaml','',''),
|
||||
(3,'wfc-auth-dev.yml','DEFAULT_GROUP','spring:\n redis:\n host: localhost\n port: 6379\n password:\n','8bd9dada9a94822feeab40de55efced6','2020-11-20 00:00:00','2022-09-29 02:48:42','nacos','0:0:0:0:0:0:0:1','','','认证中心','null','null','yaml','',''),
|
||||
(4,'wfc-monitor-dev.yml','DEFAULT_GROUP','# spring\nspring:\n security:\n user:\n name: ruoyi\n password: 123456\n boot:\n admin:\n ui:\n title: 若依服务状态监控\n','6f122fd2bfb8d45f858e7d6529a9cd44','2020-11-20 00:00:00','2022-09-29 02:48:54','nacos','0:0:0:0:0:0:0:1','','','监控中心','null','null','yaml','',''),
|
||||
(5,'wfc-system-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By ruoyi\n licenseUrl: https://ruoyi.vip','00678c89684ec0b825cb9b71e032db64','2020-11-20 00:00:00','2023-12-04 07:51:28','nacos','0:0:0:0:0:0:0:1','','','系统模块','null','null','yaml','',''),
|
||||
(6,'wfc-gen-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.gen.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 代码生成接口文档\n license: Powered By ruoyi\n licenseUrl: https://ruoyi.vip\n\n# 代码生成\ngen:\n # 作者\n author: ruoyi\n # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool\n packageName: org.wfc.system\n # 自动去除表前缀,默认是false\n autoRemovePre: false\n # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)\n tablePrefix: sys_\n','eb592420b3fceae1402881887b8a6a0d','2020-11-20 00:00:00','2022-09-29 02:49:42','nacos','0:0:0:0:0:0:0:1','','','代码生成','null','null','yaml','',''),
|
||||
(7,'wfc-job-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password: \n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.job.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 定时任务接口文档\n license: Powered By ruoyi\n licenseUrl: https://ruoyi.vip\n','edcf0e3fe13fea07b4ec08b1088f30b3','2020-11-20 00:00:00','2022-09-29 02:50:50','nacos','0:0:0:0:0:0:0:1','','','定时任务','null','null','yaml','',''),
|
||||
(8,'wfc-file-dev.yml','DEFAULT_GROUP','# 本地文件上传 \r\nfile:\r\n domain: http://127.0.0.1:9300\r\n path: D:/ruoyi/uploadPath\r\n prefix: /statics\r\n\r\n# FastDFS配置\r\nfdfs:\r\n domain: http://8.129.231.12\r\n soTimeout: 3000\r\n connectTimeout: 2000\r\n trackerList: 8.129.231.12:22122\r\n\r\n# Minio配置\r\nminio:\r\n url: http://8.129.231.12:9000\r\n accessKey: minioadmin\r\n secretKey: minioadmin\r\n bucketName: test','5382b93f3d8059d6068c0501fdd41195','2020-11-20 00:00:00','2020-12-21 21:01:59',NULL,'0:0:0:0:0:0:0:1','','','文件服务','null','null','yaml',NULL,''),
|
||||
(9,'sentinel-wfc-gateway','DEFAULT_GROUP','[\r\n {\r\n \"resource\": \"wfc-auth\",\r\n \"count\": 500,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-system\",\r\n \"count\": 1000,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-gen\",\r\n \"count\": 200,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-job\",\r\n \"count\": 300,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n }\r\n]','9f3a3069261598f74220bc47958ec252','2020-11-20 00:00:00','2020-11-20 00:00:00',NULL,'0:0:0:0:0:0:0:1','','','限流策略','null','null','json',NULL,'');
|
||||
|
||||
|
||||
/******************************************/
|
||||
/* 表名称 = config_info_aggr */
|
||||
/******************************************/
|
||||
CREATE TABLE `config_info_aggr` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(255) NOT NULL COMMENT 'group_id',
|
||||
`datum_id` varchar(255) NOT NULL COMMENT 'datum_id',
|
||||
`content` longtext NOT NULL COMMENT '内容',
|
||||
`gmt_modified` datetime NOT NULL COMMENT '修改时间',
|
||||
`app_name` varchar(128) DEFAULT NULL,
|
||||
`tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_configinfoaggr_datagrouptenantdatum` (`data_id`,`group_id`,`tenant_id`,`datum_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='增加租户字段';
|
||||
|
||||
|
||||
/******************************************/
|
||||
/* 表名称 = config_info_beta */
|
||||
/******************************************/
|
||||
CREATE TABLE `config_info_beta` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(128) NOT NULL COMMENT 'group_id',
|
||||
`app_name` varchar(128) DEFAULT NULL COMMENT 'app_name',
|
||||
`content` longtext NOT NULL COMMENT 'content',
|
||||
`beta_ips` varchar(1024) DEFAULT NULL COMMENT 'betaIps',
|
||||
`md5` varchar(32) DEFAULT NULL COMMENT 'md5',
|
||||
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
`src_user` text COMMENT 'source user',
|
||||
`src_ip` varchar(50) DEFAULT NULL COMMENT 'source ip',
|
||||
`tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段',
|
||||
`encrypted_data_key` text COMMENT '秘钥',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_configinfobeta_datagrouptenant` (`data_id`,`group_id`,`tenant_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_info_beta';
|
||||
|
||||
/******************************************/
|
||||
/* 表名称 = config_info_tag */
|
||||
/******************************************/
|
||||
CREATE TABLE `config_info_tag` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(128) NOT NULL COMMENT 'group_id',
|
||||
`tenant_id` varchar(128) DEFAULT '' COMMENT 'tenant_id',
|
||||
`tag_id` varchar(128) NOT NULL COMMENT 'tag_id',
|
||||
`app_name` varchar(128) DEFAULT NULL COMMENT 'app_name',
|
||||
`content` longtext NOT NULL COMMENT 'content',
|
||||
`md5` varchar(32) DEFAULT NULL COMMENT 'md5',
|
||||
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
`src_user` text COMMENT 'source user',
|
||||
`src_ip` varchar(50) DEFAULT NULL COMMENT 'source ip',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_configinfotag_datagrouptenanttag` (`data_id`,`group_id`,`tenant_id`,`tag_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_info_tag';
|
||||
|
||||
/******************************************/
|
||||
/* 表名称 = config_tags_relation */
|
||||
/******************************************/
|
||||
CREATE TABLE `config_tags_relation` (
|
||||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||||
`tag_name` varchar(128) NOT NULL COMMENT 'tag_name',
|
||||
`tag_type` varchar(64) DEFAULT NULL COMMENT 'tag_type',
|
||||
`data_id` varchar(255) NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(128) NOT NULL COMMENT 'group_id',
|
||||
`tenant_id` varchar(128) DEFAULT '' COMMENT 'tenant_id',
|
||||
`nid` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY (`nid`),
|
||||
UNIQUE KEY `uk_configtagrelation_configidtag` (`id`,`tag_name`,`tag_type`),
|
||||
KEY `idx_tenant_id` (`tenant_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_tag_relation';
|
||||
|
||||
/******************************************/
|
||||
/* 表名称 = group_capacity */
|
||||
/******************************************/
|
||||
CREATE TABLE `group_capacity` (
|
||||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`group_id` varchar(128) NOT NULL DEFAULT '' COMMENT 'Group ID,空字符表示整个集群',
|
||||
`quota` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '配额,0表示使用默认值',
|
||||
`usage` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '使用量',
|
||||
`max_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '单个配置大小上限,单位为字节,0表示使用默认值',
|
||||
`max_aggr_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '聚合子配置最大个数,,0表示使用默认值',
|
||||
`max_aggr_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值',
|
||||
`max_history_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最大变更历史数量',
|
||||
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_group_id` (`group_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='集群、各Group容量信息表';
|
||||
|
||||
/******************************************/
|
||||
/* 表名称 = his_config_info */
|
||||
/******************************************/
|
||||
CREATE TABLE `his_config_info` (
|
||||
`id` bigint(64) unsigned NOT NULL,
|
||||
`nid` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`data_id` varchar(255) NOT NULL,
|
||||
`group_id` varchar(128) NOT NULL,
|
||||
`app_name` varchar(128) DEFAULT NULL COMMENT 'app_name',
|
||||
`content` longtext NOT NULL,
|
||||
`md5` varchar(32) DEFAULT NULL,
|
||||
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`src_user` text,
|
||||
`src_ip` varchar(50) DEFAULT NULL,
|
||||
`op_type` char(10) DEFAULT NULL,
|
||||
`tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段',
|
||||
`encrypted_data_key` text COMMENT '秘钥',
|
||||
PRIMARY KEY (`nid`),
|
||||
KEY `idx_gmt_create` (`gmt_create`),
|
||||
KEY `idx_gmt_modified` (`gmt_modified`),
|
||||
KEY `idx_did` (`data_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='多租户改造';
|
||||
|
||||
|
||||
/******************************************/
|
||||
/* 数据库全名 = nacos_config */
|
||||
/* 表名称 = tenant_capacity */
|
||||
/******************************************/
|
||||
CREATE TABLE `tenant_capacity` (
|
||||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`tenant_id` varchar(128) NOT NULL DEFAULT '' COMMENT 'Tenant ID',
|
||||
`quota` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '配额,0表示使用默认值',
|
||||
`usage` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '使用量',
|
||||
`max_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '单个配置大小上限,单位为字节,0表示使用默认值',
|
||||
`max_aggr_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '聚合子配置最大个数',
|
||||
`max_aggr_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值',
|
||||
`max_history_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最大变更历史数量',
|
||||
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_tenant_id` (`tenant_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='租户容量信息表';
|
||||
|
||||
|
||||
CREATE TABLE `tenant_info` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`kp` varchar(128) NOT NULL COMMENT 'kp',
|
||||
`tenant_id` varchar(128) default '' COMMENT 'tenant_id',
|
||||
`tenant_name` varchar(128) default '' COMMENT 'tenant_name',
|
||||
`tenant_desc` varchar(256) DEFAULT NULL COMMENT 'tenant_desc',
|
||||
`create_source` varchar(32) DEFAULT NULL COMMENT 'create_source',
|
||||
`gmt_create` bigint(20) NOT NULL COMMENT '创建时间',
|
||||
`gmt_modified` bigint(20) NOT NULL COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_tenant_info_kptenantid` (`kp`,`tenant_id`),
|
||||
KEY `idx_tenant_id` (`tenant_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='tenant_info';
|
||||
|
||||
CREATE TABLE `users` (
|
||||
`username` varchar(50) NOT NULL PRIMARY KEY,
|
||||
`password` varchar(500) NOT NULL,
|
||||
`enabled` boolean NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE `roles` (
|
||||
`username` varchar(50) NOT NULL,
|
||||
`role` varchar(50) NOT NULL,
|
||||
UNIQUE INDEX `idx_user_role` (`username` ASC, `role` ASC) USING BTREE
|
||||
);
|
||||
|
||||
CREATE TABLE `permissions` (
|
||||
`role` varchar(50) NOT NULL,
|
||||
`resource` varchar(255) NOT NULL,
|
||||
`action` varchar(8) NOT NULL,
|
||||
UNIQUE INDEX `uk_role_permission` (`role`,`resource`,`action`) USING BTREE
|
||||
);
|
||||
|
||||
INSERT INTO users (username, password, enabled) VALUES ('nacos', '$2a$10$EuWPZHzz32dJN7jexM34MOeYirDdFAZm2kuWj7VEOJhhZkDrxfvUu', TRUE);
|
||||
|
||||
INSERT INTO roles (username, role) VALUES ('nacos', 'ROLE_ADMIN');
|
||||
@@ -1,219 +0,0 @@
|
||||
DROP DATABASE IF EXISTS `ry-config`;
|
||||
|
||||
CREATE DATABASE `ry-config` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
USE `ry-config`;
|
||||
|
||||
/******************************************/
|
||||
/* 表名称 = config_info */
|
||||
/******************************************/
|
||||
CREATE TABLE `config_info` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(255) DEFAULT NULL,
|
||||
`content` longtext NOT NULL COMMENT 'content',
|
||||
`md5` varchar(32) DEFAULT NULL COMMENT 'md5',
|
||||
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
`src_user` text COMMENT 'source user',
|
||||
`src_ip` varchar(50) DEFAULT NULL COMMENT 'source ip',
|
||||
`app_name` varchar(128) DEFAULT NULL,
|
||||
`tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段',
|
||||
`c_desc` varchar(256) DEFAULT NULL,
|
||||
`c_use` varchar(64) DEFAULT NULL,
|
||||
`effect` varchar(64) DEFAULT NULL,
|
||||
`type` varchar(64) DEFAULT NULL,
|
||||
`c_schema` text,
|
||||
`encrypted_data_key` text COMMENT '秘钥',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_configinfo_datagrouptenant` (`data_id`,`group_id`,`tenant_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_info';
|
||||
|
||||
insert into config_info(id, data_id, group_id, content, md5, gmt_create, gmt_modified, src_user, src_ip, app_name, tenant_id, c_desc, c_use, effect, type, c_schema, encrypted_data_key) values
|
||||
(1,'application-dev.yml','DEFAULT_GROUP','spring:\n autoconfigure:\n exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure\n\n# feign 配置\nfeign:\n sentinel:\n enabled: true\n okhttp:\n enabled: true\n httpclient:\n enabled: false\n client:\n config:\n default:\n connectTimeout: 10000\n readTimeout: 10000\n compression:\n request:\n enabled: true\n min-request-size: 8192\n response:\n enabled: true\n\n# 暴露监控端点\nmanagement:\n endpoints:\n web:\n exposure:\n include: \'*\'\n','9928f41dfb10386ad38b3254af5692e0','2020-05-20 12:00:00','2024-08-29 12:14:45','nacos','0:0:0:0:0:0:0:1','','','通用配置','null','null','yaml','',''),
|
||||
(2,'wfc-gateway-dev.yml','DEFAULT_GROUP','spring:\n redis:\n host: localhost\n port: 6379\n password: \n cloud:\n gateway:\n discovery:\n locator:\n lowerCaseServiceId: true\n enabled: true\n routes:\n # 认证中心\n - id: wfc-auth\n uri: lb://wfc-auth\n predicates:\n - Path=/auth/**\n filters:\n # 验证码处理\n - CacheRequestFilter\n - ValidateCodeFilter\n - StripPrefix=1\n # 代码生成\n - id: wfc-gen\n uri: lb://wfc-gen\n predicates:\n - Path=/code/**\n filters:\n - StripPrefix=1\n # 定时任务\n - id: wfc-job\n uri: lb://wfc-job\n predicates:\n - Path=/schedule/**\n filters:\n - StripPrefix=1\n # 系统模块\n - id: wfc-system\n uri: lb://wfc-system\n predicates:\n - Path=/system/**\n filters:\n - StripPrefix=1\n # 文件服务\n - id: wfc-file\n uri: lb://wfc-file\n predicates:\n - Path=/file/**\n filters:\n - StripPrefix=1\n\n# 安全配置\nsecurity:\n # 验证码\n captcha:\n enabled: true\n type: math\n # 防止XSS攻击\n xss:\n enabled: true\n excludeUrls:\n - /system/notice\n\n # 不校验白名单\n ignore:\n whites:\n - /auth/logout\n - /auth/login\n - /auth/register\n - /*/v2/api-docs\n - /*/v3/api-docs\n - /csrf\n\n# springdoc配置\nspringdoc:\n webjars:\n # 访问前缀\n prefix:\n','4d329eb08a941a8dd9d26f542c6ac6c5','2020-05-14 14:17:55','2024-09-02 12:13:50','nacos','0:0:0:0:0:0:0:1','','','网关模块','null','null','yaml','',''),
|
||||
(3,'wfc-auth-dev.yml','DEFAULT_GROUP','spring:\n redis:\n host: localhost\n port: 6379\n password: \n','a03e7632a0a74520eeb4fbedd6d82d97','2020-11-20 00:00:00','2024-09-02 12:13:58','nacos','0:0:0:0:0:0:0:1','','','认证中心','null','null','yaml','',''),
|
||||
(4,'wfc-monitor-dev.yml','DEFAULT_GROUP','# spring\nspring:\n security:\n user:\n name: ruoyi\n password: 123456\n boot:\n admin:\n ui:\n title: 若依服务状态监控\n','6f122fd2bfb8d45f858e7d6529a9cd44','2020-11-20 00:00:00','2024-08-29 12:15:11','nacos','0:0:0:0:0:0:0:1','','','监控中心','null','null','yaml','',''),
|
||||
(5,'wfc-system-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password: \n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: ruoyi\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# springdoc配置\nspringdoc:\n gatewayUrl: http://localhost:8080/${spring.application.name}\n api-docs:\n # 是否开启接口文档\n enabled: true\n info:\n # 标题\n title: \'系统模块接口文档\'\n # 描述\n description: \'系统模块接口描述\'\n # 作者信息\n contact:\n name: RuoYi\n url: https://ruoyi.vip\n','786c7daf4543411fc65c3e48dfb15243','2020-11-20 00:00:00','2024-09-02 12:14:33','nacos','0:0:0:0:0:0:0:1','','','系统模块','null','null','yaml','',''),
|
||||
(6,'wfc-gen-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password: \n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.gen.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# springdoc配置\nspringdoc:\n gatewayUrl: http://localhost:8080/${spring.application.name}\n api-docs:\n # 是否开启接口文档\n enabled: true\n info:\n # 标题\n title: \'代码生成接口文档\'\n # 描述\n description: \'代码生成接口描述\'\n # 作者信息\n contact:\n name: RuoYi\n url: https://ruoyi.vip\n\n# 代码生成\ngen:\n # 作者\n author: ruoyi\n # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool\n packageName: org.wfc.system\n # 自动去除表前缀,默认是false\n autoRemovePre: false\n # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)\n tablePrefix: sys_\n','14d41dda290bf445b7ed06c5667e8e88','2020-11-20 00:00:00','2024-09-02 12:14:48','nacos','0:0:0:0:0:0:0:1','','','代码生成','null','null','yaml','',''),
|
||||
(7,'wfc-job-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password: \n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.job.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# springdoc配置\nspringdoc:\n gatewayUrl: http://localhost:8080/${spring.application.name}\n api-docs:\n # 是否开启接口文档\n enabled: true\n info:\n # 标题\n title: \'定时任务接口文档\'\n # 描述\n description: \'定时任务接口描述\'\n # 作者信息\n contact:\n name: RuoYi\n url: https://ruoyi.vip\n','f78483f845777335b9ed4a9f84758848','2020-11-20 00:00:00','2024-09-02 12:14:56','nacos','0:0:0:0:0:0:0:1','','','定时任务','null','null','yaml','',''),
|
||||
(8,'wfc-file-dev.yml','DEFAULT_GROUP','# 本地文件上传 \r\nfile:\r\n domain: http://127.0.0.1:9300\r\n path: D:/ruoyi/uploadPath\r\n prefix: /statics\r\n\r\n# FastDFS配置\r\nfdfs:\r\n domain: http://8.129.231.12\r\n soTimeout: 3000\r\n connectTimeout: 2000\r\n trackerList: 8.129.231.12:22122\r\n\r\n# Minio配置\r\nminio:\r\n url: http://8.129.231.12:9000\r\n accessKey: minioadmin\r\n secretKey: minioadmin\r\n bucketName: test','5382b93f3d8059d6068c0501fdd41195','2020-11-20 00:00:00','2020-12-21 21:01:59',NULL,'0:0:0:0:0:0:0:1','','','文件服务','null','null','yaml',NULL,''),
|
||||
(9,'sentinel-wfc-gateway','DEFAULT_GROUP','[\r\n {\r\n \"resource\": \"wfc-auth\",\r\n \"count\": 500,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-system\",\r\n \"count\": 1000,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-gen\",\r\n \"count\": 200,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-job\",\r\n \"count\": 300,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n }\r\n]','9f3a3069261598f74220bc47958ec252','2020-11-20 00:00:00','2020-11-20 00:00:00',NULL,'0:0:0:0:0:0:0:1','','','限流策略','null','null','json',NULL,'');
|
||||
|
||||
|
||||
/******************************************/
|
||||
/* 表名称 = config_info_aggr */
|
||||
/******************************************/
|
||||
CREATE TABLE `config_info_aggr` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(255) NOT NULL COMMENT 'group_id',
|
||||
`datum_id` varchar(255) NOT NULL COMMENT 'datum_id',
|
||||
`content` longtext NOT NULL COMMENT '内容',
|
||||
`gmt_modified` datetime NOT NULL COMMENT '修改时间',
|
||||
`app_name` varchar(128) DEFAULT NULL,
|
||||
`tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_configinfoaggr_datagrouptenantdatum` (`data_id`,`group_id`,`tenant_id`,`datum_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='增加租户字段';
|
||||
|
||||
|
||||
/******************************************/
|
||||
/* 表名称 = config_info_beta */
|
||||
/******************************************/
|
||||
CREATE TABLE `config_info_beta` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(128) NOT NULL COMMENT 'group_id',
|
||||
`app_name` varchar(128) DEFAULT NULL COMMENT 'app_name',
|
||||
`content` longtext NOT NULL COMMENT 'content',
|
||||
`beta_ips` varchar(1024) DEFAULT NULL COMMENT 'betaIps',
|
||||
`md5` varchar(32) DEFAULT NULL COMMENT 'md5',
|
||||
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
`src_user` text COMMENT 'source user',
|
||||
`src_ip` varchar(50) DEFAULT NULL COMMENT 'source ip',
|
||||
`tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段',
|
||||
`encrypted_data_key` text COMMENT '秘钥',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_configinfobeta_datagrouptenant` (`data_id`,`group_id`,`tenant_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_info_beta';
|
||||
|
||||
/******************************************/
|
||||
/* 表名称 = config_info_tag */
|
||||
/******************************************/
|
||||
CREATE TABLE `config_info_tag` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(128) NOT NULL COMMENT 'group_id',
|
||||
`tenant_id` varchar(128) DEFAULT '' COMMENT 'tenant_id',
|
||||
`tag_id` varchar(128) NOT NULL COMMENT 'tag_id',
|
||||
`app_name` varchar(128) DEFAULT NULL COMMENT 'app_name',
|
||||
`content` longtext NOT NULL COMMENT 'content',
|
||||
`md5` varchar(32) DEFAULT NULL COMMENT 'md5',
|
||||
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
`src_user` text COMMENT 'source user',
|
||||
`src_ip` varchar(50) DEFAULT NULL COMMENT 'source ip',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_configinfotag_datagrouptenanttag` (`data_id`,`group_id`,`tenant_id`,`tag_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_info_tag';
|
||||
|
||||
/******************************************/
|
||||
/* 表名称 = config_tags_relation */
|
||||
/******************************************/
|
||||
CREATE TABLE `config_tags_relation` (
|
||||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||||
`tag_name` varchar(128) NOT NULL COMMENT 'tag_name',
|
||||
`tag_type` varchar(64) DEFAULT NULL COMMENT 'tag_type',
|
||||
`data_id` varchar(255) NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(128) NOT NULL COMMENT 'group_id',
|
||||
`tenant_id` varchar(128) DEFAULT '' COMMENT 'tenant_id',
|
||||
`nid` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY (`nid`),
|
||||
UNIQUE KEY `uk_configtagrelation_configidtag` (`id`,`tag_name`,`tag_type`),
|
||||
KEY `idx_tenant_id` (`tenant_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_tag_relation';
|
||||
|
||||
/******************************************/
|
||||
/* 表名称 = group_capacity */
|
||||
/******************************************/
|
||||
CREATE TABLE `group_capacity` (
|
||||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`group_id` varchar(128) NOT NULL DEFAULT '' COMMENT 'Group ID,空字符表示整个集群',
|
||||
`quota` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '配额,0表示使用默认值',
|
||||
`usage` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '使用量',
|
||||
`max_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '单个配置大小上限,单位为字节,0表示使用默认值',
|
||||
`max_aggr_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '聚合子配置最大个数,,0表示使用默认值',
|
||||
`max_aggr_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值',
|
||||
`max_history_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最大变更历史数量',
|
||||
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_group_id` (`group_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='集群、各Group容量信息表';
|
||||
|
||||
/******************************************/
|
||||
/* 表名称 = his_config_info */
|
||||
/******************************************/
|
||||
CREATE TABLE `his_config_info` (
|
||||
`id` bigint(64) unsigned NOT NULL,
|
||||
`nid` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`data_id` varchar(255) NOT NULL,
|
||||
`group_id` varchar(128) NOT NULL,
|
||||
`app_name` varchar(128) DEFAULT NULL COMMENT 'app_name',
|
||||
`content` longtext NOT NULL,
|
||||
`md5` varchar(32) DEFAULT NULL,
|
||||
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`src_user` text,
|
||||
`src_ip` varchar(50) DEFAULT NULL,
|
||||
`op_type` char(10) DEFAULT NULL,
|
||||
`tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段',
|
||||
`encrypted_data_key` text COMMENT '秘钥',
|
||||
PRIMARY KEY (`nid`),
|
||||
KEY `idx_gmt_create` (`gmt_create`),
|
||||
KEY `idx_gmt_modified` (`gmt_modified`),
|
||||
KEY `idx_did` (`data_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='多租户改造';
|
||||
|
||||
|
||||
/******************************************/
|
||||
/* 数据库全名 = nacos_config */
|
||||
/* 表名称 = tenant_capacity */
|
||||
/******************************************/
|
||||
CREATE TABLE `tenant_capacity` (
|
||||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`tenant_id` varchar(128) NOT NULL DEFAULT '' COMMENT 'Tenant ID',
|
||||
`quota` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '配额,0表示使用默认值',
|
||||
`usage` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '使用量',
|
||||
`max_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '单个配置大小上限,单位为字节,0表示使用默认值',
|
||||
`max_aggr_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '聚合子配置最大个数',
|
||||
`max_aggr_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值',
|
||||
`max_history_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最大变更历史数量',
|
||||
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_tenant_id` (`tenant_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='租户容量信息表';
|
||||
|
||||
|
||||
CREATE TABLE `tenant_info` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`kp` varchar(128) NOT NULL COMMENT 'kp',
|
||||
`tenant_id` varchar(128) default '' COMMENT 'tenant_id',
|
||||
`tenant_name` varchar(128) default '' COMMENT 'tenant_name',
|
||||
`tenant_desc` varchar(256) DEFAULT NULL COMMENT 'tenant_desc',
|
||||
`create_source` varchar(32) DEFAULT NULL COMMENT 'create_source',
|
||||
`gmt_create` bigint(20) NOT NULL COMMENT '创建时间',
|
||||
`gmt_modified` bigint(20) NOT NULL COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_tenant_info_kptenantid` (`kp`,`tenant_id`),
|
||||
KEY `idx_tenant_id` (`tenant_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='tenant_info';
|
||||
|
||||
CREATE TABLE `users` (
|
||||
`username` varchar(50) NOT NULL PRIMARY KEY,
|
||||
`password` varchar(500) NOT NULL,
|
||||
`enabled` boolean NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE `roles` (
|
||||
`username` varchar(50) NOT NULL,
|
||||
`role` varchar(50) NOT NULL,
|
||||
UNIQUE INDEX `idx_user_role` (`username` ASC, `role` ASC) USING BTREE
|
||||
);
|
||||
|
||||
CREATE TABLE `permissions` (
|
||||
`role` varchar(50) NOT NULL,
|
||||
`resource` varchar(255) NOT NULL,
|
||||
`action` varchar(8) NOT NULL,
|
||||
UNIQUE INDEX `uk_role_permission` (`role`,`resource`,`action`) USING BTREE
|
||||
);
|
||||
|
||||
INSERT INTO users (username, password, enabled) VALUES ('nacos', '$2a$10$EuWPZHzz32dJN7jexM34MOeYirDdFAZm2kuWj7VEOJhhZkDrxfvUu', TRUE);
|
||||
|
||||
INSERT INTO roles (username, role) VALUES ('nacos', 'ROLE_ADMIN');
|
||||
@@ -1,80 +0,0 @@
|
||||
DROP DATABASE IF EXISTS `ry-seata`;
|
||||
|
||||
CREATE DATABASE `ry-seata` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
USE `ry-seata`;
|
||||
|
||||
-- -------------------------------- The script used when storeMode is 'db' --------------------------------
|
||||
-- the table to store GlobalSession data
|
||||
CREATE TABLE IF NOT EXISTS `global_table`
|
||||
(
|
||||
`xid` VARCHAR(128) NOT NULL,
|
||||
`transaction_id` BIGINT,
|
||||
`status` TINYINT NOT NULL,
|
||||
`application_id` VARCHAR(32),
|
||||
`transaction_service_group` VARCHAR(32),
|
||||
`transaction_name` VARCHAR(128),
|
||||
`timeout` INT,
|
||||
`begin_time` BIGINT,
|
||||
`application_data` VARCHAR(2000),
|
||||
`gmt_create` DATETIME,
|
||||
`gmt_modified` DATETIME,
|
||||
PRIMARY KEY (`xid`),
|
||||
KEY `idx_gmt_modified_status` (`gmt_modified`, `status`),
|
||||
KEY `idx_transaction_id` (`transaction_id`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4;
|
||||
|
||||
-- the table to store BranchSession data
|
||||
CREATE TABLE IF NOT EXISTS `branch_table`
|
||||
(
|
||||
`branch_id` BIGINT NOT NULL,
|
||||
`xid` VARCHAR(128) NOT NULL,
|
||||
`transaction_id` BIGINT,
|
||||
`resource_group_id` VARCHAR(32),
|
||||
`resource_id` VARCHAR(256),
|
||||
`branch_type` VARCHAR(8),
|
||||
`status` TINYINT,
|
||||
`client_id` VARCHAR(64),
|
||||
`application_data` VARCHAR(2000),
|
||||
`gmt_create` DATETIME(6),
|
||||
`gmt_modified` DATETIME(6),
|
||||
PRIMARY KEY (`branch_id`),
|
||||
KEY `idx_xid` (`xid`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4;
|
||||
|
||||
-- the table to store lock data
|
||||
CREATE TABLE IF NOT EXISTS `lock_table`
|
||||
(
|
||||
`row_key` VARCHAR(128) NOT NULL,
|
||||
`xid` VARCHAR(96),
|
||||
`transaction_id` BIGINT,
|
||||
`branch_id` BIGINT NOT NULL,
|
||||
`resource_id` VARCHAR(256),
|
||||
`table_name` VARCHAR(32),
|
||||
`pk` VARCHAR(36),
|
||||
`gmt_create` DATETIME,
|
||||
`gmt_modified` DATETIME,
|
||||
PRIMARY KEY (`row_key`),
|
||||
KEY `idx_branch_id` (`branch_id`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4;
|
||||
|
||||
-- for AT mode you must to init this sql for you business database. the seata server not need it.
|
||||
CREATE TABLE IF NOT EXISTS `undo_log`
|
||||
(
|
||||
`branch_id` BIGINT(20) NOT NULL COMMENT 'branch transaction id',
|
||||
`xid` VARCHAR(100) NOT NULL COMMENT 'global transaction id',
|
||||
`context` VARCHAR(128) NOT NULL COMMENT 'undo_log context,such as serialization',
|
||||
`rollback_info` LONGBLOB NOT NULL COMMENT 'rollback info',
|
||||
`log_status` INT(11) NOT NULL COMMENT '0:normal status,1:defense status',
|
||||
`log_created` DATETIME(6) NOT NULL COMMENT 'create datetime',
|
||||
`log_modified` DATETIME(6) NOT NULL COMMENT 'modify datetime',
|
||||
UNIQUE KEY `ux_undo_log` (`xid`, `branch_id`)
|
||||
) ENGINE = InnoDB
|
||||
AUTO_INCREMENT = 1
|
||||
DEFAULT CHARSET = utf8mb4 COMMENT ='AT transaction mode undo table';
|
||||
@@ -1,33 +0,0 @@
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sys_role
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sys_role`;
|
||||
CREATE TABLE `sys_role` (
|
||||
`role_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT '角色ID',
|
||||
`role_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色名称',
|
||||
`role_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色权限字符串',
|
||||
`data_scope` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)',
|
||||
`menu_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '菜单树选择项是否关联显示',
|
||||
`dept_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '部门树选择项是否关联显示',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色状态(0正常 1停用)',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`role_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 106 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色信息表' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sys_role
|
||||
-- ----------------------------
|
||||
INSERT INTO `sys_role` VALUES (1, '超级管理员', 'admin', '1', 1, 1, '0', '0', 'admin', '2024-05-08 21:50:54', '', NULL, '超级管理员');
|
||||
INSERT INTO `sys_role` VALUES (2, '普通刺客', 'common', '2', 1, 1, '0', '0', 'admin', '2024-05-08 21:50:54', 'admin', '2024-06-02 23:14:56', '普通角色');
|
||||
INSERT INTO `sys_role` VALUES (100, '测试新增', 'test-add', '1', 1, 0, '0', '2', 'ryadmin', '2024-05-18 23:09:26', 'ryadmin', '2024-05-18 23:58:00', '测试角色');
|
||||
INSERT INTO `sys_role` VALUES (101, '测试2', 'test2', '1', 1, 0, '0', '2', 'ryadmin', '2024-05-18 23:30:42', 'ryadmin', '2024-05-18 23:31:37', NULL);
|
||||
INSERT INTO `sys_role` VALUES (102, '111', '111', '1', 0, 0, '0', '2', 'ryadmin', '2024-05-18 23:45:02', '', NULL, '1111');
|
||||
INSERT INTO `sys_role` VALUES (103, '211212', '121212', '1', 0, 0, '0', '2', 'ryadmin', '2024-05-18 23:52:09', '', NULL, '121212');
|
||||
INSERT INTO `sys_role` VALUES (104, 'adasd', 'asdasd', '1', 1, 0, '0', '2', 'ryadmin', '2024-05-18 23:53:04', '', NULL, 'asd');
|
||||
INSERT INTO `sys_role` VALUES (105, '普通刺客111', 'test-add', '1', 1, 0, '0', '0', 'ryadmin', '2024-05-28 21:33:02', 'ryadmin', '2024-05-28 21:33:12', '测试角色');
|
||||
@@ -1,4 +0,0 @@
|
||||
ALTER TABLE `wfc-cloud`.`sys_user`
|
||||
ADD COLUMN `full_name` varchar(64) NULL COMMENT '用户姓名' AFTER `nick_name`,
|
||||
ADD COLUMN `age` int(11) NULL COMMENT '年龄' AFTER `password`,
|
||||
ADD COLUMN `address` varchar(255) NULL COMMENT '地址' AFTER `age`;
|
||||
13
sql/upgrade/1.0.10/upgrade.sql
Normal file
13
sql/upgrade/1.0.10/upgrade.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
ALTER TABLE `wfc_user_db`.`u_cdr_history`
|
||||
ADD COLUMN `use_type` tinyint(4) NULL COMMENT 'use id' AFTER `duration`,
|
||||
ADD COLUMN `use_id` bigint(20) NULL COMMENT 'use type' AFTER `use_type`;
|
||||
|
||||
ALTER TABLE `wfc_user_db`.`u_client`
|
||||
ADD COLUMN `active` tinyint(1) NULL COMMENT 'Whether the client is online' AFTER `client_mac`,
|
||||
ADD COLUMN `use_type` tinyint(4) NULL COMMENT 'use type' AFTER `active`,
|
||||
ADD COLUMN `use_id` bigint(20) NULL COMMENT 'use id' AFTER `use_type`;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
7
sql/upgrade/1.0.7/upgrade.sql
Normal file
7
sql/upgrade/1.0.7/upgrade.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
ALTER TABLE `wfc_user_db`.`u_user`
|
||||
ADD COLUMN `birth_date` date NULL COMMENT '出生日期' AFTER `age`;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
16
sql/upgrade/1.0.8/upgrade.sql
Normal file
16
sql/upgrade/1.0.8/upgrade.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
DROP TABLE IF EXISTS `wfc_user_db`.`u_alipay_order`;
|
||||
|
||||
DROP TABLE IF EXISTS `wfc_user_db`.`u_balance`;
|
||||
|
||||
DROP TABLE IF EXISTS `wfc_user_db`.`u_cdr_detail`;
|
||||
|
||||
DROP TABLE IF EXISTS `wfc_user_db`.`u_credit_card_order`;
|
||||
|
||||
DROP TABLE IF EXISTS `wfc_user_db`.`u_credit_card_token`;
|
||||
|
||||
DROP TABLE IF EXISTS `wfc_user_db`.`u_wxpay_order`;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
9
sql/upgrade/1.0.9/upgrade.sql
Normal file
9
sql/upgrade/1.0.9/upgrade.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
INSERT IGNORE INTO `wfc_system_db`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`, `name`) VALUES (2031, 'menu.device.wlan.management', 2028, 12, '/device/wlan', 'view.device_wlan', NULL, 1, 1, 'C', '0', '0', '', 'carbon:rocket', 'super', '2025-02-18 10:46:31', '', NULL, '', 'device_wlan');
|
||||
|
||||
INSERT IGNORE INTO `wfc_system_db`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`, `name`) VALUES (2032, 'menu.device.portal.management', 2028, 14, '/device/portal', 'view.device_portal', NULL, 1, 1, 'C', '0', '0', '', 'carbon:building-insights-3', 'super', '2025-02-18 10:46:31', '', NULL, '', 'device_portal');
|
||||
|
||||
INSERT IGNORE INTO `wfc_system_db`.`sys_role_menu` (`role_id`, `menu_id`) VALUES (2, 2032);
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
1101
sql/wfc-cloud.sql
1101
sql/wfc-cloud.sql
File diff suppressed because it is too large
Load Diff
@@ -1,318 +0,0 @@
|
||||
CREATE database if NOT EXISTS `wfc-config` default character set utf8mb4;
|
||||
USE `wfc-config`;
|
||||
|
||||
/*
|
||||
Navicat Premium Data Transfer
|
||||
|
||||
Source Server : mysql
|
||||
Source Server Type : MySQL
|
||||
Source Server Version : 80023
|
||||
Source Host : localhost:3306
|
||||
Source Schema : wfc-config
|
||||
|
||||
Target Server Type : MySQL
|
||||
Target Server Version : 80023
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 10/06/2024 11:56:59
|
||||
*/
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for config_info
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `config_info`;
|
||||
CREATE TABLE `config_info` (
|
||||
`id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
|
||||
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'content',
|
||||
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'md5',
|
||||
`gmt_create` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
|
||||
`gmt_modified` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '修改时间',
|
||||
`src_user` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT 'source user',
|
||||
`src_ip` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'source ip',
|
||||
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT '租户字段',
|
||||
`c_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
|
||||
`c_use` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
|
||||
`effect` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
|
||||
`type` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
|
||||
`c_schema` text CHARACTER SET utf8 COLLATE utf8_bin NULL,
|
||||
`encrypted_data_key` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT '秘钥',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_configinfo_datagrouptenant`(`data_id`, `group_id`, `tenant_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'config_info' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of config_info
|
||||
-- ----------------------------
|
||||
INSERT INTO `config_info` VALUES (1, 'application-dev.yml', 'DEFAULT_GROUP', 'spring:\n autoconfigure:\n exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure\n mvc:\n pathmatch:\n matching-strategy: ant_path_matcher\n\n# feign 配置\nfeign:\n sentinel:\n enabled: true\n okhttp:\n enabled: true\n httpclient:\n enabled: false\n client:\n config:\n default:\n connectTimeout: 10000\n readTimeout: 10000\n compression:\n request:\n enabled: true\n min-request-size: 8192\n response:\n enabled: true\n\n# 暴露监控端点\nmanagement:\n endpoints:\n web:\n exposure:\n include: \'*\'\n', '58dde4e3760499d3bac2d77a3a1e9018', '2020-05-20 12:00:00', '2023-12-04 08:08:23', 'nacos', '0:0:0:0:0:0:0:1', '', '', '通用配置', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (2, 'wfc-gateway-dev.yml', 'DEFAULT_GROUP', 'spring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n cloud:\n gateway:\n discovery:\n locator:\n lowerCaseServiceId: true\n enabled: true\n routes:\n # 认证中心\n - id: wfc-auth\n uri: lb://wfc-auth\n predicates:\n - Path=/auth/**\n filters:\n # 验证码处理\n - CacheRequestFilter\n - ValidateCodeFilter\n - StripPrefix=1\n # 代码生成\n - id: wfc-gen\n uri: lb://wfc-gen\n predicates:\n - Path=/code/**\n filters:\n - StripPrefix=1\n # 定时任务\n - id: wfc-job\n uri: lb://wfc-job\n predicates:\n - Path=/schedule/**\n filters:\n - StripPrefix=1\n # 系统模块\n - id: wfc-system\n uri: lb://wfc-system\n predicates:\n - Path=/system/**\n filters:\n - StripPrefix=1\n # 文件服务\n - id: wfc-file\n uri: lb://wfc-file\n predicates:\n - Path=/file/**\n filters:\n - StripPrefix=1\n\n# 安全配置\nsecurity:\n # 验证码\n captcha:\n enabled: true\n type: math\n # 防止XSS攻击\n xss:\n enabled: true\n excludeUrls:\n - /system/notice\n # 不校验白名单\n ignore:\n whites:\n - /auth/logout\n - /auth/login\n - /auth/register\n - /*/v2/api-docs\n - /csrf\n', 'c3af686cbf658460ad64a78c07261949', '2020-05-14 14:17:55', '2024-11-15 19:26:39', NULL, '192.168.88.14', '', '', '网关模块', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (3, 'wfc-auth-dev.yml', 'DEFAULT_GROUP', 'spring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n', 'c3f5481240e7581cc397f5c7918fd785', '2020-11-20 00:00:00', '2024-11-15 19:36:54', NULL, '192.168.88.14', '', '', '认证中心', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (4, 'wfc-monitor-dev.yml', 'DEFAULT_GROUP', '# spring\nspring:\n security:\n user:\n name: wfc\n password: 123456\n boot:\n admin:\n ui:\n title: 若依服务状态监控\n', '6f122fd2bfb8d45f858e7d6529a9cd44', '2020-11-20 00:00:00', '2022-09-29 02:48:54', 'nacos', '0:0:0:0:0:0:0:1', '', '', '监控中心', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (5, 'wfc-system-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip', 'a9a7c1bcede16a06514731748a75fc71', '2020-11-20 00:00:00', '2024-11-15 19:33:06', NULL, '192.168.88.14', '', '', '系统模块', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (6, 'wfc-gen-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/wfc-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.gen.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 代码生成接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip\n\n# 代码生成\ngen:\n # 作者\n author: wfc\n # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool\n packageName: org.wfc.system\n # 自动去除表前缀,默认是false\n autoRemovePre: false\n # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)\n tablePrefix: sys_\n', 'eb592420b3fceae1402881887b8a6a0d', '2020-11-20 00:00:00', '2022-09-29 02:49:42', 'nacos', '0:0:0:0:0:0:0:1', '', '', '代码生成', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (7, 'wfc-job-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password: \n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/wfc-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.job.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 定时任务接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip\n', 'edcf0e3fe13fea07b4ec08b1088f30b3', '2020-11-20 00:00:00', '2022-09-29 02:50:50', 'nacos', '0:0:0:0:0:0:0:1', '', '', '定时任务', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (8, 'wfc-file-dev.yml', 'DEFAULT_GROUP', '# 本地文件上传 \r\nfile:\r\n domain: http://127.0.0.1:9300\r\n path: D:/wfc/uploadPath\r\n prefix: /statics\r\n\r\n# FastDFS配置\r\nfdfs:\r\n domain: http://8.129.231.12\r\n soTimeout: 3000\r\n connectTimeout: 2000\r\n trackerList: 8.129.231.12:22122\r\n\r\n# Minio配置\r\nminio:\r\n url: http://8.129.231.12:9000\r\n accessKey: minioadmin\r\n secretKey: minioadmin\r\n bucketName: test', '5382b93f3d8059d6068c0501fdd41195', '2020-11-20 00:00:00', '2020-12-21 21:01:59', NULL, '0:0:0:0:0:0:0:1', '', '', '文件服务', 'null', 'null', 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (9, 'sentinel-wfc-gateway', 'DEFAULT_GROUP', '[\r\n {\r\n \"resource\": \"wfc-auth\",\r\n \"count\": 500,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-system\",\r\n \"count\": 1000,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-gen\",\r\n \"count\": 200,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-job\",\r\n \"count\": 300,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n }\r\n]', '9f3a3069261598f74220bc47958ec252', '2020-11-20 00:00:00', '2020-11-20 00:00:00', NULL, '0:0:0:0:0:0:0:1', '', '', '限流策略', 'null', 'null', 'json', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (10, 'application-dev.yml', 'DEFAULT_GROUP', 'spring:\n autoconfigure:\n exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure\n mvc:\n pathmatch:\n matching-strategy: ant_path_matcher\n\n# feign 配置\nfeign:\n sentinel:\n enabled: true\n okhttp:\n enabled: true\n httpclient:\n enabled: false\n client:\n config:\n default:\n connectTimeout: 10000\n readTimeout: 10000\n compression:\n request:\n enabled: true\n min-request-size: 8192\n response:\n enabled: true\n\n# 暴露监控端点\nmanagement:\n endpoints:\n web:\n exposure:\n include: \'*\'\n', '58dde4e3760499d3bac2d77a3a1e9018', '2024-11-18 18:11:28', '2024-11-18 18:11:28', '', '192.168.88.14', '', 'wfc-dev', '通用配置', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (11, 'wfc-gateway-dev.yml', 'DEFAULT_GROUP', 'spring:\n redis:\n host: localhost\n port: 6379\n password:\n cloud:\n gateway:\n discovery:\n locator:\n lowerCaseServiceId: true\n enabled: true\n routes:\n # 认证中心\n - id: wfc-auth\n uri: lb://wfc-auth\n predicates:\n - Path=/auth/**\n filters:\n # 验证码处理\n - CacheRequestFilter\n - ValidateCodeFilter\n - StripPrefix=1\n # 代码生成\n - id: wfc-gen\n uri: lb://wfc-gen\n predicates:\n - Path=/code/**\n filters:\n - StripPrefix=1\n # 定时任务\n - id: wfc-job\n uri: lb://wfc-job\n predicates:\n - Path=/schedule/**\n filters:\n - StripPrefix=1\n # 系统模块\n - id: wfc-system\n uri: lb://wfc-system\n predicates:\n - Path=/system/**\n filters:\n - StripPrefix=1\n # 文件服务\n - id: wfc-file\n uri: lb://wfc-file\n predicates:\n - Path=/file/**\n filters:\n - StripPrefix=1\n\n# 安全配置\nsecurity:\n # 验证码\n captcha:\n enabled: true\n type: math\n # 防止XSS攻击\n xss:\n enabled: true\n excludeUrls:\n - /system/notice\n # 不校验白名单\n ignore:\n whites:\n - /auth/logout\n - /auth/login\n - /auth/register\n - /*/v2/api-docs\n - /csrf\n', '2b6319d68351ca82dd097493d97ccf65', '2024-11-18 18:11:28', '2024-11-18 18:13:29', NULL, '192.168.88.14', '', 'wfc-dev', '网关模块', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (12, 'wfc-auth-dev.yml', 'DEFAULT_GROUP', 'spring:\n redis:\n host: localhost\n port: 6379\n password:\n', '8bd9dada9a94822feeab40de55efced6', '2024-11-18 18:11:28', '2024-11-18 18:14:04', NULL, '192.168.88.14', '', 'wfc-dev', '认证中心', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (13, 'wfc-monitor-dev.yml', 'DEFAULT_GROUP', '# spring\nspring:\n security:\n user:\n name: wfc\n password: 123456\n boot:\n admin:\n ui:\n title: 若依服务状态监控\n', '7546d5a605e371c8b20e6fe3b4dd96f2', '2024-11-18 18:11:28', '2024-11-18 18:11:28', '', '192.168.88.14', '', 'wfc-dev', '监控中心', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (14, 'wfc-system-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/wfc-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip', '84280e0cbc21676ebd4116cd7ae8b5a0', '2024-11-18 18:11:28', '2024-11-18 18:15:11', NULL, '192.168.88.14', '', 'wfc-dev', '系统模块', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (15, 'wfc-gen-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/wfc-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.gen.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 代码生成接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip\n\n# 代码生成\ngen:\n # 作者\n author: wfc\n # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool\n packageName: org.wfc.system\n # 自动去除表前缀,默认是false\n autoRemovePre: false\n # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)\n tablePrefix: sys_\n', 'e6ce18a6f2fe26a9effff52da5d8339e', '2024-11-18 18:11:28', '2024-11-18 18:11:28', '', '192.168.88.14', '', 'wfc-dev', '代码生成', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (16, 'wfc-job-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password: \n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/wfc-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.job.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 定时任务接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip\n', 'bf038264ec4d06ee47326ba322078461', '2024-11-18 18:11:28', '2024-11-18 18:11:28', '', '192.168.88.14', '', 'wfc-dev', '定时任务', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (17, 'wfc-file-dev.yml', 'DEFAULT_GROUP', '# 本地文件上传 \r\nfile:\r\n domain: http://127.0.0.1:9300\r\n path: D:/wfc/uploadPath\r\n prefix: /statics\r\n\r\n# FastDFS配置\r\nfdfs:\r\n domain: http://8.129.231.12\r\n soTimeout: 3000\r\n connectTimeout: 2000\r\n trackerList: 8.129.231.12:22122\r\n\r\n# Minio配置\r\nminio:\r\n url: http://8.129.231.12:9000\r\n accessKey: minioadmin\r\n secretKey: minioadmin\r\n bucketName: test', 'e72892f585f96cb79422fb20b88f2646', '2024-11-18 18:11:28', '2024-11-18 18:11:28', '', '192.168.88.14', '', 'wfc-dev', '文件服务', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (18, 'sentinel-wfc-gateway', 'DEFAULT_GROUP', '[\r\n {\r\n \"resource\": \"wfc-auth\",\r\n \"count\": 500,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-system\",\r\n \"count\": 1000,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-gen\",\r\n \"count\": 200,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-job\",\r\n \"count\": 300,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n }\r\n]', 'a8b3ec396dd09d5f2ba494cc80a7afa0', '2024-11-18 18:11:28', '2024-11-18 18:11:28', '', '192.168.88.14', '', 'wfc-dev', '限流策略', NULL, NULL, 'json', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (19, 'application-test.yml', 'DEFAULT_GROUP', 'spring:\n autoconfigure:\n exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure\n mvc:\n pathmatch:\n matching-strategy: ant_path_matcher\n\n# feign 配置\nfeign:\n sentinel:\n enabled: true\n okhttp:\n enabled: true\n httpclient:\n enabled: false\n client:\n config:\n default:\n connectTimeout: 10000\n readTimeout: 10000\n compression:\n request:\n enabled: true\n min-request-size: 8192\n response:\n enabled: true\n\n# 暴露监控端点\nmanagement:\n endpoints:\n web:\n exposure:\n include: \'*\'\n', '58dde4e3760499d3bac2d77a3a1e9018', '2024-11-18 18:11:56', '2024-11-19 09:57:54', NULL, '192.168.88.14', '', 'wfc-test', '通用配置', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (20, 'wfc-gateway-test.yml', 'DEFAULT_GROUP', 'spring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n cloud:\n gateway:\n discovery:\n locator:\n lowerCaseServiceId: true\n enabled: true\n routes:\n # 认证中心\n - id: wfc-auth\n uri: lb://wfc-auth\n predicates:\n - Path=/auth/**\n filters:\n # 验证码处理\n - CacheRequestFilter\n - ValidateCodeFilter\n - StripPrefix=1\n # 代码生成\n - id: wfc-gen\n uri: lb://wfc-gen\n predicates:\n - Path=/code/**\n filters:\n - StripPrefix=1\n # 定时任务\n - id: wfc-job\n uri: lb://wfc-job\n predicates:\n - Path=/schedule/**\n filters:\n - StripPrefix=1\n # 系统模块\n - id: wfc-system\n uri: lb://wfc-system\n predicates:\n - Path=/system/**\n filters:\n - StripPrefix=1\n # 文件服务\n - id: wfc-file\n uri: lb://wfc-file\n predicates:\n - Path=/file/**\n filters:\n - StripPrefix=1\n\n# 安全配置\nsecurity:\n # 验证码\n captcha:\n enabled: true\n type: math\n # 防止XSS攻击\n xss:\n enabled: true\n excludeUrls:\n - /system/notice\n # 不校验白名单\n ignore:\n whites:\n - /auth/logout\n - /auth/login\n - /auth/register\n - /*/v2/api-docs\n - /csrf\n', 'c3af686cbf658460ad64a78c07261949', '2024-11-18 18:11:56', '2024-11-19 09:58:01', NULL, '192.168.88.14', '', 'wfc-test', '网关模块', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (21, 'wfc-auth-test.yml', 'DEFAULT_GROUP', 'spring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n', 'c3f5481240e7581cc397f5c7918fd785', '2024-11-18 18:11:56', '2024-11-19 09:58:07', NULL, '192.168.88.14', '', 'wfc-test', '认证中心', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (22, 'wfc-monitor-test.yml', 'DEFAULT_GROUP', '# spring\nspring:\n security:\n user:\n name: wfc\n password: 123456\n boot:\n admin:\n ui:\n title: 若依服务状态监控\n', '7546d5a605e371c8b20e6fe3b4dd96f2', '2024-11-18 18:11:56', '2024-11-18 18:11:56', '', '192.168.88.14', '', 'wfc-test', '监控中心', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (23, 'wfc-system-test.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip', 'a9a7c1bcede16a06514731748a75fc71', '2024-11-18 18:11:56', '2024-11-19 09:58:36', NULL, '192.168.88.14', '', 'wfc-test', '系统模块', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (24, 'wfc-gen-test.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/wfc-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.gen.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 代码生成接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip\n\n# 代码生成\ngen:\n # 作者\n author: wfc\n # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool\n packageName: org.wfc.system\n # 自动去除表前缀,默认是false\n autoRemovePre: false\n # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)\n tablePrefix: sys_\n', 'e6ce18a6f2fe26a9effff52da5d8339e', '2024-11-18 18:11:56', '2024-11-18 18:11:56', '', '192.168.88.14', '', 'wfc-test', '代码生成', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (25, 'wfc-job-test.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password: \n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/wfc-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.job.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 定时任务接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip\n', 'bf038264ec4d06ee47326ba322078461', '2024-11-18 18:11:56', '2024-11-18 18:11:56', '', '192.168.88.14', '', 'wfc-test', '定时任务', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (26, 'wfc-file-test.yml', 'DEFAULT_GROUP', '# 本地文件上传 \r\nfile:\r\n domain: http://127.0.0.1:9300\r\n path: D:/wfc/uploadPath\r\n prefix: /statics\r\n\r\n# FastDFS配置\r\nfdfs:\r\n domain: http://8.129.231.12\r\n soTimeout: 3000\r\n connectTimeout: 2000\r\n trackerList: 8.129.231.12:22122\r\n\r\n# Minio配置\r\nminio:\r\n url: http://8.129.231.12:9000\r\n accessKey: minioadmin\r\n secretKey: minioadmin\r\n bucketName: test', 'e72892f585f96cb79422fb20b88f2646', '2024-11-18 18:11:56', '2024-11-18 18:11:56', '', '192.168.88.14', '', 'wfc-test', '文件服务', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (27, 'sentinel-wfc-gateway', 'DEFAULT_GROUP', '[\r\n {\r\n \"resource\": \"wfc-auth\",\r\n \"count\": 500,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-system\",\r\n \"count\": 1000,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-gen\",\r\n \"count\": 200,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-job\",\r\n \"count\": 300,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n }\r\n]', 'a8b3ec396dd09d5f2ba494cc80a7afa0', '2024-11-18 18:11:56', '2024-11-18 18:11:56', '', '192.168.88.14', '', 'wfc-test', '限流策略', NULL, NULL, 'json', NULL, '');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for config_info_aggr
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `config_info_aggr`;
|
||||
CREATE TABLE `config_info_aggr` (
|
||||
`id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
|
||||
`datum_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'datum_id',
|
||||
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '内容',
|
||||
`gmt_modified` datetime(0) NOT NULL COMMENT '修改时间',
|
||||
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT '租户字段',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_configinfoaggr_datagrouptenantdatum`(`data_id`, `group_id`, `tenant_id`, `datum_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '增加租户字段' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of config_info_aggr
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for config_info_beta
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `config_info_beta`;
|
||||
CREATE TABLE `config_info_beta` (
|
||||
`id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
|
||||
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'app_name',
|
||||
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'content',
|
||||
`beta_ips` varchar(1024) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'betaIps',
|
||||
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'md5',
|
||||
`gmt_create` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
|
||||
`gmt_modified` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '修改时间',
|
||||
`src_user` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT 'source user',
|
||||
`src_ip` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'source ip',
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT '租户字段',
|
||||
`encrypted_data_key` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT '秘钥',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_configinfobeta_datagrouptenant`(`data_id`, `group_id`, `tenant_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'config_info_beta' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of config_info_beta
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for config_info_tag
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `config_info_tag`;
|
||||
CREATE TABLE `config_info_tag` (
|
||||
`id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT 'tenant_id',
|
||||
`tag_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'tag_id',
|
||||
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'app_name',
|
||||
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'content',
|
||||
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'md5',
|
||||
`gmt_create` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
|
||||
`gmt_modified` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '修改时间',
|
||||
`src_user` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT 'source user',
|
||||
`src_ip` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'source ip',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_configinfotag_datagrouptenanttag`(`data_id`, `group_id`, `tenant_id`, `tag_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'config_info_tag' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of config_info_tag
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for config_tags_relation
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `config_tags_relation`;
|
||||
CREATE TABLE `config_tags_relation` (
|
||||
`id` bigint(0) NOT NULL COMMENT 'id',
|
||||
`tag_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'tag_name',
|
||||
`tag_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'tag_type',
|
||||
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT 'tenant_id',
|
||||
`nid` bigint(0) NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY (`nid`) USING BTREE,
|
||||
UNIQUE INDEX `uk_configtagrelation_configidtag`(`id`, `tag_name`, `tag_type`) USING BTREE,
|
||||
INDEX `idx_tenant_id`(`tenant_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'config_tag_relation' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of config_tags_relation
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for group_capacity
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `group_capacity`;
|
||||
CREATE TABLE `group_capacity` (
|
||||
`id` bigint(0) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'Group ID,空字符表示整个集群',
|
||||
`quota` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '配额,0表示使用默认值',
|
||||
`usage` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '使用量',
|
||||
`max_size` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '单个配置大小上限,单位为字节,0表示使用默认值',
|
||||
`max_aggr_count` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '聚合子配置最大个数,,0表示使用默认值',
|
||||
`max_aggr_size` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值',
|
||||
`max_history_count` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最大变更历史数量',
|
||||
`gmt_create` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
|
||||
`gmt_modified` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_group_id`(`group_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '集群、各Group容量信息表' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of group_capacity
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for his_config_info
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `his_config_info`;
|
||||
CREATE TABLE `his_config_info` (
|
||||
`id` bigint(0) UNSIGNED NOT NULL,
|
||||
`nid` bigint(0) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
|
||||
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
|
||||
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'app_name',
|
||||
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
|
||||
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
|
||||
`gmt_create` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||
`gmt_modified` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||
`src_user` text CHARACTER SET utf8 COLLATE utf8_bin NULL,
|
||||
`src_ip` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
|
||||
`op_type` char(10) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT '租户字段',
|
||||
`encrypted_data_key` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT '秘钥',
|
||||
PRIMARY KEY (`nid`) USING BTREE,
|
||||
INDEX `idx_gmt_create`(`gmt_create`) USING BTREE,
|
||||
INDEX `idx_gmt_modified`(`gmt_modified`) USING BTREE,
|
||||
INDEX `idx_did`(`data_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '多租户改造' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of his_config_info
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for permissions
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `permissions`;
|
||||
CREATE TABLE `permissions` (
|
||||
`role` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
||||
`resource` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
||||
`action` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
||||
UNIQUE INDEX `uk_role_permission`(`role`, `resource`, `action`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of permissions
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for roles
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `roles`;
|
||||
CREATE TABLE `roles` (
|
||||
`username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
||||
`role` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
||||
UNIQUE INDEX `idx_user_role`(`username`, `role`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of roles
|
||||
-- ----------------------------
|
||||
INSERT INTO `roles` VALUES ('nacos', 'ROLE_ADMIN');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for tenant_capacity
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `tenant_capacity`;
|
||||
CREATE TABLE `tenant_capacity` (
|
||||
`id` bigint(0) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'Tenant ID',
|
||||
`quota` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '配额,0表示使用默认值',
|
||||
`usage` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '使用量',
|
||||
`max_size` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '单个配置大小上限,单位为字节,0表示使用默认值',
|
||||
`max_aggr_count` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '聚合子配置最大个数',
|
||||
`max_aggr_size` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值',
|
||||
`max_history_count` int(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最大变更历史数量',
|
||||
`gmt_create` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
|
||||
`gmt_modified` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_tenant_id`(`tenant_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '租户容量信息表' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of tenant_capacity
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for tenant_info
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `tenant_info`;
|
||||
CREATE TABLE `tenant_info` (
|
||||
`id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`kp` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'kp',
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT 'tenant_id',
|
||||
`tenant_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT 'tenant_name',
|
||||
`tenant_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'tenant_desc',
|
||||
`create_source` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'create_source',
|
||||
`gmt_create` bigint(0) NOT NULL COMMENT '创建时间',
|
||||
`gmt_modified` bigint(0) NOT NULL COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_tenant_info_kptenantid`(`kp`, `tenant_id`) USING BTREE,
|
||||
INDEX `idx_tenant_id`(`tenant_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'tenant_info' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of tenant_info
|
||||
-- ----------------------------
|
||||
INSERT INTO `tenant_info` VALUES (1, '1', 'wfc-dev', 'wfc-dev', '开发环境命名空间', 'nacos', 1731924580008, 1731924580008);
|
||||
INSERT INTO `tenant_info` VALUES (2, '1', 'wfc-test', 'wfc-test', '测试环境命名空间', 'nacos', 1731924616218, 1731924616218);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for users
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `users`;
|
||||
CREATE TABLE `users` (
|
||||
`username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
||||
`password` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
|
||||
`enabled` tinyint(1) NOT NULL,
|
||||
PRIMARY KEY (`username`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of users
|
||||
-- ----------------------------
|
||||
INSERT INTO `users` VALUES ('nacos', '$2a$10$EuWPZHzz32dJN7jexM34MOeYirDdFAZm2kuWj7VEOJhhZkDrxfvUu', 1);
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
@@ -1,425 +0,0 @@
|
||||
/*
|
||||
Navicat Premium Data Transfer
|
||||
|
||||
Source Server : 192.168.9.58_13306
|
||||
Source Server Type : MySQL
|
||||
Source Server Version : 80039 (8.0.39)
|
||||
Source Host : 192.168.9.58:13306
|
||||
Source Schema : wfc-user-platform
|
||||
|
||||
Target Server Type : MySQL
|
||||
Target Server Version : 80039 (8.0.39)
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 27/11/2024 16:09:09
|
||||
*/
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_config
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_config`;
|
||||
CREATE TABLE `u_config` (
|
||||
`config_id` int NOT NULL AUTO_INCREMENT COMMENT '参数主键',
|
||||
`config_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数名称',
|
||||
`config_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键名',
|
||||
`config_value` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键值',
|
||||
`config_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '系统内置(Y是 N否)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`config_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 100 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_参数配置表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_config
|
||||
-- ----------------------------
|
||||
INSERT INTO `u_config` VALUES (1, '用户管理-账号初始密码', 'user.initPassword', '123456', 'Y', 'admin', '2024-05-08 21:50:55', '', NULL, '初始化密码 123456');
|
||||
INSERT INTO `u_config` VALUES (2, '账号自助-是否开启用户注册功能', 'user.register', 'true', 'Y', 'admin', '2024-05-08 21:50:55', '', NULL, '是否开启注册用户功能(true开启,false关闭)');
|
||||
INSERT INTO `u_config` VALUES (3, '用户登录-黑名单列表', 'sys.login.blackIPList', '', 'Y', 'admin', '2024-05-08 21:50:55', '', NULL, '设置登录IP黑名单限制,多个匹配项以;分隔,支持匹配(*通配、网段)');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_dept
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_dept`;
|
||||
CREATE TABLE `u_dept` (
|
||||
`dept_id` bigint NOT NULL AUTO_INCREMENT COMMENT '部门id',
|
||||
`parent_id` bigint NULL DEFAULT 0 COMMENT '父部门id',
|
||||
`ancestors` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '祖级列表',
|
||||
`dept_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '部门名称',
|
||||
`order_num` int NULL DEFAULT 0 COMMENT '显示顺序',
|
||||
`leader` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '负责人',
|
||||
`phone` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '联系电话',
|
||||
`email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '部门状态(0正常 1停用)',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`dept_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 202 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_部门表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_dept
|
||||
-- ----------------------------
|
||||
INSERT INTO `u_dept` VALUES (100, 0, '0', 'ROOT', 0, 'system', '123456', '123456@wfc.com', '0', '0', 'system', '2024-11-27 21:50:54', '', NULL, NULL);
|
||||
INSERT INTO `u_dept` VALUES (101, 100, '0,100', 'No.1', 1, 'system', '123456', '123456@wfc.com', '0', '0', 'system', '2024-11-27 21:50:54', '', NULL, NULL);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_dict_data
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_dict_data`;
|
||||
CREATE TABLE `u_dict_data` (
|
||||
`dict_code` bigint NOT NULL AUTO_INCREMENT COMMENT '字典编码',
|
||||
`dict_sort` int NULL DEFAULT 0 COMMENT '字典排序',
|
||||
`dict_label` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典标签',
|
||||
`dict_value` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典键值',
|
||||
`dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典类型',
|
||||
`css_class` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '样式属性(其他样式扩展)',
|
||||
`list_class` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '表格回显样式',
|
||||
`is_default` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '是否默认(Y是 N否)',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1停用)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`dict_code`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 100 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_字典数据表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_dict_data
|
||||
-- ----------------------------
|
||||
INSERT INTO `u_dict_data` VALUES (1, 1, '男', '0', 'u_user_sex', '', '', 'Y', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '性别男');
|
||||
INSERT INTO `u_dict_data` VALUES (2, 2, '女', '1', 'u_user_sex', '', '', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '性别女');
|
||||
INSERT INTO `u_dict_data` VALUES (3, 3, '未知', '2', 'u_user_sex', '', '', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '性别未知');
|
||||
INSERT INTO `u_dict_data` VALUES (4, 1, '显示', '0', 'u_show_hide', '', 'primary', 'Y', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '显示菜单');
|
||||
INSERT INTO `u_dict_data` VALUES (5, 2, '隐藏', '1', 'u_show_hide', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '隐藏菜单');
|
||||
INSERT INTO `u_dict_data` VALUES (6, 1, '正常', '0', 'u_normal_disable', '', 'primary', 'Y', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '正常状态');
|
||||
INSERT INTO `u_dict_data` VALUES (7, 2, '停用', '1', 'u_normal_disable', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '停用状态');
|
||||
INSERT INTO `u_dict_data` VALUES (8, 1, '是', 'Y', 'u_yes_no', '', 'primary', 'Y', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '系统默认是');
|
||||
INSERT INTO `u_dict_data` VALUES (9, 2, '否', 'N', 'u_yes_no', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '系统默认否');
|
||||
INSERT INTO `u_dict_data` VALUES (10, 99, '其他', '0', 'u_oper_type', '', 'info', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '其他操作');
|
||||
INSERT INTO `u_dict_data` VALUES (11, 1, '新增', '1', 'u_oper_type', '', 'info', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '新增操作');
|
||||
INSERT INTO `u_dict_data` VALUES (12, 2, '修改', '2', 'u_oper_type', '', 'info', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '修改操作');
|
||||
INSERT INTO `u_dict_data` VALUES (13, 3, '删除', '3', 'u_oper_type', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '删除操作');
|
||||
INSERT INTO `u_dict_data` VALUES (14, 4, '授权', '4', 'u_oper_type', '', 'primary', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '授权操作');
|
||||
INSERT INTO `u_dict_data` VALUES (15, 5, '导出', '5', 'u_oper_type', '', 'warning', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '导出操作');
|
||||
INSERT INTO `u_dict_data` VALUES (16, 6, '导入', '6', 'u_oper_type', '', 'warning', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '导入操作');
|
||||
INSERT INTO `u_dict_data` VALUES (17, 7, '强退', '7', 'u_oper_type', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '强退操作');
|
||||
INSERT INTO `u_dict_data` VALUES (18, 8, '生成代码', '8', 'u_oper_type', '', 'warning', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '生成操作');
|
||||
INSERT INTO `u_dict_data` VALUES (19, 9, '清空数据', '9', 'u_oper_type', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '清空操作');
|
||||
INSERT INTO `u_dict_data` VALUES (20, 1, '成功', '0', 'u_common_status', '', 'primary', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '正常状态');
|
||||
INSERT INTO `u_dict_data` VALUES (21, 2, '失败', '1', 'u_common_status', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '停用状态');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_dict_type
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_dict_type`;
|
||||
CREATE TABLE `u_dict_type` (
|
||||
`dict_id` bigint NOT NULL AUTO_INCREMENT COMMENT '字典主键',
|
||||
`dict_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典名称',
|
||||
`dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典类型',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1停用)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`dict_id`) USING BTREE,
|
||||
UNIQUE INDEX `dict_type`(`dict_type` ASC) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 101 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_字典类型表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_dict_type
|
||||
-- ----------------------------
|
||||
INSERT INTO `u_dict_type` VALUES (1, '用户性别', 'u_user_sex', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '用户性别列表');
|
||||
INSERT INTO `u_dict_type` VALUES (2, '菜单状态', 'u_show_hide', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '菜单状态列表');
|
||||
INSERT INTO `u_dict_type` VALUES (3, '系统开关', 'u_normal_disable', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '系统开关列表');
|
||||
INSERT INTO `u_dict_type` VALUES (4, '系统是否', 'u_yes_no', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '系统是否列表');
|
||||
INSERT INTO `u_dict_type` VALUES (5, '操作类型', 'u_oper_type', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '操作类型列表');
|
||||
INSERT INTO `u_dict_type` VALUES (6, '系统状态', 'u_common_status', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '登录状态列表');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_logininfor
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_logininfor`;
|
||||
CREATE TABLE `u_logininfor` (
|
||||
`info_id` bigint NOT NULL AUTO_INCREMENT COMMENT '访问ID',
|
||||
`user_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '用户账号',
|
||||
`ipaddr` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '登录IP地址',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '登录状态(0成功 1失败)',
|
||||
`msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '提示信息',
|
||||
`access_time` datetime NULL DEFAULT NULL COMMENT '访问时间',
|
||||
PRIMARY KEY (`info_id`) USING BTREE,
|
||||
INDEX `idx_u_logininfor_s`(`status` ASC) USING BTREE,
|
||||
INDEX `idx_u_logininfor_lt`(`access_time` ASC) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_系统访问记录' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_logininfor
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_menu
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_menu`;
|
||||
CREATE TABLE `u_menu` (
|
||||
`menu_id` bigint NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
|
||||
`menu_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单名称',
|
||||
`parent_id` bigint NULL DEFAULT 0 COMMENT '父菜单ID',
|
||||
`order_num` int NULL DEFAULT 0 COMMENT '显示顺序',
|
||||
`path` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '路由地址',
|
||||
`component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组件路径',
|
||||
`query` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '路由参数',
|
||||
`is_frame` int NULL DEFAULT 1 COMMENT '是否为外链(0是 1否)',
|
||||
`is_cache` int NULL DEFAULT 0 COMMENT '是否缓存(0缓存 1不缓存)',
|
||||
`menu_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '菜单类型(M目录 C菜单 F按钮)',
|
||||
`visible` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '菜单状态(0显示 1隐藏)',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '菜单状态(0正常 1停用)',
|
||||
`perms` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限标识',
|
||||
`icon` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '#' COMMENT '菜单图标',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注',
|
||||
`name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单key',
|
||||
PRIMARY KEY (`menu_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 2500 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_菜单权限表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_menu
|
||||
-- ----------------------------
|
||||
INSERT INTO `u_menu` VALUES (1, '系统管理', 0, 1000, '/manage', 'layout.base', '', 1, 0, 'M', '0', '0', '', 'carbon:cloud-service-management', 'admin', '2024-05-08 21:50:55', 'admin', '2024-12-02 16:45:58', '系统管理目录', 'manage');
|
||||
INSERT INTO `u_menu` VALUES (100, '用户管理', 1, 1, '/manage/user', 'view.manage_user', '', 1, 0, 'C', '0', '0', '', 'ic:round-manage-accounts', 'admin', '2024-05-08 21:50:55', 'admin', '2024-05-12 23:50:31', '用户管理菜单', 'manage_user');
|
||||
INSERT INTO `u_menu` VALUES (101, '角色管理', 1, 2, '/manage/role', 'view.manage_role', '', 1, 0, 'C', '0', '0', '', 'carbon:user-role', 'admin', '2024-05-08 21:50:55', '', NULL, '角色管理菜单', 'manage_role');
|
||||
INSERT INTO `u_menu` VALUES (102, '菜单管理', 1, 3, '/manage/menu', 'view.manage_menu', '', 1, 0, 'C', '0', '0', '', 'material-symbols:route', 'admin', '2024-05-08 21:50:55', 'admin', '2024-05-12 23:46:12', '菜单管理菜单', 'manage_menu');
|
||||
INSERT INTO `u_menu` VALUES (103, '部门管理', 1, 4, '/manage/dept', 'view.manage_dept', '', 1, 0, 'C', '0', '0', '', 'carbon:box', 'admin', '2024-05-08 21:50:55', 'ryadmin', '2024-05-30 23:17:41', '部门管理菜单', 'manage_dept');
|
||||
INSERT INTO `u_menu` VALUES (104, '岗位管理', 1, 5, '/manage/post', 'view.manage_post', NULL, 1, 0, 'C', '0', '0', '', 'carbon:group', 'admin', '2024-06-02 22:18:48', '', NULL, '', 'manage_post');
|
||||
INSERT INTO `u_menu` VALUES (105, '字典管理', 1, 6, '/manage/dict', 'view.manage_dict', NULL, 1, 0, 'C', '0', '0', '', 'carbon:volume-block-storage', 'admin', '2024-06-02 23:13:40', '', NULL, '', 'manage_dict');
|
||||
INSERT INTO `u_menu` VALUES (1000, '用户查询', 100, 1, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1001, '用户新增', 100, 2, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1002, '用户修改', 100, 3, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1003, '用户删除', 100, 4, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1004, '用户导出', 100, 5, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1005, '用户导入', 100, 6, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1006, '重置密码', 100, 7, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1007, '角色查询', 101, 1, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1008, '角色新增', 101, 2, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1009, '角色修改', 101, 3, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1010, '角色删除', 101, 4, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1011, '角色导出', 101, 5, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1012, '菜单查询', 102, 1, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1013, '菜单新增', 102, 2, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1014, '菜单修改', 102, 3, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1015, '菜单删除', 102, 4, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1016, '部门查询', 103, 1, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1017, '部门新增', 103, 2, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1018, '部门修改', 103, 3, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1019, '部门删除', 103, 4, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1020, '岗位查询', 104, 1, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1021, '岗位新增', 104, 2, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1022, '岗位修改', 104, 3, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1023, '岗位删除', 104, 4, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1024, '岗位导出', 104, 5, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1025, '字典查询', 105, 1, '#', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1026, '字典新增', 105, 2, '#', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1027, '字典修改', 105, 3, '#', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1028, '字典删除', 105, 4, '#', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1029, '字典导出', 105, 5, '#', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (2000, '账单', 0, 10, '/billing', 'layout.base', '', 1, 0, 'M', '0', '0', '', 'carbon:cloud-service-management', 'admin', '2024-05-08 21:50:55', 'admin', '2024-05-12 23:46:57', '账单流量记录', 'billing');
|
||||
INSERT INTO `u_menu` VALUES (2001, '历史查询', 2000, 1, '/billing/histories', 'view.billing_histories', '', 1, 0, 'C', '0', '0', '', 'ic:round-manage-accounts', 'admin', '2024-05-08 21:50:55', 'admin', '2024-11-29 17:23:36', '账单历史查询', 'billing_histories');
|
||||
INSERT INTO `u_menu` VALUES (2010, '终端设备', 0, 15, '/endpoint', 'layout.base', NULL, 1, 1, 'M', '0', '0', '', 'carbon:account', 'superuser', '2024-12-02 16:43:46', '', '2024-12-02 16:45:25', '用户终端设备', 'endpoint');
|
||||
INSERT INTO `u_menu` VALUES (2011, '当前', 2010, 1, '/endpoint/access', 'view.endpoint_access', '', 1, 0, 'C', '0', '0', '', 'ic:round-manage-accounts', 'admin', '2024-05-08 21:50:55', 'admin', '2024-11-29 17:23:36', '当前接入AP的设备信息', 'endpoint_access');
|
||||
INSERT INTO `u_menu` VALUES (2012, '历史', 2010, 1, '/endpoint/records', 'view.endpoint_records', '', 1, 0, 'C', '0', '0', '', 'ic:round-manage-accounts', 'admin', '2024-05-08 21:50:55', 'admin', '2024-11-29 17:23:36', '当前接入AP接入记录', 'endpoint_records');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_oper_log
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_oper_log`;
|
||||
CREATE TABLE `u_oper_log` (
|
||||
`oper_id` bigint NOT NULL AUTO_INCREMENT COMMENT '日志主键',
|
||||
`title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '模块标题',
|
||||
`business_type` int NULL DEFAULT 0 COMMENT '业务类型(0其它 1新增 2修改 3删除)',
|
||||
`method` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '方法名称',
|
||||
`request_method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求方式',
|
||||
`operator_type` int NULL DEFAULT 0 COMMENT '操作类别(0其它 1后台用户 2手机端用户)',
|
||||
`oper_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作人员',
|
||||
`dept_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '部门名称',
|
||||
`oper_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求URL',
|
||||
`oper_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '主机地址',
|
||||
`oper_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作地点',
|
||||
`oper_param` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求参数',
|
||||
`json_result` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '返回参数',
|
||||
`status` int NULL DEFAULT 0 COMMENT '操作状态(0正常 1异常)',
|
||||
`error_msg` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '错误消息',
|
||||
`oper_time` datetime NULL DEFAULT NULL COMMENT '操作时间',
|
||||
`cost_time` bigint NULL DEFAULT 0 COMMENT '消耗时间',
|
||||
PRIMARY KEY (`oper_id`) USING BTREE,
|
||||
INDEX `idx_u_oper_log_bt`(`business_type` ASC) USING BTREE,
|
||||
INDEX `idx_u_oper_log_s`(`status` ASC) USING BTREE,
|
||||
INDEX `idx_u_oper_log_ot`(`oper_time` ASC) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_操作日志记录' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_oper_log
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_post
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_post`;
|
||||
CREATE TABLE `u_post` (
|
||||
`post_id` bigint NOT NULL AUTO_INCREMENT COMMENT '岗位ID',
|
||||
`post_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位编码',
|
||||
`post_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位名称',
|
||||
`post_sort` int NOT NULL COMMENT '显示顺序',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '状态(0正常 1停用)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`post_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_岗位信息表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_post
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_role
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_role`;
|
||||
CREATE TABLE `u_role` (
|
||||
`role_id` bigint NOT NULL AUTO_INCREMENT COMMENT '角色ID',
|
||||
`role_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色名称',
|
||||
`role_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色权限字符串',
|
||||
`role_sort` int NOT NULL COMMENT '显示顺序',
|
||||
`data_scope` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)',
|
||||
`menu_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '菜单树选择项是否关联显示',
|
||||
`dept_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '部门树选择项是否关联显示',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色状态(0正常 1停用)',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`role_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 106 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_角色信息表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_role
|
||||
-- ----------------------------
|
||||
INSERT INTO `u_role` VALUES (1, '超级用户', 'admin', 1, '1', 1, 1, '0', '0', 'superuser', '2024-11-27 16:06:18', '', NULL, '超级用户后台指定,不可配置');
|
||||
INSERT INTO `u_role` VALUES (2, '普通用户', 'user', 2, '2', 1, 1, '0', '0', 'superuser', '2024-11-27 16:06:18', 'superuser', '2024-12-02 15:22:02', '普通用户,默认注册后的用户角色');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_role_dept
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_role_dept`;
|
||||
CREATE TABLE `u_role_dept` (
|
||||
`role_id` bigint NOT NULL COMMENT '角色ID',
|
||||
`dept_id` bigint NOT NULL COMMENT '部门ID',
|
||||
PRIMARY KEY (`role_id`, `dept_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_角色和部门关联表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_role_dept
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_role_menu
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_role_menu`;
|
||||
CREATE TABLE `u_role_menu` (
|
||||
`role_id` bigint NOT NULL COMMENT '角色ID',
|
||||
`menu_id` bigint NOT NULL COMMENT '菜单ID',
|
||||
PRIMARY KEY (`role_id`, `menu_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_角色和菜单关联表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_role_menu
|
||||
-- ----------------------------
|
||||
INSERT INTO `u_role_menu` VALUES (2, 2000);
|
||||
INSERT INTO `u_role_menu` VALUES (2, 2001);
|
||||
INSERT INTO `u_role_menu` VALUES (2, 2010);
|
||||
INSERT INTO `u_role_menu` VALUES (2, 2011);
|
||||
INSERT INTO `u_role_menu` VALUES (2, 2012);
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_user
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_user`;
|
||||
CREATE TABLE `u_user` (
|
||||
`user_id` bigint NOT NULL AUTO_INCREMENT COMMENT '用户ID',
|
||||
`dept_id` bigint DEFAULT NULL COMMENT '部门ID',
|
||||
`user_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户账号',
|
||||
`nick_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户昵称',
|
||||
`full_name` varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '用户姓名',
|
||||
`user_type` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '00' COMMENT '用户类型(00系统用户)',
|
||||
`email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '用户邮箱',
|
||||
`phonenumber` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '手机号码',
|
||||
`sex` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '用户性别(0男 1女 2未知)',
|
||||
`avatar` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '头像地址',
|
||||
`password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '密码',
|
||||
`age` int DEFAULT NULL COMMENT '年龄',
|
||||
`address` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '地址',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '帐号状态(0正常 1停用)',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
|
||||
`login_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '最后登录IP',
|
||||
`login_date` datetime DEFAULT NULL COMMENT '最后登录时间',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`user_id`) USING BTREE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='用户平台_用户信息表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_user password=123456
|
||||
-- ----------------------------
|
||||
INSERT INTO `u_user` VALUES (1, 100, 'superuser', '超级用户', '超级用户', '00', 'superuser6@mail.com', '123456', '1', '', '$2a$10$XF99QEWn2MjEE3pbFVvHuOyMi/YVIrQbdenEleJN5dYxAfgXFaaqG', 1, '', '0', '0', '127.0.0.1', '2024-12-02 14:11:44', 'system', '2024-05-08 21:50:54', '', '2024-12-02 14:11:43', 'superuser');
|
||||
INSERT INTO `u_user` VALUES (2, 101, '1000', '普通用户', '普通用户', '00', '1000@qq.com', '1000', '1', '', '$2a$10$XF99QEWn2MjEE3pbFVvHuOyMi/YVIrQbdenEleJN5dYxAfgXFaaqG', 1, '', '0', '0', '127.0.0.1', '2024-12-02 10:50:45', 'system', '2024-05-08 21:50:54', '', '2024-12-02 10:50:44', '');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_user_post
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_user_post`;
|
||||
CREATE TABLE `u_user_post` (
|
||||
`user_id` bigint NOT NULL COMMENT '用户ID',
|
||||
`post_id` bigint NOT NULL COMMENT '岗位ID',
|
||||
PRIMARY KEY (`user_id`, `post_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_用户与岗位关联表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_user_post
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_user_role
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_user_role`;
|
||||
CREATE TABLE `u_user_role` (
|
||||
`user_id` bigint NOT NULL COMMENT '用户ID',
|
||||
`role_id` bigint NOT NULL COMMENT '角色ID',
|
||||
PRIMARY KEY (`user_id`, `role_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_用户和角色关联表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_user_role
|
||||
-- ----------------------------
|
||||
INSERT INTO `u_user_role` VALUES (1, 1);
|
||||
INSERT INTO `u_user_role` VALUES (2, 2);
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
374
sql/wfc_config_db/wfc_config_db.sql
Normal file
374
sql/wfc_config_db/wfc_config_db.sql
Normal file
@@ -0,0 +1,374 @@
|
||||
/*
|
||||
Navicat Premium Data Transfer
|
||||
|
||||
Source Server : local-docker-mysql
|
||||
Source Server Type : MySQL
|
||||
Source Server Version : 50744 (5.7.44)
|
||||
Source Host : localhost:3306
|
||||
Source Schema : wfc_config_db
|
||||
|
||||
Target Server Type : MySQL
|
||||
Target Server Version : 50744 (5.7.44)
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 23/01/2025 14:34:14
|
||||
*/
|
||||
|
||||
CREATE DATABASE IF NOT EXISTS `wfc_config_db` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
USE wfc_config_db;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for config_info
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `config_info`;
|
||||
CREATE TABLE `config_info` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'group_id',
|
||||
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'content',
|
||||
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'md5',
|
||||
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
`src_user` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT 'source user',
|
||||
`src_ip` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'source ip',
|
||||
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'app_name',
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT '租户字段',
|
||||
`c_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'configuration description',
|
||||
`c_use` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'configuration usage',
|
||||
`effect` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '配置生效的描述',
|
||||
`type` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '配置的类型',
|
||||
`c_schema` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT '配置的模式',
|
||||
`encrypted_data_key` varchar(1024) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '密钥',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_configinfo_datagrouptenant`(`data_id`, `group_id`, `tenant_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 72 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'config_info' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of config_info
|
||||
-- ----------------------------
|
||||
INSERT INTO `config_info` VALUES (1, 'application.yml', 'DEFAULT_GROUP', 'spring:\n autoconfigure:\n exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure\n mvc:\n pathmatch:\n matching-strategy: ant_path_matcher\n # 资源信息\n messages:\n # 国际化资源文件路径\n basename: i18n/messages\n \n# feign 配置\nfeign:\n sentinel:\n enabled: true\n okhttp:\n enabled: false\n httpclient:\n enabled: true\n disable-ssl-validation: true\n client:\n config:\n default:\n connectTimeout: 60000\n readTimeout: 60000\n compression:\n request:\n enabled: true\n min-request-size: 8192\n response:\n enabled: true\n\n# 暴露监控端点\nmanagement:\n endpoints:\n web:\n exposure:\n include: \'*\'\n', '0e6382041af033b46a7a78463ab519d5', '2024-12-31 10:56:52', '2024-12-31 10:56:52', NULL, '172.20.0.1', '', '', '通用配置', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (2, 'wfc-gateway.yml', 'DEFAULT_GROUP', 'spring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n cloud:\n gateway:\n discovery:\n locator:\n lowerCaseServiceId: true\n enabled: true\n routes:\n # 认证中心\n - id: wfc-auth\n uri: lb://wfc-auth\n predicates:\n - Path=/auth/**\n filters:\n # 验证码处理\n - CacheRequestFilter\n - ValidateCodeFilter\n - StripPrefix=1\n # 代码生成\n - id: wfc-gen\n uri: lb://wfc-gen\n predicates:\n - Path=/code/**\n filters:\n - StripPrefix=1\n # 定时任务\n - id: wfc-job\n uri: lb://wfc-job\n predicates:\n - Path=/schedule/**\n filters:\n - StripPrefix=1\n # 系统模块\n - id: wfc-system\n uri: lb://wfc-system\n predicates:\n - Path=/system/**\n filters:\n - StripPrefix=1\n # 用户模块\n - id: wfc-user\n uri: lb://wfc-user\n predicates:\n - Path=/u/**\n filters:\n - StripPrefix=1 \n # 文件服务\n - id: wfc-file\n uri: lb://wfc-file\n predicates:\n - Path=/file/**\n filters:\n - StripPrefix=1\n # payment\n - id: wfc-payment\n uri: lb://wfc-payment\n predicates:\n - Path=/payment/**\n filters:\n - StripPrefix=1 \n\n# 安全配置\nsecurity:\n # 验证码\n captcha:\n enabled: true\n type: math\n # 防止XSS攻击\n xss:\n enabled: true\n excludeUrls:\n - /system/notice\n # 不校验白名单\n ignore:\n whites:\n - /auth/logout\n - /auth/login\n - /auth/register\n - /*/v2/api-docs\n - /csrf\n', '50c8bf5bbc07402c51b4d696ddb64a89', '2024-12-31 10:56:52', '2024-12-31 10:56:52', NULL, '172.20.0.1', '', '', 'wfc-gateway production', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (3, 'wfc-auth.yml', 'DEFAULT_GROUP', 'spring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n', 'c3f5481240e7581cc397f5c7918fd785', '2024-12-31 10:56:52', '2024-12-31 10:56:52', NULL, '172.20.0.1', '', '', '认证中心', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (4, 'wfc-monitor.yml', 'DEFAULT_GROUP', '# spring\nspring:\n security:\n user:\n name: wfc\n password: 123456\n boot:\n admin:\n ui:\n title: visual monitor\n', 'c8f896d284d5328aab16baeb81a3685c', '2024-12-31 10:56:52', '2024-12-31 10:56:52', NULL, '172.20.0.1', '', '', '监控中心', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (5, 'wfc-system.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc_system_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip', 'a355587121f711511c9010a4a8c0d797', '2024-12-31 10:56:52', '2024-12-31 10:56:52', NULL, '172.20.0.1', '', '', '系统模块', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (6, 'wfc-gen.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc_system_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.gen.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 代码生成接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip\n\n# 代码生成\ngen:\n # 作者\n author: wfc\n # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool\n packageName: org.wfc.system\n # 自动去除表前缀,默认是false\n autoRemovePre: false\n # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)\n tablePrefix: sys_\n', '5ec7d9b8eb46eca656316e5f817aadb2', '2024-12-31 10:56:52', '2024-12-31 10:56:52', NULL, '172.20.0.1', '', '', '代码生成', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (7, 'wfc-job.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: wfc-redis\n port: 6379\n password: \n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc_system_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.job.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 定时任务接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip\n', '1376deec876c0878df743b4d96c7f125', '2024-12-31 10:56:52', '2024-12-31 10:56:52', NULL, '172.20.0.1', '', '', '定时任务', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (8, 'wfc-file.yml', 'DEFAULT_GROUP', '# 本地文件上传 \nfile:\n domain: http://127.0.0.1:9300\n path: /home/wfc/upload\n prefix: /statics\n\n# FastDFS配置\nfdfs:\n domain: http://8.129.231.12\n soTimeout: 3000\n connectTimeout: 2000\n trackerList: 8.129.231.12:22122\n\n# Minio配置\nminio:\n url: http://8.129.231.12:9000\n accessKey: minioadmin\n secretKey: minioadmin\n bucketName: test', '580197933f0f0b2ba468a0916b911d4b', '2024-12-31 10:56:52', '2024-12-31 10:56:52', NULL, '172.20.0.1', '', '', '文件服务', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (9, 'wfc-user.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc_user_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n # 从库数据源\n # slave:\n # username:\n # password:\n # url:\n # driver-class-name:\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.user\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip', 'db8c5a7eeebb0d57d180d1a97ad6226e', '2024-12-31 10:56:52', '2024-12-31 10:56:52', NULL, '172.20.0.1', '', '', '用户平台模块', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (10, 'wfc-payment.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n main:\n allow-bean-definition-overriding: true\n \n redis:\n host: wfc-redis\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc_user_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n # 从库数据源\n # slave:\n # username:\n # password:\n # url:\n # driver-class-name:\n\n# mybatis-plus配置\nmybatis-plus:\n # 搜索指定包别名\n type-aliases-package: org.wfc.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapper-locations: classpath:mapper/**/*.xml\n global-config:\n db-config:\n logic-delete-field: del_flag\n logic-delete-value: 1\n logic-not-delete-value: 0\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip\n\nlogging:\n level:\n root: debug\n org:\n springframework:\n web: debug\n mybatis:\n mapper: debug\n wfc:\n system: debug\n com:\n github:\n binarywang: debug\n file:\n name: /var/log/wfc/wfc-modules-payment.log\n\nwxpay:\n appId: 121412414112\n mchId: 1131412414\n mchKey: 1525342aa\n subAppId: #服务商模式下的子商户公众账号ID\n subMchId: #服务商模式下的子商户号 \n keyPath: /home/wfc/config/payment/wxpay_key.pem\n useSandboxEnv: false\n ', '782c7fb3b169abae667b19cd08b96df8', '2024-12-31 10:56:52', '2024-12-31 10:56:52', NULL, '172.20.0.1', '', '', 'wfc-modules-payment production yaml', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (11, 'sentinel-wfc-gateway', 'DEFAULT_GROUP', '[\r\n {\r\n \"resource\": \"wfc-auth\",\r\n \"count\": 500,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-system\",\r\n \"count\": 1000,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-gen\",\r\n \"count\": 200,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-job\",\r\n \"count\": 300,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n }\r\n]', 'a8b3ec396dd09d5f2ba494cc80a7afa0', '2024-12-31 10:57:17', '2024-12-31 10:57:17', NULL, '172.20.0.1', '', '', '限流策略', NULL, NULL, 'json', NULL, '');
|
||||
|
||||
INSERT INTO `config_info` VALUES (21, 'application-dev.yml', 'DEFAULT_GROUP', 'spring:\n autoconfigure:\n exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure\n mvc:\n pathmatch:\n matching-strategy: ant_path_matcher\n\n# feign 配置\nfeign:\n sentinel:\n enabled: false\n okhttp:\n enabled: true\n httpclient:\n enabled: true\n disable-ssl-validation: true\n client:\n config:\n default:\n connectTimeout: 10000\n readTimeout: 10000\n compression:\n request:\n enabled: true\n min-request-size: 8192\n response:\n enabled: true\n\n# 暴露监控端点\nmanagement:\n endpoints:\n web:\n exposure:\n include: \'*\'\n', '58dde4e3760499d3bac2d77a3a1e9018', '2024-11-18 18:11:28', '2024-11-18 18:11:28', '', '192.168.88.14', '', 'wfc-dev', '通用配置', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (22, 'wfc-gateway-dev.yml', 'DEFAULT_GROUP', 'spring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n cloud:\n gateway:\n discovery:\n locator:\n lowerCaseServiceId: true\n enabled: true\n routes:\n # 认证中心\n - id: wfc-auth\n uri: lb://wfc-auth\n predicates:\n - Path=/auth/**\n filters:\n # 验证码处理\n - CacheRequestFilter\n - ValidateCodeFilter\n - StripPrefix=1\n # 代码生成\n - id: wfc-gen\n uri: lb://wfc-gen\n predicates:\n - Path=/code/**\n filters:\n - StripPrefix=1\n # 定时任务\n - id: wfc-job\n uri: lb://wfc-job\n predicates:\n - Path=/schedule/**\n filters:\n - StripPrefix=1\n # 系统模块\n - id: wfc-system\n uri: lb://wfc-system\n predicates:\n - Path=/system/**\n filters:\n - StripPrefix=1\n # 文件服务\n - id: wfc-file\n uri: lb://wfc-file\n predicates:\n - Path=/file/**\n filters:\n - StripPrefix=1\n # payment\n - id: wfc-payment\n uri: lb://wfc-payment\n predicates:\n - Path=/payment/**\n filters:\n - StripPrefix=1 \n\n# 安全配置\nsecurity:\n # 验证码\n captcha:\n enabled: true\n type: math\n # 防止XSS攻击\n xss:\n enabled: true\n excludeUrls:\n - /system/notice\n # 不校验白名单\n ignore:\n whites:\n - /auth/logout\n - /auth/login\n - /auth/register\n - /*/v2/api-docs\n - /csrf\n', '7b1fad1543297684976990ac9f3baca2', '2024-11-18 18:11:28', '2024-12-26 09:45:29', NULL, '172.100.88.1', '', 'wfc-dev', '网关模块', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (23, 'wfc-auth-dev.yml', 'DEFAULT_GROUP', 'spring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n', 'c3f5481240e7581cc397f5c7918fd785', '2024-11-18 18:11:28', '2024-12-13 21:42:21', NULL, '192.168.2.116', '', 'wfc-dev', '认证中心', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (24, 'wfc-monitor-dev.yml', 'DEFAULT_GROUP', '# spring\nspring:\n security:\n user:\n name: wfc\n password: 123456\n boot:\n admin:\n ui:\n title: \n', '6494d8b29fceace33c96fc69cdaf0ec6', '2024-11-18 18:11:28', '2024-12-13 21:42:39', NULL, '192.168.2.116', '', 'wfc-dev', '监控中心', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (25, 'wfc-system-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc_system_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip', 'a355587121f711511c9010a4a8c0d797', '2024-11-18 18:11:28', '2024-12-13 21:43:19', NULL, '192.168.2.116', '', 'wfc-dev', '系统模块', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (26, 'wfc-gen-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc_system_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.gen.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 代码生成接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip\n\n# 代码生成\ngen:\n # 作者\n author: wfc\n # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool\n packageName: org.wfc.system\n # 自动去除表前缀,默认是false\n autoRemovePre: false\n # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)\n tablePrefix: sys_\n', '5ec7d9b8eb46eca656316e5f817aadb2', '2024-11-18 18:11:28', '2024-12-13 21:47:16', NULL, '192.168.2.116', '', 'wfc-dev', '代码生成', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (27, 'wfc-job-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: wfc-redis\n port: 6379\n password: \n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc_system_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.job.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 定时任务接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip\n', '1376deec876c0878df743b4d96c7f125', '2024-11-18 18:11:28', '2024-12-13 21:47:34', NULL, '192.168.2.116', '', 'wfc-dev', '定时任务', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (28, 'wfc-file-dev.yml', 'DEFAULT_GROUP', '# 本地文件上传 \nfile:\n domain: http://127.0.0.1:9300\n path: /home/wfc/upload\n prefix: /statics\n\n# FastDFS配置\nfdfs:\n domain: http://8.129.231.12\n soTimeout: 3000\n connectTimeout: 2000\n trackerList: 8.129.231.12:22122\n\n# Minio配置\nminio:\n url: http://8.129.231.12:9000\n accessKey: minioadmin\n secretKey: minioadmin\n bucketName: test', '580197933f0f0b2ba468a0916b911d4b', '2024-11-18 18:11:28', '2024-12-13 21:44:58', NULL, '192.168.2.116', '', 'wfc-dev', '文件服务', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (29, 'wfc-user-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc_user_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n # 从库数据源\n # slave:\n # username:\n # password:\n # url:\n # driver-class-name:\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.user\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip', 'db8c5a7eeebb0d57d180d1a97ad6226e', '2024-12-28 19:20:25', '2024-12-28 19:20:25', NULL, '172.19.0.1', '', 'wfc-dev', '用户平台模块', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (30, 'wfc-payment-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n main:\n allow-bean-definition-overriding: true\n \n redis:\n host: wfc-redis\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc_user_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n # 从库数据源\n # slave:\n # username:\n # password:\n # url:\n # driver-class-name:\n\n# mybatis-plus配置\nmybatis-plus:\n # 搜索指定包别名\n type-aliases-package: org.wfc.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapper-locations: classpath:mapper/**/*.xml\n global-config:\n db-config:\n logic-delete-field: del_flag\n logic-delete-value: 1\n logic-not-delete-value: 0\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip\n\nlogging:\n level:\n root: debug\n org:\n springframework:\n web: debug\n mybatis:\n mapper: debug\n wfc:\n system: debug\n com:\n github:\n binarywang: debug\n file:\n name: /var/log/wfc/wfc-modules-payment.log\n\nwxpay:\n appId: 121412414112\n mchId: 1131412414\n mchKey: 1525342aa\n subAppId: #服务商模式下的子商户公众账号ID\n subMchId: #服务商模式下的子商户号 \n keyPath: /home/wfc/config/payment/wxpay_key.pem\n useSandboxEnv: false\n ', '782c7fb3b169abae667b19cd08b96df8', '2024-12-31 10:59:12', '2024-12-31 10:59:12', NULL, '172.20.0.1', '', 'wfc-dev', 'wfc-modules-payment production yaml', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (31, 'sentinel-wfc-gateway-dev', 'DEFAULT_GROUP', '[\r\n {\r\n \"resource\": \"wfc-auth\",\r\n \"count\": 500,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-system\",\r\n \"count\": 1000,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-gen\",\r\n \"count\": 200,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-job\",\r\n \"count\": 300,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n }\r\n]', 'a8b3ec396dd09d5f2ba494cc80a7afa0', '2024-12-31 11:00:43', '2024-12-31 11:00:43', NULL, '172.20.0.1', '', 'wfc-dev', '限流策略', NULL, NULL, 'json', NULL, '');
|
||||
|
||||
INSERT INTO `config_info` VALUES (41, 'application-test.yml', 'DEFAULT_GROUP', 'spring:\n autoconfigure:\n exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure\n mvc:\n pathmatch:\n matching-strategy: ant_path_matcher\n # 资源信息\n messages:\n # 国际化资源文件路径\n basename: i18n/messages\n\n# feign 配置\nfeign:\n sentinel:\n enabled: true\n okhttp:\n enabled: false\n httpclient:\n enabled: true\n disable-ssl-validation: true\n client:\n config:\n default:\n connectTimeout: 60000\n readTimeout: 60000\n compression:\n request:\n enabled: true\n min-request-size: 8192\n response:\n enabled: true\n\n# 暴露监控端点\nmanagement:\n endpoints:\n web:\n exposure:\n include: \'*\'\n', '333d0b5dd60a01407c0107d0e4aec172', '2024-11-18 18:11:56', '2024-11-28 20:03:55', NULL, '192.168.88.14', '', 'wfc-test', '通用配置', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (42, 'wfc-gateway-test.yml', 'DEFAULT_GROUP', 'spring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n cloud:\n gateway:\n discovery:\n locator:\n lowerCaseServiceId: true\n enabled: true\n routes:\n # 认证中心\n - id: wfc-auth\n uri: lb://wfc-auth\n predicates:\n - Path=/auth/**\n filters:\n # 验证码处理\n - CacheRequestFilter\n - ValidateCodeFilter\n - StripPrefix=1\n # 代码生成\n - id: wfc-gen\n uri: lb://wfc-gen\n predicates:\n - Path=/code/**\n filters:\n - StripPrefix=1\n # 定时任务\n - id: wfc-job\n uri: lb://wfc-job\n predicates:\n - Path=/schedule/**\n filters:\n - StripPrefix=1\n # 系统模块\n - id: wfc-system\n uri: lb://wfc-system\n predicates:\n - Path=/system/**\n filters:\n - StripPrefix=1\n # 用户模块\n - id: wfc-modules-user\n uri: lb://wfc-modules-user\n predicates:\n - Path=/u/**\n filters:\n - StripPrefix=1\n # 文件服务\n - id: wfc-file\n uri: lb://wfc-file\n predicates:\n - Path=/file/**\n filters:\n - StripPrefix=1\n # payment\n - id: wfc-payment\n uri: lb://wfc-payment\n predicates:\n - Path=/payment/**\n filters:\n - StripPrefix=1 \n\n# 安全配置\nsecurity:\n # 验证码\n captcha:\n enabled: true\n mailEnabled: true\n type: math\n # 防止XSS攻击\n xss:\n enabled: true\n excludeUrls:\n - /system/notice\n # 不校验白名单\n ignore:\n whites:\n - /auth/logout\n - /auth/login\n - /auth/register\n - /*/v2/api-docs\n - /*/v3/api-docs\n - /csrf\n - /system/email/code\n - /system/user/checkRepeat\n - /u/user/checkRepeat\n\n# springdoc配置\nspringdoc:\n webjars:\n # 访问前缀\n prefix:', 'eec87fd6097c3d5c35d88da9f8280f10', '2024-11-18 18:11:56', '2024-12-26 09:45:05', NULL, '172.100.88.1', '', 'wfc-test', '网关模块', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (43, 'wfc-auth-test.yml', 'DEFAULT_GROUP', 'spring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n# springdoc配置\nspringdoc:\n gatewayUrl: http://wfc-gateway:8080/${spring.application.name}\n api-docs:\n # 是否开启接口文档\n enabled: true\n info:\n # 标题\n title: \'授权模块接口文档\'\n # 描述\n description: \'授权模块接口描述\'\n # 作者信息\n contact:\n name: wfc\n url: https://wfc.vip\n', 'd77ab6f041b802a9d077756fa36a1fe7', '2024-11-18 18:11:56', '2024-12-13 21:49:53', NULL, '192.168.2.116', '', 'wfc-test', '认证中心', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (44, 'wfc-monitor-test.yml', 'DEFAULT_GROUP', '# spring\nspring:\n security:\n user:\n name: wfc\n password: 123456\n boot:\n admin:\n ui:\n title: \n', '6494d8b29fceace33c96fc69cdaf0ec6', '2024-11-18 18:11:56', '2024-12-13 21:50:08', NULL, '192.168.2.116', '', 'wfc-test', '监控中心', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (45, 'wfc-system-test.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc_system_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# 邮箱配置\nmail:\n enabled: true\n host: smtp.qq.com\n port: 465\n # 是否需要用户名密码验证\n auth: true\n # 发送方,遵循RFC-822标准\n from: 707821112@qq.com\n # 用户名(注意:如果使用foxmail邮箱,此处user为qq号)\n user: 707821112@qq.com\n # 密码(注意,某些邮箱需要为SMTP服务单独设置密码,详情查看相关帮助)\n pass: zcbontiutwvebedb\n # 使用 STARTTLS安全连接,STARTTLS是对纯文本通信协议的扩展。\n starttlsEnable: true\n # 使用SSL安全连接\n sslEnable: true\n # SMTP超时时长,单位毫秒,缺省值不超时\n timeout: 0\n # Socket连接超时值,单位毫秒,缺省值不超时\n connectionTimeout: 0\n\n# springdoc配置\nspringdoc:\n gatewayUrl: http://wfc-gateway:8080/${spring.application.name}\n api-docs:\n # 是否开启接口文档\n enabled: true\n info:\n # 标题\n title: \'系统模块接口文档\'\n # 描述\n description: \'系统模块接口描述\'\n # 作者信息\n contact:\n name: wfc\n url: https://wfc.vip', '7cafbcc15abd4a77ddfa4e133921aaae', '2024-11-18 18:11:56', '2024-12-13 21:51:19', NULL, '192.168.2.116', '', 'wfc-test', '系统模块', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (46, 'wfc-gen-test.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc_system_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.gen.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 代码生成接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip\n\n# 代码生成\ngen:\n # 作者\n author: wfc\n # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool\n packageName: org.wfc.system\n # 自动去除表前缀,默认是false\n autoRemovePre: false\n # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)\n tablePrefix: sys_\n', '5ec7d9b8eb46eca656316e5f817aadb2', '2024-11-18 18:11:56', '2024-12-13 21:51:58', NULL, '192.168.2.116', '', 'wfc-test', '代码生成', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (47, 'wfc-job-test.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: wfc-redis\n port: 6379\n password: \n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc_system_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.job.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 定时任务接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip\n', '1376deec876c0878df743b4d96c7f125', '2024-11-18 18:11:56', '2024-12-13 21:53:03', NULL, '192.168.2.116', '', 'wfc-test', '定时任务', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (48, 'wfc-file-test.yml', 'DEFAULT_GROUP', '# 本地文件上传 \nfile:\n domain: http://127.0.0.1:9300\n path: /home/wfc/upload\n prefix: /statics\n\n# FastDFS配置\nfdfs:\n domain: http://8.129.231.12\n soTimeout: 3000\n connectTimeout: 2000\n trackerList: 8.129.231.12:22122\n\n# Minio配置\nminio:\n url: http://8.129.231.12:9000\n accessKey: minioadmin\n secretKey: minioadmin\n bucketName: test', '580197933f0f0b2ba468a0916b911d4b', '2024-11-18 18:11:56', '2024-12-13 21:53:22', NULL, '192.168.2.116', '', 'wfc-test', '文件服务', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (49, 'wfc-user-test.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc_user_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n # 从库数据源\n # slave:\n # username:\n # password:\n # url:\n # driver-class-name:\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.user\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n\n# 邮箱配置\nmail:\n enabled: true\n host: smtp.qq.com\n port: 465\n # 是否需要用户名密码验证\n auth: true\n # 发送方,遵循RFC-822标准\n from: 707821112@qq.com\n # 用户名(注意:如果使用foxmail邮箱,此处user为qq号)\n user: 707821112@qq.com\n # 密码(注意,某些邮箱需要为SMTP服务单独设置密码,详情查看相关帮助)\n pass: zcbontiutwvebedb\n # 使用 STARTTLS安全连接,STARTTLS是对纯文本通信协议的扩展。\n starttlsEnable: true\n # 使用SSL安全连接\n sslEnable: true\n # SMTP超时时长,单位毫秒,缺省值不超时\n timeout: 0\n # Socket连接超时值,单位毫秒,缺省值不超时\n connectionTimeout: 0\n\n# springdoc配置\nspringdoc:\n gatewayUrl: http://wfc-gateway:8080/${spring.application.name}\n api-docs:\n # 是否开启接口文档\n enabled: true\n info:\n # 标题\n title: \'用户模块接口文档\'\n # 描述\n description: \'用户模块接口描述\'\n # 作者信息\n contact:\n name: wfc\n url: https://wfc.vip', '9d81d4aa99fd5f28bea4860a1ad03d07', '2024-12-28 19:22:29', '2024-12-28 19:22:29', NULL, '172.19.0.1', '', 'wfc-test', '用户平台模块', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (50, 'wfc-payment-test.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n main:\n allow-bean-definition-overriding: true\n \n redis:\n host: wfc-redis\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc_user_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n # 从库数据源\n # slave:\n # username:\n # password:\n # url:\n # driver-class-name:\n\n# mybatis-plus配置\nmybatis-plus:\n # 搜索指定包别名\n type-aliases-package: org.wfc.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapper-locations: classpath:mapper/**/*.xml\n global-config:\n db-config:\n logic-delete-field: del_flag\n logic-delete-value: 1\n logic-not-delete-value: 0\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip\n\nlogging:\n level:\n root: debug\n org:\n springframework:\n web: debug\n mybatis:\n mapper: debug\n wfc:\n system: debug\n com:\n github:\n binarywang: debug\n file:\n name: /var/log/wfc/wfc-modules-payment.log\n\nwxpay:\n appId: 121412414112\n mchId: 1131412414\n mchKey: 1525342aa\n subAppId: #服务商模式下的子商户公众账号ID\n subMchId: #服务商模式下的子商户号 \n keyPath: /home/wfc/config/payment/wxpay_key.pem\n useSandboxEnv: false\n ', '782c7fb3b169abae667b19cd08b96df8', '2024-12-28 19:22:50', '2024-12-28 19:22:50', NULL, '172.19.0.1', '', 'wfc-test', 'wfc-modules-payment production yaml', NULL, NULL, 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (51, 'sentinel-wfc-gateway-test', 'DEFAULT_GROUP', '[\r\n {\r\n \"resource\": \"wfc-auth\",\r\n \"count\": 500,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-system\",\r\n \"count\": 1000,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-gen\",\r\n \"count\": 200,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-job\",\r\n \"count\": 300,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n }\r\n]', 'a8b3ec396dd09d5f2ba494cc80a7afa0', '2024-12-28 19:28:44', '2024-12-28 19:28:44', NULL, '172.19.0.1', '', 'wfc-test', '限流策略', NULL, NULL, 'json', NULL, '');
|
||||
|
||||
INSERT INTO `config_info` VALUES (61, 'application-prod.yml', 'DEFAULT_GROUP', 'spring:\n autoconfigure:\n exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure\n mvc:\n pathmatch:\n matching-strategy: ant_path_matcher\n # 资源信息\n #messages:\n # 国际化资源文件路径\n #basename: i18n/messages\n \n# feign 配置\nfeign:\n sentinel:\n enabled: true\n okhttp:\n enabled: false\n httpclient:\n enabled: true\n disable-ssl-validation: true\n client:\n config:\n default:\n connectTimeout: 60000\n readTimeout: 60000\n compression:\n request:\n enabled: true\n min-request-size: 8192\n response:\n enabled: true\n\n# 暴露监控端点\nmanagement:\n endpoints:\n web:\n exposure:\n include: \'*\'\n \n\n \n', '35d3cd36aeef1b24d4fdb9f73e0fb2c6', '2024-12-13 11:52:34', '2025-02-08 09:39:47', NULL, '172.20.0.1', '', 'wfc-prod', '通用配置', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (62, 'wfc-gateway-prod.yml', 'DEFAULT_GROUP', 'spring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n cloud:\n gateway:\n discovery:\n locator:\n lowerCaseServiceId: true\n enabled: true\n routes:\n # 认证中心\n - id: wfc-auth\n uri: lb://wfc-auth\n predicates:\n - Path=/auth/**\n filters:\n # 验证码处理\n - CacheRequestFilter\n - ValidateCodeFilter\n - StripPrefix=1\n # 代码生成\n - id: wfc-gen\n uri: lb://wfc-gen\n predicates:\n - Path=/code/**\n filters:\n - StripPrefix=1\n # 定时任务\n - id: wfc-job\n uri: lb://wfc-job\n predicates:\n - Path=/schedule/**\n filters:\n - StripPrefix=1\n # 系统模块\n - id: wfc-system\n uri: lb://wfc-system\n predicates:\n - Path=/system/**\n filters:\n - StripPrefix=1\n # 用户模块\n - id: wfc-user\n uri: lb://wfc-user\n predicates:\n - Path=/u/**\n filters:\n - StripPrefix=1 \n # 文件服务\n - id: wfc-file\n uri: lb://wfc-file\n predicates:\n - Path=/file/**\n filters:\n - StripPrefix=1\n # payment\n - id: wfc-payment\n uri: lb://wfc-payment\n predicates:\n - Path=/payment/**\n filters:\n - StripPrefix=1 \n\n# 安全配置\nsecurity:\n # 验证码\n captcha:\n enabled: true\n mailEnabled: true\n type: math\n # 防止XSS攻击\n xss:\n enabled: true\n excludeUrls:\n - /system/notice\n # 不校验白名单\n ignore:\n whites:\n - /auth/logout\n - /auth/login\n - /auth/register\n - /auth/checkRepeat\n - /*/v2/api-docs\n - /csrf\n - /u/email/code\n - /system/email/code\n - /payment/aliPay/callback\n - /payment/wxPay/callback\n - /u/user/profile/forgotPwd\n - /system/user/profile/forgotPwd', '7c2ff7c096ccba897a41dbb18e979fec', '2024-12-13 11:52:34', '2025-02-13 03:14:41', NULL, '192.168.2.158', '', 'wfc-prod', 'wfc-gateway production', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (63, 'wfc-auth-prod.yml', 'DEFAULT_GROUP', 'spring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n', 'c3f5481240e7581cc397f5c7918fd785', '2024-12-13 11:52:34', '2024-12-13 11:53:35', NULL, '192.168.2.116', '', 'wfc-prod', '认证中心', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (64, 'wfc-monitor-prod.yml', 'DEFAULT_GROUP', '# spring\nspring:\n security:\n user:\n name: wfc\n password: 123456\n boot:\n admin:\n ui:\n title: visual monitor\n', 'c8f896d284d5328aab16baeb81a3685c', '2024-12-13 11:52:34', '2024-12-13 11:54:04', NULL, '192.168.2.116', '', 'wfc-prod', '监控中心', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (65, 'wfc-system-prod.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc_system_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip', 'a355587121f711511c9010a4a8c0d797', '2024-12-13 11:52:34', '2024-12-13 11:54:49', NULL, '192.168.2.116', '', 'wfc-prod', '系统模块', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (66, 'wfc-gen-prod.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc_system_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.gen.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 代码生成接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip\n\n# 代码生成\ngen:\n # 作者\n author: wfc\n # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool\n packageName: org.wfc.system\n # 自动去除表前缀,默认是false\n autoRemovePre: false\n # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)\n tablePrefix: sys_\n', '5ec7d9b8eb46eca656316e5f817aadb2', '2024-12-13 11:52:34', '2024-12-13 11:55:28', NULL, '192.168.2.116', '', 'wfc-prod', '代码生成', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (67, 'wfc-job-prod.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: wfc-redis\n port: 6379\n password: \n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc_system_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.job.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 定时任务接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip\n', '1376deec876c0878df743b4d96c7f125', '2024-12-13 11:52:34', '2024-12-13 11:56:07', NULL, '192.168.2.116', '', 'wfc-prod', '定时任务', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (68, 'wfc-file-prod.yml', 'DEFAULT_GROUP', '# 本地文件上传 \nfile:\n domain: wfc-file:9201\n path: /opt/wfc/upload\n prefix: /kyc\n gateway: http://192.168.2.116:8080\n\n# FastDFS配置\nfdfs:\n domain: http://wfc-file\n soTimeout: 3000\n connectTimeout: 2000\n trackerList: wfc-file:22122\n\n# Minio配置\nminio:\n url: http://wfc-file:9000\n accessKey: minioadmin\n secretKey: minioadmin\n bucketName: test', '67ac8270276a9e28271471cbbd6c7784', '2024-12-13 11:52:34', '2025-01-16 01:46:26', NULL, '172.19.0.1', '', 'wfc-prod', '文件服务', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (69, 'wfc-user-prod.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: wfc-redis\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc_user_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n # 从库数据源\n # slave:\n # username:\n # password:\n # url:\n # driver-class-name:\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: org.wfc.user\n config-location: classpath:mybatis-config.xml\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip\n\nlogging:\n level:\n root: INFO\n org.springframework.web: INFO\n org.mybatis.mapper: INFO\n org.wfc.user: INFO\n', 'a4a5091fab85f9a67ba3800e6254c086', '2024-12-28 19:17:13', '2025-01-14 09:00:36', NULL, '172.19.0.1', '', 'wfc-prod', '用户平台模块', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (70, 'wfc-payment-prod.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n application:\n name: wfc-payment\n cloud:\n nacos:\n discovery:\n server-addr: ${NACOS_SERVER_ADDR:wfc-nacos}:${NACOS_SERVER_PORT:8848}\n namespace: ${NACOS_NAMESPACE:wfc-prod}\n \n main:\n allow-bean-definition-overriding: true\n \n redis:\n host: wfc-redis\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://wfc-mysql:3306/wfc_user_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: 123456\n # 从库数据源\n # slave:\n # username:\n # password:\n # url:\n # driver-class-name:\n\n# mybatis-plus配置\nmybatis-plus:\n # 搜索指定包别名\n type-aliases-package: org.wfc.payment\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapper-locations: classpath:mapper/**/*.xml\n global-config:\n db-config:\n logic-delete-field: del_flag\n logic-delete-value: 1\n logic-not-delete-value: 0\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By wfc\n licenseUrl: https://wfc.vip\n\n\n', '30412f7146c245c928acf90c35712be9', '2024-12-28 19:17:46', '2025-02-08 10:30:28', NULL, '172.20.0.1', '', 'wfc-prod', 'wfc-modules-payment production yaml', '', '', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (71, 'sentinel-wfc-gateway-prod', 'DEFAULT_GROUP', '[\r\n {\r\n \"resource\": \"wfc-auth\",\r\n \"count\": 500,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-system\",\r\n \"count\": 1000,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-gen\",\r\n \"count\": 200,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"wfc-job\",\r\n \"count\": 300,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n }\r\n]', 'a8b3ec396dd09d5f2ba494cc80a7afa0', '2024-12-28 19:27:43', '2024-12-28 19:27:43', NULL, '172.19.0.1', '', 'wfc-prod', '限流策略', NULL, NULL, 'json', NULL, '');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for config_info_beta
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `config_info_beta`;
|
||||
CREATE TABLE `config_info_beta` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
|
||||
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'app_name',
|
||||
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'content',
|
||||
`beta_ips` varchar(1024) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'betaIps',
|
||||
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'md5',
|
||||
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
`src_user` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT 'source user',
|
||||
`src_ip` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'source ip',
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT '租户字段',
|
||||
`encrypted_data_key` varchar(1024) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '密钥',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_configinfobeta_datagrouptenant`(`data_id`, `group_id`, `tenant_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'config_info_beta' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of config_info_beta
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for config_info_aggr
|
||||
-- ----------------------------
|
||||
-- for nacos v2.4.3 -
|
||||
|
||||
DROP TABLE IF EXISTS `config_info_aggr`;
|
||||
CREATE TABLE `config_info_aggr` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(128) NOT NULL COMMENT 'group_id',
|
||||
`datum_id` varchar(255) NOT NULL COMMENT 'datum_id',
|
||||
`content` longtext NOT NULL COMMENT '内容',
|
||||
`gmt_modified` datetime NOT NULL COMMENT '修改时间',
|
||||
`app_name` varchar(128) DEFAULT NULL COMMENT 'app_name',
|
||||
`tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_configinfoaggr_datagrouptenantdatum` (`data_id`,`group_id`,`tenant_id`,`datum_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='增加租户字段';
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of config_info_aggr
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for config_info_gray
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `config_info_gray`;
|
||||
CREATE TABLE `config_info_gray` (
|
||||
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'group_id',
|
||||
`content` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'content',
|
||||
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'md5',
|
||||
`src_user` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT 'src_user',
|
||||
`src_ip` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'src_ip',
|
||||
`gmt_create` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) COMMENT 'gmt_create',
|
||||
`gmt_modified` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) COMMENT 'gmt_modified',
|
||||
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'app_name',
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT 'tenant_id',
|
||||
`gray_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'gray_name',
|
||||
`gray_rule` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'gray_rule',
|
||||
`encrypted_data_key` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT 'encrypted_data_key',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_configinfogray_datagrouptenantgray`(`data_id`, `group_id`, `tenant_id`, `gray_name`) USING BTREE,
|
||||
INDEX `idx_dataid_gmt_modified`(`data_id`, `gmt_modified`) USING BTREE,
|
||||
INDEX `idx_gmt_modified`(`gmt_modified`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'config_info_gray' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of config_info_gray
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for config_info_tag
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `config_info_tag`;
|
||||
CREATE TABLE `config_info_tag` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT 'tenant_id',
|
||||
`tag_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'tag_id',
|
||||
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'app_name',
|
||||
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'content',
|
||||
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'md5',
|
||||
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
`src_user` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT 'source user',
|
||||
`src_ip` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'source ip',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_configinfotag_datagrouptenanttag`(`data_id`, `group_id`, `tenant_id`, `tag_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'config_info_tag' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of config_info_tag
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for config_tags_relation
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `config_tags_relation`;
|
||||
CREATE TABLE `config_tags_relation` (
|
||||
`id` bigint(20) NOT NULL COMMENT 'id',
|
||||
`tag_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'tag_name',
|
||||
`tag_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'tag_type',
|
||||
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT 'tenant_id',
|
||||
`nid` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'nid, 自增长标识',
|
||||
PRIMARY KEY (`nid`) USING BTREE,
|
||||
UNIQUE INDEX `uk_configtagrelation_configidtag`(`id`, `tag_name`, `tag_type`) USING BTREE,
|
||||
INDEX `idx_tenant_id`(`tenant_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'config_tag_relation' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of config_tags_relation
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for group_capacity
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `group_capacity`;
|
||||
CREATE TABLE `group_capacity` (
|
||||
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'Group ID,空字符表示整个集群',
|
||||
`quota` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '配额,0表示使用默认值',
|
||||
`usage` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '使用量',
|
||||
`max_size` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '单个配置大小上限,单位为字节,0表示使用默认值',
|
||||
`max_aggr_count` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '聚合子配置最大个数,,0表示使用默认值',
|
||||
`max_aggr_size` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值',
|
||||
`max_history_count` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最大变更历史数量',
|
||||
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_group_id`(`group_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '集群、各Group容量信息表' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of group_capacity
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for his_config_info
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `his_config_info`;
|
||||
CREATE TABLE `his_config_info` (
|
||||
`id` bigint(20) UNSIGNED NOT NULL COMMENT 'id',
|
||||
`nid` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'nid, 自增标识',
|
||||
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
|
||||
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
|
||||
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'app_name',
|
||||
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'content',
|
||||
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'md5',
|
||||
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
`src_user` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT 'source user',
|
||||
`src_ip` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'source ip',
|
||||
`op_type` char(10) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'operation type',
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT '租户字段',
|
||||
`encrypted_data_key` varchar(1024) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '密钥',
|
||||
`publish_type` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT 'formal' COMMENT 'publish type gray or formal',
|
||||
`gray_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'gray name',
|
||||
`ext_info` longtext CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT 'ext info',
|
||||
PRIMARY KEY (`nid`) USING BTREE,
|
||||
INDEX `idx_gmt_create`(`gmt_create`) USING BTREE,
|
||||
INDEX `idx_gmt_modified`(`gmt_modified`) USING BTREE,
|
||||
INDEX `idx_did`(`data_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '多租户改造' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of his_config_info
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for permissions
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `permissions`;
|
||||
CREATE TABLE `permissions` (
|
||||
`role` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'role',
|
||||
`resource` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'resource',
|
||||
`action` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'action',
|
||||
UNIQUE INDEX `uk_role_permission`(`role`, `resource`, `action`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of permissions
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for roles
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `roles`;
|
||||
CREATE TABLE `roles` (
|
||||
`username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'username',
|
||||
`role` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'role',
|
||||
UNIQUE INDEX `idx_user_role`(`username`, `role`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of roles
|
||||
-- ----------------------------
|
||||
INSERT INTO `roles` VALUES ('nacos', 'ROLE_ADMIN');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for tenant_capacity
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `tenant_capacity`;
|
||||
CREATE TABLE `tenant_capacity` (
|
||||
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'Tenant ID',
|
||||
`quota` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '配额,0表示使用默认值',
|
||||
`usage` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '使用量',
|
||||
`max_size` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '单个配置大小上限,单位为字节,0表示使用默认值',
|
||||
`max_aggr_count` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '聚合子配置最大个数',
|
||||
`max_aggr_size` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值',
|
||||
`max_history_count` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最大变更历史数量',
|
||||
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_tenant_id`(`tenant_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '租户容量信息表' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of tenant_capacity
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for tenant_info
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `tenant_info`;
|
||||
CREATE TABLE `tenant_info` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`kp` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'kp',
|
||||
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT 'tenant_id',
|
||||
`tenant_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT 'tenant_name',
|
||||
`tenant_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'tenant_desc',
|
||||
`create_source` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'create_source',
|
||||
`gmt_create` bigint(20) NOT NULL COMMENT '创建时间',
|
||||
`gmt_modified` bigint(20) NOT NULL COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_tenant_info_kptenantid`(`kp`, `tenant_id`) USING BTREE,
|
||||
INDEX `idx_tenant_id`(`tenant_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'tenant_info' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of tenant_info
|
||||
-- ----------------------------
|
||||
INSERT INTO `tenant_info` VALUES (1, '1', 'wfc-dev', 'wfc-dev', 'Develepment environment namespace', 'nacos', 1731924580008, 1735414386506);
|
||||
INSERT INTO `tenant_info` VALUES (2, '1', 'wfc-test', 'wfc-test', 'Test environment namespace', 'nacos', 1731924616218, 1735414361709);
|
||||
INSERT INTO `tenant_info` VALUES (4, '1', 'wfc-prod', 'wfc-prod', 'Production environment namespace', 'nacos', 1734061909181, 1735414409806);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for users
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `users`;
|
||||
CREATE TABLE `users` (
|
||||
`username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'username',
|
||||
`password` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'password',
|
||||
`enabled` tinyint(1) NOT NULL COMMENT 'enabled',
|
||||
PRIMARY KEY (`username`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of users
|
||||
-- ----------------------------
|
||||
INSERT INTO `users` VALUES ('nacos', '$2a$10$EuWPZHzz32dJN7jexM34MOeYirDdFAZm2kuWj7VEOJhhZkDrxfvUu', 1);
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
@@ -1,80 +0,0 @@
|
||||
DROP DATABASE IF EXISTS `wfc-seata`;
|
||||
|
||||
CREATE DATABASE `wfc-seata` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
USE `wfc-seata`;
|
||||
|
||||
-- -------------------------------- The script used when storeMode is 'db' --------------------------------
|
||||
-- the table to store GlobalSession data
|
||||
CREATE TABLE IF NOT EXISTS `global_table`
|
||||
(
|
||||
`xid` VARCHAR(128) NOT NULL,
|
||||
`transaction_id` BIGINT,
|
||||
`status` TINYINT NOT NULL,
|
||||
`application_id` VARCHAR(32),
|
||||
`transaction_service_group` VARCHAR(32),
|
||||
`transaction_name` VARCHAR(128),
|
||||
`timeout` INT,
|
||||
`begin_time` BIGINT,
|
||||
`application_data` VARCHAR(2000),
|
||||
`gmt_create` DATETIME,
|
||||
`gmt_modified` DATETIME,
|
||||
PRIMARY KEY (`xid`),
|
||||
KEY `idx_gmt_modified_status` (`gmt_modified`, `status`),
|
||||
KEY `idx_transaction_id` (`transaction_id`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4;
|
||||
|
||||
-- the table to store BranchSession data
|
||||
CREATE TABLE IF NOT EXISTS `branch_table`
|
||||
(
|
||||
`branch_id` BIGINT NOT NULL,
|
||||
`xid` VARCHAR(128) NOT NULL,
|
||||
`transaction_id` BIGINT,
|
||||
`resource_group_id` VARCHAR(32),
|
||||
`resource_id` VARCHAR(256),
|
||||
`branch_type` VARCHAR(8),
|
||||
`status` TINYINT,
|
||||
`client_id` VARCHAR(64),
|
||||
`application_data` VARCHAR(2000),
|
||||
`gmt_create` DATETIME(6),
|
||||
`gmt_modified` DATETIME(6),
|
||||
PRIMARY KEY (`branch_id`),
|
||||
KEY `idx_xid` (`xid`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4;
|
||||
|
||||
-- the table to store lock data
|
||||
CREATE TABLE IF NOT EXISTS `lock_table`
|
||||
(
|
||||
`row_key` VARCHAR(128) NOT NULL,
|
||||
`xid` VARCHAR(96),
|
||||
`transaction_id` BIGINT,
|
||||
`branch_id` BIGINT NOT NULL,
|
||||
`resource_id` VARCHAR(256),
|
||||
`table_name` VARCHAR(32),
|
||||
`pk` VARCHAR(36),
|
||||
`gmt_create` DATETIME,
|
||||
`gmt_modified` DATETIME,
|
||||
PRIMARY KEY (`row_key`),
|
||||
KEY `idx_branch_id` (`branch_id`)
|
||||
) ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8mb4;
|
||||
|
||||
-- for AT mode you must to init this sql for you business database. the seata server not need it.
|
||||
CREATE TABLE IF NOT EXISTS `undo_log`
|
||||
(
|
||||
`branch_id` BIGINT(20) NOT NULL COMMENT 'branch transaction id',
|
||||
`xid` VARCHAR(100) NOT NULL COMMENT 'global transaction id',
|
||||
`context` VARCHAR(128) NOT NULL COMMENT 'undo_log context,such as serialization',
|
||||
`rollback_info` LONGBLOB NOT NULL COMMENT 'rollback info',
|
||||
`log_status` INT(11) NOT NULL COMMENT '0:normal status,1:defense status',
|
||||
`log_created` DATETIME(6) NOT NULL COMMENT 'create datetime',
|
||||
`log_modified` DATETIME(6) NOT NULL COMMENT 'modify datetime',
|
||||
UNIQUE KEY `ux_undo_log` (`xid`, `branch_id`)
|
||||
) ENGINE = InnoDB
|
||||
AUTO_INCREMENT = 1
|
||||
DEFAULT CHARSET = utf8mb4 COMMENT ='AT transaction mode undo table';
|
||||
601
sql/wfc_system_db/wfc_system_db.sql
Normal file
601
sql/wfc_system_db/wfc_system_db.sql
Normal file
@@ -0,0 +1,601 @@
|
||||
/*
|
||||
Navicat Premium Data Transfer
|
||||
|
||||
Source Server : root@192.168.2.248-docker
|
||||
Source Server Type : MySQL
|
||||
Source Server Version : 50744 (5.7.44)
|
||||
Source Host : 192.168.2.248:3306
|
||||
Source Schema : wfc_system_db
|
||||
|
||||
Target Server Type : MySQL
|
||||
Target Server Version : 50744 (5.7.44)
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 24/12/2024 20:37:17
|
||||
*/
|
||||
|
||||
CREATE DATABASE IF NOT EXISTS `wfc_system_db` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
USE wfc_system_db;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sys_config
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sys_config`;
|
||||
CREATE TABLE `sys_config` (
|
||||
`config_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '参数主键',
|
||||
`config_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数名称',
|
||||
`config_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键名',
|
||||
`config_value` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键值',
|
||||
`config_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '系统内置(Y是 N否)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`config_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '参数配置表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sys_config
|
||||
-- ----------------------------
|
||||
INSERT INTO `sys_config` VALUES (1, 'Account Management - Initial Account Password', 'sys.user.initPassword', '123456', 'Y', 'admin', '2024-05-08 21:50:55', '', NULL, 'Initialize password 123456');
|
||||
INSERT INTO `sys_config` VALUES (2, 'Account Self-Service - Enable User Registration Function', 'sys.account.registerUser', 'false', 'Y', 'admin', '2024-05-08 21:50:55', '', NULL, 'Enable user registration feature (true/false)');
|
||||
INSERT INTO `sys_config` VALUES (3, 'User Login - Blacklist', 'sys.login.blackIPList', '', 'Y', 'admin', '2024-05-08 21:50:55', '', NULL, 'Set login IP blacklist restrictions, with multiple matching items separated by semicolons (;), supporting matching (wildcards *, subnet).');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sys_dept
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sys_dept`;
|
||||
CREATE TABLE `sys_dept` (
|
||||
`dept_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '部门id',
|
||||
`parent_id` bigint(20) NULL DEFAULT 0 COMMENT '父部门id',
|
||||
`ancestors` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '祖级列表',
|
||||
`dept_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '部门名称',
|
||||
`order_num` int(11) NULL DEFAULT 0 COMMENT '显示顺序',
|
||||
`leader` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '负责人',
|
||||
`phone` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '联系电话',
|
||||
`email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '部门状态(0正常 1停用)',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`dept_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 102 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '部门表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sys_dept
|
||||
-- ----------------------------
|
||||
INSERT INTO `sys_dept` VALUES (100, 0, '0', 'ROOT', 0, 'system', '123456', '123456@wfc.com', '0', '0', 'system', '2024-11-27 21:50:54', '', NULL, NULL);
|
||||
INSERT INTO `sys_dept` VALUES (101, 100, '0,100', 'No.1', 1, 'system', '123456', '123456@wfc.com', '0', '0', 'system', '2024-11-27 21:50:54', '', NULL, NULL);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sys_device
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sys_device`;
|
||||
CREATE TABLE `sys_device` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`site_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'siteId',
|
||||
`mac` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'mac',
|
||||
`name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'name',
|
||||
`type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'type',
|
||||
`subtype` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'subtype',
|
||||
`device_series_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'deviceSeriesType',
|
||||
`model` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'model',
|
||||
`ip` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'ip',
|
||||
`ipv6s` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'ipv6s',
|
||||
`uptime` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'uptime',
|
||||
`status` int(11) NULL DEFAULT NULL COMMENT 'status',
|
||||
`last_seen` bigint(20) NULL DEFAULT NULL COMMENT 'lastSeen',
|
||||
`cpu_util` int(11) NULL DEFAULT NULL COMMENT 'cpuUtil',
|
||||
`mem_util` int(11) NULL DEFAULT NULL COMMENT 'memUtil',
|
||||
`sn` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'sn',
|
||||
`license_status` int(11) NULL DEFAULT NULL COMMENT 'licenseStatus',
|
||||
`tag_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'tagName',
|
||||
`uplink_device_mac` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'uplinkDeviceMac',
|
||||
`uplink_device_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'uplink_device_name',
|
||||
`uplink_device_port` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'uplinkDevicePort',
|
||||
`link_speed` int(11) NULL DEFAULT NULL COMMENT 'linkSpeed',
|
||||
`duplex` int(11) NULL DEFAULT NULL COMMENT 'duplex',
|
||||
`switch_consistent` tinyint(1) NULL DEFAULT NULL COMMENT 'switchConsistent',
|
||||
`public_ip` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'publicIp',
|
||||
`firmware_version` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'firmwareVersion',
|
||||
`del_flag` tinyint(1) NULL DEFAULT 0 COMMENT '删除标志(0存在 1删除)',
|
||||
`create_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '客户平台-设备表' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sys_dict_data
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sys_dict_data`;
|
||||
CREATE TABLE `sys_dict_data` (
|
||||
`dict_code` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '字典编码',
|
||||
`dict_sort` int(11) NULL DEFAULT 0 COMMENT '字典排序',
|
||||
`dict_label` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典标签',
|
||||
`dict_value` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典键值',
|
||||
`dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典类型',
|
||||
`css_class` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '样式属性(其他样式扩展)',
|
||||
`list_class` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '表格回显样式',
|
||||
`is_default` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '是否默认(Y是 N否)',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1停用)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`dict_code`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 26 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典数据表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sys_dict_data
|
||||
-- ----------------------------
|
||||
INSERT INTO `sys_dict_data` VALUES (1, 1, 'Male', '0', 'sys_user_sex', '', '', 'Y', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Gender Male');
|
||||
INSERT INTO `sys_dict_data` VALUES (2, 2, 'Female', '1', 'sys_user_sex', '', '', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Gender Female');
|
||||
INSERT INTO `sys_dict_data` VALUES (3, 3, 'Unknown', '2', 'sys_user_sex', '', '', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Gender Unknown');
|
||||
INSERT INTO `sys_dict_data` VALUES (4, 1, 'Show', '0', 'sys_show_hide', '', 'primary', 'Y', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Show Menu');
|
||||
INSERT INTO `sys_dict_data` VALUES (5, 2, 'Hide', '1', 'sys_show_hide', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Hide Menu');
|
||||
INSERT INTO `sys_dict_data` VALUES (6, 1, 'Normal', '0', 'sys_normal_disable', '', 'primary', 'Y', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Normal Status');
|
||||
INSERT INTO `sys_dict_data` VALUES (7, 2, 'Deactivated', '1', 'sys_normal_disable', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Disabled Status');
|
||||
INSERT INTO `sys_dict_data` VALUES (8, 1, 'Normal', '0', 'sys_job_status', '', 'primary', 'Y', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Normal Status');
|
||||
INSERT INTO `sys_dict_data` VALUES (9, 2, 'Paused', '1', 'sys_job_status', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Disabled Status');
|
||||
INSERT INTO `sys_dict_data` VALUES (10, 1, 'Default', 'DEFAULT', 'sys_job_group', '', '', 'Y', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Default Group');
|
||||
INSERT INTO `sys_dict_data` VALUES (11, 2, 'System', 'SYSTEM', 'sys_job_group', '', '', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'System Group');
|
||||
INSERT INTO `sys_dict_data` VALUES (12, 1, 'Yes', 'Y', 'sys_yes_no', '', 'primary', 'Y', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'System Default Yes');
|
||||
INSERT INTO `sys_dict_data` VALUES (13, 2, 'No', 'N', 'sys_yes_no', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'System Default No');
|
||||
INSERT INTO `sys_dict_data` VALUES (14, 99, 'Other', '0', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Other Operations');
|
||||
INSERT INTO `sys_dict_data` VALUES (15, 1, 'Add', '1', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Add Operation');
|
||||
INSERT INTO `sys_dict_data` VALUES (16, 2, 'Modify', '2', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Modify Operation');
|
||||
INSERT INTO `sys_dict_data` VALUES (17, 3, 'Delete', '3', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Delete Operation');
|
||||
INSERT INTO `sys_dict_data` VALUES (18, 4, 'Authorize', '4', 'sys_oper_type', '', 'primary', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Authorize Operation');
|
||||
INSERT INTO `sys_dict_data` VALUES (19, 5, 'Export', '5', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Export Operation');
|
||||
INSERT INTO `sys_dict_data` VALUES (20, 6, 'Import', '6', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Import Operation');
|
||||
INSERT INTO `sys_dict_data` VALUES (21, 7, 'Force Logout', '7', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Force Logout Operation');
|
||||
INSERT INTO `sys_dict_data` VALUES (22, 8, 'Generate Code', '8', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Generate Operation');
|
||||
INSERT INTO `sys_dict_data` VALUES (23, 9, 'Clear Data', '9', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Clear Operation');
|
||||
INSERT INTO `sys_dict_data` VALUES (24, 1, 'Success', '0', 'sys_common_status', '', 'primary', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Normal Status');
|
||||
INSERT INTO `sys_dict_data` VALUES (25, 2, 'Failure', '1', 'sys_common_status', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Disabled Status');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sys_dict_type
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sys_dict_type`;
|
||||
CREATE TABLE `sys_dict_type` (
|
||||
`dict_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '字典主键',
|
||||
`dict_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典名称',
|
||||
`dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典类型',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1停用)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`dict_id`) USING BTREE,
|
||||
UNIQUE INDEX `dict_type`(`dict_type`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典类型表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sys_dict_type
|
||||
-- ----------------------------
|
||||
INSERT INTO `sys_dict_type` VALUES (1, 'User Gender', 'sys_user_sex', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'User Gender List');
|
||||
INSERT INTO `sys_dict_type` VALUES (2, 'Menu Status', 'sys_show_hide', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Menu Status List');
|
||||
INSERT INTO `sys_dict_type` VALUES (3, 'System Switch', 'sys_normal_disable', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'System Switch List');
|
||||
INSERT INTO `sys_dict_type` VALUES (4, 'Task Status', 'sys_job_status', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Task Status List');
|
||||
INSERT INTO `sys_dict_type` VALUES (5, 'Task Grouping', 'sys_job_group', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Task Group List');
|
||||
INSERT INTO `sys_dict_type` VALUES (6, 'System Yes/No', 'sys_yes_no', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'System Yes/No List');
|
||||
INSERT INTO `sys_dict_type` VALUES (7, 'Operation Type', 'sys_oper_type', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Operation Type List');
|
||||
INSERT INTO `sys_dict_type` VALUES (8, 'System Status', 'sys_common_status', '0', 'admin', '2024-05-08 21:50:55', '', NULL, 'Login Status List');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sys_job
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sys_job`;
|
||||
CREATE TABLE `sys_job` (
|
||||
`job_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '任务ID',
|
||||
`job_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '任务名称',
|
||||
`job_group` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'DEFAULT' COMMENT '任务组名',
|
||||
`invoke_target` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调用目标字符串',
|
||||
`cron_expression` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT 'cron执行表达式',
|
||||
`misfire_policy` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '3' COMMENT '计划执行错误策略(1立即执行 2执行一次 3放弃执行)',
|
||||
`concurrent` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '是否并发执行(0允许 1禁止)',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1暂停)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注信息',
|
||||
PRIMARY KEY (`job_id`, `job_name`, `job_group`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '定时任务调度表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sys_job
|
||||
-- ----------------------------
|
||||
INSERT INTO `sys_job` VALUES (1, 'Omada Sync Task', 'DEFAULT', 'omadaTask.syncJob', '0/30 * * * * ?', '3', '1', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '');
|
||||
INSERT INTO `sys_job` VALUES (2, 'Omada Initialization Task ', 'DEFAULT', 'omadaTask.initJob', '0 0 0/1 * * ? ', '3', '1', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sys_job_log
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sys_job_log`;
|
||||
CREATE TABLE `sys_job_log` (
|
||||
`job_log_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '任务日志ID',
|
||||
`job_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务名称',
|
||||
`job_group` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务组名',
|
||||
`invoke_target` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调用目标字符串',
|
||||
`job_message` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '日志信息',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '执行状态(0正常 1失败)',
|
||||
`exception_info` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '异常信息',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
PRIMARY KEY (`job_log_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '定时任务调度日志表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sys_job_log
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sys_logininfor
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sys_logininfor`;
|
||||
CREATE TABLE `sys_logininfor` (
|
||||
`info_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '访问ID',
|
||||
`user_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '用户账号',
|
||||
`ipaddr` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '登录IP地址',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '登录状态(0成功 1失败)',
|
||||
`msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '提示信息',
|
||||
`access_time` datetime NULL DEFAULT NULL COMMENT '访问时间',
|
||||
PRIMARY KEY (`info_id`) USING BTREE,
|
||||
INDEX `idx_sys_logininfor_s`(`status`) USING BTREE,
|
||||
INDEX `idx_sys_logininfor_lt`(`access_time`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 357 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统访问记录' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sys_logininfor
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sys_menu
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sys_menu`;
|
||||
CREATE TABLE `sys_menu` (
|
||||
`menu_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
|
||||
`menu_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单名称',
|
||||
`parent_id` bigint(20) NULL DEFAULT 0 COMMENT '父菜单ID',
|
||||
`order_num` int(11) NULL DEFAULT 0 COMMENT '显示顺序',
|
||||
`path` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '路由地址',
|
||||
`component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组件路径',
|
||||
`query` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '路由参数',
|
||||
`is_frame` int(11) NULL DEFAULT 1 COMMENT '是否为外链(0是 1否)',
|
||||
`is_cache` int(11) NULL DEFAULT 0 COMMENT '是否缓存(0缓存 1不缓存)',
|
||||
`menu_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '菜单类型(M目录 C菜单 F按钮)',
|
||||
`visible` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '菜单状态(0显示 1隐藏)',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '菜单状态(0正常 1停用)',
|
||||
`perms` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限标识',
|
||||
`icon` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '#' COMMENT '菜单图标',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注',
|
||||
`name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单key',
|
||||
PRIMARY KEY (`menu_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 2031 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '菜单权限表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sys_menu
|
||||
-- ----------------------------
|
||||
INSERT INTO `sys_menu` VALUES (1, 'menu.system.management', 0, 1001, '/manage', 'layout.base', '', 1, 0, 'M', '0', '0', '', 'carbon:cloud-service-management', 'admin', '2024-05-08 21:50:55', 'admin', '2024-05-12 23:46:57', '系统管理目录', 'manage');
|
||||
INSERT INTO `sys_menu` VALUES (3, 'menu.system.tools', 0, 1003, '/tool', NULL, '', 1, 0, 'M', '0', '0', '', 'carbon:user-role', 'admin', '2024-05-08 21:50:55', 'admin', '2024-05-12 23:46:57', '系统工具目录', 'tool');
|
||||
INSERT INTO `sys_menu` VALUES (100, 'menu.system.account.management', 1, 1, '/manage/user', 'view.manage_user', '', 1, 0, 'C', '0', '0', 'system:user:list', 'ic:round-manage-accounts', 'admin', '2024-05-08 21:50:55', 'admin', '2024-12-04 10:21:07', '用户管理菜单', 'manage_user');
|
||||
INSERT INTO `sys_menu` VALUES (101, 'menu.system.role.management', 1, 2, '/manage/role', 'view.manage_role', '', 1, 0, 'C', '0', '0', 'system:role:list', 'carbon:user-role', 'admin', '2024-05-08 21:50:55', '', NULL, '角色管理菜单', 'manage_role');
|
||||
INSERT INTO `sys_menu` VALUES (102, 'menu.system.menu.management', 1, 3, '/manage/menu', 'view.manage_menu', '', 1, 0, 'C', '0', '0', 'system:menu:list', 'material-symbols:route', 'admin', '2024-05-08 21:50:55', 'admin', '2024-05-12 23:46:12', '菜单管理菜单', 'manage_menu');
|
||||
INSERT INTO `sys_menu` VALUES (103, 'menu.system.department.management', 1, 4, '/manage/dept', 'view.manage_dept', '', 1, 0, 'C', '0', '0', 'system:dept:list', 'carbon:box', 'admin', '2024-05-08 21:50:55', 'ryadmin', '2024-12-04 10:20:07', '部门管理菜单', 'manage_dept');
|
||||
INSERT INTO `sys_menu` VALUES (104, 'menu.system.position.management', 1, 5, '/manage/post', 'view.manage_post', NULL, 1, 0, 'C', '0', '0', 'system:post:list', 'carbon:group', 'admin', '2024-06-02 22:18:48', '', '2024-12-04 10:20:12', '', 'manage_post');
|
||||
INSERT INTO `sys_menu` VALUES (105, 'menu.system.dict.management', 1, 6, '/manage/dict', 'view.manage_dict', NULL, 1, 0, 'C', '0', '0', 'system:dict:list', 'carbon:volume-block-storage', 'admin', '2024-06-02 23:13:40', '', NULL, '', 'manage_dict');
|
||||
INSERT INTO `sys_menu` VALUES (115, 'menu.system.code.generator', 3, 2, '/gen', 'tool.gen', '', 1, 0, 'C', '0', '0', 'tool:gen:list', 'carbon:box', 'admin', '2024-11-21 18:47:51', '', NULL, '代码生成菜单', 'tool_gen');
|
||||
INSERT INTO `sys_menu` VALUES (116, 'menu.system.interface', 3, 3, 'http://localhost:8080/swagger-ui/index.html', '', '', 0, 0, 'C', '0', '0', 'tool:swagger:list', 'carbon:box', 'admin', '2024-11-21 18:47:51', '', NULL, '系统接口菜单', 'tool_swagger');
|
||||
INSERT INTO `sys_menu` VALUES (1000, 'menu.action.user.query', 100, 1, '', '', '', 1, 0, 'F', '0', '0', 'system:user:query', '#', 'admin', '2024-05-08 21:50:55', '', '2024-12-11 11:46:34', '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1001, 'menu.action.user.add', 100, 2, '', '', '', 1, 0, 'F', '0', '0', 'system:user:add', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1002, 'menu.action.user.modify', 100, 3, '', '', '', 1, 0, 'F', '0', '0', 'system:user:edit', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1003, 'menu.action.user.delete', 100, 4, '', '', '', 1, 0, 'F', '0', '0', 'system:user:remove', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1004, 'menu.action.user.export', 100, 5, '', '', '', 1, 0, 'F', '0', '0', 'system:user:export', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1005, 'menu.action.user.import', 100, 6, '', '', '', 1, 0, 'F', '0', '0', 'system:user:import', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1006, 'menu.action.user.reset.password', 100, 7, '', '', '', 1, 0, 'F', '0', '0', 'system:user:resetPwd', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1007, 'menu.action.role.query', 101, 1, '', '', '', 1, 0, 'F', '0', '0', 'system:role:query', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1008, 'menu.action.role.add', 101, 2, '', '', '', 1, 0, 'F', '0', '0', 'system:role:add', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1009, 'menu.action.role.modify', 101, 3, '', '', '', 1, 0, 'F', '0', '0', 'system:role:edit', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1010, 'menu.action.role.delete', 101, 4, '', '', '', 1, 0, 'F', '0', '0', 'system:role:remove', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1011, 'menu.action.role.export', 101, 5, '', '', '', 1, 0, 'F', '0', '0', 'system:role:export', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1012, 'menu.action.menu.query', 102, 1, '', '', '', 1, 0, 'F', '0', '0', 'system:menu:query', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1013, 'menu.action.menu.add', 102, 2, '', '', '', 1, 0, 'F', '0', '0', 'system:menu:add', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1014, 'menu.action.menu.modify', 102, 3, '', '', '', 1, 0, 'F', '0', '0', 'system:menu:edit', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1015, 'menu.action.menu.delete', 102, 4, '', '', '', 1, 0, 'F', '0', '0', 'system:menu:remove', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1016, 'menu.action.department.query', 103, 1, '', '', '', 1, 0, 'F', '0', '0', 'system:dept:query', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1017, 'menu.action.department.add', 103, 2, '', '', '', 1, 0, 'F', '0', '0', 'system:dept:add', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1018, 'menu.action.department.modify', 103, 3, '', '', '', 1, 0, 'F', '0', '0', 'system:dept:edit', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1019, 'menu.action.department.delete', 103, 4, '', '', '', 1, 0, 'F', '0', '0', 'system:dept:remove', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1020, 'menu.action.position.query', 104, 1, '', '', '', 1, 0, 'F', '0', '0', 'system:post:query', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1021, 'menu.action.position.add', 104, 2, '', '', '', 1, 0, 'F', '0', '0', 'system:post:add', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1022, 'menu.action.position.modify', 104, 3, '', '', '', 1, 0, 'F', '0', '0', 'system:post:edit', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1023, 'menu.action.position.delete', 104, 4, '', '', '', 1, 0, 'F', '0', '0', 'system:post:remove', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1024, 'menu.action.position.export', 104, 5, '', '', '', 1, 0, 'F', '0', '0', 'system:post:export', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1025, 'menu.action.dict.query', 105, 1, '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:query', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1026, 'menu.action.dict.add', 105, 2, '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:add', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1027, 'menu.action.dict.modify', 105, 3, '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:edit', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1028, 'menu.action.dict.delete', 105, 4, '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:remove', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1029, 'menu.action.dict.export', 105, 5, '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:export', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1039, 'menu.action.operate.query', 500, 1, '#', '', '', 1, 0, 'F', '0', '0', 'system:operlog:query', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1040, 'menu.action.operate.delete', 500, 2, '#', '', '', 1, 0, 'F', '0', '0', 'system:operlog:remove', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1041, 'menu.action.log.export', 500, 3, '#', '', '', 1, 0, 'F', '0', '0', 'system:operlog:export', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1042, 'menu.action.login.query', 501, 1, '#', '', '', 1, 0, 'F', '0', '0', 'system:logininfor:query', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1043, 'menu.action.login.delete', 501, 2, '#', '', '', 1, 0, 'F', '0', '0', 'system:logininfor:remove', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1044, 'menu.action.log.export', 501, 3, '#', '', '', 1, 0, 'F', '0', '0', 'system:logininfor:export', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1045, 'menu.action.account.unlock', 501, 4, '#', '', '', 1, 0, 'F', '0', '0', 'system:logininfor:unlock', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1049, 'menu.action.task.query', 2015, 1, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:query', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1050, 'menu.action.task.add', 2015, 2, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:add', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1051, 'menu.action.task.modify', 2015, 3, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:edit', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1052, 'menu.action.task.delete', 2015, 4, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:remove', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1053, 'menu.action.task.status.modify', 2015, 5, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:changeStatus', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (1054, 'menu.action.task.export', 2015, 6, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:export', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (2010, 'menu.user.management', 0, 10, '/user-center', 'layout.base', NULL, 1, 0, 'M', '0', '0', '', 'carbon:user-multiple', 'admin', '2024-11-28 14:37:09', '', '2024-12-12 10:45:03', '', 'user-center');
|
||||
INSERT INTO `sys_menu` VALUES (2011, 'menu.user.cdr.management', 1063, 0, '/user-center/cdr-manage', 'view.user-center_cdr-manage', NULL, 1, 1, 'C', '0', '0', NULL, 'carbon:report', 'admin', '2024-11-28 14:37:56', '', NULL, '', 'user-center_cdr-manage');
|
||||
INSERT INTO `sys_menu` VALUES (2012, 'menu.user.kyc.management', 1063, 0, '/user-center/kyc', 'view.user-center_kyc', NULL, 1, 1, 'C', '0', '0', NULL, 'carbon:image-search-alt', 'admin', '2024-11-28 14:42:27', '', NULL, '', 'user-center_kyc');
|
||||
INSERT INTO `sys_menu` VALUES (2013, 'menu.user.account.management', 1063, 0, '/user-center/account', 'view.user-center_account', NULL, 1, 1, 'C', '0', '0', NULL, 'carbon:user-avatar', 'admin', '2024-11-28 14:43:43', '', NULL, '', 'user-center_account');
|
||||
INSERT INTO `sys_menu` VALUES (2014, 'menu.system.log.management', 1, 100, '/manage/log', 'view.manage_log', NULL, 1, 1, 'C', '0', '0', 'system:operlog:list', 'carbon:account', 'admin', '2024-11-28 17:20:41', '', NULL, '', 'manage_log');
|
||||
INSERT INTO `sys_menu` VALUES (2015, 'menu.system.job.management', 1, 7, '/manage/task', 'view.manage_task', NULL, 1, 1, 'C', '0', '0', '', 'carbon:document-multiple-01', 'admin', '2024-11-28 17:21:09', '', '2025-01-08 15:23:33', '', 'manage_task');
|
||||
INSERT INTO `sys_menu` VALUES (2018, 'menu.action.batch.delete', 2014, 0, '', NULL, NULL, 1, 0, 'F', '0', '0', 'system:operlog:remove', '#', 'super', '2024-12-03 18:43:13', '', NULL, '', NULL);
|
||||
INSERT INTO `sys_menu` VALUES (2019, 'menu.user.info', 2010, 0, '/user-center/user', 'view.user-center_user', NULL, 1, 1, 'C', '0', '0', '', 'carbon:account', 'super', '2024-12-04 09:53:02', '', '2024-12-11 18:16:22', '', 'user-center_account');
|
||||
INSERT INTO `sys_menu` VALUES (2020, 'menu.user.cdr.management', 2010, 1, '/user-center/cdr', 'view.user-center_cdr', NULL, 1, 1, 'C', '0', '0', '', 'carbon:document-multiple-01', 'super', '2024-12-04 10:15:36', '', '2024-12-11 20:33:02', '', 'user-center_cdr');
|
||||
INSERT INTO `sys_menu` VALUES (2021, 'menu.user.bill.management', 2010, 2, '/user-center/bill', 'view.user-center_bill', NULL, 1, 1, 'C', '0', '0', '', 'carbon:carbon', 'super', '2024-12-04 10:17:39', '', '2024-12-16 18:33:22', '', 'user-center_bill');
|
||||
INSERT INTO `sys_menu` VALUES (2022, 'menu.user.kyc.management', 2010, 4, '/user-center/kyc', 'view.user-center_kyc', NULL, 1, 1, 'C', '0', '0', NULL, 'carbon:report', 'super', '2024-12-04 10:18:57', '', NULL, '', 'user-center_kyc');
|
||||
INSERT INTO `sys_menu` VALUES (2023, 'menu.billing.management', 0, 20, '/billing', 'layout.base', NULL, 1, 0, 'M', '0', '0', '', 'carbon:report', 'super', '2024-12-04 10:32:47', '', '2024-12-04 10:50:53', '', 'billing');
|
||||
INSERT INTO `sys_menu` VALUES (2024, 'menu.billing.rule.management', 2023, 1, '/billing/rule', 'view.billing_rule', NULL, 1, 0, 'C', '0', '0', '', 'carbon:document-multiple-01', 'super', '2024-12-04 10:35:07', '', '2025-01-07 16:51:20', '', 'billing_rule');
|
||||
INSERT INTO `sys_menu` VALUES (2025, 'menu.billing.ratelimit.management', 2023, 2, '/billing/ratelimit', 'view.billing_ratelimit', NULL, 1, 0, 'C', '0', '0', '', 'carbon:rocket', 'admin', '2024-12-23 14:49:30', '', '2024-12-23 15:16:10', '', 'billing_ratelimit');
|
||||
INSERT INTO `sys_menu` VALUES (2026, 'menu.billing.package.management', 2023, 3, '/billing/package', 'view.billing_package', NULL, 1, 1, 'C', '0', '0', NULL, 'carbon:document', 'super', '2024-12-04 10:36:37', '', NULL, '', 'billing_package');
|
||||
INSERT INTO `sys_menu` VALUES (2027, 'menu.billing.payment.setting', 2023, 4, '/billing/setting', 'view.billing_setting', NULL, 1, 1, 'C', '0', '1', NULL, 'carbon:settings-services', 'super', '2024-12-04 10:37:58', '', NULL, '', 'billing_setting');
|
||||
INSERT INTO `sys_menu` VALUES (2028, 'menu.device.management', 0, 0, '/device', 'layout.base', NULL, 1, 0, 'M', '0', '0', '', 'carbon:volume-block-storage', 'super', '2024-12-04 10:43:40', '', '2024-12-04 10:50:20', '', 'device');
|
||||
INSERT INTO `sys_menu` VALUES (2029, 'menu.device.ap.management', 2028, 10, '/device/apdevice', 'view.device_apdevice', NULL, 1, 1, 'C', '0', '0', '', 'carbon:category', 'super', '2024-12-04 10:46:31', '', '2025-01-06 16:25:18', '', 'device_ap');
|
||||
INSERT INTO `sys_menu` VALUES (2030, 'menu.device.client.management', 2028, 20, '/device/terminal', 'view.device_terminal', NULL, 1, 1, 'C', '0', '0', '', 'carbon:user-multiple', 'super', '2024-12-04 10:47:56', '', '2025-01-06 18:11:35', '', 'device_ue');
|
||||
INSERT INTO `sys_menu` VALUES (2031, 'menu.device.wlan.management', 2028, 12, '/device/wlan', 'view.device_wlan', NULL, 1, 1, 'C', '0', '0', '', 'carbon:rocket', 'super', '2025-02-18 10:46:31', '', NULL, '', 'device_wlan');
|
||||
INSERT INTO `sys_menu` VALUES (2032, 'menu.device.portal.management', 2028, 14, '/device/portal', 'view.device_portal', NULL, 1, 1, 'C', '0', '0', '', 'carbon:building-insights-3', 'super', '2025-02-18 10:46:31', '', NULL, '', 'device_portal');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sys_oper_log
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sys_oper_log`;
|
||||
CREATE TABLE `sys_oper_log` (
|
||||
`oper_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '日志主键',
|
||||
`title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '模块标题',
|
||||
`business_type` int(11) NULL DEFAULT 0 COMMENT '业务类型(0其它 1新增 2修改 3删除)',
|
||||
`method` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '方法名称',
|
||||
`request_method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求方式',
|
||||
`operator_type` int(11) NULL DEFAULT 0 COMMENT '操作类别(0其它 1后台用户 2手机端用户)',
|
||||
`oper_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作人员',
|
||||
`dept_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '部门名称',
|
||||
`oper_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求URL',
|
||||
`oper_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '主机地址',
|
||||
`oper_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作地点',
|
||||
`oper_param` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求参数',
|
||||
`json_result` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '返回参数',
|
||||
`status` int(11) NULL DEFAULT 0 COMMENT '操作状态(0正常 1异常)',
|
||||
`error_msg` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '错误消息',
|
||||
`oper_time` datetime NULL DEFAULT NULL COMMENT '操作时间',
|
||||
`cost_time` bigint(20) NULL DEFAULT 0 COMMENT '消耗时间',
|
||||
PRIMARY KEY (`oper_id`) USING BTREE,
|
||||
INDEX `idx_sys_oper_log_bt`(`business_type`) USING BTREE,
|
||||
INDEX `idx_sys_oper_log_s`(`status`) USING BTREE,
|
||||
INDEX `idx_sys_oper_log_ot`(`oper_time`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 290 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '操作日志记录' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sys_oper_log
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sys_post
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sys_post`;
|
||||
CREATE TABLE `sys_post` (
|
||||
`post_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '岗位ID',
|
||||
`post_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位编码',
|
||||
`post_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位名称',
|
||||
`post_sort` int(11) NOT NULL COMMENT '显示顺序',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '状态(0正常 1停用)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`post_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '岗位信息表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sys_post
|
||||
-- ----------------------------
|
||||
INSERT INTO `sys_post` VALUES (1, 'admin', 'administrator', 1, '0', 'admin', '2024-05-08 21:50:54', '', NULL, '');
|
||||
INSERT INTO `sys_post` VALUES (2, 'se', 'manager', 2, '0', 'admin', '2024-05-08 21:50:54', '', NULL, '');
|
||||
INSERT INTO `sys_post` VALUES (3, 'hr', 'hr', 3, '0', 'admin', '2024-05-08 21:50:54', '', NULL, '');
|
||||
INSERT INTO `sys_post` VALUES (4, 'user', 'user', 4, '0', 'admin', '2024-05-08 21:50:54', '', '2024-06-10 11:45:33', '');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sys_role
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sys_role`;
|
||||
CREATE TABLE `sys_role` (
|
||||
`role_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '角色ID',
|
||||
`role_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色名称',
|
||||
`role_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色权限字符串',
|
||||
`role_sort` int(11) NULL COMMENT '显示顺序',
|
||||
`data_scope` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)',
|
||||
`menu_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '菜单树选择项是否关联显示',
|
||||
`dept_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '部门树选择项是否关联显示',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色状态(0正常 1停用)',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`role_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色信息表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sys_role
|
||||
-- ----------------------------
|
||||
INSERT INTO `sys_role` VALUES (1, 'Supervisor', 'super', 1, '1', 1, 1, '0', '0', 'admin', '2024-05-08 21:50:54', '', NULL, 'Supervisor');
|
||||
INSERT INTO `sys_role` VALUES (2, 'Administrator', 'admin', 2, '2', 1, 1, '0', '0', 'admin', '2024-05-08 21:50:54', 'super', '2024-12-04 17:35:09', 'Administrator');
|
||||
INSERT INTO `sys_role` VALUES (3, 'User', 'user', 3, '5', 1, 1, '0', '0', 'admin', '2024-05-08 21:50:54', 'admin', '2024-06-02 23:14:56', 'General user');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sys_role_dept
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sys_role_dept`;
|
||||
CREATE TABLE `sys_role_dept` (
|
||||
`role_id` bigint(20) NOT NULL COMMENT '角色ID',
|
||||
`dept_id` bigint(20) NOT NULL COMMENT '部门ID',
|
||||
PRIMARY KEY (`role_id`, `dept_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色和部门关联表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sys_role_dept
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sys_role_menu
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sys_role_menu`;
|
||||
CREATE TABLE `sys_role_menu` (
|
||||
`role_id` bigint(20) NOT NULL COMMENT '角色ID',
|
||||
`menu_id` bigint(20) NOT NULL COMMENT '菜单ID',
|
||||
PRIMARY KEY (`role_id`, `menu_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色和菜单关联表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sys_role_menu
|
||||
-- ----------------------------
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 100);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 101);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 102);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 105);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1000);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1001);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1002);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1003);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1004);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1005);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1006);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1007);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1008);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1009);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1010);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1011);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1012);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1013);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1014);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1015);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1025);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1026);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1027);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1028);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1029);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1049);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1050);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1051);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1052);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1053);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 1054);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 2010);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 2014);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 2015);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 2018);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 2019);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 2020);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 2021);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 2022);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 2023);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 2024);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 2025);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 2026);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 2027);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 2028);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 2029);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 2030);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 2031);
|
||||
INSERT INTO `sys_role_menu` VALUES (2, 2032);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sys_user
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sys_user`;
|
||||
CREATE TABLE `sys_user` (
|
||||
`user_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
|
||||
`dept_id` bigint(20) NULL DEFAULT NULL COMMENT '部门ID',
|
||||
`user_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户账号',
|
||||
`nick_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户昵称',
|
||||
`user_type` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '00' COMMENT '用户类型(00系统用户)',
|
||||
`email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '用户邮箱',
|
||||
`phonenumber` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '手机号码',
|
||||
`sex` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '用户性别(0男 1女 2未知)',
|
||||
`avatar` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '头像地址',
|
||||
`password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '密码',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '帐号状态(0正常 1停用)',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
|
||||
`login_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '最后登录IP',
|
||||
`login_date` datetime NULL DEFAULT NULL COMMENT '最后登录时间',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`user_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户信息表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sys_user
|
||||
-- ----------------------------
|
||||
INSERT INTO `sys_user` VALUES (1, 100, 'super', 'Supervisor', '00', 'super@mail.com', '123456', '1', '', '$2a$10$GaPWczfme9lMDT1nDy0VGOgfJgWxQVwKXneLgFQo9IQVhjeVpGRB.', '0', '0', '192.168.2.116', '2024-12-13 21:35:26', 'admin', '2024-05-08 21:50:54', '', '2024-12-13 21:35:25', 'Supervisor');
|
||||
INSERT INTO `sys_user` VALUES (2, 100, 'admin', 'Administrator', '00', 'admin@mail.com', '123456712', '1', '', '$2a$10$GaPWczfme9lMDT1nDy0VGOgfJgWxQVwKXneLgFQo9IQVhjeVpGRB.', '0', '0', '192.168.2.167', '2024-12-16 10:52:52', 'admin', '2024-05-08 21:50:54', 'admin', '2024-12-16 10:52:51', 'Administrator');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sys_user_post
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sys_user_post`;
|
||||
CREATE TABLE `sys_user_post` (
|
||||
`user_id` bigint(20) NOT NULL COMMENT '用户ID',
|
||||
`post_id` bigint(20) NOT NULL COMMENT '岗位ID',
|
||||
PRIMARY KEY (`user_id`, `post_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户与岗位关联表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sys_user_post
|
||||
-- ----------------------------
|
||||
INSERT INTO `sys_user_post` VALUES (1, 1);
|
||||
INSERT INTO `sys_user_post` VALUES (2, 1);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sys_user_role
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sys_user_role`;
|
||||
CREATE TABLE `sys_user_role` (
|
||||
`user_id` bigint(20) NOT NULL COMMENT '用户ID',
|
||||
`role_id` bigint(20) NOT NULL COMMENT '角色ID',
|
||||
PRIMARY KEY (`user_id`, `role_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户和角色关联表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sys_user_role
|
||||
-- ----------------------------
|
||||
INSERT INTO `sys_user_role` VALUES (1, 1);
|
||||
INSERT INTO `sys_user_role` VALUES (2, 2);
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
801
sql/wfc_user_db/wfc_user_db.sql
Normal file
801
sql/wfc_user_db/wfc_user_db.sql
Normal file
@@ -0,0 +1,801 @@
|
||||
/*
|
||||
Navicat Premium Data Transfer
|
||||
|
||||
Source Server : root@192.168.2.248-docker
|
||||
Source Server Type : MySQL
|
||||
Source Server Version : 50744 (5.7.44)
|
||||
Source Host : 192.168.2.248:3306
|
||||
Source Schema : wfc_user_db
|
||||
|
||||
Target Server Type : MySQL
|
||||
Target Server Version : 50744 (5.7.44)
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 24/12/2024 20:36:50
|
||||
*/
|
||||
|
||||
CREATE DATABASE IF NOT EXISTS `wfc_user_db` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
USE wfc_user_db;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_account
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_account`;
|
||||
CREATE TABLE `u_account` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户ID',
|
||||
`balance` decimal(18, 4) NULL DEFAULT NULL COMMENT '余额',
|
||||
`balance_used` decimal(18, 4) NULL DEFAULT NULL COMMENT '余额已使用',
|
||||
`package_id` bigint(20) NULL DEFAULT NULL COMMENT '套餐ID',
|
||||
`start_time` datetime NULL DEFAULT NULL COMMENT '开始时间',
|
||||
`end_time` datetime NULL DEFAULT NULL COMMENT '结束时间',
|
||||
`traffic` bigint(20) NULL DEFAULT NULL COMMENT '流量',
|
||||
`traffic_used` bigint(20) NULL DEFAULT NULL COMMENT '流量已使用',
|
||||
`duration` bigint(20) NULL DEFAULT NULL COMMENT '时长',
|
||||
`duration_used` bigint(20) NULL DEFAULT NULL COMMENT '时长已使用',
|
||||
`client_num` int(11) NULL DEFAULT NULL COMMENT '在线设备数',
|
||||
`client_num_used` int(11) NULL DEFAULT NULL COMMENT '在线设备数已使用',
|
||||
`expired_time` datetime NULL DEFAULT NULL COMMENT '失效时间',
|
||||
`package_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '套餐名称',
|
||||
`period_num` int(11) NULL DEFAULT NULL COMMENT '有效期数',
|
||||
`period_type` tinyint(4) NULL DEFAULT NULL COMMENT '有效期类型',
|
||||
`price` decimal(18, 4) NULL DEFAULT NULL COMMENT '价格',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`rate_limit_enable` tinyint(1) NULL DEFAULT 0 COMMENT '带宽是否限制',
|
||||
`traffic_enable` tinyint(1) NULL DEFAULT 0 COMMENT '流量是否限制',
|
||||
`duration_enable` tinyint(1) NULL DEFAULT 0 COMMENT '时长是否限制',
|
||||
`client_num_enable` tinyint(1) NULL DEFAULT 0 COMMENT '在线设备数是否限制',
|
||||
`rate_limit_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '限速名称',
|
||||
`down_limit` bigint(20) NULL DEFAULT NULL COMMENT '下行限速',
|
||||
`down_limit_enable` tinyint(1) NULL DEFAULT 0 COMMENT '下行限速启用',
|
||||
`up_limit` bigint(20) NULL DEFAULT NULL COMMENT '上行限速',
|
||||
`up_limit_enable` tinyint(1) NULL DEFAULT 0 COMMENT '上行限速启用',
|
||||
`del_flag` tinyint(1) NULL DEFAULT 0 COMMENT '删除标志(0存在 1删除)',
|
||||
`create_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台-账户表' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_account
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_account_package
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_account_package`;
|
||||
CREATE TABLE `u_account_package` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`account_id` bigint(20) NULL DEFAULT NULL COMMENT '账户ID',
|
||||
`package_id` bigint(20) NULL DEFAULT NULL COMMENT '套餐ID',
|
||||
`traffic` bigint(20) NULL DEFAULT NULL COMMENT '流量',
|
||||
`duration` bigint(20) NULL DEFAULT NULL COMMENT '时长',
|
||||
`client_num` int(11) NULL DEFAULT NULL COMMENT '在线设备数',
|
||||
`expired_time` datetime NULL DEFAULT NULL COMMENT '失效时间',
|
||||
`package_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '套餐名称',
|
||||
`period_num` int(11) NULL DEFAULT NULL COMMENT '有效期数',
|
||||
`period_type` tinyint(4) NULL DEFAULT NULL COMMENT '有效期类型',
|
||||
`price` decimal(18, 4) NULL DEFAULT NULL COMMENT '价格',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`rate_limit_enable` tinyint(1) NULL DEFAULT 0 COMMENT '带宽是否限制',
|
||||
`traffic_enable` tinyint(1) NULL DEFAULT 0 COMMENT '流量是否限制',
|
||||
`duration_enable` tinyint(1) NULL DEFAULT 0 COMMENT '时长是否限制',
|
||||
`client_num_enable` tinyint(1) NULL DEFAULT 0 COMMENT '在线设备数是否限制',
|
||||
`rate_limit_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '限速名称',
|
||||
`down_limit` bigint(20) NULL DEFAULT NULL COMMENT '下行限速',
|
||||
`down_limit_enable` tinyint(1) NULL DEFAULT 0 COMMENT '下行限速启用',
|
||||
`up_limit` bigint(20) NULL DEFAULT NULL COMMENT '上行限速',
|
||||
`up_limit_enable` tinyint(1) NULL DEFAULT 0 COMMENT '上行限速启用',
|
||||
`del_flag` tinyint(1) NULL DEFAULT 0 COMMENT '删除标志(0存在 1删除)',
|
||||
`create_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台-账户套餐表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_account_package
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_bill
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_bill`;
|
||||
CREATE TABLE `u_bill` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户ID',
|
||||
`cdr_history_id` bigint(20) NULL DEFAULT NULL COMMENT '话单记录ID',
|
||||
`type` tinyint(4) NULL DEFAULT NULL COMMENT '类型',
|
||||
`amount` decimal(18, 4) NULL DEFAULT NULL COMMENT '金额',
|
||||
`status` tinyint(4) NULL DEFAULT NULL COMMENT '状态',
|
||||
`del_flag` tinyint(1) NULL DEFAULT 0 COMMENT '删除标志(0存在 1删除)',
|
||||
`create_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1876451063420497923 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户平台-账单表' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_bill_rule
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_bill_rule`;
|
||||
CREATE TABLE `u_bill_rule` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`price` decimal(18, 4) NULL DEFAULT NULL COMMENT '价格',
|
||||
`traffic` bigint(20) NULL DEFAULT NULL COMMENT '流量',
|
||||
`unit` tinyint(4) NULL DEFAULT NULL COMMENT '单位',
|
||||
`enable` tinyint(1) NULL DEFAULT NULL COMMENT '是否启用',
|
||||
`del_flag` tinyint(1) NULL DEFAULT 0 COMMENT '删除标志(0存在 1删除)',
|
||||
`create_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户平台-计费规则表' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_bill_rule
|
||||
-- ----------------------------
|
||||
INSERT INTO `u_bill_rule` VALUES (1, 1.0000, 1, 2, 1, 0, NULL, NULL, 2, '2025-01-07 17:11:30');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_cdr
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_cdr`;
|
||||
CREATE TABLE `u_cdr` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'CDR ID',
|
||||
`user_id` bigint(20) NULL DEFAULT NULL COMMENT 'User ID link to u_user',
|
||||
`client_id` bigint(20) NULL DEFAULT NULL COMMENT 'Client ID',
|
||||
`device_id` bigint(20) NULL DEFAULT NULL COMMENT 'Device ID',
|
||||
`ssid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Wireless SSID name ',
|
||||
`rx_rate` bigint(20) NULL DEFAULT NULL COMMENT 'tx rate ',
|
||||
`tx_rate` bigint(20) NULL DEFAULT NULL COMMENT 'tx rate',
|
||||
`down_packet` bigint(20) NULL DEFAULT NULL COMMENT 'Number of downstream packets.\n',
|
||||
`up_packet` bigint(20) NULL DEFAULT NULL COMMENT 'Number of upstream packets. ',
|
||||
`traffic_down` bigint(20) NULL DEFAULT NULL COMMENT 'Downstream traffic (Byte)',
|
||||
`traffic_up` bigint(20) NULL DEFAULT NULL COMMENT 'Upstream traffic (Byte)',
|
||||
`rate_limit_profile_id` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Rate limit profile ID. ',
|
||||
`up_time` bigint(20) NULL DEFAULT NULL COMMENT 'Up time (unit: s).',
|
||||
`last_seen_time` bigint(20) NULL DEFAULT NULL COMMENT 'Last found time, timestamp (ms). ',
|
||||
`activity` bigint(20) NULL DEFAULT NULL COMMENT 'Activity download speed (Bytes/s)',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '0' COMMENT 'delete flag',
|
||||
`create_by` bigint(20) NULL DEFAULT NULL COMMENT 'creater',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT 'create time',
|
||||
`update_by` bigint(20) NULL DEFAULT NULL COMMENT 'updater',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT 'update time',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `fk_user_id`(`user_id`) USING BTREE,
|
||||
INDEX `fk_client_id`(`client_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户平台_用户话单表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_cdr_history
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_cdr_history`;
|
||||
CREATE TABLE `u_cdr_history` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'CDR Detail ID',
|
||||
`cdr_id` bigint(20) NULL DEFAULT NULL COMMENT 'CDR ID',
|
||||
`traffic_down` bigint(20) NULL DEFAULT NULL COMMENT 'Downstream traffic (Byte)',
|
||||
`traffic_up` bigint(20) NULL DEFAULT NULL COMMENT 'Upstream traffic (Byte)',
|
||||
`start_time` bigint(20) NULL DEFAULT NULL COMMENT 'Start time',
|
||||
`end_time` bigint(20) NULL DEFAULT NULL COMMENT 'End time',
|
||||
`duration` bigint(20) NULL DEFAULT NULL COMMENT 'Duration(s)',
|
||||
`use_type` tinyint(4) DEFAULT NULL COMMENT 'use type',
|
||||
`use_id` bigint(20) DEFAULT NULL COMMENT 'use id',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '0' COMMENT 'delete flag',
|
||||
`create_by` bigint(20) NULL DEFAULT NULL COMMENT 'creater',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT 'create time',
|
||||
`update_by` bigint(20) NULL DEFAULT NULL COMMENT 'updater',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT 'update time',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户平台_话单历史表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_cdr_history
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_client
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_client`;
|
||||
CREATE TABLE `u_client` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Client ID',
|
||||
`user_id` bigint(20) NULL DEFAULT NULL COMMENT 'User ID link to u_user',
|
||||
`site_id` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Site ID',
|
||||
`client_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Client Name',
|
||||
`client_device_type` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Client device type',
|
||||
`client_mac` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Client mac address',
|
||||
`active` tinyint(1) DEFAULT NULL COMMENT 'Whether the client is online',
|
||||
`use_type` tinyint(4) DEFAULT NULL COMMENT 'use type',
|
||||
`use_id` bigint(20) DEFAULT NULL COMMENT 'use id',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '0' COMMENT 'delete flag',
|
||||
`create_by` bigint(20) NULL DEFAULT NULL COMMENT 'creater',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT 'create time',
|
||||
`update_by` bigint(20) NULL DEFAULT NULL COMMENT 'updater',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT 'update time',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `fk_user_id`(`user_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 33 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户平台_用户设备表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_config
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_config`;
|
||||
CREATE TABLE `u_config` (
|
||||
`config_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '参数主键',
|
||||
`config_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数名称',
|
||||
`config_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键名',
|
||||
`config_value` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键值',
|
||||
`config_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '系统内置(Y是 N否)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`config_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_参数配置表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_config
|
||||
-- ----------------------------
|
||||
INSERT INTO `u_config` VALUES (1, '用户管理-账号初始密码', 'user.initPassword', '123456', 'Y', 'admin', '2024-05-08 21:50:55', '', NULL, '初始化密码 123456');
|
||||
INSERT INTO `u_config` VALUES (2, '账号自助-是否开启用户注册功能', 'user.register', 'true', 'Y', 'admin', '2024-05-08 21:50:55', '', NULL, '是否开启注册用户功能(true开启,false关闭)');
|
||||
INSERT INTO `u_config` VALUES (3, '用户登录-黑名单列表', 'sys.login.blackIPList', '', 'Y', 'admin', '2024-05-08 21:50:55', '', NULL, '设置登录IP黑名单限制,多个匹配项以;分隔,支持匹配(*通配、网段)');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_dept
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_dept`;
|
||||
CREATE TABLE `u_dept` (
|
||||
`dept_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '部门id',
|
||||
`parent_id` bigint(20) NULL DEFAULT 0 COMMENT '父部门id',
|
||||
`ancestors` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '祖级列表',
|
||||
`dept_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '部门名称',
|
||||
`order_num` int(11) NULL DEFAULT 0 COMMENT '显示顺序',
|
||||
`leader` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '负责人',
|
||||
`phone` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '联系电话',
|
||||
`email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '部门状态(0正常 1停用)',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`dept_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 102 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_部门表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_dept
|
||||
-- ----------------------------
|
||||
INSERT INTO `u_dept` VALUES (100, 0, '0', 'ROOT', 0, 'system', '123456', '123456@wfc.com', '0', '0', 'system', '2024-11-27 21:50:54', '', NULL, NULL);
|
||||
INSERT INTO `u_dept` VALUES (101, 100, '0,100', 'No.1', 1, 'system', '123456', '123456@wfc.com', '0', '0', 'system', '2024-11-27 21:50:54', '', NULL, NULL);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_device
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_device`;
|
||||
CREATE TABLE `u_device` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Device ID',
|
||||
`user_id` bigint(20) NULL DEFAULT NULL COMMENT 'User ID link to u_user',
|
||||
`device_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Device Name',
|
||||
`device_ip` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Device ip',
|
||||
`device_mac` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Device mac',
|
||||
`device_model` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Device model',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '0' COMMENT 'delete flag',
|
||||
`create_by` bigint(20) NULL DEFAULT NULL COMMENT 'creater',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT 'create time',
|
||||
`update_by` bigint(20) NULL DEFAULT NULL COMMENT 'updater',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT 'update time',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `fk_user_id`(`user_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 16 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户平台_AP设备表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_device
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_dict_data
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_dict_data`;
|
||||
CREATE TABLE `u_dict_data` (
|
||||
`dict_code` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '字典编码',
|
||||
`dict_sort` int(11) NULL DEFAULT 0 COMMENT '字典排序',
|
||||
`dict_label` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典标签',
|
||||
`dict_value` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典键值',
|
||||
`dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典类型',
|
||||
`css_class` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '样式属性(其他样式扩展)',
|
||||
`list_class` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '表格回显样式',
|
||||
`is_default` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '是否默认(Y是 N否)',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1停用)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`dict_code`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 22 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_字典数据表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_dict_data
|
||||
-- ----------------------------
|
||||
INSERT INTO `u_dict_data` VALUES (1, 1, '男', '0', 'u_user_sex', '', '', 'Y', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '性别男');
|
||||
INSERT INTO `u_dict_data` VALUES (2, 2, '女', '1', 'u_user_sex', '', '', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '性别女');
|
||||
INSERT INTO `u_dict_data` VALUES (3, 3, '未知', '2', 'u_user_sex', '', '', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '性别未知');
|
||||
INSERT INTO `u_dict_data` VALUES (4, 1, '显示', '0', 'u_show_hide', '', 'primary', 'Y', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '显示菜单');
|
||||
INSERT INTO `u_dict_data` VALUES (5, 2, '隐藏', '1', 'u_show_hide', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '隐藏菜单');
|
||||
INSERT INTO `u_dict_data` VALUES (6, 1, '正常', '0', 'u_normal_disable', '', 'primary', 'Y', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '正常状态');
|
||||
INSERT INTO `u_dict_data` VALUES (7, 2, '停用', '1', 'u_normal_disable', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '停用状态');
|
||||
INSERT INTO `u_dict_data` VALUES (8, 1, '是', 'Y', 'u_yes_no', '', 'primary', 'Y', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '系统默认是');
|
||||
INSERT INTO `u_dict_data` VALUES (9, 2, '否', 'N', 'u_yes_no', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '系统默认否');
|
||||
INSERT INTO `u_dict_data` VALUES (10, 99, '其他', '0', 'u_oper_type', '', 'info', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '其他操作');
|
||||
INSERT INTO `u_dict_data` VALUES (11, 1, '新增', '1', 'u_oper_type', '', 'info', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '新增操作');
|
||||
INSERT INTO `u_dict_data` VALUES (12, 2, '修改', '2', 'u_oper_type', '', 'info', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '修改操作');
|
||||
INSERT INTO `u_dict_data` VALUES (13, 3, '删除', '3', 'u_oper_type', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '删除操作');
|
||||
INSERT INTO `u_dict_data` VALUES (14, 4, '授权', '4', 'u_oper_type', '', 'primary', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '授权操作');
|
||||
INSERT INTO `u_dict_data` VALUES (15, 5, '导出', '5', 'u_oper_type', '', 'warning', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '导出操作');
|
||||
INSERT INTO `u_dict_data` VALUES (16, 6, '导入', '6', 'u_oper_type', '', 'warning', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '导入操作');
|
||||
INSERT INTO `u_dict_data` VALUES (17, 7, '强退', '7', 'u_oper_type', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '强退操作');
|
||||
INSERT INTO `u_dict_data` VALUES (18, 8, '生成代码', '8', 'u_oper_type', '', 'warning', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '生成操作');
|
||||
INSERT INTO `u_dict_data` VALUES (19, 9, '清空数据', '9', 'u_oper_type', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '清空操作');
|
||||
INSERT INTO `u_dict_data` VALUES (20, 1, '成功', '0', 'u_common_status', '', 'primary', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '正常状态');
|
||||
INSERT INTO `u_dict_data` VALUES (21, 2, '失败', '1', 'u_common_status', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '停用状态');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_dict_type
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_dict_type`;
|
||||
CREATE TABLE `u_dict_type` (
|
||||
`dict_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '字典主键',
|
||||
`dict_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典名称',
|
||||
`dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典类型',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1停用)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`dict_id`) USING BTREE,
|
||||
UNIQUE INDEX `dict_type`(`dict_type`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_字典类型表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_dict_type
|
||||
-- ----------------------------
|
||||
INSERT INTO `u_dict_type` VALUES (1, '用户性别', 'u_user_sex', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '用户性别列表');
|
||||
INSERT INTO `u_dict_type` VALUES (2, '菜单状态', 'u_show_hide', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '菜单状态列表');
|
||||
INSERT INTO `u_dict_type` VALUES (3, '系统开关', 'u_normal_disable', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '系统开关列表');
|
||||
INSERT INTO `u_dict_type` VALUES (4, '系统是否', 'u_yes_no', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '系统是否列表');
|
||||
INSERT INTO `u_dict_type` VALUES (5, '操作类型', 'u_oper_type', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '操作类型列表');
|
||||
INSERT INTO `u_dict_type` VALUES (6, '系统状态', 'u_common_status', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '登录状态列表');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_logininfor
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_logininfor`;
|
||||
CREATE TABLE `u_logininfor` (
|
||||
`info_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '访问ID',
|
||||
`user_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '用户账号',
|
||||
`ipaddr` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '登录IP地址',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '登录状态(0成功 1失败)',
|
||||
`msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '提示信息',
|
||||
`access_time` datetime NULL DEFAULT NULL COMMENT '访问时间',
|
||||
PRIMARY KEY (`info_id`) USING BTREE,
|
||||
INDEX `idx_u_logininfor_s`(`status`) USING BTREE,
|
||||
INDEX `idx_u_logininfor_lt`(`access_time`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 76 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_系统访问记录' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_menu
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_menu`;
|
||||
CREATE TABLE `u_menu` (
|
||||
`menu_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
|
||||
`menu_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单名称',
|
||||
`parent_id` bigint(20) NULL DEFAULT 0 COMMENT '父菜单ID',
|
||||
`order_num` int(11) NULL DEFAULT 0 COMMENT '显示顺序',
|
||||
`path` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '路由地址',
|
||||
`component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组件路径',
|
||||
`query` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '路由参数',
|
||||
`is_frame` int(11) NULL DEFAULT 1 COMMENT '是否为外链(0是 1否)',
|
||||
`is_cache` int(11) NULL DEFAULT 0 COMMENT '是否缓存(0缓存 1不缓存)',
|
||||
`menu_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '菜单类型(M目录 C菜单 F按钮)',
|
||||
`visible` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '菜单状态(0显示 1隐藏)',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '菜单状态(0正常 1停用)',
|
||||
`perms` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限标识',
|
||||
`icon` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '#' COMMENT '菜单图标',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注',
|
||||
`name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单key',
|
||||
PRIMARY KEY (`menu_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 2013 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_菜单权限表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_menu
|
||||
-- ----------------------------
|
||||
INSERT INTO `u_menu` VALUES (1, '系统管理', 0, 1000, '/manage', 'layout.base', '', 1, 0, 'M', '0', '0', '', 'carbon:cloud-service-management', 'admin', '2024-05-08 21:50:55', 'admin', '2024-12-02 16:45:58', '系统管理目录', 'manage');
|
||||
INSERT INTO `u_menu` VALUES (100, '用户管理', 1, 1, '/manage/user', 'view.manage_user', '', 1, 0, 'C', '0', '0', '', 'ic:round-manage-accounts', 'admin', '2024-05-08 21:50:55', 'admin', '2024-05-12 23:50:31', '用户管理菜单', 'manage_user');
|
||||
INSERT INTO `u_menu` VALUES (101, '角色管理', 1, 2, '/manage/role', 'view.manage_role', '', 1, 0, 'C', '0', '0', '', 'carbon:user-role', 'admin', '2024-05-08 21:50:55', '', NULL, '角色管理菜单', 'manage_role');
|
||||
INSERT INTO `u_menu` VALUES (102, '菜单管理', 1, 3, '/manage/menu', 'view.manage_menu', '', 1, 0, 'C', '0', '0', '', 'material-symbols:route', 'admin', '2024-05-08 21:50:55', 'admin', '2024-05-12 23:46:12', '菜单管理菜单', 'manage_menu');
|
||||
INSERT INTO `u_menu` VALUES (103, '部门管理', 1, 4, '/manage/dept', 'view.manage_dept', '', 1, 0, 'C', '0', '0', '', 'carbon:box', 'admin', '2024-05-08 21:50:55', 'ryadmin', '2024-05-30 23:17:41', '部门管理菜单', 'manage_dept');
|
||||
INSERT INTO `u_menu` VALUES (104, '岗位管理', 1, 5, '/manage/post', 'view.manage_post', NULL, 1, 0, 'C', '0', '0', '', 'carbon:group', 'admin', '2024-06-02 22:18:48', '', NULL, '', 'manage_post');
|
||||
INSERT INTO `u_menu` VALUES (105, '字典管理', 1, 6, '/manage/dict', 'view.manage_dict', NULL, 1, 0, 'C', '0', '0', '', 'carbon:volume-block-storage', 'admin', '2024-06-02 23:13:40', '', NULL, '', 'manage_dict');
|
||||
INSERT INTO `u_menu` VALUES (1000, '用户查询', 100, 1, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1001, '用户新增', 100, 2, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1002, '用户修改', 100, 3, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1003, '用户删除', 100, 4, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1004, '用户导出', 100, 5, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1005, '用户导入', 100, 6, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1006, '重置密码', 100, 7, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1007, '角色查询', 101, 1, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1008, '角色新增', 101, 2, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1009, '角色修改', 101, 3, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1010, '角色删除', 101, 4, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1011, '角色导出', 101, 5, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1012, '菜单查询', 102, 1, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1013, '菜单新增', 102, 2, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1014, '菜单修改', 102, 3, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1015, '菜单删除', 102, 4, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1016, '部门查询', 103, 1, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1017, '部门新增', 103, 2, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1018, '部门修改', 103, 3, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1019, '部门删除', 103, 4, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1020, '岗位查询', 104, 1, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1021, '岗位新增', 104, 2, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1022, '岗位修改', 104, 3, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1023, '岗位删除', 104, 4, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1024, '岗位导出', 104, 5, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1025, '字典查询', 105, 1, '#', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1026, '字典新增', 105, 2, '#', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1027, '字典修改', 105, 3, '#', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1028, '字典删除', 105, 4, '#', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (1029, '字典导出', 105, 5, '#', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
|
||||
INSERT INTO `u_menu` VALUES (2000, '目录1', 0, 10, '/dir1', 'layout.base', '', 1, 0, 'M', '0', '1', '', 'carbon:cloud-service-management', 'admin', '2024-05-08 21:50:55', 'admin', '2024-05-12 23:46:57', '', '');
|
||||
INSERT INTO `u_menu` VALUES (2001, '历史', 2000, 1, '/dir1/histories', 'view.set-meal_histories', '', 1, 0, 'C', '0', '1', '', 'ic:round-manage-accounts', 'admin', '2024-05-08 21:50:55', 'admin', '2024-11-29 17:23:36', '', '');
|
||||
INSERT INTO `u_menu` VALUES (2010, '目录2', 0, 15, '/dir2', 'layout.base', NULL, 1, 1, 'M', '0', '1', '', 'carbon:account', 'admin', '2024-12-02 16:43:46', '', '2024-12-02 16:45:25', '', '');
|
||||
INSERT INTO `u_menu` VALUES (2011, '当前', 2010, 1, '/dir2/access', 'view.dir2_access', '', 1, 0, 'C', '0', '1', '', 'ic:round-manage-accounts', 'admin', '2024-05-08 21:50:55', 'admin', '2024-11-29 17:23:36', '', '');
|
||||
INSERT INTO `u_menu` VALUES (2012, '历史', 2010, 1, '/dir2/records', 'view.dir2_records', '', 1, 0, 'C', '0', '1', '', 'ic:round-manage-accounts', 'admin', '2024-05-08 21:50:55', 'admin', '2024-11-29 17:23:36', '', '');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_oper_log
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_oper_log`;
|
||||
CREATE TABLE `u_oper_log` (
|
||||
`oper_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '日志主键',
|
||||
`title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '模块标题',
|
||||
`business_type` int(11) NULL DEFAULT 0 COMMENT '业务类型(0其它 1新增 2修改 3删除)',
|
||||
`method` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '方法名称',
|
||||
`request_method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求方式',
|
||||
`operator_type` int(11) NULL DEFAULT 0 COMMENT '操作类别(0其它 1后台用户 2手机端用户)',
|
||||
`oper_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作人员',
|
||||
`dept_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '部门名称',
|
||||
`oper_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求URL',
|
||||
`oper_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '主机地址',
|
||||
`oper_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作地点',
|
||||
`oper_param` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求参数',
|
||||
`json_result` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '返回参数',
|
||||
`status` int(11) NULL DEFAULT 0 COMMENT '操作状态(0正常 1异常)',
|
||||
`error_msg` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '错误消息',
|
||||
`oper_time` datetime NULL DEFAULT NULL COMMENT '操作时间',
|
||||
`cost_time` bigint(20) NULL DEFAULT 0 COMMENT '消耗时间',
|
||||
PRIMARY KEY (`oper_id`) USING BTREE,
|
||||
INDEX `idx_u_oper_log_bt`(`business_type`) USING BTREE,
|
||||
INDEX `idx_u_oper_log_s`(`status`) USING BTREE,
|
||||
INDEX `idx_u_oper_log_ot`(`oper_time`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_操作日志记录' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_oper_log
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_order
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_order`;
|
||||
CREATE TABLE `u_order` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户ID',
|
||||
`package_id` bigint(20) NULL DEFAULT NULL COMMENT '套餐ID',
|
||||
`payment_id` bigint(20) NULL DEFAULT NULL COMMENT '支付ID',
|
||||
`order_no` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '订单编号',
|
||||
`type` tinyint(4) NULL DEFAULT NULL COMMENT '订单类型(0套餐 1充值)',
|
||||
`order_amount` decimal(18, 4) NULL DEFAULT NULL COMMENT '订单金额',
|
||||
`status` tinyint(4) NULL DEFAULT NULL COMMENT '订单状态(0待支付 1已支付 2已取消)',
|
||||
`del_flag` tinyint(1) NULL DEFAULT 0 COMMENT '删除标志(0存在 1删除)',
|
||||
`create_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台-订单表' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_order
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_package
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_package`;
|
||||
CREATE TABLE `u_package` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`rate_limit_id` bigint(20) NULL DEFAULT NULL COMMENT '带宽限速ID',
|
||||
`package_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '套餐名称',
|
||||
`period_num` int(11) NULL DEFAULT NULL COMMENT '有效期数',
|
||||
`period_type` tinyint(4) NULL DEFAULT NULL COMMENT '有效期类型',
|
||||
`price` decimal(18, 4) NULL DEFAULT NULL COMMENT '价格',
|
||||
`traffic` bigint(20) NULL DEFAULT NULL COMMENT '流量',
|
||||
`duration` bigint(20) NULL DEFAULT NULL COMMENT '时长',
|
||||
`client_num` int(11) NULL DEFAULT NULL COMMENT '在线设备数',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`rate_limit_enable` tinyint(1) NULL DEFAULT 0 COMMENT '带宽是否限制',
|
||||
`traffic_enable` tinyint(1) NULL DEFAULT 0 COMMENT '流量是否限制',
|
||||
`duration_enable` tinyint(1) NULL DEFAULT 0 COMMENT '时长是否限制',
|
||||
`client_num_enable` tinyint(1) NULL DEFAULT 0 COMMENT '在线设备数是否限制',
|
||||
`package_enable` tinyint(1) NULL DEFAULT 0 COMMENT '套餐是否启用',
|
||||
`del_flag` tinyint(1) NULL DEFAULT 0 COMMENT '删除标志(0存在 1删除)',
|
||||
`create_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台-套餐表' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_package
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_payment
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_payment`;
|
||||
CREATE TABLE `u_payment` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '支付名称',
|
||||
`type` tinyint(4) NULL DEFAULT NULL COMMENT '类型(0支付宝 1微信 2信用卡)',
|
||||
`appId` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '应用编号',
|
||||
`server_url` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '支付网关',
|
||||
`domain` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '外网访问项目的域名',
|
||||
`private_key` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '应用私钥',
|
||||
`public_key` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '应用公钥',
|
||||
`app_cert_path` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '应用公钥证书',
|
||||
`cert_path` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '公钥证书',
|
||||
`root_cert_path` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '根证书',
|
||||
`enable` tinyint(1) NULL DEFAULT NULL COMMENT '是否启用',
|
||||
`del_flag` tinyint(1) NULL DEFAULT 0 COMMENT '删除标志(0存在 1删除)',
|
||||
`create_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户平台-支付表' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_post
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_post`;
|
||||
CREATE TABLE `u_post` (
|
||||
`post_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '岗位ID',
|
||||
`post_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位编码',
|
||||
`post_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位名称',
|
||||
`post_sort` int(11) NOT NULL COMMENT '显示顺序',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '状态(0正常 1停用)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`post_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_岗位信息表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_post
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_rate_limit
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_rate_limit`;
|
||||
CREATE TABLE `u_rate_limit` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`rate_limit_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '限速名称',
|
||||
`down_limit` bigint(20) NULL DEFAULT NULL COMMENT '下行限速',
|
||||
`down_limit_enable` tinyint(1) NULL DEFAULT 0 COMMENT '下行限速启用',
|
||||
`up_limit` bigint(20) NULL DEFAULT NULL COMMENT '上行限速',
|
||||
`up_limit_enable` tinyint(1) NULL DEFAULT 0 COMMENT '上行限速启用',
|
||||
`del_flag` tinyint(1) NULL DEFAULT 0 COMMENT '删除标志(0存在 1删除)',
|
||||
`create_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台-带宽限速表' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_rate_limit
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_recharge
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_recharge`;
|
||||
CREATE TABLE `u_recharge` (
|
||||
`recharge_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Recharge ID',
|
||||
`user_id` bigint(20) NULL DEFAULT NULL COMMENT 'User ID link to u_user',
|
||||
`fee` double NULL DEFAULT NULL,
|
||||
`status` enum('unpaid','paid') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT 'unpaid',
|
||||
`create_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT 'create name ',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT 'create time',
|
||||
PRIMARY KEY (`recharge_id`) USING BTREE,
|
||||
INDEX `fk_user_id`(`user_id`) USING BTREE,
|
||||
CONSTRAINT `u_recharge_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u_user` (`user_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户平台_用户信息表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_recharge
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_role
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_role`;
|
||||
CREATE TABLE `u_role` (
|
||||
`role_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '角色ID',
|
||||
`role_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色名称',
|
||||
`role_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色权限字符串',
|
||||
`role_sort` int(11) NULL COMMENT '显示顺序',
|
||||
`data_scope` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)',
|
||||
`menu_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '菜单树选择项是否关联显示',
|
||||
`dept_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '部门树选择项是否关联显示',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色状态(0正常 1停用)',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`role_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_角色信息表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_role
|
||||
-- ----------------------------
|
||||
INSERT INTO `u_role` VALUES (1, '超级用户', 'super', 1, '1', 1, 1, '0', '0', 'super', '2024-11-27 16:06:18', '', NULL, '超级用户后台指定,不可配置');
|
||||
INSERT INTO `u_role` VALUES (2, '会员', 'vip', 2, '2', 1, 1, '0', '0', 'super', '2024-11-27 16:06:18', '', '2024-12-02 15:22:02', '会员,对普通用户授予角色');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_role_dept
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_role_dept`;
|
||||
CREATE TABLE `u_role_dept` (
|
||||
`role_id` bigint(20) NOT NULL COMMENT '角色ID',
|
||||
`dept_id` bigint(20) NOT NULL COMMENT '部门ID',
|
||||
PRIMARY KEY (`role_id`, `dept_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_角色和部门关联表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_role_dept
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_role_menu
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_role_menu`;
|
||||
CREATE TABLE `u_role_menu` (
|
||||
`role_id` bigint(20) NOT NULL COMMENT '角色ID',
|
||||
`menu_id` bigint(20) NOT NULL COMMENT '菜单ID',
|
||||
PRIMARY KEY (`role_id`, `menu_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_角色和菜单关联表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_role_menu
|
||||
-- ----------------------------
|
||||
INSERT INTO `u_role_menu` VALUES (2, 2000);
|
||||
INSERT INTO `u_role_menu` VALUES (2, 2001);
|
||||
INSERT INTO `u_role_menu` VALUES (2, 2010);
|
||||
INSERT INTO `u_role_menu` VALUES (2, 2011);
|
||||
INSERT INTO `u_role_menu` VALUES (2, 2012);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_user
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_user`;
|
||||
CREATE TABLE `u_user` (
|
||||
`user_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
|
||||
`dept_id` bigint(20) NULL DEFAULT NULL COMMENT '部门ID',
|
||||
`user_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户账号',
|
||||
`nick_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户昵称',
|
||||
`full_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户姓名',
|
||||
`user_type` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '00' COMMENT '用户类型(00系统用户)',
|
||||
`email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '用户邮箱',
|
||||
`phonenumber` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '手机号码',
|
||||
`sex` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '用户性别(0男 1女 2未知)',
|
||||
`avatar` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '头像地址',
|
||||
`password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '密码',
|
||||
`age` int(11) NULL DEFAULT NULL COMMENT '年龄',
|
||||
`birth_date` date DEFAULT NULL COMMENT '出生日期',
|
||||
`address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '地址',
|
||||
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '帐号状态(0正常 1停用)',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
|
||||
`login_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '最后登录IP',
|
||||
`login_date` datetime NULL DEFAULT NULL COMMENT '最后登录时间',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`user_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_用户信息表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_user
|
||||
-- ----------------------------
|
||||
INSERT INTO `u_user` VALUES (1, NULL, 'super', 'super', 'super user', '00', 'super@mail.com', '1234567', '1', '', '$2a$10$GaPWczfme9lMDT1nDy0VGOgfJgWxQVwKXneLgFQo9IQVhjeVpGRB.', NULL, NULL, '', '0', '0', '192.168.2.94', '2024-12-16 17:36:08', 'system', '2024-05-08 21:50:54', '123456', '2024-12-16 17:36:08', '');
|
||||
INSERT INTO `u_user` VALUES (2, NULL, 'demo', 'demo', 'demo user', '00', '12345678@mail.com', '1234567', '1', '', '$2a$10$XF99QEWn2MjEE3pbFVvHuOyMi/YVIrQbdenEleJN5dYxAfgXFaaqG', NULL, NULL, '', '0', '0', '192.168.2.94', '2024-12-16 17:36:08', 'system', '2024-05-08 21:50:54', '123456', '2024-12-16 17:36:08', '');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_user_post
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_user_post`;
|
||||
CREATE TABLE `u_user_post` (
|
||||
`user_id` bigint(20) NOT NULL COMMENT '用户ID',
|
||||
`post_id` bigint(20) NOT NULL COMMENT '岗位ID',
|
||||
PRIMARY KEY (`user_id`, `post_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_用户与岗位关联表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_user_post
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_user_role
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_user_role`;
|
||||
CREATE TABLE `u_user_role` (
|
||||
`user_id` bigint(20) NOT NULL COMMENT '用户ID',
|
||||
`role_id` bigint(20) NOT NULL COMMENT '角色ID',
|
||||
PRIMARY KEY (`user_id`, `role_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_用户和角色关联表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of u_user_role
|
||||
-- ----------------------------
|
||||
INSERT INTO `u_user_role` VALUES (1, 1);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for u_kyc
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `u_kyc`;
|
||||
CREATE TABLE `u_kyc` (
|
||||
`kyc_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
||||
`user_id` bigint(20) NULL DEFAULT NULL COMMENT 'link to user_id of u_user',
|
||||
`real_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
|
||||
`birth_date` date NULL DEFAULT NULL,
|
||||
`id_type` enum('DRIVERS_LICENSE','PASSPORT','RESIDENCE_PERMIT','STUDENT_ID','MEDICARE_CARD','BIRTH_CERTIFICATE') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'identify type',
|
||||
`id_file` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT 'ID file',
|
||||
`identify_picture` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'identify picture',
|
||||
`status` enum('VERIFIED','UNVERIFIED','PENDING','REJECTED') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'PENDING' COMMENT 'KYC Status: 1-VERIFIED/2-UNVERIFIED/3-PENDING/4-REJECTED',
|
||||
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`kyc_id`) USING BTREE,
|
||||
INDEX `user_id`(`user_id`) USING BTREE,
|
||||
CONSTRAINT `u_kyc_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u_user` (`user_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_用户信息表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
@@ -4,7 +4,7 @@
|
||||
<parent>
|
||||
<groupId>org.wfc</groupId>
|
||||
<artifactId>wfc</artifactId>
|
||||
<version>3.6.5</version>
|
||||
<version>1.0.13</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<groupId>org.wfc</groupId>
|
||||
<artifactId>wfc-api</artifactId>
|
||||
<version>3.6.5</version>
|
||||
<version>1.0.13</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
@@ -26,5 +26,11 @@
|
||||
<artifactId>wfc-common-redis</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- Swagger 依赖配置 -->
|
||||
<dependency>
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-annotations</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
</project>
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
package org.wfc.omada.api;
|
||||
|
||||
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.wfc.omada.api.config.FeignHttpsConfig;
|
||||
import org.wfc.omada.api.config.FeignConfig;
|
||||
|
||||
/**
|
||||
* @description: Omada接口
|
||||
* @author: caiyuchao
|
||||
* @date: 2024-11-20
|
||||
*/
|
||||
@FeignClient(name = "remoteOmadaFeign",url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class})
|
||||
public interface RemoteOmadaFeign {
|
||||
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites", method = RequestMethod.GET)
|
||||
Object getData(@RequestParam("page") Integer page, @RequestParam("pageSize") Integer pageSize);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,200 @@
|
||||
package org.wfc.omada.api.account;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.wfc.omada.api.account.model.ExternalUserGroupOpenApiVo;
|
||||
import org.wfc.omada.api.account.model.IdpMetadataOpenApiVo;
|
||||
import org.wfc.omada.api.account.model.OperationResponseGridVoExternalUserDetailOpenApiVo;
|
||||
import org.wfc.omada.api.account.model.OperationResponseGridVoExternalUserGroupDetailOpenApiVo;
|
||||
import org.wfc.omada.api.account.model.OperationResponseGridVoIdpMetadataDetailOpenApiVo;
|
||||
import org.wfc.omada.api.account.model.OperationResponseResponseIdVo;
|
||||
import org.wfc.omada.api.account.model.OperationResponseWithoutResult;
|
||||
import org.wfc.omada.config.FeignConfig;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.NotNull;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:45:24.733+08:00[Asia/Shanghai]")
|
||||
|
||||
@Validated
|
||||
@Api(value = "OmadaSso", description = "the OmadaSso API")
|
||||
@FeignClient(name="OmadaSsoApi", url = "${omada.omada-url}", configuration = FeignConfig.class)
|
||||
public interface OmadaSsoApi {
|
||||
|
||||
/**
|
||||
* POST /openapi/v1/{omadacId}/sso/external-user-groups : Create new external user group
|
||||
* Create new external user group. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30102 - This role does not exist.<br/>-30172 - The SAML role name already exists.<br/>-30179 - The SAML roles number has reached the upper limit.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param externalUserGroupOpenApiVo (optional)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Create new external user group", nickname = "createExternalUserGroup", notes = "Create new external user group. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30102 - This role does not exist.<br/>-30172 - The SAML role name already exists.<br/>-30179 - The SAML roles number has reached the upper limit.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseResponseIdVo.class, tags={ "Omada/SSO","SSO", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseResponseIdVo.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sso/external-user-groups",
|
||||
produces = "*/*",
|
||||
consumes = "application/json",
|
||||
method = RequestMethod.POST)
|
||||
ResponseEntity<OperationResponseResponseIdVo> createExternalUserGroup(@ApiParam(value = "" ) @Valid @RequestBody(required = false) ExternalUserGroupOpenApiVo externalUserGroupOpenApiVo);
|
||||
|
||||
|
||||
/**
|
||||
* POST /openapi/v1/{omadacId}/sso/saml-idps : Create new idp
|
||||
* Create new idp.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml SSO Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30170 - The SAML sso metadata entityId already exists.<br/>-30171 - The SAML sso metadata name already exist.<br/>-30178 - The SAML sso number has reached the upper limit.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param idpMetadataOpenApiVo (optional)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Create new idp", nickname = "createIdpMetadata", notes = "Create new idp.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml SSO Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30170 - The SAML sso metadata entityId already exists.<br/>-30171 - The SAML sso metadata name already exist.<br/>-30178 - The SAML sso number has reached the upper limit.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseResponseIdVo.class, tags={ "Omada/SSO","SSO", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseResponseIdVo.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sso/saml-idps",
|
||||
produces = "*/*",
|
||||
consumes = "application/json",
|
||||
method = RequestMethod.POST)
|
||||
ResponseEntity<OperationResponseResponseIdVo> createIdpMetadata(@ApiParam(value = "" ) @Valid @RequestBody(required = false) IdpMetadataOpenApiVo idpMetadataOpenApiVo);
|
||||
|
||||
|
||||
/**
|
||||
* DELETE /openapi/v1/{omadacId}/sso/external-user-groups/{externalUserGroupId} : Delete an existing external user group
|
||||
* Delete an existing external user group. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param externalUserGroupId External user group ID (required)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Delete an existing external user group", nickname = "deleteExternalUserGroup", notes = "Delete an existing external user group. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/SSO","SSO", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sso/external-user-groups/{externalUserGroupId}",
|
||||
produces = "*/*",
|
||||
method = RequestMethod.DELETE)
|
||||
ResponseEntity<OperationResponseWithoutResult> deleteExternalUserGroup(@ApiParam(value = "External user group ID",required=true) @PathVariable("externalUserGroupId") String externalUserGroupId);
|
||||
|
||||
|
||||
/**
|
||||
* DELETE /openapi/v1/{omadacId}/sso/saml-idps/{idpId} : Delete an existing idp
|
||||
* Delete an existing idp.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml SSO Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param idpId IdP ID (required)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Delete an existing idp", nickname = "deleteIdpMetadata", notes = "Delete an existing idp.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml SSO Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/SSO","SSO", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sso/saml-idps/{idpId}",
|
||||
produces = "*/*",
|
||||
method = RequestMethod.DELETE)
|
||||
ResponseEntity<OperationResponseWithoutResult> deleteIdpMetadata(@ApiParam(value = "IdP ID",required=true) @PathVariable("idpId") String idpId);
|
||||
|
||||
|
||||
/**
|
||||
* GET /openapi/v1/{omadacId}/sso/external-user-groups : Get external user group list
|
||||
* Get external user group list. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml Roles Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.
|
||||
*
|
||||
* @param omadacId (required)
|
||||
* @param page Start page number. Start from 1. (required)
|
||||
* @param pageSize Number of entries per page. It should be within the range of 1–1000. (required)
|
||||
* @param sortsName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional)
|
||||
* @param searchKey Fuzzy query parameters, support field name (optional)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Get external user group list", nickname = "getExternalUserGroupList", notes = "Get external user group list. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml Roles Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseGridVoExternalUserGroupDetailOpenApiVo.class, tags={ "Omada/SSO","SSO", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoExternalUserGroupDetailOpenApiVo.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sso/external-user-groups",
|
||||
produces = "*/*",
|
||||
method = RequestMethod.GET)
|
||||
ResponseEntity<OperationResponseGridVoExternalUserGroupDetailOpenApiVo> getExternalUserGroupList(@ApiParam(value = "",required=true) @PathVariable("omadacId") String omadacId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.name", required = false) String sortsName,@ApiParam(value = "Fuzzy query parameters, support field name") @Valid @RequestParam(value = "searchKey", required = false) String searchKey);
|
||||
|
||||
|
||||
/**
|
||||
* GET /openapi/v1/{omadacId}/sso/external-users : Get external user list
|
||||
* Get external user list. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml Users Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param page Start page number. Start from 1. (required)
|
||||
* @param pageSize Number of entries per page. It should be within the range of 1–1000. (required)
|
||||
* @param sortsUserName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional)
|
||||
* @param searchKey Fuzzy query parameters, support field userName (optional)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Get external user list", nickname = "getExternalUserList", notes = "Get external user list. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml Users Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseGridVoExternalUserDetailOpenApiVo.class, tags={ "Omada/SSO","SSO", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoExternalUserDetailOpenApiVo.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sso/external-users",
|
||||
produces = "*/*",
|
||||
method = RequestMethod.GET)
|
||||
ResponseEntity<OperationResponseGridVoExternalUserDetailOpenApiVo> getExternalUserList(@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.userName", required = false) String sortsUserName,@ApiParam(value = "Fuzzy query parameters, support field userName") @Valid @RequestParam(value = "searchKey", required = false) String searchKey);
|
||||
|
||||
|
||||
/**
|
||||
* GET /openapi/v1/{omadacId}/sso/saml-idps : Get idp list
|
||||
* Get idp list.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml SSO Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param page Start page number. Start from 1. (required)
|
||||
* @param pageSize Number of entries per page. It should be within the range of 1–1000. (required)
|
||||
* @param sortsIdpName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Get idp list", nickname = "getIdpMetadataList", notes = "Get idp list.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml SSO Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseGridVoIdpMetadataDetailOpenApiVo.class, tags={ "Omada/SSO","SSO", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoIdpMetadataDetailOpenApiVo.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sso/saml-idps",
|
||||
produces = "*/*",
|
||||
method = RequestMethod.GET)
|
||||
ResponseEntity<OperationResponseGridVoIdpMetadataDetailOpenApiVo> getIdpMetadataList(@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.idpName", required = false) String sortsIdpName);
|
||||
|
||||
|
||||
/**
|
||||
* PUT /openapi/v1/{omadacId}/sso/external-user-groups/{externalUserGroupId} : Modify an existing external user group
|
||||
* Modify an existing external user group. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30102 - This role does not exist.<br/>-30172 - The SAML role name already exists.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param externalUserGroupId External user group ID (required)
|
||||
* @param externalUserGroupOpenApiVo (optional)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Modify an existing external user group", nickname = "modifyExternalUserGroup", notes = "Modify an existing external user group. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30102 - This role does not exist.<br/>-30172 - The SAML role name already exists.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/SSO","SSO", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sso/external-user-groups/{externalUserGroupId}",
|
||||
produces = "*/*",
|
||||
consumes = "application/json",
|
||||
method = RequestMethod.PUT)
|
||||
ResponseEntity<OperationResponseWithoutResult> modifyExternalUserGroup(@ApiParam(value = "External user group ID",required=true) @PathVariable("externalUserGroupId") String externalUserGroupId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ExternalUserGroupOpenApiVo externalUserGroupOpenApiVo);
|
||||
|
||||
|
||||
/**
|
||||
* PUT /openapi/v1/{omadacId}/sso/saml-idps/{idpId} : Modify an existing idp
|
||||
* Modify an existing idp. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml SSO Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30170 - The SAML sso metadata entityId already exists.<br/>-30171 - The SAML sso metadata name already exist.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param idpId IdP id (required)
|
||||
* @param idpMetadataOpenApiVo (optional)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Modify an existing idp", nickname = "modifyIdpMetadata", notes = "Modify an existing idp. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml SSO Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30170 - The SAML sso metadata entityId already exists.<br/>-30171 - The SAML sso metadata name already exist.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/SSO","SSO", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sso/saml-idps/{idpId}",
|
||||
produces = "*/*",
|
||||
consumes = "application/json",
|
||||
method = RequestMethod.PUT)
|
||||
ResponseEntity<OperationResponseWithoutResult> modifyIdpMetadata(@ApiParam(value = "IdP id",required=true) @PathVariable("idpId") String idpId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) IdpMetadataOpenApiVo idpMetadataOpenApiVo);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,220 @@
|
||||
package org.wfc.omada.api.account;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.wfc.omada.api.account.model.CreateUserVo;
|
||||
import org.wfc.omada.api.account.model.DeleteUserVo;
|
||||
import org.wfc.omada.api.account.model.ModifyControllerRoleVo;
|
||||
import org.wfc.omada.api.account.model.ModifyUserVo;
|
||||
import org.wfc.omada.api.account.model.OperationResponseControllerRoleDetailVo;
|
||||
import org.wfc.omada.api.account.model.OperationResponseCreateRoleResultVo;
|
||||
import org.wfc.omada.api.account.model.OperationResponseCreateUserResultVo;
|
||||
import org.wfc.omada.api.account.model.OperationResponseGridVoUserDetailVo;
|
||||
import org.wfc.omada.api.account.model.OperationResponseListControllerRoleDetailVo;
|
||||
import org.wfc.omada.api.account.model.OperationResponseObject;
|
||||
import org.wfc.omada.api.account.model.OperationResponseUserDetailVo;
|
||||
import org.wfc.omada.api.account.model.OperationResponseWithoutResult;
|
||||
import org.wfc.omada.config.FeignConfig;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.NotNull;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:45:24.733+08:00[Asia/Shanghai]")
|
||||
|
||||
@Validated
|
||||
@Api(value = "OmadaUserAndRole", description = "the OmadaUserAndRole API")
|
||||
@FeignClient(name="OmadaUserAndRoleApi", url = "${omada.omada-url}", configuration = FeignConfig.class)
|
||||
public interface OmadaUserAndRoleApi {
|
||||
|
||||
/**
|
||||
* POST /openapi/v1/{omadacId}/roles : Create new role
|
||||
* Create new role. Only user with all permissions modify can use this interface.<br/><br/>The interface requires one of the permissions: <br/>Global Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30156 - This role already exists.<br/>-30158 - An error occurred while creating the role.<br/>-30161 - The number of roles has reached the limit.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param modifyControllerRoleVo (optional)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Create new role", nickname = "createNewRole", notes = "Create new role. Only user with all permissions modify can use this interface.<br/><br/>The interface requires one of the permissions: <br/>Global Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30156 - This role already exists.<br/>-30158 - An error occurred while creating the role.<br/>-30161 - The number of roles has reached the limit.", response = OperationResponseCreateRoleResultVo.class, tags={ "Omada/User and Role","User and Role", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseCreateRoleResultVo.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/roles",
|
||||
produces = "*/*",
|
||||
consumes = "application/json",
|
||||
method = RequestMethod.POST)
|
||||
ResponseEntity<OperationResponseCreateRoleResultVo> createNewRole(@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModifyControllerRoleVo modifyControllerRoleVo);
|
||||
|
||||
|
||||
/**
|
||||
* POST /openapi/v1/{omadacId}/users : Create new user
|
||||
* Create new user.<br/><br/>The interface requires one of the permissions: <br/>Global Users Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30103 - Invalid email address.<br/>-30104 - Invalid username.<br/>-30105 - Invalid password.<br/>-30106 - This username is already registered.<br/>-30124 - The number of users has reached the limit.<br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param createUserVo (optional)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Create new user", nickname = "createNewUser", notes = "Create new user.<br/><br/>The interface requires one of the permissions: <br/>Global Users Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30103 - Invalid email address.<br/>-30104 - Invalid username.<br/>-30105 - Invalid password.<br/>-30106 - This username is already registered.<br/>-30124 - The number of users has reached the limit.<br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.", response = OperationResponseCreateUserResultVo.class, tags={ "Omada/User and Role","User and Role", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseCreateUserResultVo.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/users",
|
||||
produces = "*/*",
|
||||
consumes = "application/json",
|
||||
method = RequestMethod.POST)
|
||||
ResponseEntity<OperationResponseCreateUserResultVo> createNewUser(@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateUserVo createUserVo);
|
||||
|
||||
|
||||
/**
|
||||
* DELETE /openapi/v1/{omadacId}/roles/{roleId} : Delete an existing role
|
||||
* Delete an existing role. Only user with all permissions modify can use this interface<br/><br/>The interface requires one of the permissions: <br/>Global Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30102 - This role does not exist.<br/>-30153 - The default role cannot be deleted.<br/>-30154 - An error occurred while deleting the role.<br/>-30155 - The role cannot be deleted since someone has bound to it.<br/>-30173 - The SSO bound role cannot be deleted!
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param roleId Role ID (required)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Delete an existing role", nickname = "deleteRole", notes = "Delete an existing role. Only user with all permissions modify can use this interface<br/><br/>The interface requires one of the permissions: <br/>Global Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30102 - This role does not exist.<br/>-30153 - The default role cannot be deleted.<br/>-30154 - An error occurred while deleting the role.<br/>-30155 - The role cannot be deleted since someone has bound to it.<br/>-30173 - The SSO bound role cannot be deleted!", response = OperationResponseWithoutResult.class, tags={ "Omada/User and Role","User and Role", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/roles/{roleId}",
|
||||
produces = "*/*",
|
||||
method = RequestMethod.DELETE)
|
||||
ResponseEntity<OperationResponseWithoutResult> deleteRole(@ApiParam(value = "Role ID",required=true) @PathVariable("roleId") String roleId);
|
||||
|
||||
|
||||
/**
|
||||
* DELETE /openapi/v1/{omadacId}/users/{userID} : Delete an existing user
|
||||
* Delete an existing user. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.<br/><br/>The interface requires one of the permissions: <br/>Global Users Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30112 - This user does not exist.<br/>-30114 - An error occurred while deleting the user.<br/>-30132 - Are you sure you want to delete Administrator %Username%? When it is deleted, the viewer accounts it has created will be moved to your account.<br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param userID (required)
|
||||
* @param deleteUserVo (optional)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Delete an existing user", nickname = "deleteUser", notes = "Delete an existing user. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.<br/><br/>The interface requires one of the permissions: <br/>Global Users Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30112 - This user does not exist.<br/>-30114 - An error occurred while deleting the user.<br/>-30132 - Are you sure you want to delete Administrator %Username%? When it is deleted, the viewer accounts it has created will be moved to your account.<br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.", response = OperationResponseWithoutResult.class, tags={ "Omada/User and Role","User and Role", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/users/{userID}",
|
||||
produces = "*/*",
|
||||
consumes = "application/json",
|
||||
method = RequestMethod.DELETE)
|
||||
ResponseEntity<OperationResponseWithoutResult> deleteUser(@ApiParam(value = "",required=true) @PathVariable("userID") String userID,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeleteUserVo deleteUserVo);
|
||||
|
||||
|
||||
/**
|
||||
* GET /openapi/v1/{omadacId}/roles : Get role list
|
||||
* Get role list<br/><br/>The interface requires one of the permissions: <br/>Global Roles Manager View Only
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Get role list", nickname = "getAllRoles", notes = "Get role list<br/><br/>The interface requires one of the permissions: <br/>Global Roles Manager View Only", response = OperationResponseListControllerRoleDetailVo.class, tags={ "Omada/User and Role","User and Role", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseListControllerRoleDetailVo.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/roles",
|
||||
produces = "*/*",
|
||||
method = RequestMethod.GET)
|
||||
ResponseEntity<OperationResponseListControllerRoleDetailVo> getAllRoles(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId);
|
||||
|
||||
|
||||
/**
|
||||
* GET /openapi/v1/{omadacId}/users : Get user list
|
||||
* Get user list. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.<br/><br/>The interface requires one of the permissions: <br/>Global Users Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.
|
||||
*
|
||||
* @param omadacId (required)
|
||||
* @param page Start page number. Start from 1. (required)
|
||||
* @param pageSize Number of entries per page. It should be within the range of 1–1000. (required)
|
||||
* @param sortsName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional)
|
||||
* @param sortsRoleId Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional)
|
||||
* @param sortsEmail Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional)
|
||||
* @param searchKey Fuzzy query parameters, support field userName (optional)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Get user list", nickname = "getGridUsers", notes = "Get user list. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.<br/><br/>The interface requires one of the permissions: <br/>Global Users Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.", response = OperationResponseGridVoUserDetailVo.class, tags={ "Omada/User and Role","User and Role", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoUserDetailVo.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/users",
|
||||
produces = "*/*",
|
||||
method = RequestMethod.GET)
|
||||
ResponseEntity<OperationResponseGridVoUserDetailVo> getGridUsers(@ApiParam(value = "",required=true) @PathVariable("omadacId") String omadacId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.name", required = false) String sortsName,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.roleId", required = false) String sortsRoleId,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.email", required = false) String sortsEmail,@ApiParam(value = "Fuzzy query parameters, support field userName") @Valid @RequestParam(value = "searchKey", required = false) String searchKey);
|
||||
|
||||
|
||||
/**
|
||||
* GET /openapi/v1/{omadacId}/roles/{roleId} : Get role info
|
||||
* Get role info<br/><br/>The interface requires one of the permissions: <br/>Global Roles Manager View Only
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param roleId Role ID (required)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Get role info", nickname = "getRole", notes = "Get role info<br/><br/>The interface requires one of the permissions: <br/>Global Roles Manager View Only", response = OperationResponseControllerRoleDetailVo.class, tags={ "Omada/User and Role","User and Role", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseControllerRoleDetailVo.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/roles/{roleId}",
|
||||
produces = "*/*",
|
||||
method = RequestMethod.GET)
|
||||
ResponseEntity<OperationResponseControllerRoleDetailVo> getRole(@ApiParam(value = "Role ID",required=true) @PathVariable("roleId") String roleId);
|
||||
|
||||
|
||||
/**
|
||||
* GET /openapi/v1/{omadacId}/users/{userID} : Get user info
|
||||
* Get user info. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.<br/><br/>The interface requires one of the permissions: <br/>Global Users Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param userID (required)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Get user info", nickname = "getUser", notes = "Get user info. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.<br/><br/>The interface requires one of the permissions: <br/>Global Users Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.", response = OperationResponseUserDetailVo.class, tags={ "Omada/User and Role","User and Role", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseUserDetailVo.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/users/{userID}",
|
||||
produces = "*/*",
|
||||
method = RequestMethod.GET)
|
||||
ResponseEntity<OperationResponseUserDetailVo> getUser(@ApiParam(value = "",required=true) @PathVariable("userID") String userID);
|
||||
|
||||
|
||||
/**
|
||||
* PUT /openapi/v1/{omadacId}/roles/{roleId} : Modify an existing role
|
||||
* Modify an existing role. Only user with all permissions modify can use this interface.<br/><br/>The interface requires one of the permissions: <br/>Global Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30102 - This role does not exist.<br/>-30156 - This role already exists.<br/>-30157 - An error occurred while modifying the role.<br/>-30159 - The default role cannot be modified.<br/>-30162 - Cannot change the target account. Its role permission scope cannot be greater than its manager.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param roleId Role ID (required)
|
||||
* @param modifyControllerRoleVo (optional)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Modify an existing role", nickname = "modifyRole", notes = "Modify an existing role. Only user with all permissions modify can use this interface.<br/><br/>The interface requires one of the permissions: <br/>Global Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30102 - This role does not exist.<br/>-30156 - This role already exists.<br/>-30157 - An error occurred while modifying the role.<br/>-30159 - The default role cannot be modified.<br/>-30162 - Cannot change the target account. Its role permission scope cannot be greater than its manager.", response = OperationResponseObject.class, tags={ "Omada/User and Role","User and Role", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/roles/{roleId}",
|
||||
produces = "*/*",
|
||||
consumes = "application/json",
|
||||
method = RequestMethod.PUT)
|
||||
ResponseEntity<OperationResponseObject> modifyRole(@ApiParam(value = "Role ID",required=true) @PathVariable("roleId") String roleId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModifyControllerRoleVo modifyControllerRoleVo);
|
||||
|
||||
|
||||
/**
|
||||
* PUT /openapi/v1/{omadacId}/users/{userID} : Modify an existing user
|
||||
* Modify an existing user.<br/><br/>The interface requires one of the permissions: <br/>Global Users Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30103 - Invalid email address.<br/>-30104 - Invalid username.<br/>-30105 - Invalid password.<br/>-30106 - This username is already registered.<br/>-30108 - This username does not exist.<br/>-30133 - Failed to remove Site %Site name%. The administrator account should not have privileges to fewer sites than that of the viewer accounts it has created.<br/>-30134 - Failed to add Site %Site name%. The viewer account should not have privileges to more sites thatn that of its immediate superior account.<br/>-30135 - Are you sure you want to change the role of %Username% from Administrator to Viewer?If its role is changed, the viewer accounts it has created will be moved to your account.<br/>-30136 - Failed to save. If the editing is saved, the viewer account will have privileges to more sites than that of its immediate superior account.<br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param userID (required)
|
||||
* @param modifyUserVo (optional)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Modify an existing user", nickname = "modifyUser", notes = "Modify an existing user.<br/><br/>The interface requires one of the permissions: <br/>Global Users Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30103 - Invalid email address.<br/>-30104 - Invalid username.<br/>-30105 - Invalid password.<br/>-30106 - This username is already registered.<br/>-30108 - This username does not exist.<br/>-30133 - Failed to remove Site %Site name%. The administrator account should not have privileges to fewer sites than that of the viewer accounts it has created.<br/>-30134 - Failed to add Site %Site name%. The viewer account should not have privileges to more sites thatn that of its immediate superior account.<br/>-30135 - Are you sure you want to change the role of %Username% from Administrator to Viewer?If its role is changed, the viewer accounts it has created will be moved to your account.<br/>-30136 - Failed to save. If the editing is saved, the viewer account will have privileges to more sites than that of its immediate superior account.<br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.", response = OperationResponseObject.class, tags={ "Omada/User and Role","User and Role", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/users/{userID}",
|
||||
produces = "*/*",
|
||||
consumes = "application/json",
|
||||
method = RequestMethod.PUT)
|
||||
ResponseEntity<OperationResponseObject> modifyUser(@ApiParam(value = "",required=true) @PathVariable("userID") String userID,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModifyUserVo modifyUserVo);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,203 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* ControllerRoleDetailVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class ControllerRoleDetailVo {
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@JsonProperty("type")
|
||||
private Integer type;
|
||||
|
||||
@JsonProperty("defaultRole")
|
||||
private Boolean defaultRole;
|
||||
|
||||
@JsonProperty("source")
|
||||
private Integer source;
|
||||
|
||||
@JsonProperty("privilege")
|
||||
private ControllerRoleVo privilege;
|
||||
|
||||
public ControllerRoleDetailVo id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Role ID
|
||||
* @return id
|
||||
*/
|
||||
@ApiModelProperty(value = "Role ID")
|
||||
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public ControllerRoleDetailVo name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Role Name
|
||||
* @return name
|
||||
*/
|
||||
@ApiModelProperty(value = "Role Name")
|
||||
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ControllerRoleDetailVo type(Integer type) {
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Role Type should be a value as follows: 0: standard; 1: customer; 2: msp.
|
||||
* @return type
|
||||
*/
|
||||
@ApiModelProperty(value = "Role Type should be a value as follows: 0: standard; 1: customer; 2: msp.")
|
||||
|
||||
|
||||
public Integer getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(Integer type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public ControllerRoleDetailVo defaultRole(Boolean defaultRole) {
|
||||
this.defaultRole = defaultRole;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether role is default role
|
||||
* @return defaultRole
|
||||
*/
|
||||
@ApiModelProperty(value = "Whether role is default role")
|
||||
|
||||
|
||||
public Boolean getDefaultRole() {
|
||||
return defaultRole;
|
||||
}
|
||||
|
||||
public void setDefaultRole(Boolean defaultRole) {
|
||||
this.defaultRole = defaultRole;
|
||||
}
|
||||
|
||||
public ControllerRoleDetailVo source(Integer source) {
|
||||
this.source = source;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Role created resource. It should be a value as follows: 0: default; 1:create by standard controller or customer controller; 2: create by MSP
|
||||
* @return source
|
||||
*/
|
||||
@ApiModelProperty(value = "Role created resource. It should be a value as follows: 0: default; 1:create by standard controller or customer controller; 2: create by MSP")
|
||||
|
||||
|
||||
public Integer getSource() {
|
||||
return source;
|
||||
}
|
||||
|
||||
public void setSource(Integer source) {
|
||||
this.source = source;
|
||||
}
|
||||
|
||||
public ControllerRoleDetailVo privilege(ControllerRoleVo privilege) {
|
||||
this.privilege = privilege;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get privilege
|
||||
* @return privilege
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public ControllerRoleVo getPrivilege() {
|
||||
return privilege;
|
||||
}
|
||||
|
||||
public void setPrivilege(ControllerRoleVo privilege) {
|
||||
this.privilege = privilege;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ControllerRoleDetailVo controllerRoleDetailVo = (ControllerRoleDetailVo) o;
|
||||
return Objects.equals(this.id, controllerRoleDetailVo.id) &&
|
||||
Objects.equals(this.name, controllerRoleDetailVo.name) &&
|
||||
Objects.equals(this.type, controllerRoleDetailVo.type) &&
|
||||
Objects.equals(this.defaultRole, controllerRoleDetailVo.defaultRole) &&
|
||||
Objects.equals(this.source, controllerRoleDetailVo.source) &&
|
||||
Objects.equals(this.privilege, controllerRoleDetailVo.privilege);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, name, type, defaultRole, source, privilege);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ControllerRoleDetailVo {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" type: ").append(toIndentedString(type)).append("\n");
|
||||
sb.append(" defaultRole: ").append(toIndentedString(defaultRole)).append("\n");
|
||||
sb.append(" source: ").append(toIndentedString(source)).append("\n");
|
||||
sb.append(" privilege: ").append(toIndentedString(privilege)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,953 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* Role privilege
|
||||
*/
|
||||
@ApiModel(description = "Role privilege")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class ControllerRoleVo {
|
||||
@JsonProperty("license")
|
||||
private Integer license;
|
||||
|
||||
@JsonProperty("globalDashboard")
|
||||
private Integer globalDashboard;
|
||||
|
||||
@JsonProperty("dashboard")
|
||||
private Integer dashboard;
|
||||
|
||||
@JsonProperty("devices")
|
||||
private Integer devices;
|
||||
|
||||
@JsonProperty("adopt")
|
||||
private Integer adopt;
|
||||
|
||||
@JsonProperty("addDevices")
|
||||
private Integer addDevices;
|
||||
|
||||
@JsonProperty("addAdoptDevice")
|
||||
private Integer addAdoptDevice;
|
||||
|
||||
@JsonProperty("manualUpgrade")
|
||||
private Integer manualUpgrade;
|
||||
|
||||
@JsonProperty("globalLog")
|
||||
private Integer globalLog;
|
||||
|
||||
@JsonProperty("log")
|
||||
private Integer log;
|
||||
|
||||
@JsonProperty("licenseBind")
|
||||
private Integer licenseBind;
|
||||
|
||||
@JsonProperty("users")
|
||||
private Integer users;
|
||||
|
||||
@JsonProperty("roles")
|
||||
private Integer roles;
|
||||
|
||||
@JsonProperty("samlUsers")
|
||||
private Integer samlUsers;
|
||||
|
||||
@JsonProperty("samlRoles")
|
||||
private Integer samlRoles;
|
||||
|
||||
@JsonProperty("samlSsos")
|
||||
private Integer samlSsos;
|
||||
|
||||
@JsonProperty("globalSetting")
|
||||
private Integer globalSetting;
|
||||
|
||||
@JsonProperty("exportData")
|
||||
private Integer exportData;
|
||||
|
||||
@JsonProperty("globalExportData")
|
||||
private Integer globalExportData;
|
||||
|
||||
@JsonProperty("exportGlobalLog")
|
||||
private Integer exportGlobalLog;
|
||||
|
||||
@JsonProperty("hotspot")
|
||||
private Integer hotspot;
|
||||
|
||||
@JsonProperty("statics")
|
||||
private Integer statics;
|
||||
|
||||
@JsonProperty("map")
|
||||
private Integer map;
|
||||
|
||||
@JsonProperty("clients")
|
||||
private Integer clients;
|
||||
|
||||
@JsonProperty("insight")
|
||||
private Integer insight;
|
||||
|
||||
@JsonProperty("report")
|
||||
private Integer report;
|
||||
|
||||
@JsonProperty("network")
|
||||
private Integer network;
|
||||
|
||||
@JsonProperty("deviceAccount")
|
||||
private Integer deviceAccount;
|
||||
|
||||
@JsonProperty("anomaly")
|
||||
private Integer anomaly;
|
||||
|
||||
@JsonProperty("analyze")
|
||||
private Integer analyze;
|
||||
|
||||
@JsonProperty("siteAnalyze")
|
||||
private Integer siteAnalyze;
|
||||
|
||||
@JsonProperty("globalSecurity")
|
||||
private Integer globalSecurity;
|
||||
|
||||
@JsonProperty("globalWebhook")
|
||||
private Integer globalWebhook;
|
||||
|
||||
@JsonProperty("globalMapToken")
|
||||
private Integer globalMapToken;
|
||||
|
||||
@JsonProperty("siteTemplate")
|
||||
private Integer siteTemplate;
|
||||
|
||||
@JsonProperty("firmwareManager")
|
||||
private Integer firmwareManager;
|
||||
|
||||
public ControllerRoleVo license(Integer license) {
|
||||
this.license = license;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* License permission, it should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return license
|
||||
*/
|
||||
@ApiModelProperty(value = "License permission, it should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getLicense() {
|
||||
return license;
|
||||
}
|
||||
|
||||
public void setLicense(Integer license) {
|
||||
this.license = license;
|
||||
}
|
||||
|
||||
public ControllerRoleVo globalDashboard(Integer globalDashboard) {
|
||||
this.globalDashboard = globalDashboard;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Dashboard permission in global view. It should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return globalDashboard
|
||||
*/
|
||||
@ApiModelProperty(value = "Dashboard permission in global view. It should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getGlobalDashboard() {
|
||||
return globalDashboard;
|
||||
}
|
||||
|
||||
public void setGlobalDashboard(Integer globalDashboard) {
|
||||
this.globalDashboard = globalDashboard;
|
||||
}
|
||||
|
||||
public ControllerRoleVo dashboard(Integer dashboard) {
|
||||
this.dashboard = dashboard;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Dashboard permission in site view. It should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return dashboard
|
||||
*/
|
||||
@ApiModelProperty(value = "Dashboard permission in site view. It should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getDashboard() {
|
||||
return dashboard;
|
||||
}
|
||||
|
||||
public void setDashboard(Integer dashboard) {
|
||||
this.dashboard = dashboard;
|
||||
}
|
||||
|
||||
public ControllerRoleVo devices(Integer devices) {
|
||||
this.devices = devices;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Devices permission in site view and global view. It should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return devices
|
||||
*/
|
||||
@ApiModelProperty(value = "Devices permission in site view and global view. It should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getDevices() {
|
||||
return devices;
|
||||
}
|
||||
|
||||
public void setDevices(Integer devices) {
|
||||
this.devices = devices;
|
||||
}
|
||||
|
||||
public ControllerRoleVo adopt(Integer adopt) {
|
||||
this.adopt = adopt;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adopt permission should be a value as follows: 0:block; 2:access
|
||||
* @return adopt
|
||||
*/
|
||||
@ApiModelProperty(value = "Adopt permission should be a value as follows: 0:block; 2:access")
|
||||
|
||||
|
||||
public Integer getAdopt() {
|
||||
return adopt;
|
||||
}
|
||||
|
||||
public void setAdopt(Integer adopt) {
|
||||
this.adopt = adopt;
|
||||
}
|
||||
|
||||
public ControllerRoleVo addDevices(Integer addDevices) {
|
||||
this.addDevices = addDevices;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add devices permission should be a value as follows: 0:block; 2:access
|
||||
* @return addDevices
|
||||
*/
|
||||
@ApiModelProperty(value = "Add devices permission should be a value as follows: 0:block; 2:access")
|
||||
|
||||
|
||||
public Integer getAddDevices() {
|
||||
return addDevices;
|
||||
}
|
||||
|
||||
public void setAddDevices(Integer addDevices) {
|
||||
this.addDevices = addDevices;
|
||||
}
|
||||
|
||||
public ControllerRoleVo addAdoptDevice(Integer addAdoptDevice) {
|
||||
this.addAdoptDevice = addAdoptDevice;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add and adopt devices permission should be a value as follows: 0:block; 2:access
|
||||
* @return addAdoptDevice
|
||||
*/
|
||||
@ApiModelProperty(value = "Add and adopt devices permission should be a value as follows: 0:block; 2:access")
|
||||
|
||||
|
||||
public Integer getAddAdoptDevice() {
|
||||
return addAdoptDevice;
|
||||
}
|
||||
|
||||
public void setAddAdoptDevice(Integer addAdoptDevice) {
|
||||
this.addAdoptDevice = addAdoptDevice;
|
||||
}
|
||||
|
||||
public ControllerRoleVo manualUpgrade(Integer manualUpgrade) {
|
||||
this.manualUpgrade = manualUpgrade;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Manual Upgrade permission should be a value as follows: 0:block; 2:access
|
||||
* @return manualUpgrade
|
||||
*/
|
||||
@ApiModelProperty(value = "Manual Upgrade permission should be a value as follows: 0:block; 2:access")
|
||||
|
||||
|
||||
public Integer getManualUpgrade() {
|
||||
return manualUpgrade;
|
||||
}
|
||||
|
||||
public void setManualUpgrade(Integer manualUpgrade) {
|
||||
this.manualUpgrade = manualUpgrade;
|
||||
}
|
||||
|
||||
public ControllerRoleVo globalLog(Integer globalLog) {
|
||||
this.globalLog = globalLog;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Log permission in global view should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return globalLog
|
||||
*/
|
||||
@ApiModelProperty(value = "Log permission in global view should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getGlobalLog() {
|
||||
return globalLog;
|
||||
}
|
||||
|
||||
public void setGlobalLog(Integer globalLog) {
|
||||
this.globalLog = globalLog;
|
||||
}
|
||||
|
||||
public ControllerRoleVo log(Integer log) {
|
||||
this.log = log;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Log permission in site view should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return log
|
||||
*/
|
||||
@ApiModelProperty(value = "Log permission in site view should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getLog() {
|
||||
return log;
|
||||
}
|
||||
|
||||
public void setLog(Integer log) {
|
||||
this.log = log;
|
||||
}
|
||||
|
||||
public ControllerRoleVo licenseBind(Integer licenseBind) {
|
||||
this.licenseBind = licenseBind;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* License bind permission should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return licenseBind
|
||||
*/
|
||||
@ApiModelProperty(value = "License bind permission should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getLicenseBind() {
|
||||
return licenseBind;
|
||||
}
|
||||
|
||||
public void setLicenseBind(Integer licenseBind) {
|
||||
this.licenseBind = licenseBind;
|
||||
}
|
||||
|
||||
public ControllerRoleVo users(Integer users) {
|
||||
this.users = users;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Users permission in global view should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return users
|
||||
*/
|
||||
@ApiModelProperty(value = "Users permission in global view should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getUsers() {
|
||||
return users;
|
||||
}
|
||||
|
||||
public void setUsers(Integer users) {
|
||||
this.users = users;
|
||||
}
|
||||
|
||||
public ControllerRoleVo roles(Integer roles) {
|
||||
this.roles = roles;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Roles permission in global view should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return roles
|
||||
*/
|
||||
@ApiModelProperty(value = "Roles permission in global view should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getRoles() {
|
||||
return roles;
|
||||
}
|
||||
|
||||
public void setRoles(Integer roles) {
|
||||
this.roles = roles;
|
||||
}
|
||||
|
||||
public ControllerRoleVo samlUsers(Integer samlUsers) {
|
||||
this.samlUsers = samlUsers;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Saml users permission in global view should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return samlUsers
|
||||
*/
|
||||
@ApiModelProperty(value = "Saml users permission in global view should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getSamlUsers() {
|
||||
return samlUsers;
|
||||
}
|
||||
|
||||
public void setSamlUsers(Integer samlUsers) {
|
||||
this.samlUsers = samlUsers;
|
||||
}
|
||||
|
||||
public ControllerRoleVo samlRoles(Integer samlRoles) {
|
||||
this.samlRoles = samlRoles;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Saml roles permission in global view should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return samlRoles
|
||||
*/
|
||||
@ApiModelProperty(value = "Saml roles permission in global view should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getSamlRoles() {
|
||||
return samlRoles;
|
||||
}
|
||||
|
||||
public void setSamlRoles(Integer samlRoles) {
|
||||
this.samlRoles = samlRoles;
|
||||
}
|
||||
|
||||
public ControllerRoleVo samlSsos(Integer samlSsos) {
|
||||
this.samlSsos = samlSsos;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Saml ssos permission in global view should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return samlSsos
|
||||
*/
|
||||
@ApiModelProperty(value = "Saml ssos permission in global view should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getSamlSsos() {
|
||||
return samlSsos;
|
||||
}
|
||||
|
||||
public void setSamlSsos(Integer samlSsos) {
|
||||
this.samlSsos = samlSsos;
|
||||
}
|
||||
|
||||
public ControllerRoleVo globalSetting(Integer globalSetting) {
|
||||
this.globalSetting = globalSetting;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Settings permission in global view should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return globalSetting
|
||||
*/
|
||||
@ApiModelProperty(value = "Settings permission in global view should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getGlobalSetting() {
|
||||
return globalSetting;
|
||||
}
|
||||
|
||||
public void setGlobalSetting(Integer globalSetting) {
|
||||
this.globalSetting = globalSetting;
|
||||
}
|
||||
|
||||
public ControllerRoleVo exportData(Integer exportData) {
|
||||
this.exportData = exportData;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Export data permission in site view should be a value as follows: 0:block; 2:access
|
||||
* @return exportData
|
||||
*/
|
||||
@ApiModelProperty(value = "Export data permission in site view should be a value as follows: 0:block; 2:access")
|
||||
|
||||
|
||||
public Integer getExportData() {
|
||||
return exportData;
|
||||
}
|
||||
|
||||
public void setExportData(Integer exportData) {
|
||||
this.exportData = exportData;
|
||||
}
|
||||
|
||||
public ControllerRoleVo globalExportData(Integer globalExportData) {
|
||||
this.globalExportData = globalExportData;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Export data permission in global view should be a value as follows: 0:block; 2:access
|
||||
* @return globalExportData
|
||||
*/
|
||||
@ApiModelProperty(value = "Export data permission in global view should be a value as follows: 0:block; 2:access")
|
||||
|
||||
|
||||
public Integer getGlobalExportData() {
|
||||
return globalExportData;
|
||||
}
|
||||
|
||||
public void setGlobalExportData(Integer globalExportData) {
|
||||
this.globalExportData = globalExportData;
|
||||
}
|
||||
|
||||
public ControllerRoleVo exportGlobalLog(Integer exportGlobalLog) {
|
||||
this.exportGlobalLog = exportGlobalLog;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Export global log data permission in global view should be a value as follows: 0:block; 2:access
|
||||
* @return exportGlobalLog
|
||||
*/
|
||||
@ApiModelProperty(value = "Export global log data permission in global view should be a value as follows: 0:block; 2:access")
|
||||
|
||||
|
||||
public Integer getExportGlobalLog() {
|
||||
return exportGlobalLog;
|
||||
}
|
||||
|
||||
public void setExportGlobalLog(Integer exportGlobalLog) {
|
||||
this.exportGlobalLog = exportGlobalLog;
|
||||
}
|
||||
|
||||
public ControllerRoleVo hotspot(Integer hotspot) {
|
||||
this.hotspot = hotspot;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Hotspot permission should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return hotspot
|
||||
*/
|
||||
@ApiModelProperty(value = "Hotspot permission should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getHotspot() {
|
||||
return hotspot;
|
||||
}
|
||||
|
||||
public void setHotspot(Integer hotspot) {
|
||||
this.hotspot = hotspot;
|
||||
}
|
||||
|
||||
public ControllerRoleVo statics(Integer statics) {
|
||||
this.statics = statics;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Statics permission in site view should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return statics
|
||||
*/
|
||||
@ApiModelProperty(value = "Statics permission in site view should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getStatics() {
|
||||
return statics;
|
||||
}
|
||||
|
||||
public void setStatics(Integer statics) {
|
||||
this.statics = statics;
|
||||
}
|
||||
|
||||
public ControllerRoleVo map(Integer map) {
|
||||
this.map = map;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Map permission in site view should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return map
|
||||
*/
|
||||
@ApiModelProperty(value = "Map permission in site view should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getMap() {
|
||||
return map;
|
||||
}
|
||||
|
||||
public void setMap(Integer map) {
|
||||
this.map = map;
|
||||
}
|
||||
|
||||
public ControllerRoleVo clients(Integer clients) {
|
||||
this.clients = clients;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clients permission in site view should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return clients
|
||||
*/
|
||||
@ApiModelProperty(value = "Clients permission in site view should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getClients() {
|
||||
return clients;
|
||||
}
|
||||
|
||||
public void setClients(Integer clients) {
|
||||
this.clients = clients;
|
||||
}
|
||||
|
||||
public ControllerRoleVo insight(Integer insight) {
|
||||
this.insight = insight;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Insight permission in site view should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return insight
|
||||
*/
|
||||
@ApiModelProperty(value = "Insight permission in site view should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getInsight() {
|
||||
return insight;
|
||||
}
|
||||
|
||||
public void setInsight(Integer insight) {
|
||||
this.insight = insight;
|
||||
}
|
||||
|
||||
public ControllerRoleVo report(Integer report) {
|
||||
this.report = report;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Network report permission in site view should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return report
|
||||
*/
|
||||
@ApiModelProperty(value = "Network report permission in site view should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getReport() {
|
||||
return report;
|
||||
}
|
||||
|
||||
public void setReport(Integer report) {
|
||||
this.report = report;
|
||||
}
|
||||
|
||||
public ControllerRoleVo network(Integer network) {
|
||||
this.network = network;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Site network settings permission in site view -> settings should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return network
|
||||
*/
|
||||
@ApiModelProperty(value = "Site network settings permission in site view -> settings should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getNetwork() {
|
||||
return network;
|
||||
}
|
||||
|
||||
public void setNetwork(Integer network) {
|
||||
this.network = network;
|
||||
}
|
||||
|
||||
public ControllerRoleVo deviceAccount(Integer deviceAccount) {
|
||||
this.deviceAccount = deviceAccount;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device account permission in site view -> site settings should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return deviceAccount
|
||||
*/
|
||||
@ApiModelProperty(value = "Device account permission in site view -> site settings should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getDeviceAccount() {
|
||||
return deviceAccount;
|
||||
}
|
||||
|
||||
public void setDeviceAccount(Integer deviceAccount) {
|
||||
this.deviceAccount = deviceAccount;
|
||||
}
|
||||
|
||||
public ControllerRoleVo anomaly(Integer anomaly) {
|
||||
this.anomaly = anomaly;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Anomaly permission in global view should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return anomaly
|
||||
*/
|
||||
@ApiModelProperty(value = "Anomaly permission in global view should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getAnomaly() {
|
||||
return anomaly;
|
||||
}
|
||||
|
||||
public void setAnomaly(Integer anomaly) {
|
||||
this.anomaly = anomaly;
|
||||
}
|
||||
|
||||
public ControllerRoleVo analyze(Integer analyze) {
|
||||
this.analyze = analyze;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tools permission in global view. Only for hardware controller should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return analyze
|
||||
*/
|
||||
@ApiModelProperty(value = "Tools permission in global view. Only for hardware controller should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getAnalyze() {
|
||||
return analyze;
|
||||
}
|
||||
|
||||
public void setAnalyze(Integer analyze) {
|
||||
this.analyze = analyze;
|
||||
}
|
||||
|
||||
public ControllerRoleVo siteAnalyze(Integer siteAnalyze) {
|
||||
this.siteAnalyze = siteAnalyze;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tools in site view should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return siteAnalyze
|
||||
*/
|
||||
@ApiModelProperty(value = "Tools in site view should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getSiteAnalyze() {
|
||||
return siteAnalyze;
|
||||
}
|
||||
|
||||
public void setSiteAnalyze(Integer siteAnalyze) {
|
||||
this.siteAnalyze = siteAnalyze;
|
||||
}
|
||||
|
||||
public ControllerRoleVo globalSecurity(Integer globalSecurity) {
|
||||
this.globalSecurity = globalSecurity;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Security permission in global view should be a value as follows: 0:block; 1:view only; 2:modify
|
||||
* @return globalSecurity
|
||||
*/
|
||||
@ApiModelProperty(value = "Security permission in global view should be a value as follows: 0:block; 1:view only; 2:modify")
|
||||
|
||||
|
||||
public Integer getGlobalSecurity() {
|
||||
return globalSecurity;
|
||||
}
|
||||
|
||||
public void setGlobalSecurity(Integer globalSecurity) {
|
||||
this.globalSecurity = globalSecurity;
|
||||
}
|
||||
|
||||
public ControllerRoleVo globalWebhook(Integer globalWebhook) {
|
||||
this.globalWebhook = globalWebhook;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Webhook in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller
|
||||
* @return globalWebhook
|
||||
*/
|
||||
@ApiModelProperty(value = "Webhook in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller")
|
||||
|
||||
|
||||
public Integer getGlobalWebhook() {
|
||||
return globalWebhook;
|
||||
}
|
||||
|
||||
public void setGlobalWebhook(Integer globalWebhook) {
|
||||
this.globalWebhook = globalWebhook;
|
||||
}
|
||||
|
||||
public ControllerRoleVo globalMapToken(Integer globalMapToken) {
|
||||
this.globalMapToken = globalMapToken;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* MapToken in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller
|
||||
* @return globalMapToken
|
||||
*/
|
||||
@ApiModelProperty(value = "MapToken in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller")
|
||||
|
||||
|
||||
public Integer getGlobalMapToken() {
|
||||
return globalMapToken;
|
||||
}
|
||||
|
||||
public void setGlobalMapToken(Integer globalMapToken) {
|
||||
this.globalMapToken = globalMapToken;
|
||||
}
|
||||
|
||||
public ControllerRoleVo siteTemplate(Integer siteTemplate) {
|
||||
this.siteTemplate = siteTemplate;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* SiteTemplate in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller
|
||||
* @return siteTemplate
|
||||
*/
|
||||
@ApiModelProperty(value = "SiteTemplate in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller")
|
||||
|
||||
|
||||
public Integer getSiteTemplate() {
|
||||
return siteTemplate;
|
||||
}
|
||||
|
||||
public void setSiteTemplate(Integer siteTemplate) {
|
||||
this.siteTemplate = siteTemplate;
|
||||
}
|
||||
|
||||
public ControllerRoleVo firmwareManager(Integer firmwareManager) {
|
||||
this.firmwareManager = firmwareManager;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* FirmwareManager in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller
|
||||
* @return firmwareManager
|
||||
*/
|
||||
@ApiModelProperty(value = "FirmwareManager in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller")
|
||||
|
||||
|
||||
public Integer getFirmwareManager() {
|
||||
return firmwareManager;
|
||||
}
|
||||
|
||||
public void setFirmwareManager(Integer firmwareManager) {
|
||||
this.firmwareManager = firmwareManager;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ControllerRoleVo controllerRoleVo = (ControllerRoleVo) o;
|
||||
return Objects.equals(this.license, controllerRoleVo.license) &&
|
||||
Objects.equals(this.globalDashboard, controllerRoleVo.globalDashboard) &&
|
||||
Objects.equals(this.dashboard, controllerRoleVo.dashboard) &&
|
||||
Objects.equals(this.devices, controllerRoleVo.devices) &&
|
||||
Objects.equals(this.adopt, controllerRoleVo.adopt) &&
|
||||
Objects.equals(this.addDevices, controllerRoleVo.addDevices) &&
|
||||
Objects.equals(this.addAdoptDevice, controllerRoleVo.addAdoptDevice) &&
|
||||
Objects.equals(this.manualUpgrade, controllerRoleVo.manualUpgrade) &&
|
||||
Objects.equals(this.globalLog, controllerRoleVo.globalLog) &&
|
||||
Objects.equals(this.log, controllerRoleVo.log) &&
|
||||
Objects.equals(this.licenseBind, controllerRoleVo.licenseBind) &&
|
||||
Objects.equals(this.users, controllerRoleVo.users) &&
|
||||
Objects.equals(this.roles, controllerRoleVo.roles) &&
|
||||
Objects.equals(this.samlUsers, controllerRoleVo.samlUsers) &&
|
||||
Objects.equals(this.samlRoles, controllerRoleVo.samlRoles) &&
|
||||
Objects.equals(this.samlSsos, controllerRoleVo.samlSsos) &&
|
||||
Objects.equals(this.globalSetting, controllerRoleVo.globalSetting) &&
|
||||
Objects.equals(this.exportData, controllerRoleVo.exportData) &&
|
||||
Objects.equals(this.globalExportData, controllerRoleVo.globalExportData) &&
|
||||
Objects.equals(this.exportGlobalLog, controllerRoleVo.exportGlobalLog) &&
|
||||
Objects.equals(this.hotspot, controllerRoleVo.hotspot) &&
|
||||
Objects.equals(this.statics, controllerRoleVo.statics) &&
|
||||
Objects.equals(this.map, controllerRoleVo.map) &&
|
||||
Objects.equals(this.clients, controllerRoleVo.clients) &&
|
||||
Objects.equals(this.insight, controllerRoleVo.insight) &&
|
||||
Objects.equals(this.report, controllerRoleVo.report) &&
|
||||
Objects.equals(this.network, controllerRoleVo.network) &&
|
||||
Objects.equals(this.deviceAccount, controllerRoleVo.deviceAccount) &&
|
||||
Objects.equals(this.anomaly, controllerRoleVo.anomaly) &&
|
||||
Objects.equals(this.analyze, controllerRoleVo.analyze) &&
|
||||
Objects.equals(this.siteAnalyze, controllerRoleVo.siteAnalyze) &&
|
||||
Objects.equals(this.globalSecurity, controllerRoleVo.globalSecurity) &&
|
||||
Objects.equals(this.globalWebhook, controllerRoleVo.globalWebhook) &&
|
||||
Objects.equals(this.globalMapToken, controllerRoleVo.globalMapToken) &&
|
||||
Objects.equals(this.siteTemplate, controllerRoleVo.siteTemplate) &&
|
||||
Objects.equals(this.firmwareManager, controllerRoleVo.firmwareManager);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(license, globalDashboard, dashboard, devices, adopt, addDevices, addAdoptDevice, manualUpgrade, globalLog, log, licenseBind, users, roles, samlUsers, samlRoles, samlSsos, globalSetting, exportData, globalExportData, exportGlobalLog, hotspot, statics, map, clients, insight, report, network, deviceAccount, anomaly, analyze, siteAnalyze, globalSecurity, globalWebhook, globalMapToken, siteTemplate, firmwareManager);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ControllerRoleVo {\n");
|
||||
|
||||
sb.append(" license: ").append(toIndentedString(license)).append("\n");
|
||||
sb.append(" globalDashboard: ").append(toIndentedString(globalDashboard)).append("\n");
|
||||
sb.append(" dashboard: ").append(toIndentedString(dashboard)).append("\n");
|
||||
sb.append(" devices: ").append(toIndentedString(devices)).append("\n");
|
||||
sb.append(" adopt: ").append(toIndentedString(adopt)).append("\n");
|
||||
sb.append(" addDevices: ").append(toIndentedString(addDevices)).append("\n");
|
||||
sb.append(" addAdoptDevice: ").append(toIndentedString(addAdoptDevice)).append("\n");
|
||||
sb.append(" manualUpgrade: ").append(toIndentedString(manualUpgrade)).append("\n");
|
||||
sb.append(" globalLog: ").append(toIndentedString(globalLog)).append("\n");
|
||||
sb.append(" log: ").append(toIndentedString(log)).append("\n");
|
||||
sb.append(" licenseBind: ").append(toIndentedString(licenseBind)).append("\n");
|
||||
sb.append(" users: ").append(toIndentedString(users)).append("\n");
|
||||
sb.append(" roles: ").append(toIndentedString(roles)).append("\n");
|
||||
sb.append(" samlUsers: ").append(toIndentedString(samlUsers)).append("\n");
|
||||
sb.append(" samlRoles: ").append(toIndentedString(samlRoles)).append("\n");
|
||||
sb.append(" samlSsos: ").append(toIndentedString(samlSsos)).append("\n");
|
||||
sb.append(" globalSetting: ").append(toIndentedString(globalSetting)).append("\n");
|
||||
sb.append(" exportData: ").append(toIndentedString(exportData)).append("\n");
|
||||
sb.append(" globalExportData: ").append(toIndentedString(globalExportData)).append("\n");
|
||||
sb.append(" exportGlobalLog: ").append(toIndentedString(exportGlobalLog)).append("\n");
|
||||
sb.append(" hotspot: ").append(toIndentedString(hotspot)).append("\n");
|
||||
sb.append(" statics: ").append(toIndentedString(statics)).append("\n");
|
||||
sb.append(" map: ").append(toIndentedString(map)).append("\n");
|
||||
sb.append(" clients: ").append(toIndentedString(clients)).append("\n");
|
||||
sb.append(" insight: ").append(toIndentedString(insight)).append("\n");
|
||||
sb.append(" report: ").append(toIndentedString(report)).append("\n");
|
||||
sb.append(" network: ").append(toIndentedString(network)).append("\n");
|
||||
sb.append(" deviceAccount: ").append(toIndentedString(deviceAccount)).append("\n");
|
||||
sb.append(" anomaly: ").append(toIndentedString(anomaly)).append("\n");
|
||||
sb.append(" analyze: ").append(toIndentedString(analyze)).append("\n");
|
||||
sb.append(" siteAnalyze: ").append(toIndentedString(siteAnalyze)).append("\n");
|
||||
sb.append(" globalSecurity: ").append(toIndentedString(globalSecurity)).append("\n");
|
||||
sb.append(" globalWebhook: ").append(toIndentedString(globalWebhook)).append("\n");
|
||||
sb.append(" globalMapToken: ").append(toIndentedString(globalMapToken)).append("\n");
|
||||
sb.append(" siteTemplate: ").append(toIndentedString(siteTemplate)).append("\n");
|
||||
sb.append(" firmwareManager: ").append(toIndentedString(firmwareManager)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* CreateRoleResultVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class CreateRoleResultVo {
|
||||
@JsonProperty("roleId")
|
||||
private String roleId;
|
||||
|
||||
public CreateRoleResultVo roleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Role ID
|
||||
* @return roleId
|
||||
*/
|
||||
@ApiModelProperty(value = "Role ID")
|
||||
|
||||
|
||||
public String getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
CreateRoleResultVo createRoleResultVo = (CreateRoleResultVo) o;
|
||||
return Objects.equals(this.roleId, createRoleResultVo.roleId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(roleId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CreateRoleResultVo {\n");
|
||||
|
||||
sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* CreateUserResultVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class CreateUserResultVo {
|
||||
@JsonProperty("userId")
|
||||
private String userId;
|
||||
|
||||
public CreateUserResultVo userId(String userId) {
|
||||
this.userId = userId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* User ID
|
||||
* @return userId
|
||||
*/
|
||||
@ApiModelProperty(value = "User ID")
|
||||
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
CreateUserResultVo createUserResultVo = (CreateUserResultVo) o;
|
||||
return Objects.equals(this.userId, createUserResultVo.userId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(userId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CreateUserResultVo {\n");
|
||||
|
||||
sb.append(" userId: ").append(toIndentedString(userId)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,294 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* CreateUserVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class CreateUserVo {
|
||||
@JsonProperty("type")
|
||||
private Integer type;
|
||||
|
||||
@JsonProperty("roleId")
|
||||
private String roleId;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@JsonProperty("password")
|
||||
private String password;
|
||||
|
||||
@JsonProperty("email")
|
||||
private String email;
|
||||
|
||||
@JsonProperty("alert")
|
||||
private Boolean alert;
|
||||
|
||||
@JsonProperty("incidentNotification")
|
||||
private Boolean incidentNotification;
|
||||
|
||||
@JsonProperty("sites")
|
||||
@Valid
|
||||
private List<String> sites = null;
|
||||
|
||||
@JsonProperty("allSite")
|
||||
private Boolean allSite;
|
||||
|
||||
public CreateUserVo type(Integer type) {
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Type of user should be a value as follows: 0: local user; 1: cloud user.
|
||||
* @return type
|
||||
*/
|
||||
@ApiModelProperty(required = true, value = "Type of user should be a value as follows: 0: local user; 1: cloud user.")
|
||||
@NotNull
|
||||
|
||||
|
||||
public Integer getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(Integer type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public CreateUserVo roleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* This field represents Role ID. Role can be created using 'Create new role' interface, and Role ID can be obtained from 'Get role list' interface.
|
||||
* @return roleId
|
||||
*/
|
||||
@ApiModelProperty(required = true, value = "This field represents Role ID. Role can be created using 'Create new role' interface, and Role ID can be obtained from 'Get role list' interface.")
|
||||
@NotNull
|
||||
|
||||
|
||||
public String getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public CreateUserVo name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* User name should contain 1 to 128 characters. When creating cloud user, you should set TP-LINK ID.
|
||||
* @return name
|
||||
*/
|
||||
@ApiModelProperty(required = true, value = "User name should contain 1 to 128 characters. When creating cloud user, you should set TP-LINK ID.")
|
||||
@NotNull
|
||||
|
||||
@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public CreateUserVo password(String password) {
|
||||
this.password = password;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Password of local user should contain 8 to 128 characters. And password must be a combination of uppercase letters, lowercase letters, numbers, and special symbols. Symbols such as ! # $ % & * @ ^ are supported.
|
||||
* @return password
|
||||
*/
|
||||
@ApiModelProperty(value = "Password of local user should contain 8 to 128 characters. And password must be a combination of uppercase letters, lowercase letters, numbers, and special symbols. Symbols such as ! # $ % & * @ ^ are supported.")
|
||||
|
||||
@Pattern(regexp="^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[\\!\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\-\\./\\:\\;\\<\\=\\>\\@\\[\\\\\\]\\^\\_\\`\\{\\|\\}\\~])(?!.*[\\00-\\040\\042\\077\\0177]).{8,128}$")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public CreateUserVo email(String email) {
|
||||
this.email = email;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Email of user.
|
||||
* @return email
|
||||
*/
|
||||
@ApiModelProperty(value = "Email of user.")
|
||||
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public CreateUserVo alert(Boolean alert) {
|
||||
this.alert = alert;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether this user want to receive alert emails. Make sure your email is not null
|
||||
* @return alert
|
||||
*/
|
||||
@ApiModelProperty(value = "Whether this user want to receive alert emails. Make sure your email is not null")
|
||||
|
||||
|
||||
public Boolean getAlert() {
|
||||
return alert;
|
||||
}
|
||||
|
||||
public void setAlert(Boolean alert) {
|
||||
this.alert = alert;
|
||||
}
|
||||
|
||||
public CreateUserVo incidentNotification(Boolean incidentNotification) {
|
||||
this.incidentNotification = incidentNotification;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Incident notification
|
||||
* @return incidentNotification
|
||||
*/
|
||||
@ApiModelProperty(value = "Incident notification")
|
||||
|
||||
|
||||
public Boolean getIncidentNotification() {
|
||||
return incidentNotification;
|
||||
}
|
||||
|
||||
public void setIncidentNotification(Boolean incidentNotification) {
|
||||
this.incidentNotification = incidentNotification;
|
||||
}
|
||||
|
||||
public CreateUserVo sites(List<String> sites) {
|
||||
this.sites = sites;
|
||||
return this;
|
||||
}
|
||||
|
||||
public CreateUserVo addSitesItem(String sitesItem) {
|
||||
if (this.sites == null) {
|
||||
this.sites = new ArrayList<>();
|
||||
}
|
||||
this.sites.add(sitesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* User site privilege list
|
||||
* @return sites
|
||||
*/
|
||||
@ApiModelProperty(value = "User site privilege list")
|
||||
|
||||
|
||||
public List<String> getSites() {
|
||||
return sites;
|
||||
}
|
||||
|
||||
public void setSites(List<String> sites) {
|
||||
this.sites = sites;
|
||||
}
|
||||
|
||||
public CreateUserVo allSite(Boolean allSite) {
|
||||
this.allSite = allSite;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether user has all site permission, including new created site.
|
||||
* @return allSite
|
||||
*/
|
||||
@ApiModelProperty(required = true, value = "Whether user has all site permission, including new created site.")
|
||||
@NotNull
|
||||
|
||||
|
||||
public Boolean getAllSite() {
|
||||
return allSite;
|
||||
}
|
||||
|
||||
public void setAllSite(Boolean allSite) {
|
||||
this.allSite = allSite;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
CreateUserVo createUserVo = (CreateUserVo) o;
|
||||
return Objects.equals(this.type, createUserVo.type) &&
|
||||
Objects.equals(this.roleId, createUserVo.roleId) &&
|
||||
Objects.equals(this.name, createUserVo.name) &&
|
||||
Objects.equals(this.password, createUserVo.password) &&
|
||||
Objects.equals(this.email, createUserVo.email) &&
|
||||
Objects.equals(this.alert, createUserVo.alert) &&
|
||||
Objects.equals(this.incidentNotification, createUserVo.incidentNotification) &&
|
||||
Objects.equals(this.sites, createUserVo.sites) &&
|
||||
Objects.equals(this.allSite, createUserVo.allSite);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(type, roleId, name, password, email, alert, incidentNotification, sites, allSite);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CreateUserVo {\n");
|
||||
|
||||
sb.append(" type: ").append(toIndentedString(type)).append("\n");
|
||||
sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" email: ").append(toIndentedString(email)).append("\n");
|
||||
sb.append(" alert: ").append(toIndentedString(alert)).append("\n");
|
||||
sb.append(" incidentNotification: ").append(toIndentedString(incidentNotification)).append("\n");
|
||||
sb.append(" sites: ").append(toIndentedString(sites)).append("\n");
|
||||
sb.append(" allSite: ").append(toIndentedString(allSite)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* DeleteUserVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class DeleteUserVo {
|
||||
@JsonProperty("forceDelete")
|
||||
private Boolean forceDelete;
|
||||
|
||||
public DeleteUserVo forceDelete(Boolean forceDelete) {
|
||||
this.forceDelete = forceDelete;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Force delete target user. If false, target user can not be deleted, when target user has child users. If true, target user will be deleted anyway. Target user's child users will be root's child user.
|
||||
* @return forceDelete
|
||||
*/
|
||||
@ApiModelProperty(value = "Force delete target user. If false, target user can not be deleted, when target user has child users. If true, target user will be deleted anyway. Target user's child users will be root's child user.")
|
||||
|
||||
|
||||
public Boolean getForceDelete() {
|
||||
return forceDelete;
|
||||
}
|
||||
|
||||
public void setForceDelete(Boolean forceDelete) {
|
||||
this.forceDelete = forceDelete;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
DeleteUserVo deleteUserVo = (DeleteUserVo) o;
|
||||
return Objects.equals(this.forceDelete, deleteUserVo.forceDelete);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(forceDelete);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class DeleteUserVo {\n");
|
||||
|
||||
sb.append(" forceDelete: ").append(toIndentedString(forceDelete)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,228 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* ExternalUserDetailOpenApiVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class ExternalUserDetailOpenApiVo {
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@JsonProperty("idpId")
|
||||
private String idpId;
|
||||
|
||||
@JsonProperty("idpName")
|
||||
private String idpName;
|
||||
|
||||
@JsonProperty("roleId")
|
||||
private String roleId;
|
||||
|
||||
@JsonProperty("roleName")
|
||||
private String roleName;
|
||||
|
||||
@JsonProperty("privilege")
|
||||
private PrivilegeOpenApiVo privilege;
|
||||
|
||||
public ExternalUserDetailOpenApiVo id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* External user ID.
|
||||
* @return id
|
||||
*/
|
||||
@ApiModelProperty(value = "External user ID.")
|
||||
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public ExternalUserDetailOpenApiVo name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* External user name.
|
||||
* @return name
|
||||
*/
|
||||
@ApiModelProperty(value = "External user name.")
|
||||
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ExternalUserDetailOpenApiVo idpId(String idpId) {
|
||||
this.idpId = idpId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The ID of IdP which is used by this user.
|
||||
* @return idpId
|
||||
*/
|
||||
@ApiModelProperty(value = "The ID of IdP which is used by this user.")
|
||||
|
||||
|
||||
public String getIdpId() {
|
||||
return idpId;
|
||||
}
|
||||
|
||||
public void setIdpId(String idpId) {
|
||||
this.idpId = idpId;
|
||||
}
|
||||
|
||||
public ExternalUserDetailOpenApiVo idpName(String idpName) {
|
||||
this.idpName = idpName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of IdP which is used by this user.
|
||||
* @return idpName
|
||||
*/
|
||||
@ApiModelProperty(value = "The name of IdP which is used by this user.")
|
||||
|
||||
|
||||
public String getIdpName() {
|
||||
return idpName;
|
||||
}
|
||||
|
||||
public void setIdpName(String idpName) {
|
||||
this.idpName = idpName;
|
||||
}
|
||||
|
||||
public ExternalUserDetailOpenApiVo roleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The ID of role which is used by this user.
|
||||
* @return roleId
|
||||
*/
|
||||
@ApiModelProperty(value = "The ID of role which is used by this user.")
|
||||
|
||||
|
||||
public String getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public ExternalUserDetailOpenApiVo roleName(String roleName) {
|
||||
this.roleName = roleName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of role which is used by this user.
|
||||
* @return roleName
|
||||
*/
|
||||
@ApiModelProperty(value = "The name of role which is used by this user.")
|
||||
|
||||
|
||||
public String getRoleName() {
|
||||
return roleName;
|
||||
}
|
||||
|
||||
public void setRoleName(String roleName) {
|
||||
this.roleName = roleName;
|
||||
}
|
||||
|
||||
public ExternalUserDetailOpenApiVo privilege(PrivilegeOpenApiVo privilege) {
|
||||
this.privilege = privilege;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get privilege
|
||||
* @return privilege
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public PrivilegeOpenApiVo getPrivilege() {
|
||||
return privilege;
|
||||
}
|
||||
|
||||
public void setPrivilege(PrivilegeOpenApiVo privilege) {
|
||||
this.privilege = privilege;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ExternalUserDetailOpenApiVo externalUserDetailOpenApiVo = (ExternalUserDetailOpenApiVo) o;
|
||||
return Objects.equals(this.id, externalUserDetailOpenApiVo.id) &&
|
||||
Objects.equals(this.name, externalUserDetailOpenApiVo.name) &&
|
||||
Objects.equals(this.idpId, externalUserDetailOpenApiVo.idpId) &&
|
||||
Objects.equals(this.idpName, externalUserDetailOpenApiVo.idpName) &&
|
||||
Objects.equals(this.roleId, externalUserDetailOpenApiVo.roleId) &&
|
||||
Objects.equals(this.roleName, externalUserDetailOpenApiVo.roleName) &&
|
||||
Objects.equals(this.privilege, externalUserDetailOpenApiVo.privilege);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, name, idpId, idpName, roleId, roleName, privilege);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ExternalUserDetailOpenApiVo {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" idpId: ").append(toIndentedString(idpId)).append("\n");
|
||||
sb.append(" idpName: ").append(toIndentedString(idpName)).append("\n");
|
||||
sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n");
|
||||
sb.append(" roleName: ").append(toIndentedString(roleName)).append("\n");
|
||||
sb.append(" privilege: ").append(toIndentedString(privilege)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,239 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* ExternalUserGroupDetailOpenApiVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class ExternalUserGroupDetailOpenApiVo {
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@JsonProperty("roleId")
|
||||
private String roleId;
|
||||
|
||||
@JsonProperty("roleName")
|
||||
private String roleName;
|
||||
|
||||
@JsonProperty("roleType")
|
||||
private Integer roleType;
|
||||
|
||||
@JsonProperty("allSite")
|
||||
private Boolean allSite;
|
||||
|
||||
@JsonProperty("sites")
|
||||
@Valid
|
||||
private List<SiteInfoOpenApiVo> sites = null;
|
||||
|
||||
public ExternalUserGroupDetailOpenApiVo id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* External user group ID.
|
||||
* @return id
|
||||
*/
|
||||
@ApiModelProperty(value = "External user group ID.")
|
||||
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public ExternalUserGroupDetailOpenApiVo name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* External user group name.
|
||||
* @return name
|
||||
*/
|
||||
@ApiModelProperty(value = "External user group name.")
|
||||
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ExternalUserGroupDetailOpenApiVo roleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Role ID.
|
||||
* @return roleId
|
||||
*/
|
||||
@ApiModelProperty(value = "Role ID.")
|
||||
|
||||
|
||||
public String getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public ExternalUserGroupDetailOpenApiVo roleName(String roleName) {
|
||||
this.roleName = roleName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Role name.
|
||||
* @return roleName
|
||||
*/
|
||||
@ApiModelProperty(value = "Role name.")
|
||||
|
||||
|
||||
public String getRoleName() {
|
||||
return roleName;
|
||||
}
|
||||
|
||||
public void setRoleName(String roleName) {
|
||||
this.roleName = roleName;
|
||||
}
|
||||
|
||||
public ExternalUserGroupDetailOpenApiVo roleType(Integer roleType) {
|
||||
this.roleType = roleType;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Role type. It should be a value as follows: 0: standard, 1: customer, 2: msp.
|
||||
* @return roleType
|
||||
*/
|
||||
@ApiModelProperty(value = "Role type. It should be a value as follows: 0: standard, 1: customer, 2: msp.")
|
||||
|
||||
|
||||
public Integer getRoleType() {
|
||||
return roleType;
|
||||
}
|
||||
|
||||
public void setRoleType(Integer roleType) {
|
||||
this.roleType = roleType;
|
||||
}
|
||||
|
||||
public ExternalUserGroupDetailOpenApiVo allSite(Boolean allSite) {
|
||||
this.allSite = allSite;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether having all site permissions.
|
||||
* @return allSite
|
||||
*/
|
||||
@ApiModelProperty(value = "Whether having all site permissions.")
|
||||
|
||||
|
||||
public Boolean getAllSite() {
|
||||
return allSite;
|
||||
}
|
||||
|
||||
public void setAllSite(Boolean allSite) {
|
||||
this.allSite = allSite;
|
||||
}
|
||||
|
||||
public ExternalUserGroupDetailOpenApiVo sites(List<SiteInfoOpenApiVo> sites) {
|
||||
this.sites = sites;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ExternalUserGroupDetailOpenApiVo addSitesItem(SiteInfoOpenApiVo sitesItem) {
|
||||
if (this.sites == null) {
|
||||
this.sites = new ArrayList<>();
|
||||
}
|
||||
this.sites.add(sitesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The sites which can be accessed.
|
||||
* @return sites
|
||||
*/
|
||||
@ApiModelProperty(value = "The sites which can be accessed.")
|
||||
|
||||
@Valid
|
||||
|
||||
public List<SiteInfoOpenApiVo> getSites() {
|
||||
return sites;
|
||||
}
|
||||
|
||||
public void setSites(List<SiteInfoOpenApiVo> sites) {
|
||||
this.sites = sites;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ExternalUserGroupDetailOpenApiVo externalUserGroupDetailOpenApiVo = (ExternalUserGroupDetailOpenApiVo) o;
|
||||
return Objects.equals(this.id, externalUserGroupDetailOpenApiVo.id) &&
|
||||
Objects.equals(this.name, externalUserGroupDetailOpenApiVo.name) &&
|
||||
Objects.equals(this.roleId, externalUserGroupDetailOpenApiVo.roleId) &&
|
||||
Objects.equals(this.roleName, externalUserGroupDetailOpenApiVo.roleName) &&
|
||||
Objects.equals(this.roleType, externalUserGroupDetailOpenApiVo.roleType) &&
|
||||
Objects.equals(this.allSite, externalUserGroupDetailOpenApiVo.allSite) &&
|
||||
Objects.equals(this.sites, externalUserGroupDetailOpenApiVo.sites);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, name, roleId, roleName, roleType, allSite, sites);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ExternalUserGroupDetailOpenApiVo {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n");
|
||||
sb.append(" roleName: ").append(toIndentedString(roleName)).append("\n");
|
||||
sb.append(" roleType: ").append(toIndentedString(roleType)).append("\n");
|
||||
sb.append(" allSite: ").append(toIndentedString(allSite)).append("\n");
|
||||
sb.append(" sites: ").append(toIndentedString(sites)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,168 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* ExternalUserGroupOpenApiVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class ExternalUserGroupOpenApiVo {
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@JsonProperty("roleId")
|
||||
private String roleId;
|
||||
|
||||
@JsonProperty("allSite")
|
||||
private Boolean allSite;
|
||||
|
||||
@JsonProperty("sites")
|
||||
@Valid
|
||||
private List<String> sites = null;
|
||||
|
||||
public ExternalUserGroupOpenApiVo name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* External user group name should contain 1 to 128 characters.
|
||||
* @return name
|
||||
*/
|
||||
@ApiModelProperty(required = true, value = "External user group name should contain 1 to 128 characters.")
|
||||
@NotNull
|
||||
|
||||
@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ExternalUserGroupOpenApiVo roleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Role ID which can be obtained from 'Get role list' interface.
|
||||
* @return roleId
|
||||
*/
|
||||
@ApiModelProperty(required = true, value = "Role ID which can be obtained from 'Get role list' interface.")
|
||||
@NotNull
|
||||
|
||||
|
||||
public String getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public ExternalUserGroupOpenApiVo allSite(Boolean allSite) {
|
||||
this.allSite = allSite;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether having all site permissions.
|
||||
* @return allSite
|
||||
*/
|
||||
@ApiModelProperty(required = true, value = "Whether having all site permissions.")
|
||||
@NotNull
|
||||
|
||||
|
||||
public Boolean getAllSite() {
|
||||
return allSite;
|
||||
}
|
||||
|
||||
public void setAllSite(Boolean allSite) {
|
||||
this.allSite = allSite;
|
||||
}
|
||||
|
||||
public ExternalUserGroupOpenApiVo sites(List<String> sites) {
|
||||
this.sites = sites;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ExternalUserGroupOpenApiVo addSitesItem(String sitesItem) {
|
||||
if (this.sites == null) {
|
||||
this.sites = new ArrayList<>();
|
||||
}
|
||||
this.sites.add(sitesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The site IDs that can be accessed. Effective when allSite is false.
|
||||
* @return sites
|
||||
*/
|
||||
@ApiModelProperty(value = "The site IDs that can be accessed. Effective when allSite is false.")
|
||||
|
||||
|
||||
public List<String> getSites() {
|
||||
return sites;
|
||||
}
|
||||
|
||||
public void setSites(List<String> sites) {
|
||||
this.sites = sites;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ExternalUserGroupOpenApiVo externalUserGroupOpenApiVo = (ExternalUserGroupOpenApiVo) o;
|
||||
return Objects.equals(this.name, externalUserGroupOpenApiVo.name) &&
|
||||
Objects.equals(this.roleId, externalUserGroupOpenApiVo.roleId) &&
|
||||
Objects.equals(this.allSite, externalUserGroupOpenApiVo.allSite) &&
|
||||
Objects.equals(this.sites, externalUserGroupOpenApiVo.sites);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(name, roleId, allSite, sites);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ExternalUserGroupOpenApiVo {\n");
|
||||
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n");
|
||||
sb.append(" allSite: ").append(toIndentedString(allSite)).append("\n");
|
||||
sb.append(" sites: ").append(toIndentedString(sites)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,164 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* GridVoExternalUserDetailOpenApiVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class GridVoExternalUserDetailOpenApiVo {
|
||||
@JsonProperty("totalRows")
|
||||
private Long totalRows;
|
||||
|
||||
@JsonProperty("currentPage")
|
||||
private Integer currentPage;
|
||||
|
||||
@JsonProperty("currentSize")
|
||||
private Integer currentSize;
|
||||
|
||||
@JsonProperty("data")
|
||||
@Valid
|
||||
private List<ExternalUserDetailOpenApiVo> data = null;
|
||||
|
||||
public GridVoExternalUserDetailOpenApiVo totalRows(Long totalRows) {
|
||||
this.totalRows = totalRows;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Total rows of all items.
|
||||
* @return totalRows
|
||||
*/
|
||||
@ApiModelProperty(value = "Total rows of all items.")
|
||||
|
||||
|
||||
public Long getTotalRows() {
|
||||
return totalRows;
|
||||
}
|
||||
|
||||
public void setTotalRows(Long totalRows) {
|
||||
this.totalRows = totalRows;
|
||||
}
|
||||
|
||||
public GridVoExternalUserDetailOpenApiVo currentPage(Integer currentPage) {
|
||||
this.currentPage = currentPage;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Current page number.
|
||||
* @return currentPage
|
||||
*/
|
||||
@ApiModelProperty(value = "Current page number.")
|
||||
|
||||
|
||||
public Integer getCurrentPage() {
|
||||
return currentPage;
|
||||
}
|
||||
|
||||
public void setCurrentPage(Integer currentPage) {
|
||||
this.currentPage = currentPage;
|
||||
}
|
||||
|
||||
public GridVoExternalUserDetailOpenApiVo currentSize(Integer currentSize) {
|
||||
this.currentSize = currentSize;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Number of entries per page.
|
||||
* @return currentSize
|
||||
*/
|
||||
@ApiModelProperty(value = "Number of entries per page.")
|
||||
|
||||
|
||||
public Integer getCurrentSize() {
|
||||
return currentSize;
|
||||
}
|
||||
|
||||
public void setCurrentSize(Integer currentSize) {
|
||||
this.currentSize = currentSize;
|
||||
}
|
||||
|
||||
public GridVoExternalUserDetailOpenApiVo data(List<ExternalUserDetailOpenApiVo> data) {
|
||||
this.data = data;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GridVoExternalUserDetailOpenApiVo addDataItem(ExternalUserDetailOpenApiVo dataItem) {
|
||||
if (this.data == null) {
|
||||
this.data = new ArrayList<>();
|
||||
}
|
||||
this.data.add(dataItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get data
|
||||
* @return data
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public List<ExternalUserDetailOpenApiVo> getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<ExternalUserDetailOpenApiVo> data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GridVoExternalUserDetailOpenApiVo gridVoExternalUserDetailOpenApiVo = (GridVoExternalUserDetailOpenApiVo) o;
|
||||
return Objects.equals(this.totalRows, gridVoExternalUserDetailOpenApiVo.totalRows) &&
|
||||
Objects.equals(this.currentPage, gridVoExternalUserDetailOpenApiVo.currentPage) &&
|
||||
Objects.equals(this.currentSize, gridVoExternalUserDetailOpenApiVo.currentSize) &&
|
||||
Objects.equals(this.data, gridVoExternalUserDetailOpenApiVo.data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(totalRows, currentPage, currentSize, data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class GridVoExternalUserDetailOpenApiVo {\n");
|
||||
|
||||
sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n");
|
||||
sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n");
|
||||
sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n");
|
||||
sb.append(" data: ").append(toIndentedString(data)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,164 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* GridVoExternalUserGroupDetailOpenApiVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class GridVoExternalUserGroupDetailOpenApiVo {
|
||||
@JsonProperty("totalRows")
|
||||
private Long totalRows;
|
||||
|
||||
@JsonProperty("currentPage")
|
||||
private Integer currentPage;
|
||||
|
||||
@JsonProperty("currentSize")
|
||||
private Integer currentSize;
|
||||
|
||||
@JsonProperty("data")
|
||||
@Valid
|
||||
private List<ExternalUserGroupDetailOpenApiVo> data = null;
|
||||
|
||||
public GridVoExternalUserGroupDetailOpenApiVo totalRows(Long totalRows) {
|
||||
this.totalRows = totalRows;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Total rows of all items.
|
||||
* @return totalRows
|
||||
*/
|
||||
@ApiModelProperty(value = "Total rows of all items.")
|
||||
|
||||
|
||||
public Long getTotalRows() {
|
||||
return totalRows;
|
||||
}
|
||||
|
||||
public void setTotalRows(Long totalRows) {
|
||||
this.totalRows = totalRows;
|
||||
}
|
||||
|
||||
public GridVoExternalUserGroupDetailOpenApiVo currentPage(Integer currentPage) {
|
||||
this.currentPage = currentPage;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Current page number.
|
||||
* @return currentPage
|
||||
*/
|
||||
@ApiModelProperty(value = "Current page number.")
|
||||
|
||||
|
||||
public Integer getCurrentPage() {
|
||||
return currentPage;
|
||||
}
|
||||
|
||||
public void setCurrentPage(Integer currentPage) {
|
||||
this.currentPage = currentPage;
|
||||
}
|
||||
|
||||
public GridVoExternalUserGroupDetailOpenApiVo currentSize(Integer currentSize) {
|
||||
this.currentSize = currentSize;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Number of entries per page.
|
||||
* @return currentSize
|
||||
*/
|
||||
@ApiModelProperty(value = "Number of entries per page.")
|
||||
|
||||
|
||||
public Integer getCurrentSize() {
|
||||
return currentSize;
|
||||
}
|
||||
|
||||
public void setCurrentSize(Integer currentSize) {
|
||||
this.currentSize = currentSize;
|
||||
}
|
||||
|
||||
public GridVoExternalUserGroupDetailOpenApiVo data(List<ExternalUserGroupDetailOpenApiVo> data) {
|
||||
this.data = data;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GridVoExternalUserGroupDetailOpenApiVo addDataItem(ExternalUserGroupDetailOpenApiVo dataItem) {
|
||||
if (this.data == null) {
|
||||
this.data = new ArrayList<>();
|
||||
}
|
||||
this.data.add(dataItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get data
|
||||
* @return data
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public List<ExternalUserGroupDetailOpenApiVo> getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<ExternalUserGroupDetailOpenApiVo> data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GridVoExternalUserGroupDetailOpenApiVo gridVoExternalUserGroupDetailOpenApiVo = (GridVoExternalUserGroupDetailOpenApiVo) o;
|
||||
return Objects.equals(this.totalRows, gridVoExternalUserGroupDetailOpenApiVo.totalRows) &&
|
||||
Objects.equals(this.currentPage, gridVoExternalUserGroupDetailOpenApiVo.currentPage) &&
|
||||
Objects.equals(this.currentSize, gridVoExternalUserGroupDetailOpenApiVo.currentSize) &&
|
||||
Objects.equals(this.data, gridVoExternalUserGroupDetailOpenApiVo.data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(totalRows, currentPage, currentSize, data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class GridVoExternalUserGroupDetailOpenApiVo {\n");
|
||||
|
||||
sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n");
|
||||
sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n");
|
||||
sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n");
|
||||
sb.append(" data: ").append(toIndentedString(data)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,164 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* GridVoIdpMetadataDetailOpenApiVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class GridVoIdpMetadataDetailOpenApiVo {
|
||||
@JsonProperty("totalRows")
|
||||
private Long totalRows;
|
||||
|
||||
@JsonProperty("currentPage")
|
||||
private Integer currentPage;
|
||||
|
||||
@JsonProperty("currentSize")
|
||||
private Integer currentSize;
|
||||
|
||||
@JsonProperty("data")
|
||||
@Valid
|
||||
private List<IdpMetadataDetailOpenApiVo> data = null;
|
||||
|
||||
public GridVoIdpMetadataDetailOpenApiVo totalRows(Long totalRows) {
|
||||
this.totalRows = totalRows;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Total rows of all items.
|
||||
* @return totalRows
|
||||
*/
|
||||
@ApiModelProperty(value = "Total rows of all items.")
|
||||
|
||||
|
||||
public Long getTotalRows() {
|
||||
return totalRows;
|
||||
}
|
||||
|
||||
public void setTotalRows(Long totalRows) {
|
||||
this.totalRows = totalRows;
|
||||
}
|
||||
|
||||
public GridVoIdpMetadataDetailOpenApiVo currentPage(Integer currentPage) {
|
||||
this.currentPage = currentPage;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Current page number.
|
||||
* @return currentPage
|
||||
*/
|
||||
@ApiModelProperty(value = "Current page number.")
|
||||
|
||||
|
||||
public Integer getCurrentPage() {
|
||||
return currentPage;
|
||||
}
|
||||
|
||||
public void setCurrentPage(Integer currentPage) {
|
||||
this.currentPage = currentPage;
|
||||
}
|
||||
|
||||
public GridVoIdpMetadataDetailOpenApiVo currentSize(Integer currentSize) {
|
||||
this.currentSize = currentSize;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Number of entries per page.
|
||||
* @return currentSize
|
||||
*/
|
||||
@ApiModelProperty(value = "Number of entries per page.")
|
||||
|
||||
|
||||
public Integer getCurrentSize() {
|
||||
return currentSize;
|
||||
}
|
||||
|
||||
public void setCurrentSize(Integer currentSize) {
|
||||
this.currentSize = currentSize;
|
||||
}
|
||||
|
||||
public GridVoIdpMetadataDetailOpenApiVo data(List<IdpMetadataDetailOpenApiVo> data) {
|
||||
this.data = data;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GridVoIdpMetadataDetailOpenApiVo addDataItem(IdpMetadataDetailOpenApiVo dataItem) {
|
||||
if (this.data == null) {
|
||||
this.data = new ArrayList<>();
|
||||
}
|
||||
this.data.add(dataItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get data
|
||||
* @return data
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public List<IdpMetadataDetailOpenApiVo> getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<IdpMetadataDetailOpenApiVo> data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GridVoIdpMetadataDetailOpenApiVo gridVoIdpMetadataDetailOpenApiVo = (GridVoIdpMetadataDetailOpenApiVo) o;
|
||||
return Objects.equals(this.totalRows, gridVoIdpMetadataDetailOpenApiVo.totalRows) &&
|
||||
Objects.equals(this.currentPage, gridVoIdpMetadataDetailOpenApiVo.currentPage) &&
|
||||
Objects.equals(this.currentSize, gridVoIdpMetadataDetailOpenApiVo.currentSize) &&
|
||||
Objects.equals(this.data, gridVoIdpMetadataDetailOpenApiVo.data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(totalRows, currentPage, currentSize, data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class GridVoIdpMetadataDetailOpenApiVo {\n");
|
||||
|
||||
sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n");
|
||||
sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n");
|
||||
sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n");
|
||||
sb.append(" data: ").append(toIndentedString(data)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,164 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* GridVoUserDetailVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class GridVoUserDetailVo {
|
||||
@JsonProperty("totalRows")
|
||||
private Long totalRows;
|
||||
|
||||
@JsonProperty("currentPage")
|
||||
private Integer currentPage;
|
||||
|
||||
@JsonProperty("currentSize")
|
||||
private Integer currentSize;
|
||||
|
||||
@JsonProperty("data")
|
||||
@Valid
|
||||
private List<UserDetailVo> data = null;
|
||||
|
||||
public GridVoUserDetailVo totalRows(Long totalRows) {
|
||||
this.totalRows = totalRows;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Total rows of all items.
|
||||
* @return totalRows
|
||||
*/
|
||||
@ApiModelProperty(value = "Total rows of all items.")
|
||||
|
||||
|
||||
public Long getTotalRows() {
|
||||
return totalRows;
|
||||
}
|
||||
|
||||
public void setTotalRows(Long totalRows) {
|
||||
this.totalRows = totalRows;
|
||||
}
|
||||
|
||||
public GridVoUserDetailVo currentPage(Integer currentPage) {
|
||||
this.currentPage = currentPage;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Current page number.
|
||||
* @return currentPage
|
||||
*/
|
||||
@ApiModelProperty(value = "Current page number.")
|
||||
|
||||
|
||||
public Integer getCurrentPage() {
|
||||
return currentPage;
|
||||
}
|
||||
|
||||
public void setCurrentPage(Integer currentPage) {
|
||||
this.currentPage = currentPage;
|
||||
}
|
||||
|
||||
public GridVoUserDetailVo currentSize(Integer currentSize) {
|
||||
this.currentSize = currentSize;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Number of entries per page.
|
||||
* @return currentSize
|
||||
*/
|
||||
@ApiModelProperty(value = "Number of entries per page.")
|
||||
|
||||
|
||||
public Integer getCurrentSize() {
|
||||
return currentSize;
|
||||
}
|
||||
|
||||
public void setCurrentSize(Integer currentSize) {
|
||||
this.currentSize = currentSize;
|
||||
}
|
||||
|
||||
public GridVoUserDetailVo data(List<UserDetailVo> data) {
|
||||
this.data = data;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GridVoUserDetailVo addDataItem(UserDetailVo dataItem) {
|
||||
if (this.data == null) {
|
||||
this.data = new ArrayList<>();
|
||||
}
|
||||
this.data.add(dataItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get data
|
||||
* @return data
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public List<UserDetailVo> getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<UserDetailVo> data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GridVoUserDetailVo gridVoUserDetailVo = (GridVoUserDetailVo) o;
|
||||
return Objects.equals(this.totalRows, gridVoUserDetailVo.totalRows) &&
|
||||
Objects.equals(this.currentPage, gridVoUserDetailVo.currentPage) &&
|
||||
Objects.equals(this.currentSize, gridVoUserDetailVo.currentSize) &&
|
||||
Objects.equals(this.data, gridVoUserDetailVo.data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(totalRows, currentPage, currentSize, data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class GridVoUserDetailVo {\n");
|
||||
|
||||
sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n");
|
||||
sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n");
|
||||
sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n");
|
||||
sb.append(" data: ").append(toIndentedString(data)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,251 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* IdpMetadataDetailOpenApiVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class IdpMetadataDetailOpenApiVo {
|
||||
@JsonProperty("idpId")
|
||||
private String idpId;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@JsonProperty("description")
|
||||
private String description;
|
||||
|
||||
@JsonProperty("entityId")
|
||||
private String entityId;
|
||||
|
||||
@JsonProperty("loginUrl")
|
||||
private String loginUrl;
|
||||
|
||||
@JsonProperty("x509Certificate")
|
||||
private String x509Certificate;
|
||||
|
||||
@JsonProperty("entityUrl")
|
||||
private String entityUrl;
|
||||
|
||||
@JsonProperty("signOnUrl")
|
||||
private String signOnUrl;
|
||||
|
||||
public IdpMetadataDetailOpenApiVo idpId(String idpId) {
|
||||
this.idpId = idpId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* IdP ID(resource ID).
|
||||
* @return idpId
|
||||
*/
|
||||
@ApiModelProperty(value = "IdP ID(resource ID).")
|
||||
|
||||
|
||||
public String getIdpId() {
|
||||
return idpId;
|
||||
}
|
||||
|
||||
public void setIdpId(String idpId) {
|
||||
this.idpId = idpId;
|
||||
}
|
||||
|
||||
public IdpMetadataDetailOpenApiVo name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* IdP name.
|
||||
* @return name
|
||||
*/
|
||||
@ApiModelProperty(value = "IdP name.")
|
||||
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public IdpMetadataDetailOpenApiVo description(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Description.
|
||||
* @return description
|
||||
*/
|
||||
@ApiModelProperty(value = "Description.")
|
||||
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public IdpMetadataDetailOpenApiVo entityId(String entityId) {
|
||||
this.entityId = entityId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The IdP entity ID which must be unique in same Omadac.
|
||||
* @return entityId
|
||||
*/
|
||||
@ApiModelProperty(value = "The IdP entity ID which must be unique in same Omadac.")
|
||||
|
||||
|
||||
public String getEntityId() {
|
||||
return entityId;
|
||||
}
|
||||
|
||||
public void setEntityId(String entityId) {
|
||||
this.entityId = entityId;
|
||||
}
|
||||
|
||||
public IdpMetadataDetailOpenApiVo loginUrl(String loginUrl) {
|
||||
this.loginUrl = loginUrl;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Login url.
|
||||
* @return loginUrl
|
||||
*/
|
||||
@ApiModelProperty(value = "Login url.")
|
||||
|
||||
|
||||
public String getLoginUrl() {
|
||||
return loginUrl;
|
||||
}
|
||||
|
||||
public void setLoginUrl(String loginUrl) {
|
||||
this.loginUrl = loginUrl;
|
||||
}
|
||||
|
||||
public IdpMetadataDetailOpenApiVo x509Certificate(String x509Certificate) {
|
||||
this.x509Certificate = x509Certificate;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* BASE64 encoded string of x509 certificate.
|
||||
* @return x509Certificate
|
||||
*/
|
||||
@ApiModelProperty(value = "BASE64 encoded string of x509 certificate.")
|
||||
|
||||
|
||||
public String getX509Certificate() {
|
||||
return x509Certificate;
|
||||
}
|
||||
|
||||
public void setX509Certificate(String x509Certificate) {
|
||||
this.x509Certificate = x509Certificate;
|
||||
}
|
||||
|
||||
public IdpMetadataDetailOpenApiVo entityUrl(String entityUrl) {
|
||||
this.entityUrl = entityUrl;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Entity url.
|
||||
* @return entityUrl
|
||||
*/
|
||||
@ApiModelProperty(value = "Entity url.")
|
||||
|
||||
|
||||
public String getEntityUrl() {
|
||||
return entityUrl;
|
||||
}
|
||||
|
||||
public void setEntityUrl(String entityUrl) {
|
||||
this.entityUrl = entityUrl;
|
||||
}
|
||||
|
||||
public IdpMetadataDetailOpenApiVo signOnUrl(String signOnUrl) {
|
||||
this.signOnUrl = signOnUrl;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sign On url.
|
||||
* @return signOnUrl
|
||||
*/
|
||||
@ApiModelProperty(value = "Sign On url.")
|
||||
|
||||
|
||||
public String getSignOnUrl() {
|
||||
return signOnUrl;
|
||||
}
|
||||
|
||||
public void setSignOnUrl(String signOnUrl) {
|
||||
this.signOnUrl = signOnUrl;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
IdpMetadataDetailOpenApiVo idpMetadataDetailOpenApiVo = (IdpMetadataDetailOpenApiVo) o;
|
||||
return Objects.equals(this.idpId, idpMetadataDetailOpenApiVo.idpId) &&
|
||||
Objects.equals(this.name, idpMetadataDetailOpenApiVo.name) &&
|
||||
Objects.equals(this.description, idpMetadataDetailOpenApiVo.description) &&
|
||||
Objects.equals(this.entityId, idpMetadataDetailOpenApiVo.entityId) &&
|
||||
Objects.equals(this.loginUrl, idpMetadataDetailOpenApiVo.loginUrl) &&
|
||||
Objects.equals(this.x509Certificate, idpMetadataDetailOpenApiVo.x509Certificate) &&
|
||||
Objects.equals(this.entityUrl, idpMetadataDetailOpenApiVo.entityUrl) &&
|
||||
Objects.equals(this.signOnUrl, idpMetadataDetailOpenApiVo.signOnUrl);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(idpId, name, description, entityId, loginUrl, x509Certificate, entityUrl, signOnUrl);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class IdpMetadataDetailOpenApiVo {\n");
|
||||
|
||||
sb.append(" idpId: ").append(toIndentedString(idpId)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
||||
sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n");
|
||||
sb.append(" loginUrl: ").append(toIndentedString(loginUrl)).append("\n");
|
||||
sb.append(" x509Certificate: ").append(toIndentedString(x509Certificate)).append("\n");
|
||||
sb.append(" entityUrl: ").append(toIndentedString(entityUrl)).append("\n");
|
||||
sb.append(" signOnUrl: ").append(toIndentedString(signOnUrl)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,182 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* IdpMetadataOpenApiVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class IdpMetadataOpenApiVo {
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@JsonProperty("description")
|
||||
private String description;
|
||||
|
||||
@JsonProperty("entityId")
|
||||
private String entityId;
|
||||
|
||||
@JsonProperty("loginUrl")
|
||||
private String loginUrl;
|
||||
|
||||
@JsonProperty("x509Certificate")
|
||||
private String x509Certificate;
|
||||
|
||||
public IdpMetadataOpenApiVo name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* IdP name should contain 1 to 32 characters.
|
||||
* @return name
|
||||
*/
|
||||
@ApiModelProperty(required = true, value = "IdP name should contain 1 to 32 characters.")
|
||||
@NotNull
|
||||
|
||||
@Pattern(regexp="^[^ ]$|^[^ ].{0,30}[^ ]$")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public IdpMetadataOpenApiVo description(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* IdP description should contain 0 to 128 characters.
|
||||
* @return description
|
||||
*/
|
||||
@ApiModelProperty(value = "IdP description should contain 0 to 128 characters.")
|
||||
|
||||
@Pattern(regexp="^$|^[^ ]$|^[^ ].{0,126}[^ ]$")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public IdpMetadataOpenApiVo entityId(String entityId) {
|
||||
this.entityId = entityId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The IdP entity id which must be unique in same Omadac.
|
||||
* @return entityId
|
||||
*/
|
||||
@ApiModelProperty(required = true, value = "The IdP entity id which must be unique in same Omadac.")
|
||||
@NotNull
|
||||
|
||||
@Pattern(regexp="^(?=^.{3,255}$)(http(s)?://)(www\\.)?[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+(:\\d+)*(/[\\w-]*(\\.[\\w-]+)?)*([\\?&][\\w-]+=[\\w-]*)*$")
|
||||
public String getEntityId() {
|
||||
return entityId;
|
||||
}
|
||||
|
||||
public void setEntityId(String entityId) {
|
||||
this.entityId = entityId;
|
||||
}
|
||||
|
||||
public IdpMetadataOpenApiVo loginUrl(String loginUrl) {
|
||||
this.loginUrl = loginUrl;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Login url
|
||||
* @return loginUrl
|
||||
*/
|
||||
@ApiModelProperty(required = true, value = "Login url")
|
||||
@NotNull
|
||||
|
||||
@Pattern(regexp="^(?=^.{3,255}$)(http(s)?://)(www\\.)?[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+(:\\d+)*(/[\\w-]*(\\.[\\w-]+)?)*([\\?&][\\w-]+=[\\w-]*)*$")
|
||||
public String getLoginUrl() {
|
||||
return loginUrl;
|
||||
}
|
||||
|
||||
public void setLoginUrl(String loginUrl) {
|
||||
this.loginUrl = loginUrl;
|
||||
}
|
||||
|
||||
public IdpMetadataOpenApiVo x509Certificate(String x509Certificate) {
|
||||
this.x509Certificate = x509Certificate;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* BASE64 encoded string of x509 certificate.
|
||||
* @return x509Certificate
|
||||
*/
|
||||
@ApiModelProperty(required = true, value = "BASE64 encoded string of x509 certificate.")
|
||||
@NotNull
|
||||
|
||||
|
||||
public String getX509Certificate() {
|
||||
return x509Certificate;
|
||||
}
|
||||
|
||||
public void setX509Certificate(String x509Certificate) {
|
||||
this.x509Certificate = x509Certificate;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
IdpMetadataOpenApiVo idpMetadataOpenApiVo = (IdpMetadataOpenApiVo) o;
|
||||
return Objects.equals(this.name, idpMetadataOpenApiVo.name) &&
|
||||
Objects.equals(this.description, idpMetadataOpenApiVo.description) &&
|
||||
Objects.equals(this.entityId, idpMetadataOpenApiVo.entityId) &&
|
||||
Objects.equals(this.loginUrl, idpMetadataOpenApiVo.loginUrl) &&
|
||||
Objects.equals(this.x509Certificate, idpMetadataOpenApiVo.x509Certificate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(name, description, entityId, loginUrl, x509Certificate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class IdpMetadataOpenApiVo {\n");
|
||||
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
||||
sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n");
|
||||
sb.append(" loginUrl: ").append(toIndentedString(loginUrl)).append("\n");
|
||||
sb.append(" x509Certificate: ").append(toIndentedString(x509Certificate)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* ModifyControllerRoleVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class ModifyControllerRoleVo {
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@JsonProperty("privilege")
|
||||
private ControllerRoleVo privilege;
|
||||
|
||||
public ModifyControllerRoleVo name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Role name should contain 1 to 128 characters.
|
||||
* @return name
|
||||
*/
|
||||
@ApiModelProperty(required = true, value = "Role name should contain 1 to 128 characters.")
|
||||
@NotNull
|
||||
|
||||
@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ModifyControllerRoleVo privilege(ControllerRoleVo privilege) {
|
||||
this.privilege = privilege;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get privilege
|
||||
* @return privilege
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public ControllerRoleVo getPrivilege() {
|
||||
return privilege;
|
||||
}
|
||||
|
||||
public void setPrivilege(ControllerRoleVo privilege) {
|
||||
this.privilege = privilege;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ModifyControllerRoleVo modifyControllerRoleVo = (ModifyControllerRoleVo) o;
|
||||
return Objects.equals(this.name, modifyControllerRoleVo.name) &&
|
||||
Objects.equals(this.privilege, modifyControllerRoleVo.privilege);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(name, privilege);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ModifyControllerRoleVo {\n");
|
||||
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" privilege: ").append(toIndentedString(privilege)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,293 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Pattern;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* ModifyUserVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class ModifyUserVo {
|
||||
@JsonProperty("roleId")
|
||||
private String roleId;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@JsonProperty("password")
|
||||
private String password;
|
||||
|
||||
@JsonProperty("email")
|
||||
private String email;
|
||||
|
||||
@JsonProperty("alert")
|
||||
private Boolean alert;
|
||||
|
||||
@JsonProperty("forceModify")
|
||||
private Boolean forceModify;
|
||||
|
||||
@JsonProperty("incidentNotification")
|
||||
private Boolean incidentNotification;
|
||||
|
||||
@JsonProperty("sites")
|
||||
@Valid
|
||||
private List<String> sites = null;
|
||||
|
||||
@JsonProperty("allSite")
|
||||
private Boolean allSite;
|
||||
|
||||
public ModifyUserVo roleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* This field represents Role ID. Role can be created using 'Create new role' interface, and Role ID can be obtained from 'Get role list' interface.
|
||||
* @return roleId
|
||||
*/
|
||||
@ApiModelProperty(required = true, value = "This field represents Role ID. Role can be created using 'Create new role' interface, and Role ID can be obtained from 'Get role list' interface.")
|
||||
@NotNull
|
||||
|
||||
|
||||
public String getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public ModifyUserVo name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* User name should contain 1 to 128 characters. When creating cloud user, you should set TP-LINK ID.
|
||||
* @return name
|
||||
*/
|
||||
@ApiModelProperty(required = true, value = "User name should contain 1 to 128 characters. When creating cloud user, you should set TP-LINK ID.")
|
||||
@NotNull
|
||||
|
||||
@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ModifyUserVo password(String password) {
|
||||
this.password = password;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Password of local user should contain 8 to 128 characters. And password must be a combination of uppercase letters, lowercase letters, numbers, and special symbols. Symbols such as ! # $ % & * @ ^ are supported.
|
||||
* @return password
|
||||
*/
|
||||
@ApiModelProperty(value = "Password of local user should contain 8 to 128 characters. And password must be a combination of uppercase letters, lowercase letters, numbers, and special symbols. Symbols such as ! # $ % & * @ ^ are supported.")
|
||||
|
||||
@Pattern(regexp="^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[\\!\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\-\\./\\:\\;\\<\\=\\>\\@\\[\\\\\\]\\^\\_\\`\\{\\|\\}\\~])(?!.*[\\00-\\040\\042\\077\\0177]).{8,128}$")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public ModifyUserVo email(String email) {
|
||||
this.email = email;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Email of user
|
||||
* @return email
|
||||
*/
|
||||
@ApiModelProperty(value = "Email of user")
|
||||
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public ModifyUserVo alert(Boolean alert) {
|
||||
this.alert = alert;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Alert email
|
||||
* @return alert
|
||||
*/
|
||||
@ApiModelProperty(value = "Alert email")
|
||||
|
||||
|
||||
public Boolean getAlert() {
|
||||
return alert;
|
||||
}
|
||||
|
||||
public void setAlert(Boolean alert) {
|
||||
this.alert = alert;
|
||||
}
|
||||
|
||||
public ModifyUserVo forceModify(Boolean forceModify) {
|
||||
this.forceModify = forceModify;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Force modify
|
||||
* @return forceModify
|
||||
*/
|
||||
@ApiModelProperty(value = "Force modify")
|
||||
|
||||
|
||||
public Boolean getForceModify() {
|
||||
return forceModify;
|
||||
}
|
||||
|
||||
public void setForceModify(Boolean forceModify) {
|
||||
this.forceModify = forceModify;
|
||||
}
|
||||
|
||||
public ModifyUserVo incidentNotification(Boolean incidentNotification) {
|
||||
this.incidentNotification = incidentNotification;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Incident notification
|
||||
* @return incidentNotification
|
||||
*/
|
||||
@ApiModelProperty(value = "Incident notification")
|
||||
|
||||
|
||||
public Boolean getIncidentNotification() {
|
||||
return incidentNotification;
|
||||
}
|
||||
|
||||
public void setIncidentNotification(Boolean incidentNotification) {
|
||||
this.incidentNotification = incidentNotification;
|
||||
}
|
||||
|
||||
public ModifyUserVo sites(List<String> sites) {
|
||||
this.sites = sites;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ModifyUserVo addSitesItem(String sitesItem) {
|
||||
if (this.sites == null) {
|
||||
this.sites = new ArrayList<>();
|
||||
}
|
||||
this.sites.add(sitesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* User site privilege list
|
||||
* @return sites
|
||||
*/
|
||||
@ApiModelProperty(value = "User site privilege list")
|
||||
|
||||
|
||||
public List<String> getSites() {
|
||||
return sites;
|
||||
}
|
||||
|
||||
public void setSites(List<String> sites) {
|
||||
this.sites = sites;
|
||||
}
|
||||
|
||||
public ModifyUserVo allSite(Boolean allSite) {
|
||||
this.allSite = allSite;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether user has all site permission, including new created site.
|
||||
* @return allSite
|
||||
*/
|
||||
@ApiModelProperty(required = true, value = "Whether user has all site permission, including new created site.")
|
||||
@NotNull
|
||||
|
||||
|
||||
public Boolean getAllSite() {
|
||||
return allSite;
|
||||
}
|
||||
|
||||
public void setAllSite(Boolean allSite) {
|
||||
this.allSite = allSite;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ModifyUserVo modifyUserVo = (ModifyUserVo) o;
|
||||
return Objects.equals(this.roleId, modifyUserVo.roleId) &&
|
||||
Objects.equals(this.name, modifyUserVo.name) &&
|
||||
Objects.equals(this.password, modifyUserVo.password) &&
|
||||
Objects.equals(this.email, modifyUserVo.email) &&
|
||||
Objects.equals(this.alert, modifyUserVo.alert) &&
|
||||
Objects.equals(this.forceModify, modifyUserVo.forceModify) &&
|
||||
Objects.equals(this.incidentNotification, modifyUserVo.incidentNotification) &&
|
||||
Objects.equals(this.sites, modifyUserVo.sites) &&
|
||||
Objects.equals(this.allSite, modifyUserVo.allSite);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(roleId, name, password, email, alert, forceModify, incidentNotification, sites, allSite);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ModifyUserVo {\n");
|
||||
|
||||
sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" email: ").append(toIndentedString(email)).append("\n");
|
||||
sb.append(" alert: ").append(toIndentedString(alert)).append("\n");
|
||||
sb.append(" forceModify: ").append(toIndentedString(forceModify)).append("\n");
|
||||
sb.append(" incidentNotification: ").append(toIndentedString(incidentNotification)).append("\n");
|
||||
sb.append(" sites: ").append(toIndentedString(sites)).append("\n");
|
||||
sb.append(" allSite: ").append(toIndentedString(allSite)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* OperationResponseControllerRoleDetailVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class OperationResponseControllerRoleDetailVo {
|
||||
@JsonProperty("errorCode")
|
||||
private Integer errorCode;
|
||||
|
||||
@JsonProperty("msg")
|
||||
private String msg;
|
||||
|
||||
@JsonProperty("result")
|
||||
private ControllerRoleDetailVo result;
|
||||
|
||||
public OperationResponseControllerRoleDetailVo errorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get errorCode
|
||||
* @return errorCode
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public Integer getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
public void setErrorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
public OperationResponseControllerRoleDetailVo msg(String msg) {
|
||||
this.msg = msg;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get msg
|
||||
* @return msg
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public OperationResponseControllerRoleDetailVo result(ControllerRoleDetailVo result) {
|
||||
this.result = result;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get result
|
||||
* @return result
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public ControllerRoleDetailVo getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(ControllerRoleDetailVo result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
OperationResponseControllerRoleDetailVo operationResponseControllerRoleDetailVo = (OperationResponseControllerRoleDetailVo) o;
|
||||
return Objects.equals(this.errorCode, operationResponseControllerRoleDetailVo.errorCode) &&
|
||||
Objects.equals(this.msg, operationResponseControllerRoleDetailVo.msg) &&
|
||||
Objects.equals(this.result, operationResponseControllerRoleDetailVo.result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(errorCode, msg, result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class OperationResponseControllerRoleDetailVo {\n");
|
||||
|
||||
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
|
||||
sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
|
||||
sb.append(" result: ").append(toIndentedString(result)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* OperationResponseCreateRoleResultVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class OperationResponseCreateRoleResultVo {
|
||||
@JsonProperty("errorCode")
|
||||
private Integer errorCode;
|
||||
|
||||
@JsonProperty("msg")
|
||||
private String msg;
|
||||
|
||||
@JsonProperty("result")
|
||||
private CreateRoleResultVo result;
|
||||
|
||||
public OperationResponseCreateRoleResultVo errorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get errorCode
|
||||
* @return errorCode
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public Integer getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
public void setErrorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
public OperationResponseCreateRoleResultVo msg(String msg) {
|
||||
this.msg = msg;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get msg
|
||||
* @return msg
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public OperationResponseCreateRoleResultVo result(CreateRoleResultVo result) {
|
||||
this.result = result;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get result
|
||||
* @return result
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public CreateRoleResultVo getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(CreateRoleResultVo result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
OperationResponseCreateRoleResultVo operationResponseCreateRoleResultVo = (OperationResponseCreateRoleResultVo) o;
|
||||
return Objects.equals(this.errorCode, operationResponseCreateRoleResultVo.errorCode) &&
|
||||
Objects.equals(this.msg, operationResponseCreateRoleResultVo.msg) &&
|
||||
Objects.equals(this.result, operationResponseCreateRoleResultVo.result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(errorCode, msg, result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class OperationResponseCreateRoleResultVo {\n");
|
||||
|
||||
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
|
||||
sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
|
||||
sb.append(" result: ").append(toIndentedString(result)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* OperationResponseCreateUserResultVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class OperationResponseCreateUserResultVo {
|
||||
@JsonProperty("errorCode")
|
||||
private Integer errorCode;
|
||||
|
||||
@JsonProperty("msg")
|
||||
private String msg;
|
||||
|
||||
@JsonProperty("result")
|
||||
private CreateUserResultVo result;
|
||||
|
||||
public OperationResponseCreateUserResultVo errorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get errorCode
|
||||
* @return errorCode
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public Integer getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
public void setErrorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
public OperationResponseCreateUserResultVo msg(String msg) {
|
||||
this.msg = msg;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get msg
|
||||
* @return msg
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public OperationResponseCreateUserResultVo result(CreateUserResultVo result) {
|
||||
this.result = result;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get result
|
||||
* @return result
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public CreateUserResultVo getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(CreateUserResultVo result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
OperationResponseCreateUserResultVo operationResponseCreateUserResultVo = (OperationResponseCreateUserResultVo) o;
|
||||
return Objects.equals(this.errorCode, operationResponseCreateUserResultVo.errorCode) &&
|
||||
Objects.equals(this.msg, operationResponseCreateUserResultVo.msg) &&
|
||||
Objects.equals(this.result, operationResponseCreateUserResultVo.result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(errorCode, msg, result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class OperationResponseCreateUserResultVo {\n");
|
||||
|
||||
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
|
||||
sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
|
||||
sb.append(" result: ").append(toIndentedString(result)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* OperationResponseGridVoExternalUserDetailOpenApiVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class OperationResponseGridVoExternalUserDetailOpenApiVo {
|
||||
@JsonProperty("errorCode")
|
||||
private Integer errorCode;
|
||||
|
||||
@JsonProperty("msg")
|
||||
private String msg;
|
||||
|
||||
@JsonProperty("result")
|
||||
private GridVoExternalUserDetailOpenApiVo result;
|
||||
|
||||
public OperationResponseGridVoExternalUserDetailOpenApiVo errorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get errorCode
|
||||
* @return errorCode
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public Integer getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
public void setErrorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
public OperationResponseGridVoExternalUserDetailOpenApiVo msg(String msg) {
|
||||
this.msg = msg;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get msg
|
||||
* @return msg
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public OperationResponseGridVoExternalUserDetailOpenApiVo result(GridVoExternalUserDetailOpenApiVo result) {
|
||||
this.result = result;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get result
|
||||
* @return result
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public GridVoExternalUserDetailOpenApiVo getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(GridVoExternalUserDetailOpenApiVo result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
OperationResponseGridVoExternalUserDetailOpenApiVo operationResponseGridVoExternalUserDetailOpenApiVo = (OperationResponseGridVoExternalUserDetailOpenApiVo) o;
|
||||
return Objects.equals(this.errorCode, operationResponseGridVoExternalUserDetailOpenApiVo.errorCode) &&
|
||||
Objects.equals(this.msg, operationResponseGridVoExternalUserDetailOpenApiVo.msg) &&
|
||||
Objects.equals(this.result, operationResponseGridVoExternalUserDetailOpenApiVo.result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(errorCode, msg, result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class OperationResponseGridVoExternalUserDetailOpenApiVo {\n");
|
||||
|
||||
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
|
||||
sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
|
||||
sb.append(" result: ").append(toIndentedString(result)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* OperationResponseGridVoExternalUserGroupDetailOpenApiVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class OperationResponseGridVoExternalUserGroupDetailOpenApiVo {
|
||||
@JsonProperty("errorCode")
|
||||
private Integer errorCode;
|
||||
|
||||
@JsonProperty("msg")
|
||||
private String msg;
|
||||
|
||||
@JsonProperty("result")
|
||||
private GridVoExternalUserGroupDetailOpenApiVo result;
|
||||
|
||||
public OperationResponseGridVoExternalUserGroupDetailOpenApiVo errorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get errorCode
|
||||
* @return errorCode
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public Integer getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
public void setErrorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
public OperationResponseGridVoExternalUserGroupDetailOpenApiVo msg(String msg) {
|
||||
this.msg = msg;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get msg
|
||||
* @return msg
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public OperationResponseGridVoExternalUserGroupDetailOpenApiVo result(GridVoExternalUserGroupDetailOpenApiVo result) {
|
||||
this.result = result;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get result
|
||||
* @return result
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public GridVoExternalUserGroupDetailOpenApiVo getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(GridVoExternalUserGroupDetailOpenApiVo result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
OperationResponseGridVoExternalUserGroupDetailOpenApiVo operationResponseGridVoExternalUserGroupDetailOpenApiVo = (OperationResponseGridVoExternalUserGroupDetailOpenApiVo) o;
|
||||
return Objects.equals(this.errorCode, operationResponseGridVoExternalUserGroupDetailOpenApiVo.errorCode) &&
|
||||
Objects.equals(this.msg, operationResponseGridVoExternalUserGroupDetailOpenApiVo.msg) &&
|
||||
Objects.equals(this.result, operationResponseGridVoExternalUserGroupDetailOpenApiVo.result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(errorCode, msg, result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class OperationResponseGridVoExternalUserGroupDetailOpenApiVo {\n");
|
||||
|
||||
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
|
||||
sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
|
||||
sb.append(" result: ").append(toIndentedString(result)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* OperationResponseGridVoIdpMetadataDetailOpenApiVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class OperationResponseGridVoIdpMetadataDetailOpenApiVo {
|
||||
@JsonProperty("errorCode")
|
||||
private Integer errorCode;
|
||||
|
||||
@JsonProperty("msg")
|
||||
private String msg;
|
||||
|
||||
@JsonProperty("result")
|
||||
private GridVoIdpMetadataDetailOpenApiVo result;
|
||||
|
||||
public OperationResponseGridVoIdpMetadataDetailOpenApiVo errorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get errorCode
|
||||
* @return errorCode
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public Integer getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
public void setErrorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
public OperationResponseGridVoIdpMetadataDetailOpenApiVo msg(String msg) {
|
||||
this.msg = msg;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get msg
|
||||
* @return msg
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public OperationResponseGridVoIdpMetadataDetailOpenApiVo result(GridVoIdpMetadataDetailOpenApiVo result) {
|
||||
this.result = result;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get result
|
||||
* @return result
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public GridVoIdpMetadataDetailOpenApiVo getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(GridVoIdpMetadataDetailOpenApiVo result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
OperationResponseGridVoIdpMetadataDetailOpenApiVo operationResponseGridVoIdpMetadataDetailOpenApiVo = (OperationResponseGridVoIdpMetadataDetailOpenApiVo) o;
|
||||
return Objects.equals(this.errorCode, operationResponseGridVoIdpMetadataDetailOpenApiVo.errorCode) &&
|
||||
Objects.equals(this.msg, operationResponseGridVoIdpMetadataDetailOpenApiVo.msg) &&
|
||||
Objects.equals(this.result, operationResponseGridVoIdpMetadataDetailOpenApiVo.result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(errorCode, msg, result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class OperationResponseGridVoIdpMetadataDetailOpenApiVo {\n");
|
||||
|
||||
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
|
||||
sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
|
||||
sb.append(" result: ").append(toIndentedString(result)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* OperationResponseGridVoUserDetailVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class OperationResponseGridVoUserDetailVo {
|
||||
@JsonProperty("errorCode")
|
||||
private Integer errorCode;
|
||||
|
||||
@JsonProperty("msg")
|
||||
private String msg;
|
||||
|
||||
@JsonProperty("result")
|
||||
private GridVoUserDetailVo result;
|
||||
|
||||
public OperationResponseGridVoUserDetailVo errorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get errorCode
|
||||
* @return errorCode
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public Integer getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
public void setErrorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
public OperationResponseGridVoUserDetailVo msg(String msg) {
|
||||
this.msg = msg;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get msg
|
||||
* @return msg
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public OperationResponseGridVoUserDetailVo result(GridVoUserDetailVo result) {
|
||||
this.result = result;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get result
|
||||
* @return result
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public GridVoUserDetailVo getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(GridVoUserDetailVo result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
OperationResponseGridVoUserDetailVo operationResponseGridVoUserDetailVo = (OperationResponseGridVoUserDetailVo) o;
|
||||
return Objects.equals(this.errorCode, operationResponseGridVoUserDetailVo.errorCode) &&
|
||||
Objects.equals(this.msg, operationResponseGridVoUserDetailVo.msg) &&
|
||||
Objects.equals(this.result, operationResponseGridVoUserDetailVo.result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(errorCode, msg, result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class OperationResponseGridVoUserDetailVo {\n");
|
||||
|
||||
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
|
||||
sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
|
||||
sb.append(" result: ").append(toIndentedString(result)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,139 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* OperationResponseListControllerRoleDetailVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class OperationResponseListControllerRoleDetailVo {
|
||||
@JsonProperty("errorCode")
|
||||
private Integer errorCode;
|
||||
|
||||
@JsonProperty("msg")
|
||||
private String msg;
|
||||
|
||||
@JsonProperty("result")
|
||||
@Valid
|
||||
private List<ControllerRoleDetailVo> result = null;
|
||||
|
||||
public OperationResponseListControllerRoleDetailVo errorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get errorCode
|
||||
* @return errorCode
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public Integer getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
public void setErrorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
public OperationResponseListControllerRoleDetailVo msg(String msg) {
|
||||
this.msg = msg;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get msg
|
||||
* @return msg
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public OperationResponseListControllerRoleDetailVo result(List<ControllerRoleDetailVo> result) {
|
||||
this.result = result;
|
||||
return this;
|
||||
}
|
||||
|
||||
public OperationResponseListControllerRoleDetailVo addResultItem(ControllerRoleDetailVo resultItem) {
|
||||
if (this.result == null) {
|
||||
this.result = new ArrayList<>();
|
||||
}
|
||||
this.result.add(resultItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get result
|
||||
* @return result
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public List<ControllerRoleDetailVo> getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(List<ControllerRoleDetailVo> result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
OperationResponseListControllerRoleDetailVo operationResponseListControllerRoleDetailVo = (OperationResponseListControllerRoleDetailVo) o;
|
||||
return Objects.equals(this.errorCode, operationResponseListControllerRoleDetailVo.errorCode) &&
|
||||
Objects.equals(this.msg, operationResponseListControllerRoleDetailVo.msg) &&
|
||||
Objects.equals(this.result, operationResponseListControllerRoleDetailVo.result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(errorCode, msg, result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class OperationResponseListControllerRoleDetailVo {\n");
|
||||
|
||||
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
|
||||
sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
|
||||
sb.append(" result: ").append(toIndentedString(result)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* OperationResponseObject
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class OperationResponseObject {
|
||||
@JsonProperty("errorCode")
|
||||
private Integer errorCode;
|
||||
|
||||
@JsonProperty("msg")
|
||||
private String msg;
|
||||
|
||||
@JsonProperty("result")
|
||||
private Object result;
|
||||
|
||||
public OperationResponseObject errorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get errorCode
|
||||
* @return errorCode
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public Integer getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
public void setErrorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
public OperationResponseObject msg(String msg) {
|
||||
this.msg = msg;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get msg
|
||||
* @return msg
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public OperationResponseObject result(Object result) {
|
||||
this.result = result;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get result
|
||||
* @return result
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public Object getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(Object result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
OperationResponseObject operationResponseObject = (OperationResponseObject) o;
|
||||
return Objects.equals(this.errorCode, operationResponseObject.errorCode) &&
|
||||
Objects.equals(this.msg, operationResponseObject.msg) &&
|
||||
Objects.equals(this.result, operationResponseObject.result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(errorCode, msg, result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class OperationResponseObject {\n");
|
||||
|
||||
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
|
||||
sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
|
||||
sb.append(" result: ").append(toIndentedString(result)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* OperationResponseResponseIdVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class OperationResponseResponseIdVo {
|
||||
@JsonProperty("errorCode")
|
||||
private Integer errorCode;
|
||||
|
||||
@JsonProperty("msg")
|
||||
private String msg;
|
||||
|
||||
@JsonProperty("result")
|
||||
private ResponseIdVo result;
|
||||
|
||||
public OperationResponseResponseIdVo errorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get errorCode
|
||||
* @return errorCode
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public Integer getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
public void setErrorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
public OperationResponseResponseIdVo msg(String msg) {
|
||||
this.msg = msg;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get msg
|
||||
* @return msg
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public OperationResponseResponseIdVo result(ResponseIdVo result) {
|
||||
this.result = result;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get result
|
||||
* @return result
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public ResponseIdVo getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(ResponseIdVo result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
OperationResponseResponseIdVo operationResponseResponseIdVo = (OperationResponseResponseIdVo) o;
|
||||
return Objects.equals(this.errorCode, operationResponseResponseIdVo.errorCode) &&
|
||||
Objects.equals(this.msg, operationResponseResponseIdVo.msg) &&
|
||||
Objects.equals(this.result, operationResponseResponseIdVo.result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(errorCode, msg, result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class OperationResponseResponseIdVo {\n");
|
||||
|
||||
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
|
||||
sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
|
||||
sb.append(" result: ").append(toIndentedString(result)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* OperationResponseUserDetailVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class OperationResponseUserDetailVo {
|
||||
@JsonProperty("errorCode")
|
||||
private Integer errorCode;
|
||||
|
||||
@JsonProperty("msg")
|
||||
private String msg;
|
||||
|
||||
@JsonProperty("result")
|
||||
private UserDetailVo result;
|
||||
|
||||
public OperationResponseUserDetailVo errorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get errorCode
|
||||
* @return errorCode
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public Integer getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
public void setErrorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
public OperationResponseUserDetailVo msg(String msg) {
|
||||
this.msg = msg;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get msg
|
||||
* @return msg
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public OperationResponseUserDetailVo result(UserDetailVo result) {
|
||||
this.result = result;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get result
|
||||
* @return result
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public UserDetailVo getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(UserDetailVo result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
OperationResponseUserDetailVo operationResponseUserDetailVo = (OperationResponseUserDetailVo) o;
|
||||
return Objects.equals(this.errorCode, operationResponseUserDetailVo.errorCode) &&
|
||||
Objects.equals(this.msg, operationResponseUserDetailVo.msg) &&
|
||||
Objects.equals(this.result, operationResponseUserDetailVo.result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(errorCode, msg, result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class OperationResponseUserDetailVo {\n");
|
||||
|
||||
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
|
||||
sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
|
||||
sb.append(" result: ").append(toIndentedString(result)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* OperationResponseWithoutResult
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class OperationResponseWithoutResult {
|
||||
@JsonProperty("errorCode")
|
||||
private Integer errorCode;
|
||||
|
||||
@JsonProperty("msg")
|
||||
private String msg;
|
||||
|
||||
public OperationResponseWithoutResult errorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get errorCode
|
||||
* @return errorCode
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public Integer getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
public void setErrorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
public OperationResponseWithoutResult msg(String msg) {
|
||||
this.msg = msg;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get msg
|
||||
* @return msg
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
OperationResponseWithoutResult operationResponseWithoutResult = (OperationResponseWithoutResult) o;
|
||||
return Objects.equals(this.errorCode, operationResponseWithoutResult.errorCode) &&
|
||||
Objects.equals(this.msg, operationResponseWithoutResult.msg);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(errorCode, msg);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class OperationResponseWithoutResult {\n");
|
||||
|
||||
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
|
||||
sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* The site's privilege of this user.
|
||||
*/
|
||||
@ApiModel(description = "The site's privilege of this user.")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class PrivilegeOpenApiVo {
|
||||
@JsonProperty("all")
|
||||
private Boolean all;
|
||||
|
||||
@JsonProperty("sites")
|
||||
@Valid
|
||||
private List<String> sites = null;
|
||||
|
||||
public PrivilegeOpenApiVo all(Boolean all) {
|
||||
this.all = all;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether having all site privilege.
|
||||
* @return all
|
||||
*/
|
||||
@ApiModelProperty(value = "Whether having all site privilege.")
|
||||
|
||||
|
||||
public Boolean getAll() {
|
||||
return all;
|
||||
}
|
||||
|
||||
public void setAll(Boolean all) {
|
||||
this.all = all;
|
||||
}
|
||||
|
||||
public PrivilegeOpenApiVo sites(List<String> sites) {
|
||||
this.sites = sites;
|
||||
return this;
|
||||
}
|
||||
|
||||
public PrivilegeOpenApiVo addSitesItem(String sitesItem) {
|
||||
if (this.sites == null) {
|
||||
this.sites = new ArrayList<>();
|
||||
}
|
||||
this.sites.add(sitesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The IDs of site that can be accessed by this user.
|
||||
* @return sites
|
||||
*/
|
||||
@ApiModelProperty(value = "The IDs of site that can be accessed by this user.")
|
||||
|
||||
|
||||
public List<String> getSites() {
|
||||
return sites;
|
||||
}
|
||||
|
||||
public void setSites(List<String> sites) {
|
||||
this.sites = sites;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
PrivilegeOpenApiVo privilegeOpenApiVo = (PrivilegeOpenApiVo) o;
|
||||
return Objects.equals(this.all, privilegeOpenApiVo.all) &&
|
||||
Objects.equals(this.sites, privilegeOpenApiVo.sites);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(all, sites);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class PrivilegeOpenApiVo {\n");
|
||||
|
||||
sb.append(" all: ").append(toIndentedString(all)).append("\n");
|
||||
sb.append(" sites: ").append(toIndentedString(sites)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* ResponseIdVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class ResponseIdVo {
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
public ResponseIdVo id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ResponseIdVo responseIdVo = (ResponseIdVo) o;
|
||||
return Objects.equals(this.id, responseIdVo.id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ResponseIdVo {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.constraints.Pattern;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* The sites which can be accessed.
|
||||
*/
|
||||
@ApiModel(description = "The sites which can be accessed.")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class SiteInfoOpenApiVo {
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
public SiteInfoOpenApiVo id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Site ID
|
||||
* @return id
|
||||
*/
|
||||
@ApiModelProperty(value = "Site ID")
|
||||
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public SiteInfoOpenApiVo name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Site name should contain 0 to 64 characters.
|
||||
* @return name
|
||||
*/
|
||||
@ApiModelProperty(value = "Site name should contain 0 to 64 characters.")
|
||||
|
||||
@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,62}[^ ]$")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
SiteInfoOpenApiVo siteInfoOpenApiVo = (SiteInfoOpenApiVo) o;
|
||||
return Objects.equals(this.id, siteInfoOpenApiVo.id) &&
|
||||
Objects.equals(this.name, siteInfoOpenApiVo.name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class SiteInfoOpenApiVo {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,447 @@
|
||||
package org.wfc.omada.api.account.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* UserDetailVo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]")
|
||||
|
||||
public class UserDetailVo {
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
@JsonProperty("type")
|
||||
private Integer type;
|
||||
|
||||
@JsonProperty("roleId")
|
||||
private String roleId;
|
||||
|
||||
@JsonProperty("roleName")
|
||||
private String roleName;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@JsonProperty("email")
|
||||
private String email;
|
||||
|
||||
@JsonProperty("omadacId")
|
||||
private String omadacId;
|
||||
|
||||
@JsonProperty("verified")
|
||||
private Boolean verified;
|
||||
|
||||
@JsonProperty("alert")
|
||||
private Boolean alert;
|
||||
|
||||
@JsonProperty("allSite")
|
||||
private Boolean allSite;
|
||||
|
||||
@JsonProperty("siteIds")
|
||||
@Valid
|
||||
private List<String> siteIds = null;
|
||||
|
||||
@JsonProperty("parentUserId")
|
||||
private String parentUserId;
|
||||
|
||||
@JsonProperty("favorites")
|
||||
@Valid
|
||||
private List<String> favorites = null;
|
||||
|
||||
@JsonProperty("incidentNotification")
|
||||
private Boolean incidentNotification;
|
||||
|
||||
@JsonProperty("userLevel")
|
||||
private Integer userLevel;
|
||||
|
||||
public UserDetailVo id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* User ID
|
||||
* @return id
|
||||
*/
|
||||
@ApiModelProperty(value = "User ID")
|
||||
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public UserDetailVo type(Integer type) {
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Type of user, type should be a value as follows: 0:local user; 1: cloud user
|
||||
* @return type
|
||||
*/
|
||||
@ApiModelProperty(value = "Type of user, type should be a value as follows: 0:local user; 1: cloud user")
|
||||
|
||||
|
||||
public Integer getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(Integer type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public UserDetailVo roleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* User role ID
|
||||
* @return roleId
|
||||
*/
|
||||
@ApiModelProperty(value = "User role ID")
|
||||
|
||||
|
||||
public String getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public UserDetailVo roleName(String roleName) {
|
||||
this.roleName = roleName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* User bind role name
|
||||
* @return roleName
|
||||
*/
|
||||
@ApiModelProperty(value = "User bind role name")
|
||||
|
||||
|
||||
public String getRoleName() {
|
||||
return roleName;
|
||||
}
|
||||
|
||||
public void setRoleName(String roleName) {
|
||||
this.roleName = roleName;
|
||||
}
|
||||
|
||||
public UserDetailVo name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* User name
|
||||
* @return name
|
||||
*/
|
||||
@ApiModelProperty(value = "User name")
|
||||
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public UserDetailVo email(String email) {
|
||||
this.email = email;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* User email
|
||||
* @return email
|
||||
*/
|
||||
@ApiModelProperty(value = "User email")
|
||||
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public UserDetailVo omadacId(String omadacId) {
|
||||
this.omadacId = omadacId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Omada ID
|
||||
* @return omadacId
|
||||
*/
|
||||
@ApiModelProperty(value = "Omada ID")
|
||||
|
||||
|
||||
public String getOmadacId() {
|
||||
return omadacId;
|
||||
}
|
||||
|
||||
public void setOmadacId(String omadacId) {
|
||||
this.omadacId = omadacId;
|
||||
}
|
||||
|
||||
public UserDetailVo verified(Boolean verified) {
|
||||
this.verified = verified;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether this cloud user has verified
|
||||
* @return verified
|
||||
*/
|
||||
@ApiModelProperty(value = "Whether this cloud user has verified")
|
||||
|
||||
|
||||
public Boolean getVerified() {
|
||||
return verified;
|
||||
}
|
||||
|
||||
public void setVerified(Boolean verified) {
|
||||
this.verified = verified;
|
||||
}
|
||||
|
||||
public UserDetailVo alert(Boolean alert) {
|
||||
this.alert = alert;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether this user want to receive alert emails
|
||||
* @return alert
|
||||
*/
|
||||
@ApiModelProperty(value = "Whether this user want to receive alert emails")
|
||||
|
||||
|
||||
public Boolean getAlert() {
|
||||
return alert;
|
||||
}
|
||||
|
||||
public void setAlert(Boolean alert) {
|
||||
this.alert = alert;
|
||||
}
|
||||
|
||||
public UserDetailVo allSite(Boolean allSite) {
|
||||
this.allSite = allSite;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether user has all site permission, including new created site
|
||||
* @return allSite
|
||||
*/
|
||||
@ApiModelProperty(value = "Whether user has all site permission, including new created site")
|
||||
|
||||
|
||||
public Boolean getAllSite() {
|
||||
return allSite;
|
||||
}
|
||||
|
||||
public void setAllSite(Boolean allSite) {
|
||||
this.allSite = allSite;
|
||||
}
|
||||
|
||||
public UserDetailVo siteIds(List<String> siteIds) {
|
||||
this.siteIds = siteIds;
|
||||
return this;
|
||||
}
|
||||
|
||||
public UserDetailVo addSiteIdsItem(String siteIdsItem) {
|
||||
if (this.siteIds == null) {
|
||||
this.siteIds = new ArrayList<>();
|
||||
}
|
||||
this.siteIds.add(siteIdsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* User site privilege list
|
||||
* @return siteIds
|
||||
*/
|
||||
@ApiModelProperty(value = "User site privilege list")
|
||||
|
||||
|
||||
public List<String> getSiteIds() {
|
||||
return siteIds;
|
||||
}
|
||||
|
||||
public void setSiteIds(List<String> siteIds) {
|
||||
this.siteIds = siteIds;
|
||||
}
|
||||
|
||||
public UserDetailVo parentUserId(String parentUserId) {
|
||||
this.parentUserId = parentUserId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* User's parent user id
|
||||
* @return parentUserId
|
||||
*/
|
||||
@ApiModelProperty(value = "User's parent user id")
|
||||
|
||||
|
||||
public String getParentUserId() {
|
||||
return parentUserId;
|
||||
}
|
||||
|
||||
public void setParentUserId(String parentUserId) {
|
||||
this.parentUserId = parentUserId;
|
||||
}
|
||||
|
||||
public UserDetailVo favorites(List<String> favorites) {
|
||||
this.favorites = favorites;
|
||||
return this;
|
||||
}
|
||||
|
||||
public UserDetailVo addFavoritesItem(String favoritesItem) {
|
||||
if (this.favorites == null) {
|
||||
this.favorites = new ArrayList<>();
|
||||
}
|
||||
this.favorites.add(favoritesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* User favorite site list
|
||||
* @return favorites
|
||||
*/
|
||||
@ApiModelProperty(value = "User favorite site list")
|
||||
|
||||
|
||||
public List<String> getFavorites() {
|
||||
return favorites;
|
||||
}
|
||||
|
||||
public void setFavorites(List<String> favorites) {
|
||||
this.favorites = favorites;
|
||||
}
|
||||
|
||||
public UserDetailVo incidentNotification(Boolean incidentNotification) {
|
||||
this.incidentNotification = incidentNotification;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Incident notification
|
||||
* @return incidentNotification
|
||||
*/
|
||||
@ApiModelProperty(value = "Incident notification")
|
||||
|
||||
|
||||
public Boolean getIncidentNotification() {
|
||||
return incidentNotification;
|
||||
}
|
||||
|
||||
public void setIncidentNotification(Boolean incidentNotification) {
|
||||
this.incidentNotification = incidentNotification;
|
||||
}
|
||||
|
||||
public UserDetailVo userLevel(Integer userLevel) {
|
||||
this.userLevel = userLevel;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* User level, user level should be a value as follows: 0:standard user; 1:customer user; 2:msp user
|
||||
* @return userLevel
|
||||
*/
|
||||
@ApiModelProperty(value = "User level, user level should be a value as follows: 0:standard user; 1:customer user; 2:msp user")
|
||||
|
||||
|
||||
public Integer getUserLevel() {
|
||||
return userLevel;
|
||||
}
|
||||
|
||||
public void setUserLevel(Integer userLevel) {
|
||||
this.userLevel = userLevel;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
UserDetailVo userDetailVo = (UserDetailVo) o;
|
||||
return Objects.equals(this.id, userDetailVo.id) &&
|
||||
Objects.equals(this.type, userDetailVo.type) &&
|
||||
Objects.equals(this.roleId, userDetailVo.roleId) &&
|
||||
Objects.equals(this.roleName, userDetailVo.roleName) &&
|
||||
Objects.equals(this.name, userDetailVo.name) &&
|
||||
Objects.equals(this.email, userDetailVo.email) &&
|
||||
Objects.equals(this.omadacId, userDetailVo.omadacId) &&
|
||||
Objects.equals(this.verified, userDetailVo.verified) &&
|
||||
Objects.equals(this.alert, userDetailVo.alert) &&
|
||||
Objects.equals(this.allSite, userDetailVo.allSite) &&
|
||||
Objects.equals(this.siteIds, userDetailVo.siteIds) &&
|
||||
Objects.equals(this.parentUserId, userDetailVo.parentUserId) &&
|
||||
Objects.equals(this.favorites, userDetailVo.favorites) &&
|
||||
Objects.equals(this.incidentNotification, userDetailVo.incidentNotification) &&
|
||||
Objects.equals(this.userLevel, userDetailVo.userLevel);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, type, roleId, roleName, name, email, omadacId, verified, alert, allSite, siteIds, parentUserId, favorites, incidentNotification, userLevel);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class UserDetailVo {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" type: ").append(toIndentedString(type)).append("\n");
|
||||
sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n");
|
||||
sb.append(" roleName: ").append(toIndentedString(roleName)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" email: ").append(toIndentedString(email)).append("\n");
|
||||
sb.append(" omadacId: ").append(toIndentedString(omadacId)).append("\n");
|
||||
sb.append(" verified: ").append(toIndentedString(verified)).append("\n");
|
||||
sb.append(" alert: ").append(toIndentedString(alert)).append("\n");
|
||||
sb.append(" allSite: ").append(toIndentedString(allSite)).append("\n");
|
||||
sb.append(" siteIds: ").append(toIndentedString(siteIds)).append("\n");
|
||||
sb.append(" parentUserId: ").append(toIndentedString(parentUserId)).append("\n");
|
||||
sb.append(" favorites: ").append(toIndentedString(favorites)).append("\n");
|
||||
sb.append(" incidentNotification: ").append(toIndentedString(incidentNotification)).append("\n");
|
||||
sb.append(" userLevel: ").append(toIndentedString(userLevel)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
package org.wfc.omada.api.batch;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.wfc.omada.api.batch.model.BatchRequestEntity;
|
||||
import org.wfc.omada.api.batch.model.OperationResponseBatchResponseEntity;
|
||||
import org.wfc.omada.config.FeignConfig;
|
||||
|
||||
import javax.validation.Valid;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:47:27.319+08:00[Asia/Shanghai]")
|
||||
|
||||
@Validated
|
||||
@Api(value = "OmadaBatchOpenApi", description = "the OmadaBatchOpenApi API")
|
||||
@FeignClient(name="OmadaBatchOpenApiApi", url = "${omada.omada-url}", configuration = FeignConfig.class)
|
||||
public interface OmadaBatchOpenApiApi {
|
||||
|
||||
/**
|
||||
* POST /openapi/v1/{omadacId}/batch : Batch Processing OpenAPIs
|
||||
* Batch processing of multiple OpenAPIs under the same Omada controller through this OpenAPI.<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1001 - Invalid request parameters.<br/>-1600 - Unsupported request path.<br/>-1619 - Execution has been interrupted due to unsuccessful execution of the pre action request.<br/>-1620 - Error occurred while executing action.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.<br/>-44113 - The Access Token is Invalid.<br/>-7132 - Our server is receiving too many requests now. Please try again later.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param batchRequestEntity (optional)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Batch Processing OpenAPIs", nickname = "batchController", notes = "Batch processing of multiple OpenAPIs under the same Omada controller through this OpenAPI.<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1001 - Invalid request parameters.<br/>-1600 - Unsupported request path.<br/>-1619 - Execution has been interrupted due to unsuccessful execution of the pre action request.<br/>-1620 - Error occurred while executing action.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.<br/>-44113 - The Access Token is Invalid.<br/>-7132 - Our server is receiving too many requests now. Please try again later.", response = OperationResponseBatchResponseEntity.class, tags={ "Omada/Batch OpenAPI","Batch OpenAPI", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseBatchResponseEntity.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/batch",
|
||||
produces = "*/*",
|
||||
consumes = "application/json",
|
||||
method = RequestMethod.POST)
|
||||
ResponseEntity<OperationResponseBatchResponseEntity> batchController(@ApiParam(value = "" ) @Valid @RequestBody(required = false) BatchRequestEntity batchRequestEntity);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
package org.wfc.omada.api.batch.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* BatchRequestEntity
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:47:33.899+08:00[Asia/Shanghai]")
|
||||
|
||||
public class BatchRequestEntity {
|
||||
@JsonProperty("interrupt")
|
||||
private Boolean interrupt;
|
||||
|
||||
@JsonProperty("actions")
|
||||
@Valid
|
||||
private List<RequestActionEntity> actions = null;
|
||||
|
||||
public BatchRequestEntity interrupt(Boolean interrupt) {
|
||||
this.interrupt = interrupt;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether to interrupt execution when encountering an error while executing openAPI, defaults to true
|
||||
* @return interrupt
|
||||
*/
|
||||
@ApiModelProperty(value = "Indicates whether to interrupt execution when encountering an error while executing openAPI, defaults to true")
|
||||
|
||||
|
||||
public Boolean getInterrupt() {
|
||||
return interrupt;
|
||||
}
|
||||
|
||||
public void setInterrupt(Boolean interrupt) {
|
||||
this.interrupt = interrupt;
|
||||
}
|
||||
|
||||
public BatchRequestEntity actions(List<RequestActionEntity> actions) {
|
||||
this.actions = actions;
|
||||
return this;
|
||||
}
|
||||
|
||||
public BatchRequestEntity addActionsItem(RequestActionEntity actionsItem) {
|
||||
if (this.actions == null) {
|
||||
this.actions = new ArrayList<>();
|
||||
}
|
||||
this.actions.add(actionsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* List of OpenAPIs that require batch execution. Up to 20 entries are allowed for the action list
|
||||
* @return actions
|
||||
*/
|
||||
@ApiModelProperty(value = "List of OpenAPIs that require batch execution. Up to 20 entries are allowed for the action list")
|
||||
|
||||
@Valid
|
||||
|
||||
public List<RequestActionEntity> getActions() {
|
||||
return actions;
|
||||
}
|
||||
|
||||
public void setActions(List<RequestActionEntity> actions) {
|
||||
this.actions = actions;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
BatchRequestEntity batchRequestEntity = (BatchRequestEntity) o;
|
||||
return Objects.equals(this.interrupt, batchRequestEntity.interrupt) &&
|
||||
Objects.equals(this.actions, batchRequestEntity.actions);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(interrupt, actions);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class BatchRequestEntity {\n");
|
||||
|
||||
sb.append(" interrupt: ").append(toIndentedString(interrupt)).append("\n");
|
||||
sb.append(" actions: ").append(toIndentedString(actions)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
package org.wfc.omada.api.batch.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* BatchResponseEntity
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:47:33.899+08:00[Asia/Shanghai]")
|
||||
|
||||
public class BatchResponseEntity {
|
||||
@JsonProperty("response")
|
||||
@Valid
|
||||
private List<OperationResponse> response = null;
|
||||
|
||||
public BatchResponseEntity response(List<OperationResponse> response) {
|
||||
this.response = response;
|
||||
return this;
|
||||
}
|
||||
|
||||
public BatchResponseEntity addResponseItem(OperationResponse responseItem) {
|
||||
if (this.response == null) {
|
||||
this.response = new ArrayList<>();
|
||||
}
|
||||
this.response.add(responseItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A response list
|
||||
* @return response
|
||||
*/
|
||||
@ApiModelProperty(value = "A response list")
|
||||
|
||||
@Valid
|
||||
|
||||
public List<OperationResponse> getResponse() {
|
||||
return response;
|
||||
}
|
||||
|
||||
public void setResponse(List<OperationResponse> response) {
|
||||
this.response = response;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
BatchResponseEntity batchResponseEntity = (BatchResponseEntity) o;
|
||||
return Objects.equals(this.response, batchResponseEntity.response);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(response);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class BatchResponseEntity {\n");
|
||||
|
||||
sb.append(" response: ").append(toIndentedString(response)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
package org.wfc.omada.api.batch.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* A response list
|
||||
*/
|
||||
@ApiModel(description = "A response list")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:47:33.899+08:00[Asia/Shanghai]")
|
||||
|
||||
public class OperationResponse {
|
||||
@JsonProperty("errorCode")
|
||||
private Integer errorCode;
|
||||
|
||||
@JsonProperty("msg")
|
||||
private String msg;
|
||||
|
||||
@JsonProperty("result")
|
||||
private Object result;
|
||||
|
||||
public OperationResponse errorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get errorCode
|
||||
* @return errorCode
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public Integer getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
public void setErrorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
public OperationResponse msg(String msg) {
|
||||
this.msg = msg;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get msg
|
||||
* @return msg
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public OperationResponse result(Object result) {
|
||||
this.result = result;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get result
|
||||
* @return result
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public Object getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(Object result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
OperationResponse operationResponse = (OperationResponse) o;
|
||||
return Objects.equals(this.errorCode, operationResponse.errorCode) &&
|
||||
Objects.equals(this.msg, operationResponse.msg) &&
|
||||
Objects.equals(this.result, operationResponse.result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(errorCode, msg, result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class OperationResponse {\n");
|
||||
|
||||
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
|
||||
sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
|
||||
sb.append(" result: ").append(toIndentedString(result)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
package org.wfc.omada.api.batch.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* OperationResponseBatchResponseEntity
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:47:33.899+08:00[Asia/Shanghai]")
|
||||
|
||||
public class OperationResponseBatchResponseEntity {
|
||||
@JsonProperty("errorCode")
|
||||
private Integer errorCode;
|
||||
|
||||
@JsonProperty("msg")
|
||||
private String msg;
|
||||
|
||||
@JsonProperty("result")
|
||||
private BatchResponseEntity result;
|
||||
|
||||
public OperationResponseBatchResponseEntity errorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get errorCode
|
||||
* @return errorCode
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public Integer getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
public void setErrorCode(Integer errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
public OperationResponseBatchResponseEntity msg(String msg) {
|
||||
this.msg = msg;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get msg
|
||||
* @return msg
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public OperationResponseBatchResponseEntity result(BatchResponseEntity result) {
|
||||
this.result = result;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get result
|
||||
* @return result
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public BatchResponseEntity getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(BatchResponseEntity result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
OperationResponseBatchResponseEntity operationResponseBatchResponseEntity = (OperationResponseBatchResponseEntity) o;
|
||||
return Objects.equals(this.errorCode, operationResponseBatchResponseEntity.errorCode) &&
|
||||
Objects.equals(this.msg, operationResponseBatchResponseEntity.msg) &&
|
||||
Objects.equals(this.result, operationResponseBatchResponseEntity.result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(errorCode, msg, result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class OperationResponseBatchResponseEntity {\n");
|
||||
|
||||
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
|
||||
sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
|
||||
sb.append(" result: ").append(toIndentedString(result)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,156 @@
|
||||
package org.wfc.omada.api.batch.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* List of OpenAPIs that require batch execution. Up to 20 entries are allowed for the action list
|
||||
*/
|
||||
@ApiModel(description = "List of OpenAPIs that require batch execution. Up to 20 entries are allowed for the action list")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:47:33.899+08:00[Asia/Shanghai]")
|
||||
|
||||
public class RequestActionEntity {
|
||||
@JsonProperty("path")
|
||||
private String path;
|
||||
|
||||
@JsonProperty("method")
|
||||
private String method;
|
||||
|
||||
@JsonProperty("body")
|
||||
private String body;
|
||||
|
||||
@JsonProperty("query")
|
||||
private String query;
|
||||
|
||||
public RequestActionEntity path(String path) {
|
||||
this.path = path;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* OpenAPI request path. Same as regular OpenAPI, file upload and download are not supported.
|
||||
* @return path
|
||||
*/
|
||||
@ApiModelProperty(required = true, value = "OpenAPI request path. Same as regular OpenAPI, file upload and download are not supported.")
|
||||
@NotNull
|
||||
|
||||
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
public void setPath(String path) {
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
public RequestActionEntity method(String method) {
|
||||
this.method = method;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* OpenAPI request method. Same as regular OpenAPI, it should be a value as follows: POST, PATCH, PUT, DELETE.
|
||||
* @return method
|
||||
*/
|
||||
@ApiModelProperty(required = true, value = "OpenAPI request method. Same as regular OpenAPI, it should be a value as follows: POST, PATCH, PUT, DELETE.")
|
||||
@NotNull
|
||||
|
||||
|
||||
public String getMethod() {
|
||||
return method;
|
||||
}
|
||||
|
||||
public void setMethod(String method) {
|
||||
this.method = method;
|
||||
}
|
||||
|
||||
public RequestActionEntity body(String body) {
|
||||
this.body = body;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* OpenAPI request body, same as regular OpenAPI. Should be a JSON object but not a string.
|
||||
* @return body
|
||||
*/
|
||||
@ApiModelProperty(value = "OpenAPI request body, same as regular OpenAPI. Should be a JSON object but not a string.")
|
||||
|
||||
|
||||
public String getBody() {
|
||||
return body;
|
||||
}
|
||||
|
||||
public void setBody(String body) {
|
||||
this.body = body;
|
||||
}
|
||||
|
||||
public RequestActionEntity query(String query) {
|
||||
this.query = query;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* OpenAPI request query of the path, same as regular OpenAPI.
|
||||
* @return query
|
||||
*/
|
||||
@ApiModelProperty(value = "OpenAPI request query of the path, same as regular OpenAPI.")
|
||||
|
||||
|
||||
public String getQuery() {
|
||||
return query;
|
||||
}
|
||||
|
||||
public void setQuery(String query) {
|
||||
this.query = query;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
RequestActionEntity requestActionEntity = (RequestActionEntity) o;
|
||||
return Objects.equals(this.path, requestActionEntity.path) &&
|
||||
Objects.equals(this.method, requestActionEntity.method) &&
|
||||
Objects.equals(this.body, requestActionEntity.body) &&
|
||||
Objects.equals(this.query, requestActionEntity.query);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(path, method, body, query);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class RequestActionEntity {\n");
|
||||
|
||||
sb.append(" path: ").append(toIndentedString(path)).append("\n");
|
||||
sb.append(" method: ").append(toIndentedString(method)).append("\n");
|
||||
sb.append(" body: ").append(toIndentedString(body)).append("\n");
|
||||
sb.append(" query: ").append(toIndentedString(query)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,202 @@
|
||||
package org.wfc.omada.api.client;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.wfc.omada.api.client.model.ClientLockToApSetting1;
|
||||
import org.wfc.omada.api.client.model.ClientNameSetting;
|
||||
import org.wfc.omada.api.client.model.ClientRateLimitSetting;
|
||||
import org.wfc.omada.api.client.model.OperationResponseClientDetail;
|
||||
import org.wfc.omada.api.client.model.OperationResponseClientGridVoClientInfo;
|
||||
import org.wfc.omada.api.client.model.OperationResponseWithoutResult;
|
||||
import org.wfc.omada.config.FeignConfig;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.NotNull;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:32.050+08:00[Asia/Shanghai]")
|
||||
|
||||
@Validated
|
||||
@Api(value = "OmadaClient", description = "the OmadaClient API")
|
||||
@FeignClient(name="OmadaClientApi", url = "${omada.omada-url}", configuration = FeignConfig.class)
|
||||
public interface OmadaClientApi {
|
||||
|
||||
/**
|
||||
* POST /openapi/v1/{omadacId}/sites/{siteId}/clients/{clientMac}/block : Block the client
|
||||
* Block the client.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager Modify<br/>Site Insight Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-41002 - This client does not exist.<br/>-41003 - The number of clients to be blocked has reached the limit.<br/>-41023 - Clients locked to AP cannot be blocked.<br/>-41024 - This device is installed with the controller and cannot be blocked.<br/>-41026 - The Easy Managed Switch cannot block clients.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param siteId Site ID (required)
|
||||
* @param clientMac Client MAC (required)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Block the client", nickname = "blockClient", notes = "Block the client.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager Modify<br/>Site Insight Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-41002 - This client does not exist.<br/>-41003 - The number of clients to be blocked has reached the limit.<br/>-41023 - Clients locked to AP cannot be blocked.<br/>-41024 - This device is installed with the controller and cannot be blocked.<br/>-41026 - The Easy Managed Switch cannot block clients.", response = OperationResponseWithoutResult.class, tags={ "Omada/Client","Client", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/clients/{clientMac}/block",
|
||||
produces = "*/*",
|
||||
method = RequestMethod.POST)
|
||||
ResponseEntity<OperationResponseWithoutResult> blockClient(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Client MAC",required=true) @PathVariable("clientMac") String clientMac);
|
||||
|
||||
|
||||
/**
|
||||
* GET /openapi/v1/{omadacId}/sites/{siteId}/clients/{clientMac} : Get client info
|
||||
* Get client info.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager View Only<br/>Site Device Manager View Only
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param siteId Site ID (required)
|
||||
* @param clientMac Client MAC (required)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Get client info", nickname = "getClientDetail", notes = "Get client info.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager View Only<br/>Site Device Manager View Only", response = OperationResponseClientDetail.class, tags={ "Omada/Client","Client", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseClientDetail.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/clients/{clientMac}",
|
||||
produces = "*/*",
|
||||
method = RequestMethod.GET)
|
||||
ResponseEntity<OperationResponseClientDetail> getClientDetail(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Client MAC",required=true) @PathVariable("clientMac") String clientMac);
|
||||
|
||||
|
||||
/**
|
||||
* GET /openapi/v1/{omadacId}/sites/{siteId}/clients : Get client list
|
||||
* Get all clients.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager View Only<br/>Site Device Manager View Only
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param siteId Site ID (required)
|
||||
* @param page Start page number. Start from 1. (required)
|
||||
* @param pageSize Number of entries per page. It should be within the range of 1–1000. (required)
|
||||
* @param sortsName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional)
|
||||
* @param sortsMac Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional)
|
||||
* @param sortsIp Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional)
|
||||
* @param filtersWireless Filter query parameters, support field wireless: true/false. (optional)
|
||||
* @param filtersRadioId Filter query parameters, support field radioId: 0: 2G, 1: 5G1, 2: 5G2, 3: 6G (optional)
|
||||
* @param filtersApMac Filter query parameters, support field ap mac (optional)
|
||||
* @param filtersSwitchMac Filter query parameters, support field switch mac (optional)
|
||||
* @param filtersGatewayMac Filter query parameters, support field gateway mac (optional)
|
||||
* @param searchKey Fuzzy query parameters, support field clientName,clientMac,ip,channel,ssid,apName,apMac,switchMac,switchName,gatewayMac,gatewayName. (optional)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Get client list", nickname = "getGridActiveClients", notes = "Get all clients.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager View Only<br/>Site Device Manager View Only", response = OperationResponseClientGridVoClientInfo.class, tags={ "Omada/Client","Client", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseClientGridVoClientInfo.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/clients",
|
||||
produces = "*/*",
|
||||
method = RequestMethod.GET)
|
||||
ResponseEntity<OperationResponseClientGridVoClientInfo> getGridActiveClients(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.name", required = false) String sortsName,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.mac", required = false) String sortsMac,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.ip", required = false) String sortsIp,@ApiParam(value = "Filter query parameters, support field wireless: true/false.") @Valid @RequestParam(value = "filters.wireless", required = false) String filtersWireless,@ApiParam(value = "Filter query parameters, support field radioId: 0: 2G, 1: 5G1, 2: 5G2, 3: 6G") @Valid @RequestParam(value = "filters.radioId", required = false) String filtersRadioId,@ApiParam(value = "Filter query parameters, support field ap mac") @Valid @RequestParam(value = "filters.apMac", required = false) String filtersApMac,@ApiParam(value = "Filter query parameters, support field switch mac") @Valid @RequestParam(value = "filters.switchMac", required = false) String filtersSwitchMac,@ApiParam(value = "Filter query parameters, support field gateway mac") @Valid @RequestParam(value = "filters.gatewayMac", required = false) String filtersGatewayMac,@ApiParam(value = "Fuzzy query parameters, support field clientName,clientMac,ip,channel,ssid,apName,apMac,switchMac,switchName,gatewayMac,gatewayName.") @Valid @RequestParam(value = "searchKey", required = false) String searchKey);
|
||||
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/clients",
|
||||
produces = "*/*",
|
||||
method = RequestMethod.GET)
|
||||
ResponseEntity<OperationResponseClientGridVoClientInfo> getGridActiveClients(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize);
|
||||
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/clients",
|
||||
produces = "*/*",
|
||||
method = RequestMethod.GET)
|
||||
ResponseEntity<OperationResponseClientGridVoClientInfo> getGridActiveClients(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize, @ApiParam(value = "Fuzzy query parameters, support field clientName,clientMac,ip,channel,ssid,apName,apMac,switchMac,switchName,gatewayMac,gatewayName.") @Valid @RequestParam(value = "searchKey", required = false) String searchKey);
|
||||
|
||||
|
||||
/**
|
||||
* POST /openapi/v1/{omadacId}/sites/{siteId}/clients/{clientMac}/reconnect : Reconnect the client
|
||||
* Reconnect the client.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-41011 - This client does not exist.<br/>-41025 - Unable to reconnect wired client.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param siteId Site ID (required)
|
||||
* @param clientMac Client MAC (required)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Reconnect the client", nickname = "reconnectClient", notes = "Reconnect the client.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-41011 - This client does not exist.<br/>-41025 - Unable to reconnect wired client.", response = OperationResponseWithoutResult.class, tags={ "Omada/Client","Client", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/clients/{clientMac}/reconnect",
|
||||
produces = "*/*",
|
||||
method = RequestMethod.POST)
|
||||
ResponseEntity<OperationResponseWithoutResult> reconnectClient(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Client MAC",required=true) @PathVariable("clientMac") String clientMac);
|
||||
|
||||
|
||||
/**
|
||||
* POST /openapi/v1/{omadacId}/sites/{siteId}/clients/{clientMac}/unblock : Unblock the client
|
||||
* Unblock the client.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager Modify<br/>Site Insight Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-41004 - This client does not exist.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param siteId Site ID (required)
|
||||
* @param clientMac Client MAC (required)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Unblock the client", nickname = "unblockClient", notes = "Unblock the client.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager Modify<br/>Site Insight Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-41004 - This client does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Client","Client", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/clients/{clientMac}/unblock",
|
||||
produces = "*/*",
|
||||
method = RequestMethod.POST)
|
||||
ResponseEntity<OperationResponseWithoutResult> unblockClient(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Client MAC",required=true) @PathVariable("clientMac") String clientMac);
|
||||
|
||||
|
||||
/**
|
||||
* POST /openapi/v1/{omadacId}/sites/{siteId}/clients/{clientMac}/lock-to-ap : Lock the given client to aps
|
||||
* Lock the given client to aps.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-41011 - This client does not exist.<br/>-41020 - Only wireless clients support Lock to AP.<br/>-41021 - The number of Lock to AP entries has reached the upper limit.<br/>-41022 - Blocked clients cannot be locked to AP.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param siteId Site ID (required)
|
||||
* @param clientMac Client MAC (required)
|
||||
* @param clientLockToApSetting1 (optional)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Lock the given client to aps", nickname = "updateClientLockToApSetting", notes = "Lock the given client to aps.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-41011 - This client does not exist.<br/>-41020 - Only wireless clients support Lock to AP.<br/>-41021 - The number of Lock to AP entries has reached the upper limit.<br/>-41022 - Blocked clients cannot be locked to AP.", response = OperationResponseWithoutResult.class, tags={ "Omada/Client","Client", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/clients/{clientMac}/lock-to-ap",
|
||||
produces = "*/*",
|
||||
consumes = "application/json",
|
||||
method = RequestMethod.POST)
|
||||
ResponseEntity<OperationResponseWithoutResult> updateClientLockToApSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Client MAC",required=true) @PathVariable("clientMac") String clientMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ClientLockToApSetting1 clientLockToApSetting1);
|
||||
|
||||
|
||||
/**
|
||||
* PATCH /openapi/v1/{omadacId}/sites/{siteId}/clients/{clientMac}/name : Set name for given client
|
||||
* Set name for given client.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-41011 - This client does not exist.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param siteId Site ID (required)
|
||||
* @param clientMac Client MAC (required)
|
||||
* @param clientNameSetting (optional)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Set name for given client", nickname = "updateClientName", notes = "Set name for given client.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-41011 - This client does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Client","Client", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/clients/{clientMac}/name",
|
||||
produces = "*/*",
|
||||
consumes = "application/json",
|
||||
method = RequestMethod.PATCH)
|
||||
ResponseEntity<OperationResponseWithoutResult> updateClientName(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Client MAC",required=true) @PathVariable("clientMac") String clientMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ClientNameSetting clientNameSetting);
|
||||
|
||||
|
||||
/**
|
||||
* PATCH /openapi/v1/{omadacId}/sites/{siteId}/clients/{clientMac}/ratelimit : Set ratelimit setting for given client
|
||||
* Set ratelimit setting for given client.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33732 - The Rate Limit profile does not exist.<br/>-41008 - The number of clients to be configured with Rate Limit has reached the limit.<br/>-41011 - This client does not exist.
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param siteId Site ID (required)
|
||||
* @param clientMac Client MAC (required)
|
||||
* @param clientRateLimitSetting (optional)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Set ratelimit setting for given client", nickname = "updateClientRateLimitSetting", notes = "Set ratelimit setting for given client.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33732 - The Rate Limit profile does not exist.<br/>-41008 - The number of clients to be configured with Rate Limit has reached the limit.<br/>-41011 - This client does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Client","Client", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/clients/{clientMac}/ratelimit",
|
||||
produces = "*/*",
|
||||
consumes = "application/json",
|
||||
method = RequestMethod.PATCH)
|
||||
ResponseEntity<OperationResponseWithoutResult> updateClientRateLimitSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Client MAC",required=true) @PathVariable("clientMac") String clientMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ClientRateLimitSetting clientRateLimitSetting);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package org.wfc.omada.api.client;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.wfc.omada.api.client.model.OperationResponseGridVoClientHistoryInfo;
|
||||
import org.wfc.omada.config.FeignConfig;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.NotNull;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:32.050+08:00[Asia/Shanghai]")
|
||||
|
||||
@Validated
|
||||
@Api(value = "OmadaClientInsight", description = "the OmadaClientInsight API")
|
||||
@FeignClient(value = "OmadaClientInsightApi",url = "${omada.omada-url}", configuration = FeignConfig.class)
|
||||
public interface OmadaClientInsightApi {
|
||||
|
||||
/**
|
||||
* GET /openapi/v1/{omadacId}/sites/{siteId}/insight/past-connection : Get client past connection list
|
||||
* Get client past connection list.<br/><br/>The interface requires one of the permissions: <br/>Site Insight Manager View Only
|
||||
*
|
||||
* @param omadacId Omada ID (required)
|
||||
* @param siteId Site ID (required)
|
||||
* @param page Start page number. Start from 1. (required)
|
||||
* @param pageSize Number of entries per page. It should be within the range of 1–1000. (required)
|
||||
* @param sortsLastSeen Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional)
|
||||
* @param filtersTimeStart Filter query parameters, support field time range: start timestamp (ms). (optional)
|
||||
* @param filtersTimeEnd Filter query parameters, support field time range: end timestamp (ms). (optional)
|
||||
* @param filtersGuest Filter query parameters, support field guest: true/false. (optional)
|
||||
* @param searchKey Fuzzy query parameters, support field name,mac,ssid. (optional)
|
||||
* @return OK (status code 200)
|
||||
*/
|
||||
@ApiOperation(value = "Get client past connection list", nickname = "getGridPastConnections", notes = "Get client past connection list.<br/><br/>The interface requires one of the permissions: <br/>Site Insight Manager View Only", response = OperationResponseGridVoClientHistoryInfo.class, tags={ "Omada/Client Insight","Client Insight", })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoClientHistoryInfo.class) })
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/insight/past-connection",
|
||||
produces = "*/*",
|
||||
method = RequestMethod.GET)
|
||||
ResponseEntity<OperationResponseGridVoClientHistoryInfo> getGridPastConnections(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.lastSeen", required = false) String sortsLastSeen,@ApiParam(value = "Filter query parameters, support field time range: start timestamp (ms).") @Valid @RequestParam(value = "filters.timeStart", required = false) String filtersTimeStart,@ApiParam(value = "Filter query parameters, support field time range: end timestamp (ms).") @Valid @RequestParam(value = "filters.timeEnd", required = false) String filtersTimeEnd,@ApiParam(value = "Filter query parameters, support field guest: true/false.") @Valid @RequestParam(value = "filters.guest", required = false) String filtersGuest,@ApiParam(value = "Fuzzy query parameters, support field name,mac,ssid.") @Valid @RequestParam(value = "searchKey", required = false) String searchKey);
|
||||
|
||||
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/insight/past-connection",
|
||||
produces = "*/*",
|
||||
method = RequestMethod.GET)
|
||||
ResponseEntity<OperationResponseGridVoClientHistoryInfo> getGridPastConnections(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@Valid @RequestParam(value = "sorts.lastSeen", required = false) String sortsLastSeen,@ApiParam(value = "Filter query parameters, support field time range: start timestamp (ms).") @Valid @RequestParam(value = "filters.timeStart", required = false) String filtersTimeStart,@ApiParam(value = "Filter query parameters, support field time range: end timestamp (ms).") @Valid @RequestParam(value = "filters.timeEnd", required = false) String filtersTimeEnd, @ApiParam(value = "Fuzzy query parameters, support field name,mac,ssid.") @Valid @RequestParam(value = "searchKey", required = false) String searchKey);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
package org.wfc.omada.api.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* AP name and MAC info list.
|
||||
*/
|
||||
@ApiModel(description = "AP name and MAC info list.")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]")
|
||||
|
||||
public class ApBriefInfoVo {
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@JsonProperty("mac")
|
||||
private String mac;
|
||||
|
||||
public ApBriefInfoVo name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* AP name.
|
||||
* @return name
|
||||
*/
|
||||
@ApiModelProperty(value = "AP name.")
|
||||
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ApBriefInfoVo mac(String mac) {
|
||||
this.mac = mac;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* AP MAC, for example: AA-AA-AA-AA-AA-AA.
|
||||
* @return mac
|
||||
*/
|
||||
@ApiModelProperty(value = "AP MAC, for example: AA-AA-AA-AA-AA-AA.")
|
||||
|
||||
|
||||
public String getMac() {
|
||||
return mac;
|
||||
}
|
||||
|
||||
public void setMac(String mac) {
|
||||
this.mac = mac;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ApBriefInfoVo apBriefInfoVo = (ApBriefInfoVo) o;
|
||||
return Objects.equals(this.name, apBriefInfoVo.name) &&
|
||||
Objects.equals(this.mac, apBriefInfoVo.mac);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(name, mac);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ApBriefInfoVo {\n");
|
||||
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" mac: ").append(toIndentedString(mac)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,190 @@
|
||||
package org.wfc.omada.api.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* ClientGridVoClientInfo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]")
|
||||
|
||||
public class ClientGridVoClientInfo {
|
||||
@JsonProperty("totalRows")
|
||||
private Long totalRows;
|
||||
|
||||
@JsonProperty("currentPage")
|
||||
private Integer currentPage;
|
||||
|
||||
@JsonProperty("currentSize")
|
||||
private Integer currentSize;
|
||||
|
||||
@JsonProperty("data")
|
||||
@Valid
|
||||
private List<ClientInfo> data = null;
|
||||
|
||||
@JsonProperty("clientStat")
|
||||
private ClientStatVo clientStat;
|
||||
|
||||
public ClientGridVoClientInfo totalRows(Long totalRows) {
|
||||
this.totalRows = totalRows;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Total rows of all items.
|
||||
* @return totalRows
|
||||
*/
|
||||
@ApiModelProperty(value = "Total rows of all items.")
|
||||
|
||||
|
||||
public Long getTotalRows() {
|
||||
return totalRows;
|
||||
}
|
||||
|
||||
public void setTotalRows(Long totalRows) {
|
||||
this.totalRows = totalRows;
|
||||
}
|
||||
|
||||
public ClientGridVoClientInfo currentPage(Integer currentPage) {
|
||||
this.currentPage = currentPage;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Current page number.
|
||||
* @return currentPage
|
||||
*/
|
||||
@ApiModelProperty(value = "Current page number.")
|
||||
|
||||
|
||||
public Integer getCurrentPage() {
|
||||
return currentPage;
|
||||
}
|
||||
|
||||
public void setCurrentPage(Integer currentPage) {
|
||||
this.currentPage = currentPage;
|
||||
}
|
||||
|
||||
public ClientGridVoClientInfo currentSize(Integer currentSize) {
|
||||
this.currentSize = currentSize;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Number of entries per page.
|
||||
* @return currentSize
|
||||
*/
|
||||
@ApiModelProperty(value = "Number of entries per page.")
|
||||
|
||||
|
||||
public Integer getCurrentSize() {
|
||||
return currentSize;
|
||||
}
|
||||
|
||||
public void setCurrentSize(Integer currentSize) {
|
||||
this.currentSize = currentSize;
|
||||
}
|
||||
|
||||
public ClientGridVoClientInfo data(List<ClientInfo> data) {
|
||||
this.data = data;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ClientGridVoClientInfo addDataItem(ClientInfo dataItem) {
|
||||
if (this.data == null) {
|
||||
this.data = new ArrayList<>();
|
||||
}
|
||||
this.data.add(dataItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get data
|
||||
* @return data
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public List<ClientInfo> getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<ClientInfo> data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public ClientGridVoClientInfo clientStat(ClientStatVo clientStat) {
|
||||
this.clientStat = clientStat;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get clientStat
|
||||
* @return clientStat
|
||||
*/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public ClientStatVo getClientStat() {
|
||||
return clientStat;
|
||||
}
|
||||
|
||||
public void setClientStat(ClientStatVo clientStat) {
|
||||
this.clientStat = clientStat;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ClientGridVoClientInfo clientGridVoClientInfo = (ClientGridVoClientInfo) o;
|
||||
return Objects.equals(this.totalRows, clientGridVoClientInfo.totalRows) &&
|
||||
Objects.equals(this.currentPage, clientGridVoClientInfo.currentPage) &&
|
||||
Objects.equals(this.currentSize, clientGridVoClientInfo.currentSize) &&
|
||||
Objects.equals(this.data, clientGridVoClientInfo.data) &&
|
||||
Objects.equals(this.clientStat, clientGridVoClientInfo.clientStat);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(totalRows, currentPage, currentSize, data, clientStat);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ClientGridVoClientInfo {\n");
|
||||
|
||||
sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n");
|
||||
sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n");
|
||||
sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n");
|
||||
sb.append(" data: ").append(toIndentedString(data)).append("\n");
|
||||
sb.append(" clientStat: ").append(toIndentedString(clientStat)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,438 @@
|
||||
package org.wfc.omada.api.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* ClientHistoryInfo
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]")
|
||||
|
||||
public class ClientHistoryInfo {
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
@JsonProperty("mac")
|
||||
private String mac;
|
||||
|
||||
@JsonProperty("download")
|
||||
private Long download;
|
||||
|
||||
@JsonProperty("upload")
|
||||
private Long upload;
|
||||
|
||||
@JsonProperty("duration")
|
||||
private Long duration;
|
||||
|
||||
@JsonProperty("firstSeen")
|
||||
private Long firstSeen;
|
||||
|
||||
@JsonProperty("lastSeen")
|
||||
private Long lastSeen;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@JsonProperty("ssid")
|
||||
private String ssid;
|
||||
|
||||
@JsonProperty("port")
|
||||
private Integer port;
|
||||
|
||||
@JsonProperty("guest")
|
||||
private Boolean guest;
|
||||
|
||||
@JsonProperty("deviceName")
|
||||
private String deviceName;
|
||||
|
||||
@JsonProperty("associationTime")
|
||||
private Integer associationTime;
|
||||
|
||||
@JsonProperty("ip")
|
||||
private String ip;
|
||||
|
||||
@JsonProperty("ipv6List")
|
||||
@Valid
|
||||
private List<String> ipv6List = null;
|
||||
|
||||
public ClientHistoryInfo id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Client History ID.
|
||||
* @return id
|
||||
*/
|
||||
@ApiModelProperty(value = "Client History ID.")
|
||||
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public ClientHistoryInfo mac(String mac) {
|
||||
this.mac = mac;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Client MAC Address.
|
||||
* @return mac
|
||||
*/
|
||||
@ApiModelProperty(value = "Client MAC Address.")
|
||||
|
||||
|
||||
public String getMac() {
|
||||
return mac;
|
||||
}
|
||||
|
||||
public void setMac(String mac) {
|
||||
this.mac = mac;
|
||||
}
|
||||
|
||||
public ClientHistoryInfo download(Long download) {
|
||||
this.download = download;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Downstream traffic (Byte).
|
||||
* @return download
|
||||
*/
|
||||
@ApiModelProperty(value = "Downstream traffic (Byte).")
|
||||
|
||||
|
||||
public Long getDownload() {
|
||||
return download;
|
||||
}
|
||||
|
||||
public void setDownload(Long download) {
|
||||
this.download = download;
|
||||
}
|
||||
|
||||
public ClientHistoryInfo upload(Long upload) {
|
||||
this.upload = upload;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Upstream traffic (Byte).
|
||||
* @return upload
|
||||
*/
|
||||
@ApiModelProperty(value = "Upstream traffic (Byte).")
|
||||
|
||||
|
||||
public Long getUpload() {
|
||||
return upload;
|
||||
}
|
||||
|
||||
public void setUpload(Long upload) {
|
||||
this.upload = upload;
|
||||
}
|
||||
|
||||
public ClientHistoryInfo duration(Long duration) {
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Up time (unit: s).
|
||||
* @return duration
|
||||
*/
|
||||
@ApiModelProperty(value = "Up time (unit: s).")
|
||||
|
||||
|
||||
public Long getDuration() {
|
||||
return duration;
|
||||
}
|
||||
|
||||
public void setDuration(Long duration) {
|
||||
this.duration = duration;
|
||||
}
|
||||
|
||||
public ClientHistoryInfo firstSeen(Long firstSeen) {
|
||||
this.firstSeen = firstSeen;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The timestamp (ms) when the client connected.
|
||||
* @return firstSeen
|
||||
*/
|
||||
@ApiModelProperty(value = "The timestamp (ms) when the client connected.")
|
||||
|
||||
|
||||
public Long getFirstSeen() {
|
||||
return firstSeen;
|
||||
}
|
||||
|
||||
public void setFirstSeen(Long firstSeen) {
|
||||
this.firstSeen = firstSeen;
|
||||
}
|
||||
|
||||
public ClientHistoryInfo lastSeen(Long lastSeen) {
|
||||
this.lastSeen = lastSeen;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Last found time, timestamp (ms).
|
||||
* @return lastSeen
|
||||
*/
|
||||
@ApiModelProperty(value = "Last found time, timestamp (ms).")
|
||||
|
||||
|
||||
public Long getLastSeen() {
|
||||
return lastSeen;
|
||||
}
|
||||
|
||||
public void setLastSeen(Long lastSeen) {
|
||||
this.lastSeen = lastSeen;
|
||||
}
|
||||
|
||||
public ClientHistoryInfo name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Client Name.
|
||||
* @return name
|
||||
*/
|
||||
@ApiModelProperty(value = "Client Name.")
|
||||
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ClientHistoryInfo ssid(String ssid) {
|
||||
this.ssid = ssid;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* (Wireless) SSID name.
|
||||
* @return ssid
|
||||
*/
|
||||
@ApiModelProperty(value = "(Wireless) SSID name.")
|
||||
|
||||
|
||||
public String getSsid() {
|
||||
return ssid;
|
||||
}
|
||||
|
||||
public void setSsid(String ssid) {
|
||||
this.ssid = ssid;
|
||||
}
|
||||
|
||||
public ClientHistoryInfo port(Integer port) {
|
||||
this.port = port;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* (Wired) Port ID.
|
||||
* @return port
|
||||
*/
|
||||
@ApiModelProperty(value = "(Wired) Port ID.")
|
||||
|
||||
|
||||
public Integer getPort() {
|
||||
return port;
|
||||
}
|
||||
|
||||
public void setPort(Integer port) {
|
||||
this.port = port;
|
||||
}
|
||||
|
||||
public ClientHistoryInfo guest(Boolean guest) {
|
||||
this.guest = guest;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* (Wireless) Whether it is Guest (used to display the wireless Guest client icon).
|
||||
* @return guest
|
||||
*/
|
||||
@ApiModelProperty(value = "(Wireless) Whether it is Guest (used to display the wireless Guest client icon).")
|
||||
|
||||
|
||||
public Boolean getGuest() {
|
||||
return guest;
|
||||
}
|
||||
|
||||
public void setGuest(Boolean guest) {
|
||||
this.guest = guest;
|
||||
}
|
||||
|
||||
public ClientHistoryInfo deviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device name.
|
||||
* @return deviceName
|
||||
*/
|
||||
@ApiModelProperty(value = "Device name.")
|
||||
|
||||
|
||||
public String getDeviceName() {
|
||||
return deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public ClientHistoryInfo associationTime(Integer associationTime) {
|
||||
this.associationTime = associationTime;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* (Wireless) The time (ms) it takes for the client to connect to SSID.
|
||||
* @return associationTime
|
||||
*/
|
||||
@ApiModelProperty(value = "(Wireless) The time (ms) it takes for the client to connect to SSID.")
|
||||
|
||||
|
||||
public Integer getAssociationTime() {
|
||||
return associationTime;
|
||||
}
|
||||
|
||||
public void setAssociationTime(Integer associationTime) {
|
||||
this.associationTime = associationTime;
|
||||
}
|
||||
|
||||
public ClientHistoryInfo ip(String ip) {
|
||||
this.ip = ip;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* IP Address.
|
||||
* @return ip
|
||||
*/
|
||||
@ApiModelProperty(value = "IP Address.")
|
||||
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public ClientHistoryInfo ipv6List(List<String> ipv6List) {
|
||||
this.ipv6List = ipv6List;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ClientHistoryInfo addIpv6ListItem(String ipv6ListItem) {
|
||||
if (this.ipv6List == null) {
|
||||
this.ipv6List = new ArrayList<>();
|
||||
}
|
||||
this.ipv6List.add(ipv6ListItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* IPv6 Address.
|
||||
* @return ipv6List
|
||||
*/
|
||||
@ApiModelProperty(value = "IPv6 Address.")
|
||||
|
||||
|
||||
public List<String> getIpv6List() {
|
||||
return ipv6List;
|
||||
}
|
||||
|
||||
public void setIpv6List(List<String> ipv6List) {
|
||||
this.ipv6List = ipv6List;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ClientHistoryInfo clientHistoryInfo = (ClientHistoryInfo) o;
|
||||
return Objects.equals(this.id, clientHistoryInfo.id) &&
|
||||
Objects.equals(this.mac, clientHistoryInfo.mac) &&
|
||||
Objects.equals(this.download, clientHistoryInfo.download) &&
|
||||
Objects.equals(this.upload, clientHistoryInfo.upload) &&
|
||||
Objects.equals(this.duration, clientHistoryInfo.duration) &&
|
||||
Objects.equals(this.firstSeen, clientHistoryInfo.firstSeen) &&
|
||||
Objects.equals(this.lastSeen, clientHistoryInfo.lastSeen) &&
|
||||
Objects.equals(this.name, clientHistoryInfo.name) &&
|
||||
Objects.equals(this.ssid, clientHistoryInfo.ssid) &&
|
||||
Objects.equals(this.port, clientHistoryInfo.port) &&
|
||||
Objects.equals(this.guest, clientHistoryInfo.guest) &&
|
||||
Objects.equals(this.deviceName, clientHistoryInfo.deviceName) &&
|
||||
Objects.equals(this.associationTime, clientHistoryInfo.associationTime) &&
|
||||
Objects.equals(this.ip, clientHistoryInfo.ip) &&
|
||||
Objects.equals(this.ipv6List, clientHistoryInfo.ipv6List);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, mac, download, upload, duration, firstSeen, lastSeen, name, ssid, port, guest, deviceName, associationTime, ip, ipv6List);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ClientHistoryInfo {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" mac: ").append(toIndentedString(mac)).append("\n");
|
||||
sb.append(" download: ").append(toIndentedString(download)).append("\n");
|
||||
sb.append(" upload: ").append(toIndentedString(upload)).append("\n");
|
||||
sb.append(" duration: ").append(toIndentedString(duration)).append("\n");
|
||||
sb.append(" firstSeen: ").append(toIndentedString(firstSeen)).append("\n");
|
||||
sb.append(" lastSeen: ").append(toIndentedString(lastSeen)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" ssid: ").append(toIndentedString(ssid)).append("\n");
|
||||
sb.append(" port: ").append(toIndentedString(port)).append("\n");
|
||||
sb.append(" guest: ").append(toIndentedString(guest)).append("\n");
|
||||
sb.append(" deviceName: ").append(toIndentedString(deviceName)).append("\n");
|
||||
sb.append(" associationTime: ").append(toIndentedString(associationTime)).append("\n");
|
||||
sb.append(" ip: ").append(toIndentedString(ip)).append("\n");
|
||||
sb.append(" ipv6List: ").append(toIndentedString(ipv6List)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user