Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature][scaleph-security] add web resource #635

Merged
merged 3 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
<flink.version>1.18.0</flink.version>
<flink.base.version>1.17</flink.base.version>
<flink-jdbc.version>3.1.1</flink-jdbc.version>
<paimon.version>0.4.0-incubating</paimon.version>
<paimon.version>0.5.0-incubating</paimon.version>
<kubernetes.client.version>6.2.0</kubernetes.client.version>
<spring-cloud-openfeign.version>3.1.7</spring-cloud-openfeign.version>
<zjsonpatch.version>0.4.14</zjsonpatch.version>
Expand Down
200 changes: 199 additions & 1 deletion tools/docker/mysql/init.d/scaleph-security-mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ create table sec_resource_web
editor varchar(32) comment '修改人',
update_time datetime not null default current_timestamp on update current_timestamp comment '修改时间',
primary key (id),
unique key (type, pid, name)
unique key (type, pid, path)
) engine = innodb comment = '资源-web';

INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
Expand All @@ -318,6 +318,204 @@ VALUES (4, '2', 0, 'register', '/register', NULL, 0, NULL, './User/Register', NU
INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
`creator`, `editor`)
VALUES (5, '2', 0, 'user-center', '/user/center', NULL, NULL, NULL, './User', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (6, '0', 0, 'studio', '/studio', NULL, NULL, 'codeSandbox', NULL, NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (7, '2', 6, '', '/studio', '/studio/databoard', NULL, NULL, NULL, NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (8, '2', 6, 'databoard', '/studio/databoard', NULL, NULL, 'dashboard', './Studio/DataBoard', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (9, '0', 0, 'project', '/project', NULL, NULL, 'project', NULL, NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (10, '2', 9, NULL, '/project', NULL, NULL, NULL, './Project', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (11, '1', 0, NULL, '/workspace', NULL, NULL, NULL, NULL, NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (12, '1', 11, NULL, '/workspace', '/workspace/artifact', NULL, NULL, NULL, NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (13, '1', 11, 'project.artifact', '/workspace/artifact', NULL, NULL, 'code', NULL, NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (14, '2', 13, NULL, '/workspace/artifact', '/workspace/artifact/jar', NULL, NULL, NULL, NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (15, '2', 13, 'jar', '/workspace/artifact/jar', NULL, NULL, NULL, './Project/Workspace/Artifact/Jar', NULL,
'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (16, '2', 13, NULL, '/workspace/artifact/history', NULL, NULL, NULL, './Project/Workspace/Artifact/Jar/History',
NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (17, '2', 13, 'sql', '/workspace/artifact/sql', NULL, NULL, NULL, './Project/Workspace/Artifact/Sql', NULL,
'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (18, '2', 13, NULL, '/workspace/artifact/editor', NULL, NULL, NULL,
'./Project/Workspace/Artifact/Sql/CodeEditor', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (19, '2', 13, 'seatunnel', '/workspace/artifact/seatunnel', NULL, NULL, NULL,
'./Project/Workspace/Artifact/DI/DiJobView', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (20, '2', 13, NULL, '/workspace/artifact/seatunnel/dag', NULL, NULL, NULL,
'./Project/Workspace/Artifact/DI/DiJobFlow', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (21, '1', 11, 'project.flink.kubernetes', '/workspace/flink/kubernetes', NULL, NULL, 'deploymentUnit', NULL,
NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (22, '2', 21, NULL, '/workspace/flink/kubernetes', '/workspace/flink/kubernetes/template', NULL, NULL, NULL,
NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (23, '2', 21, 'template', '/workspace/flink/kubernetes/template', NULL, NULL, NULL,
'./Project/Workspace/Kubernetes/Template', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (24, '2', 21, '', '/workspace/flink/kubernetes/template/detail', NULL, NULL, NULL,
'./Project/Workspace/Kubernetes/Template/Detail', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (25, '2', 21, 'session-cluster', '/workspace/flink/kubernetes/session-cluster', NULL, NULL, NULL,
'./Project/Workspace/Kubernetes/SessionCluster', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (26, '2', 21, NULL, '/workspace/flink/kubernetes/session-cluster/steps', NULL, NULL, NULL,
'./Project/Workspace/Kubernetes/SessionCluster/Steps', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (27, '2', 21, NULL, '/workspace/flink/kubernetes/session-cluster/detail', NULL, NULL, NULL,
'./Project/Workspace/Kubernetes/SessionCluster/Detail', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (28, '2', 21, 'deployment', '/workspace/flink/kubernetes/deployment', NULL, NULL, NULL,
'./Project/Workspace/Kubernetes/Deployment', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (29, '2', 21, NULL, '/workspace/flink/kubernetes/deployment/steps', NULL, NULL, NULL,
'./Project/Workspace/Kubernetes/Deployment/Steps', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (30, '2', 21, NULL, '/workspace/flink/kubernetes/deployment/detail', NULL, NULL, NULL,
'./Project/Workspace/Kubernetes/Deployment/Detail', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (31, '2', 21, 'job', '/workspace/flink/kubernetes/job', NULL, NULL, NULL, './Project/Workspace/Kubernetes/Job',
NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (32, '2', 21, NULL, '/workspace/flink/kubernetes/job/detail', NULL, NULL, NULL,
'./Project/Workspace/Kubernetes/Job/Detail', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (33, '0', 0, 'resource', '/resource', NULL, NULL, 'fileText', NULL, NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (34, '2', 33, '', '/resource', '/resource/jar', NULL, NULL, NULL, NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (35, '2', 33, 'jar', '/resource/jar', NULL, NULL, NULL, './Resource/Jar', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (36, '2', 33, 'flinkRelease', '/resource/flink-release', NULL, NULL, NULL, './Resource/FlinkRelease', NULL,
'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (37, '2', 33, 'seatunnelRelease', '/resource/seatunnel-release', NULL, NULL, NULL, './Resource/SeaTunnelRelease',
NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (38, '2', 33, NULL, '/resource/seatunnel-release/connectors', NULL, NULL, NULL, './Resource/SeaTunnelConnector',
NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (39, '2', 33, 'kerberos', '/resource/kerberos', NULL, NULL, NULL, './Resource/Kerberos', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (40, '2', 33, 'clusterCredential', '/resource/cluster-credential', NULL, NULL, NULL,
'./Resource/ClusterCredential', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (41, '0', 0, 'dataSource', '/dataSource', NULL, NULL, NULL, 'compass', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (42, '2', 41, NULL, '/dataSource', NULL, NULL, NULL, './DataSource', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web` (`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`,
`remark`, `creator`, `editor`)
VALUES (43, '2', 41, NULL, '/dataSource/stepForms', NULL, NULL, NULL, './DataSource/StepForms', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
`creator`, `editor`)
VALUES (44, '0', 0, 'stdata', '/stdata', NULL, NULL, 'database', NULL, NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
`creator`, `editor`)
VALUES (45, '2', 44, NULL, '/stdata', '/stdata/system', NULL, NULL, NULL, NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
`creator`, `editor`)
VALUES (46, '2', 44, 'system', '/stdata/system', NULL, NULL, 'group', './Stdata/System', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
`creator`, `editor`)
VALUES (47, '2', 44, 'dataElement', '/stdata/dataElement', NULL, NULL, 'hdd', './Stdata/DataElement', NULL, 'sys',
'sys');
INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
`creator`, `editor`)
VALUES (48, '2', 44, 'refdata', '/stdata/refdata', NULL, NULL, 'profile', './Stdata/RefData', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
`creator`, `editor`)
VALUES (49, '2', 44, NULL, '/stdata/refdata/value', NULL, NULL, NULL, './Stdata/RefData/Value', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
`creator`, `editor`)
VALUES (50, '2', 44, 'refdataMap', '/stdata/refdataMap', NULL, NULL, 'oneToOne', './Stdata/RefDataMap', NULL, 'sys',
'sys');
INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
`creator`, `editor`)
VALUES (51, '0', 0, 'admin', '/admin', NULL, NULL, 'setting', NULL, NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
`creator`, `editor`)
VALUES (52, '2', 51, NULL, '/admin', '/admin/dept', NULL, NULL, NULL, NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
`creator`, `editor`)
VALUES (53, '2', 51, 'dept', '/admin/dept', NULL, NULL, 'apartment', './Admin/Dept', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
`creator`, `editor`)
VALUES (54, '2', 51, 'role', '/admin/role', NULL, NULL, 'safety', './Admin/Role', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
`creator`, `editor`)
VALUES (55, '2', 51, 'user', '/admin/user', NULL, NULL, 'user', './Admin/User', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
`creator`, `editor`)
VALUES (56, '2', 51, 'resource.web', '/admin/resource/web', NULL, NULL, 'team', './Admin/Resource/Web', NULL, 'sys',
'sys');
INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
`creator`, `editor`)
VALUES (57, '2', 51, 'privilege', '/admin/privilege', NULL, NULL, 'team', './Admin/Privilege', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
`creator`, `editor`)
VALUES (58, '2', 51, 'quartz', '/admin/workflow/quartz', NULL, NULL, 'fieldTime', './Workflow/Definition/Quartz', NULL,
'sys', 'sys');
INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
`creator`, `editor`)
VALUES (59, '2', 51, '', '/admin/workflow/quartz/task', NULL, NULL, NULL, './Workflow/Definition/Quartz/Task', NULL,
'sys', 'sys');
INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
`creator`, `editor`)
VALUES (61, '2', 51, NULL, '/admin/workflow/schedule', NULL, NULL, NULL, './Workflow/Schedule', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
`creator`, `editor`)
VALUES (62, '2', 51, 'dict', '/admin/dict', NULL, NULL, 'table', './Admin/Dict', NULL, 'sys', 'sys');
INSERT INTO `sec_resource_web`(`id`, `type`, `pid`, `name`, `path`, `redirect`, `layout`, `icon`, `component`, `remark`,
`creator`, `editor`)
VALUES (63, '2', 51, 'setting', '/admin/setting', NULL, NULL, 'setting', './Admin/Setting', NULL, 'sys', 'sys');

/* 部门表 */
drop table if exists sec_dept;
Expand Down