数据输出
parent
c8165f1f14
commit
ee05b5ba7f
|
@ -7,18 +7,13 @@
|
|||
<sourceOutputDir name="target/generated-sources/annotations" />
|
||||
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
||||
<outputRelativeToContentRoot value="true" />
|
||||
<module name="etl-jwt-manage" />
|
||||
<module name="etl-database-common" />
|
||||
<module name="etl-auth-server" />
|
||||
<module name="etl-database-server" />
|
||||
<module name="etl-auth-server" />
|
||||
<module name="etl-common" />
|
||||
<module name="etl-gateway" />
|
||||
<module name="etl-easycode" />
|
||||
<module name="etl-jwt-manage" />
|
||||
<module name="etl-database-common" />
|
||||
</profile>
|
||||
</annotationProcessing>
|
||||
<bytecodeTargetLevel>
|
||||
<module name="etl-groovy" target="1.8" />
|
||||
<module name="etl-mysql" target="1.8" />
|
||||
</bytecodeTargetLevel>
|
||||
</component>
|
||||
</project>
|
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="dataSourceStorageLocal" created-in="IU-232.8660.185">
|
||||
<data-source name="liz" uuid="6b8f28b8-a5cd-487d-8bae-93c3ccefe4a9">
|
||||
<database-info product="MySQL" version="5.7.36" jdbc-version="4.2" driver-name="MySQL Connector/J" driver-version="mysql-connector-j-8.2.0 (Revision: 06a1f724497fd81c6a659131fda822c9e5085b6c)" dbms="MYSQL" exact-version="5.7.36" exact-driver-version="8.2">
|
||||
<extra-name-characters>#@</extra-name-characters>
|
||||
<identifier-quote-string>`</identifier-quote-string>
|
||||
</database-info>
|
||||
<case-sensitivity plain-identifiers="lower" quoted-identifiers="lower" />
|
||||
<secret-storage>master_key</secret-storage>
|
||||
<user-name>root</user-name>
|
||||
<schema-mapping>
|
||||
<introspection-scope>
|
||||
<node kind="schema" qname="etl" />
|
||||
</introspection-scope>
|
||||
</schema-mapping>
|
||||
</data-source>
|
||||
</component>
|
||||
</project>
|
|
@ -1,12 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
||||
<data-source source="LOCAL" name="liz" uuid="6b8f28b8-a5cd-487d-8bae-93c3ccefe4a9">
|
||||
<driver-ref>mysql.8</driver-ref>
|
||||
<synchronize>true</synchronize>
|
||||
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
|
||||
<jdbc-url>jdbc:mysql://115.159.33.152:3306</jdbc-url>
|
||||
<working-dir>$ProjectFileDir$</working-dir>
|
||||
</data-source>
|
||||
</component>
|
||||
</project>
|
|
@ -1,279 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<dataSource name="liz">
|
||||
<database-model serializer="dbm" dbms="MYSQL" family-id="MYSQL" format-version="4.49">
|
||||
<root id="1">
|
||||
<DefaultCasing>lower/lower</DefaultCasing>
|
||||
<DefaultEngine>InnoDB</DefaultEngine>
|
||||
<DefaultTmpEngine>InnoDB</DefaultTmpEngine>
|
||||
<ServerVersion>5.7.36</ServerVersion>
|
||||
</root>
|
||||
<schema id="2" parent="1" name="dimensional_health">
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="3" parent="1" name="etl">
|
||||
<IntrospectionTimestamp>2024-06-24.16:01:07</IntrospectionTimestamp>
|
||||
<LocalIntrospectionTimestamp>2024-06-24.08:01:05</LocalIntrospectionTimestamp>
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="4" parent="1" name="follow">
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="5" parent="1" name="followtwo">
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="6" parent="1" name="information_schema">
|
||||
<CollationName>utf8_general_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="7" parent="1" name="mall-app-web">
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="8" parent="1" name="mall-car">
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="9" parent="1" name="mall-cloud">
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="10" parent="1" name="mall-config">
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="11" parent="1" name="mall-product">
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="12" parent="1" name="mall-seata">
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="13" parent="1" name="mysql">
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="14" parent="1" name="nacos_config">
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="15" parent="1" name="performance_schema">
|
||||
<CollationName>utf8_general_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="16" parent="1" name="pra">
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="17" parent="1" name="product">
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="18" parent="1" name="ry-cloud">
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="19" parent="1" name="seata">
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="20" parent="1" name="skywalking">
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="21" parent="1" name="sys">
|
||||
<CollationName>utf8_general_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="22" parent="1" name="xxl_job">
|
||||
<CollationName>utf8mb4_unicode_ci</CollationName>
|
||||
</schema>
|
||||
<schema id="23" parent="1" name="zzl_job">
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</schema>
|
||||
<table id="24" parent="3" name="t_data_source">
|
||||
<Comment>数据资源表</Comment>
|
||||
<Engine>InnoDB</Engine>
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</table>
|
||||
<table id="25" parent="3" name="t_role">
|
||||
<Comment>角色表</Comment>
|
||||
<Engine>InnoDB</Engine>
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</table>
|
||||
<table id="26" parent="3" name="t_role_source">
|
||||
<Comment>角色和资源表映射关系</Comment>
|
||||
<Engine>InnoDB</Engine>
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</table>
|
||||
<table id="27" parent="3" name="t_user">
|
||||
<Comment>用户表</Comment>
|
||||
<Engine>InnoDB</Engine>
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</table>
|
||||
<table id="28" parent="3" name="t_user_role">
|
||||
<Comment>用户表和角色表映射</Comment>
|
||||
<Engine>InnoDB</Engine>
|
||||
<CollationName>utf8mb4_general_ci</CollationName>
|
||||
</table>
|
||||
<column id="29" parent="24" name="id">
|
||||
<AutoIncrement>2</AutoIncrement>
|
||||
<DasType>int(11)|0s</DasType>
|
||||
<NotNull>1</NotNull>
|
||||
<Position>1</Position>
|
||||
</column>
|
||||
<column id="30" parent="24" name="permission_code">
|
||||
<Comment>权限代号</Comment>
|
||||
<DasType>varchar(255)|0s</DasType>
|
||||
<Position>2</Position>
|
||||
</column>
|
||||
<column id="31" parent="24" name="hierarchy">
|
||||
<Comment>路由层次</Comment>
|
||||
<DasType>varchar(255)|0s</DasType>
|
||||
<Position>3</Position>
|
||||
</column>
|
||||
<column id="32" parent="24" name="path">
|
||||
<Comment>路由</Comment>
|
||||
<DasType>varchar(255)|0s</DasType>
|
||||
<Position>4</Position>
|
||||
</column>
|
||||
<column id="33" parent="24" name="description">
|
||||
<Comment>功能描述</Comment>
|
||||
<DasType>varchar(255)|0s</DasType>
|
||||
<Position>5</Position>
|
||||
</column>
|
||||
<column id="34" parent="24" name="status">
|
||||
<Comment>状态 0-废弃 1-正在使用</Comment>
|
||||
<DasType>tinyint(4)|0s</DasType>
|
||||
<Position>6</Position>
|
||||
</column>
|
||||
<index id="35" parent="24" name="PRIMARY">
|
||||
<ColNames>id</ColNames>
|
||||
<Type>btree</Type>
|
||||
<Unique>1</Unique>
|
||||
</index>
|
||||
<key id="36" parent="24" name="PRIMARY">
|
||||
<NameSurrogate>1</NameSurrogate>
|
||||
<Primary>1</Primary>
|
||||
<UnderlyingIndexName>PRIMARY</UnderlyingIndexName>
|
||||
</key>
|
||||
<column id="37" parent="25" name="id">
|
||||
<AutoIncrement>3</AutoIncrement>
|
||||
<DasType>int(11)|0s</DasType>
|
||||
<NotNull>1</NotNull>
|
||||
<Position>1</Position>
|
||||
</column>
|
||||
<column id="38" parent="25" name="role_name">
|
||||
<Comment>角色名称</Comment>
|
||||
<DasType>varchar(34)|0s</DasType>
|
||||
<Position>2</Position>
|
||||
</column>
|
||||
<column id="39" parent="25" name="description">
|
||||
<Comment>角色具体描述</Comment>
|
||||
<DasType>varchar(36)|0s</DasType>
|
||||
<Position>3</Position>
|
||||
</column>
|
||||
<index id="40" parent="25" name="PRIMARY">
|
||||
<ColNames>id</ColNames>
|
||||
<Type>btree</Type>
|
||||
<Unique>1</Unique>
|
||||
</index>
|
||||
<key id="41" parent="25" name="PRIMARY">
|
||||
<NameSurrogate>1</NameSurrogate>
|
||||
<Primary>1</Primary>
|
||||
<UnderlyingIndexName>PRIMARY</UnderlyingIndexName>
|
||||
</key>
|
||||
<column id="42" parent="26" name="id">
|
||||
<AutoIncrement>4</AutoIncrement>
|
||||
<DasType>int(11)|0s</DasType>
|
||||
<NotNull>1</NotNull>
|
||||
<Position>1</Position>
|
||||
</column>
|
||||
<column id="43" parent="26" name="role">
|
||||
<DasType>varchar(255)|0s</DasType>
|
||||
<Position>2</Position>
|
||||
</column>
|
||||
<column id="44" parent="26" name="permission_code">
|
||||
<Comment>可以访问的路由编码</Comment>
|
||||
<DasType>varchar(255)|0s</DasType>
|
||||
<Position>3</Position>
|
||||
</column>
|
||||
<index id="45" parent="26" name="PRIMARY">
|
||||
<ColNames>id</ColNames>
|
||||
<Type>btree</Type>
|
||||
<Unique>1</Unique>
|
||||
</index>
|
||||
<key id="46" parent="26" name="PRIMARY">
|
||||
<NameSurrogate>1</NameSurrogate>
|
||||
<Primary>1</Primary>
|
||||
<UnderlyingIndexName>PRIMARY</UnderlyingIndexName>
|
||||
</key>
|
||||
<column id="47" parent="27" name="id">
|
||||
<AutoIncrement>3</AutoIncrement>
|
||||
<DasType>int(11)|0s</DasType>
|
||||
<NotNull>1</NotNull>
|
||||
<Position>1</Position>
|
||||
</column>
|
||||
<column id="48" parent="27" name="username">
|
||||
<Comment>用户名</Comment>
|
||||
<DasType>varchar(50)|0s</DasType>
|
||||
<Position>2</Position>
|
||||
</column>
|
||||
<column id="49" parent="27" name="password">
|
||||
<Comment>密码</Comment>
|
||||
<DasType>varchar(255)|0s</DasType>
|
||||
<Position>3</Position>
|
||||
</column>
|
||||
<column id="50" parent="27" name="roles">
|
||||
<Comment>角色</Comment>
|
||||
<DasType>varchar(50)|0s</DasType>
|
||||
<Position>4</Position>
|
||||
</column>
|
||||
<column id="51" parent="27" name="mobile">
|
||||
<Comment>手机号码</Comment>
|
||||
<DasType>varchar(32)|0s</DasType>
|
||||
<Position>5</Position>
|
||||
</column>
|
||||
<column id="52" parent="27" name="status">
|
||||
<Comment>状态 1-正常 2-废弃</Comment>
|
||||
<DasType>int(11)|0s</DasType>
|
||||
<Position>6</Position>
|
||||
</column>
|
||||
<column id="53" parent="27" name="email">
|
||||
<Comment>电子邮箱</Comment>
|
||||
<DasType>varchar(255)|0s</DasType>
|
||||
<Position>7</Position>
|
||||
</column>
|
||||
<column id="54" parent="27" name="account">
|
||||
<Comment>账号</Comment>
|
||||
<DasType>varchar(255)|0s</DasType>
|
||||
<Position>8</Position>
|
||||
</column>
|
||||
<column id="55" parent="27" name="uuid">
|
||||
<DasType>text|0s</DasType>
|
||||
<Position>9</Position>
|
||||
</column>
|
||||
<index id="56" parent="27" name="PRIMARY">
|
||||
<ColNames>id</ColNames>
|
||||
<Type>btree</Type>
|
||||
<Unique>1</Unique>
|
||||
</index>
|
||||
<key id="57" parent="27" name="PRIMARY">
|
||||
<NameSurrogate>1</NameSurrogate>
|
||||
<Primary>1</Primary>
|
||||
<UnderlyingIndexName>PRIMARY</UnderlyingIndexName>
|
||||
</key>
|
||||
<column id="58" parent="28" name="id">
|
||||
<AutoIncrement>3</AutoIncrement>
|
||||
<DasType>int(11)|0s</DasType>
|
||||
<NotNull>1</NotNull>
|
||||
<Position>1</Position>
|
||||
</column>
|
||||
<column id="59" parent="28" name="username">
|
||||
<DasType>varchar(255)|0s</DasType>
|
||||
<Position>2</Position>
|
||||
</column>
|
||||
<column id="60" parent="28" name="roles">
|
||||
<DasType>varchar(255)|0s</DasType>
|
||||
<Position>3</Position>
|
||||
</column>
|
||||
<column id="61" parent="28" name="decription">
|
||||
<DasType>varchar(255)|0s</DasType>
|
||||
<Position>4</Position>
|
||||
</column>
|
||||
<index id="62" parent="28" name="PRIMARY">
|
||||
<ColNames>id</ColNames>
|
||||
<Type>btree</Type>
|
||||
<Unique>1</Unique>
|
||||
</index>
|
||||
<key id="63" parent="28" name="PRIMARY">
|
||||
<NameSurrogate>1</NameSurrogate>
|
||||
<Primary>1</Primary>
|
||||
<UnderlyingIndexName>PRIMARY</UnderlyingIndexName>
|
||||
</key>
|
||||
</database-model>
|
||||
</dataSource>
|
|
@ -1,2 +0,0 @@
|
|||
#n:etl
|
||||
!<md> [1719216067000, 0, null, null, -2147483648, -2147483648]
|
|
@ -1,2 +0,0 @@
|
|||
#n:information_schema
|
||||
!<md> [null, 0, null, null, -2147483648, -2147483648]
|
|
@ -1,2 +0,0 @@
|
|||
#n:mysql
|
||||
!<md> [null, 0, null, null, -2147483648, -2147483648]
|
|
@ -1,2 +0,0 @@
|
|||
#n:performance_schema
|
||||
!<md> [null, 0, null, null, -2147483648, -2147483648]
|
|
@ -1,2 +0,0 @@
|
|||
#n:sys
|
||||
!<md> [null, 0, null, null, -2147483648, -2147483648]
|
|
@ -1,87 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="EasyCodeTableSetting">
|
||||
<option name="tableInfoMap">
|
||||
<map>
|
||||
<entry key="etl.t_user">
|
||||
<value>
|
||||
<TableInfoDTO>
|
||||
<option name="comment" value="用户表" />
|
||||
<option name="fullColumn">
|
||||
<list>
|
||||
<ColumnInfoDTO>
|
||||
<option name="custom" value="false" />
|
||||
<option name="ext" value="{}" />
|
||||
<option name="name" value="id" />
|
||||
<option name="type" value="java.lang.Integer" />
|
||||
</ColumnInfoDTO>
|
||||
<ColumnInfoDTO>
|
||||
<option name="comment" value="用户名" />
|
||||
<option name="custom" value="false" />
|
||||
<option name="ext" value="{}" />
|
||||
<option name="name" value="username" />
|
||||
<option name="type" value="java.lang.String" />
|
||||
</ColumnInfoDTO>
|
||||
<ColumnInfoDTO>
|
||||
<option name="comment" value="密码" />
|
||||
<option name="custom" value="false" />
|
||||
<option name="ext" value="{}" />
|
||||
<option name="name" value="password" />
|
||||
<option name="type" value="java.lang.String" />
|
||||
</ColumnInfoDTO>
|
||||
<ColumnInfoDTO>
|
||||
<option name="comment" value="角色" />
|
||||
<option name="custom" value="false" />
|
||||
<option name="ext" value="{}" />
|
||||
<option name="name" value="roles" />
|
||||
<option name="type" value="java.lang.String" />
|
||||
</ColumnInfoDTO>
|
||||
<ColumnInfoDTO>
|
||||
<option name="comment" value="手机号码" />
|
||||
<option name="custom" value="false" />
|
||||
<option name="ext" value="{}" />
|
||||
<option name="name" value="mobile" />
|
||||
<option name="type" value="java.lang.String" />
|
||||
</ColumnInfoDTO>
|
||||
<ColumnInfoDTO>
|
||||
<option name="comment" value="状态 1-正常 2-废弃" />
|
||||
<option name="custom" value="false" />
|
||||
<option name="ext" value="{}" />
|
||||
<option name="name" value="status" />
|
||||
<option name="type" value="java.lang.Integer" />
|
||||
</ColumnInfoDTO>
|
||||
<ColumnInfoDTO>
|
||||
<option name="comment" value="电子邮箱" />
|
||||
<option name="custom" value="false" />
|
||||
<option name="ext" value="{}" />
|
||||
<option name="name" value="email" />
|
||||
<option name="type" value="java.lang.String" />
|
||||
</ColumnInfoDTO>
|
||||
<ColumnInfoDTO>
|
||||
<option name="comment" value="账号" />
|
||||
<option name="custom" value="false" />
|
||||
<option name="ext" value="{}" />
|
||||
<option name="name" value="account" />
|
||||
<option name="type" value="java.lang.String" />
|
||||
</ColumnInfoDTO>
|
||||
<ColumnInfoDTO>
|
||||
<option name="custom" value="false" />
|
||||
<option name="ext" value="{}" />
|
||||
<option name="name" value="uuid" />
|
||||
<option name="type" value="java.lang.String" />
|
||||
</ColumnInfoDTO>
|
||||
</list>
|
||||
</option>
|
||||
<option name="name" value="TUser" />
|
||||
<option name="preName" value="" />
|
||||
<option name="saveModelName" value="etl-easycode" />
|
||||
<option name="savePackageName" value="com" />
|
||||
<option name="savePath" value="./etl-easycode/src/main/java/com" />
|
||||
<option name="templateGroupName" value="Default" />
|
||||
</TableInfoDTO>
|
||||
</value>
|
||||
</entry>
|
||||
</map>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
|
@ -15,16 +15,10 @@
|
|||
<file url="file://$PROJECT_DIR$/etl-database/etl-database-server/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/etl-database/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/etl-database/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/etl-easycode/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/etl-easycode/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/etl-gateway/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/etl-gateway/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/etl-groovy/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/etl-groovy/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/etl-jwt-manage/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/etl-jwt-manage/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/etl-mysql/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/etl-mysql/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
|
||||
<file url="PROJECT" charset="UTF-8" />
|
||||
|
|
|
@ -1,68 +1,5 @@
|
|||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="AliAccessStaticViaInstance" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AliArrayNamingShouldHaveBracket" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AliControlFlowStatementWithoutBraces" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AliDeprecation" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AliEqualsAvoidNull" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AliLongLiteralsEndingWithLowercaseL" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AliMissingOverrideAnnotation" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AliWrapperTypeEquality" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAbstractClassShouldStartWithAbstractNaming" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAbstractMethodOrInterfaceMethodMustUseJavadoc" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidApacheBeanUtilsCopy" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidCallStaticSimpleDateFormat" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidCommentBehindStatement" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidComplexCondition" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidConcurrentCompetitionRandom" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidDoubleOrFloatEqualCompare" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidManuallyCreateThread" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidMissUseOfMathRandom" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidNegationOperator" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidNewDateGetTime" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidPatternCompileInMethod" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidReturnInFinally" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidStartWithDollarAndUnderLineNaming" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidUseTimer" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaBigDecimalAvoidDoubleConstructor" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaBooleanPropertyShouldNotStartWithIs" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaClassCastExceptionWithSubListToArrayList" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaClassCastExceptionWithToArray" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaClassMustHaveAuthor" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaClassNamingShouldBeCamel" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaCollectionInitShouldAssignCapacity" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaCommentsMustBeJavadocFormat" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaConcurrentExceptionWithModifyOriginSubList" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaConstantFieldShouldBeUpperCase" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaCountDownShouldInFinally" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaDontModifyInForeachCircle" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaEnumConstantsMustHaveComment" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaExceptionClassShouldEndWithException" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaIbatisMethodQueryForList" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaLockShouldWithTryFinally" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaLowerCamelCaseVariableNaming" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaMethodReturnWrapperType" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaMethodTooLong" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaPackageNaming" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaPojoMustOverrideToString" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaPojoMustUsePrimitiveField" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaPojoNoDefaultValue" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaRemoveCommentedCode" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaServiceOrDaoClassShouldEndWithImpl" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaSneakyThrowsWithoutExceptionType" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaStringConcat" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaSwitchExpression" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaSwitchStatement" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaTestClassShouldEndWithTestNaming" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaThreadLocalShouldRemove" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaThreadPoolCreation" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaThreadShouldSetName" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaTransactionMustHaveRollback" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaUndefineMagicConstant" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaUnsupportedExceptionWithModifyAsList" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaUseQuietReferenceNotation" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaUseRightCaseForDateFormat" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="MapOrSetKeyShouldOverrideHashCodeEquals" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
</profile>
|
||||
</component>
|
|
@ -4,28 +4,16 @@
|
|||
<option name="originalFiles">
|
||||
<list>
|
||||
<option value="$PROJECT_DIR$/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/etl-mysql/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/etl-auth/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/etl-jwt-manage/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/etl-auth/etl-auth-common/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/etl-auth/etl-auth-server/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/etl-easycode/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/etl-database/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/etl-database/etl-database-common/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/etl-database/etl-database-server/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/etl-auth/etl-auth-common/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/etl-auth/pom.xml" />
|
||||
</list>
|
||||
</option>
|
||||
<option name="ignoredFiles">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$/etl-groovy/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/etl-mysql/pom.xml" />
|
||||
</set>
|
||||
</option>
|
||||
</component>
|
||||
<component name="PDMPlugin">
|
||||
<option name="skipTestSources" value="false" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/etl-auth/etl-auth-server/target" />
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/../../录屏" />
|
||||
</component>
|
||||
</project>
|
|
@ -2,7 +2,7 @@
|
|||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/etl-auth/etl-auth-common/etl-auth-common.iml" filepath="$PROJECT_DIR$/etl-auth/etl-auth-common/etl-auth-common.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/etl-auth/etl-auth-server/etl-auth-server.iml" filepath="$PROJECT_DIR$/etl-auth/etl-auth-server/etl-auth-server.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
|
@ -1,124 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Palette2">
|
||||
<group name="Swing">
|
||||
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
||||
</item>
|
||||
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
|
||||
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
||||
<initial-values>
|
||||
<property name="text" value="Button" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="RadioButton" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="CheckBox" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="Label" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
||||
<preferred-size width="-1" height="20" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
||||
</item>
|
||||
</group>
|
||||
</component>
|
||||
</project>
|
File diff suppressed because one or more lines are too long
|
@ -1,11 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module version="4">
|
||||
<component name="AdditionalModuleElements">
|
||||
<content url="file://$MODULE_DIR$" dumb="true">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
||||
</content>
|
||||
</component>
|
||||
<component name="CheckStyle-IDEA-Module" serialisationVersion="2">
|
||||
<option name="activeLocationsIds" />
|
||||
</component>
|
||||
</module>
|
|
@ -52,7 +52,4 @@
|
|||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
|
||||
</project>
|
||||
|
|
|
@ -16,11 +16,6 @@
|
|||
<spring-cloud-alibaba.version>2021.0.5.0</spring-cloud-alibaba.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.bwie</groupId>
|
||||
<artifactId>etl-auth-common</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
||||
|
@ -32,9 +27,9 @@
|
|||
<version>1.4.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
<artifactId>springfox-swagger2</artifactId>
|
||||
<version>3.0.0</version>
|
||||
<groupId>com.github.xiaoymin</groupId>
|
||||
<artifactId>knife4j-openapi2-spring-boot-starter</artifactId>
|
||||
<version>4.4.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.bwie</groupId>
|
||||
|
@ -56,11 +51,7 @@
|
|||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.xiaoymin</groupId>
|
||||
<artifactId>knife4j-spring-boot-starter</artifactId>
|
||||
<version>3.0.3</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
//package com.auth.server.config;
|
||||
//import com.auth.server.interceptor.UserInterceptor;
|
||||
//import com.auth.server.mapper.UserMangeMapper;
|
||||
//import org.springframework.beans.factory.annotation.Autowired;
|
||||
//import org.springframework.context.annotation.Configuration;
|
||||
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
||||
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||
//@Configuration
|
||||
//public class MvcConfig implements WebMvcConfigurer {
|
||||
// @Autowired
|
||||
// private UserMangeMapper userMangeMapper;
|
||||
// @Override
|
||||
// public void addInterceptors(InterceptorRegistry registry) {
|
||||
// //添加拦截器,排除/路径和 /login路径
|
||||
// registry.addInterceptor(new UserInterceptor(userMangeMapper))
|
||||
// .excludePathPatterns("/","/user/login");
|
||||
// }
|
||||
//}
|
|
@ -2,8 +2,8 @@ package com.auth.server.controller;
|
|||
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.alibaba.nacos.api.model.v2.Result;
|
||||
import com.auth.common.entity.UserAccount;
|
||||
import com.auth.common.enums.PermissionConstants;
|
||||
|
||||
import com.auth.server.entity.UserAccount;
|
||||
import com.auth.server.service.UserManageService;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.etl.common.enums.ResponseCodeEnum;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package com.auth.server.controller;
|
||||
|
||||
import com.auth.common.entity.PathPermission;
|
||||
import com.auth.common.entity.RolesPermission;
|
||||
import com.auth.common.enums.PermissionConstants;
|
||||
import com.auth.server.entity.PathPermission;
|
||||
import com.auth.server.entity.RolesPermission;
|
||||
import com.auth.server.enums.PermissionConstants;
|
||||
import com.auth.server.service.PathService;
|
||||
import com.auth.server.service.PermissionService;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.auth.common.entity;
|
||||
package com.auth.server.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
@ -1,4 +1,4 @@
|
|||
package com.auth.common.entity;
|
||||
package com.auth.server.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
@ -1,4 +1,4 @@
|
|||
package com.auth.common.entity;
|
||||
package com.auth.server.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
|
@ -21,4 +21,6 @@ public class UserAccount {
|
|||
@ApiModelProperty("密码/")
|
||||
private String password;
|
||||
|
||||
// @ApiModelProperty("uuid")
|
||||
// private String UUID;
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package com.auth.common.enums;
|
||||
package com.auth.server.enums;
|
||||
|
||||
public class PermissionConstants {
|
||||
public static final String ROLES = "roles";
|
|
@ -1,7 +1,7 @@
|
|||
package com.auth.server.mapper;
|
||||
|
||||
import com.auth.common.entity.PathPermission;
|
||||
import com.auth.common.entity.RolesPermission;
|
||||
|
||||
import com.auth.server.entity.PathPermission;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
public interface PathMapper extends BaseMapper<PathPermission> {
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
package com.auth.server.mapper;
|
||||
|
||||
|
||||
import com.auth.common.entity.RolesPermission;
|
||||
|
||||
import com.auth.server.entity.RolesPermission;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
public interface PermissionMapper extends BaseMapper<RolesPermission> {
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
package com.auth.server.mapper;
|
||||
|
||||
|
||||
import com.auth.common.entity.UserAccount;
|
||||
|
||||
import com.auth.server.entity.UserAccount;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
package com.auth.server.service;
|
||||
|
||||
import com.auth.common.entity.PathPermission;
|
||||
import com.auth.common.entity.RolesPermission;
|
||||
import com.auth.common.entity.UserAccount;
|
||||
|
||||
import com.auth.server.entity.PathPermission;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
public interface PathService extends IService<PathPermission> {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package com.auth.server.service;
|
||||
|
||||
import com.auth.common.entity.RolesPermission;
|
||||
import com.auth.common.entity.UserAccount;
|
||||
|
||||
import com.auth.server.entity.RolesPermission;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package com.auth.server.service;
|
||||
|
||||
import com.alibaba.nacos.api.model.v2.Result;
|
||||
import com.auth.common.entity.UserAccount;
|
||||
|
||||
import com.auth.server.entity.UserAccount;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.etl.common.result.CommonResult;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package com.auth.server.service.impl;
|
||||
|
||||
import com.auth.common.entity.PathPermission;
|
||||
import com.auth.common.entity.RolesPermission;
|
||||
|
||||
import com.auth.server.entity.PathPermission;
|
||||
import com.auth.server.mapper.PathMapper;
|
||||
import com.auth.server.mapper.PermissionMapper;
|
||||
import com.auth.server.service.PathService;
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
package com.auth.server.service.impl;
|
||||
|
||||
import com.auth.common.entity.RolesPermission;
|
||||
import com.auth.common.enums.PermissionConstants;
|
||||
|
||||
import com.auth.server.entity.RolesPermission;
|
||||
import com.auth.server.enums.PermissionConstants;
|
||||
import com.auth.server.mapper.PermissionMapper;
|
||||
import com.auth.server.service.PermissionService;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
|
|
|
@ -3,9 +3,9 @@ package com.auth.server.service.impl;
|
|||
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.alibaba.nacos.api.model.v2.Result;
|
||||
import com.auth.common.entity.UserAccount;
|
||||
import com.auth.common.enums.PermissionConstants;
|
||||
import com.auth.server.config.MD5s;
|
||||
import com.auth.server.entity.UserAccount;
|
||||
import com.auth.server.enums.PermissionConstants;
|
||||
import com.auth.server.mapper.UserMangeMapper;
|
||||
import com.auth.server.service.UserManageService;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
package com.auth.server.util;
|
||||
|
||||
|
||||
import com.auth.common.entity.UserAccount;
|
||||
|
||||
import com.auth.server.entity.UserAccount;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.auth.server.service.UserManageService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
@ -19,15 +20,13 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||
public class UserRealm extends AuthorizingRealm {
|
||||
@Autowired
|
||||
private UserManageService userManageService;
|
||||
|
||||
//授权
|
||||
@Override
|
||||
protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principalCollection) {
|
||||
|
||||
/**配置权限
|
||||
*此处User实体需配置属性roles,用户权限
|
||||
*获取当前用户对象
|
||||
* */
|
||||
*/
|
||||
SimpleAuthorizationInfo authorizationInfo = new SimpleAuthorizationInfo();
|
||||
Subject subject= SecurityUtils.getSubject();
|
||||
UserAccount currentUser =(UserAccount) subject.getPrincipal();
|
||||
|
@ -35,7 +34,6 @@ public class UserRealm extends AuthorizingRealm {
|
|||
log.info("用户权限为:"+currentUser.getRoles());
|
||||
return authorizationInfo;
|
||||
}
|
||||
|
||||
//认证
|
||||
@Override
|
||||
protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken authenticationToken) throws AuthenticationException {
|
||||
|
@ -56,9 +54,8 @@ public class UserRealm extends AuthorizingRealm {
|
|||
}else {
|
||||
log.info(user.getUsername());
|
||||
}
|
||||
|
||||
//principal:认证的实体信息,可以是username,也可以是数据库表对应的用户的实体对象
|
||||
// Object principal = user.getUsername();
|
||||
// Object principal = user.getUsername();
|
||||
ByteSource salt = ByteSource.Util.bytes(username);
|
||||
return new SimpleAuthenticationInfo(user.getUsername(), user.getPassword() , salt,getName());
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,5 @@
|
|||
#Generated by Maven
|
||||
#Wed Jul 03 15:26:21 CST 2024
|
||||
version=1.0-SNAPSHOT
|
||||
groupId=com.bwie
|
||||
artifactId=etl-auth-server
|
|
@ -0,0 +1,20 @@
|
|||
com\auth\server\config\MD5s.class
|
||||
com\auth\server\service\PathService.class
|
||||
com\auth\server\service\PermissionService.class
|
||||
com\auth\server\mapper\UserMangeMapper.class
|
||||
com\auth\server\mapper\PathMapper.class
|
||||
com\auth\server\service\impl\PathServiceImpl.class
|
||||
com\auth\server\EtlAuthServerApplication.class
|
||||
com\auth\server\entity\RolesPermission.class
|
||||
com\auth\server\service\impl\UserManageServiceImpl.class
|
||||
com\auth\server\config\ShiroConfig.class
|
||||
com\auth\server\enums\PermissionConstants.class
|
||||
com\auth\server\service\UserManageService.class
|
||||
com\auth\server\mapper\PermissionMapper.class
|
||||
com\auth\server\entity\PathPermission.class
|
||||
com\auth\server\util\UserRealm.class
|
||||
com\auth\server\controller\LoginControler.class
|
||||
com\auth\server\controller\PermissionController.class
|
||||
com\auth\server\util\SecurityUtils.class
|
||||
com\auth\server\service\impl\PermissionServiceImpl.class
|
||||
com\auth\server\entity\UserAccount.class
|
|
@ -0,0 +1,21 @@
|
|||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\entity\RolesPermission.java
|
||||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\service\UserManageService.java
|
||||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\enums\PermissionConstants.java
|
||||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\service\impl\UserManageServiceImpl.java
|
||||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\entity\UserAccount.java
|
||||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\EtlAuthServerApplication.java
|
||||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\controller\LoginControler.java
|
||||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\interceptor\UserInterceptor.java
|
||||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\service\impl\PathServiceImpl.java
|
||||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\controller\PermissionController.java
|
||||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\service\PermissionService.java
|
||||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\service\impl\PermissionServiceImpl.java
|
||||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\service\PathService.java
|
||||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\config\MD5s.java
|
||||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\mapper\PermissionMapper.java
|
||||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\util\UserRealm.java
|
||||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\util\SecurityUtils.java
|
||||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\entity\PathPermission.java
|
||||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\mapper\PathMapper.java
|
||||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\mapper\UserMangeMapper.java
|
||||
D:\workspace\ETL\etl-auth\etl-auth-server\src\main\java\com\auth\server\config\ShiroConfig.java
|
|
@ -0,0 +1 @@
|
|||
com\auth\server\EtlAuthServerApplicationTests.class
|
|
@ -0,0 +1 @@
|
|||
D:\workspace\ETL\etl-auth\etl-auth-server\src\test\java\com\auth\server\EtlAuthServerApplicationTests.java
|
Binary file not shown.
|
@ -1,5 +1,5 @@
|
|||
#Generated by Maven
|
||||
#Tue Jun 25 09:14:51 CST 2024
|
||||
#Wed Jul 03 15:15:40 CST 2024
|
||||
version=1.0-SNAPSHOT
|
||||
groupId=com.bwie
|
||||
artifactId=etl-common
|
||||
|
|
|
@ -3,6 +3,7 @@ com\etl\common\result\PageResult.class
|
|||
com\etl\common\constants\JwtConstants.class
|
||||
com\etl\common\Entity.class
|
||||
com\etl\common\handler\ExceptionHandlers.class
|
||||
com\etl\common\exception\LimitException.class
|
||||
com\etl\common\util\JwtUtils.class
|
||||
com\etl\common\result\CommonResult.class
|
||||
com\etl\common\util\RequestUtil.class
|
||||
|
|
|
@ -8,6 +8,7 @@ D:\workspace\ETL\etl-common\src\main\java\com\etl\common\result\CommonResult.jav
|
|||
D:\workspace\ETL\etl-common\src\main\java\com\etl\common\result\Result.java
|
||||
D:\workspace\ETL\etl-common\src\main\java\com\etl\common\constants\TokenConstants.java
|
||||
D:\workspace\ETL\etl-common\src\main\java\com\etl\common\util\JwtUtils.java
|
||||
D:\workspace\ETL\etl-common\src\main\java\com\etl\common\exception\LimitException.java
|
||||
D:\workspace\ETL\etl-common\src\main\java\com\etl\common\util\RequestUtil.java
|
||||
D:\workspace\ETL\etl-common\src\main\java\com\etl\common\exception\AllException.java
|
||||
D:\workspace\ETL\etl-common\src\main\java\com\etl\common\util\StringUtils.java
|
||||
|
|
|
@ -38,12 +38,11 @@ public class DataSources extends BaseMate {
|
|||
|
||||
@ApiModelProperty(value = "状态 0-停用 1-启用")
|
||||
@Min(value = 0, message = "状态值不能小于0")
|
||||
@Max(value = 1, message = "状态值不能大于1")
|
||||
private Integer status;
|
||||
|
||||
@Size(max = 100, message = "备注不能超过100个字符")
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String explain;
|
||||
private String explaina;
|
||||
|
||||
@ApiModelProperty(value = "额外配置")
|
||||
private String extraEvlop;
|
||||
|
@ -54,4 +53,11 @@ public class DataSources extends BaseMate {
|
|||
@TableField(exist = false)
|
||||
@ApiModelProperty(value = "数据库类型")
|
||||
private String dataSourceTypeName;
|
||||
|
||||
@ApiModelProperty(value = "用户名")
|
||||
private String username;
|
||||
|
||||
@ApiModelProperty(value = "密码")
|
||||
private String password;
|
||||
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@ package com.etl.database.common.entity;
|
|||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.etl.database.common.entity.database.BaseMate;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
@ -12,6 +13,7 @@ import lombok.Data;
|
|||
*/
|
||||
@Data
|
||||
@ApiModel("文件")
|
||||
@TableName("t_file")
|
||||
public class File extends BaseMate {
|
||||
@ApiModelProperty(value = "文件id")
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
|
@ -31,4 +33,7 @@ public class File extends BaseMate {
|
|||
|
||||
@ApiModelProperty(value = "说明")
|
||||
private String expalin;
|
||||
|
||||
@ApiModelProperty(value = "1-私有文件夹 2-共有文件夹")
|
||||
private Integer fileOption;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
package com.etl.database.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "节点实体类")
|
||||
@TableName("t_node")
|
||||
public class Node {
|
||||
@ApiModelProperty(value = "id")
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "任务id")
|
||||
private Integer taskId;
|
||||
|
||||
@ApiModelProperty(value = "表名")
|
||||
private String tableName;
|
||||
|
||||
@ApiModelProperty(value = "类型id")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "数据源id")
|
||||
private Integer dataSourceId;
|
||||
|
||||
@ApiModelProperty(value = "别名")
|
||||
private String alias;
|
||||
}
|
|
@ -32,4 +32,7 @@ public class Rule {
|
|||
|
||||
@ApiModelProperty(value = "公开方式 1-仅自己可见 2-公开")
|
||||
private Integer publicWay;
|
||||
|
||||
@ApiModelProperty(value = "规则唯一id")
|
||||
private Integer regulationId;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
package com.etl.database.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@TableName("t_select_field")
|
||||
public class SelectField {
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "节点id")
|
||||
private Integer nodeId;
|
||||
|
||||
@ApiModelProperty(value = "字段名称")
|
||||
private String fieldName;
|
||||
|
||||
@ApiModelProperty(value = "规则id")
|
||||
private Integer ruleId;
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
package com.etl.database.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.etl.database.common.entity.database.BaseMate;
|
||||
|
@ -38,6 +39,7 @@ public class Task extends BaseMate {
|
|||
@ApiModelProperty(value = "任务权重")
|
||||
private Integer weightId;
|
||||
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty(value = "任务等级")
|
||||
private Integer weightName;
|
||||
|
||||
|
@ -46,5 +48,5 @@ public class Task extends BaseMate {
|
|||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "任务备注")
|
||||
private String explain;
|
||||
private String explaina;
|
||||
}
|
||||
|
|
|
@ -15,6 +15,9 @@ import javax.validation.constraints.NotBlank;
|
|||
@NoArgsConstructor
|
||||
@ToString
|
||||
public class DruidReq {
|
||||
@ApiModelProperty(value = "数据源id")
|
||||
private Integer id;
|
||||
|
||||
@NotBlank(message = "数据库连接地址不能为空")
|
||||
@ApiModelProperty(value = "地址")
|
||||
private String url;
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
package com.etl.database.common.entity.req;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel("文件请求参数")
|
||||
public class FileReq {
|
||||
|
||||
@ApiModelProperty(value = "文件路径")
|
||||
private String filePath;
|
||||
|
||||
@ApiModelProperty(value = "页数")
|
||||
private Integer pageNum = 1;
|
||||
|
||||
@ApiModelProperty(value = "条数")
|
||||
private Integer pageSize = 3;
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,5 +0,0 @@
|
|||
#Generated by Maven
|
||||
#Wed Jun 26 17:13:09 CST 2024
|
||||
version=1.0-SNAPSHOT
|
||||
groupId=com.bwie
|
||||
artifactId=etl-database-common
|
|
@ -1,10 +0,0 @@
|
|||
com\etl\database\common\entity\req\DruidReq.class
|
||||
com\etl\database\common\entity\resp\ColumnInfo.class
|
||||
com\etl\database\common\entity\req\DataSourceReq.class
|
||||
com\etl\database\common\annoation\Limit.class
|
||||
com\etl\database\common\entity\DataSources.class
|
||||
com\etl\database\common\entity\DataSourceType.class
|
||||
com\etl\database\common\entity\constants\DataSourceConstants.class
|
||||
com\etl\database\common\entity\DatabaseRedis.class
|
||||
com\etl\database\common\entity\database\BaseMate.class
|
||||
com\etl\database\ennum\LimitType.class
|
|
@ -1,10 +0,0 @@
|
|||
D:\workspace\ETL\etl-database\etl-database-common\src\main\java\com\etl\database\common\annoation\Limit.java
|
||||
D:\workspace\ETL\etl-database\etl-database-common\src\main\java\com\etl\database\common\entity\DataSources.java
|
||||
D:\workspace\ETL\etl-database\etl-database-common\src\main\java\com\etl\database\common\entity\resp\ColumnInfo.java
|
||||
D:\workspace\ETL\etl-database\etl-database-common\src\main\java\com\etl\database\ennum\LimitType.java
|
||||
D:\workspace\ETL\etl-database\etl-database-common\src\main\java\com\etl\database\common\entity\DatabaseRedis.java
|
||||
D:\workspace\ETL\etl-database\etl-database-common\src\main\java\com\etl\database\common\entity\DataSourceType.java
|
||||
D:\workspace\ETL\etl-database\etl-database-common\src\main\java\com\etl\database\common\entity\req\DruidReq.java
|
||||
D:\workspace\ETL\etl-database\etl-database-common\src\main\java\com\etl\database\common\entity\req\DataSourceReq.java
|
||||
D:\workspace\ETL\etl-database\etl-database-common\src\main\java\com\etl\database\common\entity\constants\DataSourceConstants.java
|
||||
D:\workspace\ETL\etl-database\etl-database-common\src\main\java\com\etl\database\common\entity\database\BaseMate.java
|
|
@ -1 +0,0 @@
|
|||
com\etl\database\common\EtlDatabaseCommonApplicationTests.class
|
|
@ -1 +0,0 @@
|
|||
D:\workspace\ETL\etl-database\etl-database-common\src\test\java\com\etl\database\common\EtlDatabaseCommonApplicationTests.java
|
Binary file not shown.
|
@ -15,6 +15,11 @@
|
|||
<spring-boot.version>2.6.13</spring-boot.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.groovy</groupId>
|
||||
<artifactId>groovy-all</artifactId>
|
||||
<version>2.4.7</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
<artifactId>springfox-swagger2</artifactId>
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
package com.etl.database.server.controller;
|
||||
|
||||
import com.etl.common.result.Result;
|
||||
import com.etl.database.common.entity.CodeType;
|
||||
import com.etl.database.server.service.CodeTypeService;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/codeType")
|
||||
@Api(tags = "编码类型-API")
|
||||
public class CodeTypeController {
|
||||
@Autowired
|
||||
private CodeTypeService codeTypeervice;
|
||||
|
||||
@RequestMapping(value = "/findCodeType")
|
||||
public Result findCodeType() {
|
||||
List<CodeType> list = codeTypeervice.findCodeType();
|
||||
return Result.success(list);
|
||||
}
|
||||
}
|
|
@ -1,11 +1,15 @@
|
|||
package com.etl.database.server.controller;
|
||||
|
||||
import com.etl.common.result.Result;
|
||||
import com.etl.database.common.entity.File;
|
||||
import com.etl.database.common.entity.req.FileReq;
|
||||
import com.etl.database.server.service.FileService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 文件控制层
|
||||
|
@ -17,9 +21,18 @@ public class FileController {
|
|||
@Autowired
|
||||
private FileService fileService;
|
||||
|
||||
@RequestMapping(value = "/createFile")
|
||||
@RequestMapping(value = "/createFile",method = RequestMethod.POST)
|
||||
@ApiOperation(value = "创建文件")
|
||||
public Result createFile() {
|
||||
fileService.createFile();
|
||||
return Result.success();
|
||||
String filePath =fileService.createFile();
|
||||
return Result.success(filePath);
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value ="/fileList",method = RequestMethod.POST)
|
||||
@ApiOperation(value = "文件列表")
|
||||
public Result fileList(@RequestBody FileReq fileReq) {
|
||||
List<File> fileList =fileService.fileList(fileReq);
|
||||
return Result.success(fileList);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
package com.etl.database.server.controller;
|
||||
|
||||
import com.etl.common.result.Result;
|
||||
import com.etl.database.common.entity.Node;
|
||||
import com.etl.database.server.service.NodeService;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
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.RestController;
|
||||
|
||||
/**
|
||||
* 节点控制层
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping(value = "/node")
|
||||
@Api(tags = "节点-API")
|
||||
public class NodeController {
|
||||
@Autowired
|
||||
private NodeService nodeService;
|
||||
|
||||
@RequestMapping(value = "/addNode",method = RequestMethod.POST)
|
||||
public Result addNode(@RequestBody Node node){
|
||||
nodeService.addNode(node);
|
||||
return Result.success();
|
||||
}
|
||||
}
|
|
@ -19,16 +19,17 @@ import java.util.Map;
|
|||
* redis控制层
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping(value ="/redis")
|
||||
@RequestMapping(value = "/redis")
|
||||
@Api(tags = "数据源-redis")
|
||||
public class RedisController {
|
||||
@Autowired
|
||||
private RedisService redisService;
|
||||
|
||||
@PostMapping("/testDatabaseRedis")
|
||||
@ApiOperation(value = "测试redis连接")
|
||||
@Limit(key = "testDatabaseRedis", permitsPerSecond = 1, timeout = 500, msg = "当前排队人数较多,请稍后再试!")
|
||||
public Result<Map<String,String>> testDatabaseRedis(@Valid @RequestBody DatabaseRedisReq databaseRedis) {
|
||||
Map<String,String> map = redisService.testDatabaseRedis(databaseRedis);
|
||||
public Result<Map<String, String>> testDatabaseRedis(@Valid @RequestBody DatabaseRedisReq databaseRedis) {
|
||||
Map<String, String> map = redisService.testDatabaseRedis(databaseRedis);
|
||||
return Result.success(map);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@ package com.etl.database.server.controller;
|
|||
import com.etl.common.result.Result;
|
||||
import com.etl.database.common.entity.Code;
|
||||
import com.etl.database.common.entity.Rule;
|
||||
import com.etl.database.common.entity.RuleType;
|
||||
import com.etl.database.common.entity.req.RuleReq;
|
||||
import com.etl.database.server.service.RuleService;
|
||||
import io.swagger.annotations.Api;
|
||||
|
@ -16,15 +17,16 @@ import java.util.List;
|
|||
* 规则控制层
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping(value ="/rule")
|
||||
@RequestMapping(value = "/rule")
|
||||
@Api(tags = "规则-API")
|
||||
public class RuleController {
|
||||
@Autowired
|
||||
private RuleService ruleService;
|
||||
|
||||
@GetMapping("findRule")
|
||||
@ApiOperation(value = "查询规则")
|
||||
public Result findRule(@RequestBody RuleReq ruleReq) {
|
||||
List<Rule> ruleList=ruleService.findRule(ruleReq);
|
||||
List<Rule> ruleList = ruleService.findRule(ruleReq);
|
||||
return Result.success(ruleList);
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
package com.etl.database.server.controller;
|
||||
|
||||
import com.etl.common.result.Result;
|
||||
import com.etl.database.common.entity.RuleType;
|
||||
import com.etl.database.server.service.RuleTypeService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/ruleType")
|
||||
@Api(tags = "规则类型-API")
|
||||
public class RuleTypeController {
|
||||
@Autowired
|
||||
private RuleTypeService ruleTypeService;
|
||||
|
||||
@GetMapping("/findRuleType")
|
||||
@ApiOperation(value = "查询规则类型")
|
||||
public Result findRuleType() {
|
||||
List<RuleType> ruleTypeList =ruleTypeService.findRuleType();
|
||||
return Result.success(ruleTypeList);
|
||||
}
|
||||
}
|
|
@ -16,37 +16,46 @@ import java.util.List;
|
|||
*/
|
||||
@RestController
|
||||
@Api(tags = "任务-API")
|
||||
@RequestMapping(value ="/task")
|
||||
@RequestMapping(value = "/task")
|
||||
public class TaskController {
|
||||
@Autowired
|
||||
private TaskService taskService;
|
||||
|
||||
@GetMapping("/findTask")
|
||||
@ApiOperation("查询任务")
|
||||
public Result<List<Task>> findTask(){
|
||||
public Result<List<Task>> findTask() {
|
||||
return Result.success(taskService.findTask());
|
||||
}
|
||||
|
||||
@PostMapping("/addTask")
|
||||
@ApiOperation("添加任务")
|
||||
public Result<String> addTask(@RequestBody Task task){
|
||||
public Result<String> addTask(@RequestBody Task task) {
|
||||
taskService.addTask(task);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
@PostMapping("/updateTask")
|
||||
@ApiOperation("修改任务")
|
||||
public Result<String> updateTask(@RequestBody Task task){
|
||||
public Result<String> updateTask(@RequestBody Task task) {
|
||||
taskService.updateTask(task);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
@DeleteMapping("/deleteTask/{id}")
|
||||
@ApiOperation("删除任务")
|
||||
public Result<String> deleteTask(@PathVariable Long id){
|
||||
public Result<String> deleteTask(@PathVariable Long id) {
|
||||
taskService.deleteTask(id);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
@GetMapping("/findTaskById/{id}")
|
||||
@ApiOperation("根据id查询任务")
|
||||
public Result<Task> findTaskById(@PathVariable Long id){
|
||||
public Result<Task> findTaskById(@PathVariable Long id) {
|
||||
return Result.success(taskService.findTaskById(id));
|
||||
}
|
||||
|
||||
@GetMapping("executeTask")
|
||||
public Result executeTask(@RequestParam Integer taskId) {
|
||||
return taskService.executeTask(taskId);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||
* 任务权重
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping(value ="/taskweight")
|
||||
@RequestMapping(value = "/taskweight")
|
||||
@Api(tags = "任务权重-API")
|
||||
public class TaskWeightController {
|
||||
@Autowired
|
||||
|
|
|
@ -6,4 +6,5 @@ import org.springframework.stereotype.Repository;
|
|||
|
||||
@Repository
|
||||
public interface MysqlMapper extends MPJBaseMapper<DataSources> {
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
package com.etl.database.server.mapper;
|
||||
|
||||
import com.etl.database.common.entity.File;
|
||||
import com.etl.database.common.entity.Node;
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface NodeMapper extends MPJBaseMapper<Node> {
|
||||
|
||||
}
|
|
@ -2,9 +2,12 @@ package com.etl.database.server.mapper;
|
|||
|
||||
import com.etl.database.common.entity.DataSources;
|
||||
import com.etl.database.common.entity.Rule;
|
||||
import com.etl.database.common.entity.RuleType;
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Repository
|
||||
public interface RuleMapper extends MPJBaseMapper<Rule> {
|
||||
}
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
package com.etl.database.server.mapper;
|
||||
|
||||
import com.etl.database.common.entity.Code;
|
||||
import com.etl.database.common.entity.SelectField;
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface SelectFieldMapper extends MPJBaseMapper<SelectField> {
|
||||
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue