Skip to content

Commit 0322c3e

Browse files
committed
chore: 格式化部分代码
1 parent 271e2d8 commit 0322c3e

File tree

7 files changed

+111
-43
lines changed

7 files changed

+111
-43
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ git clone https://github.com/continew-org/continew-admin.git
263263
# [3.也可以在 IntelliJ IDEA 中直接配置程序启动环境变量(DB_HOST、DB_PORT、DB_USER、DB_PWD、DB_NAME;REDIS_HOST、REDIS_PORT、REDIS_PWD、REDIS_DB)]
264264

265265
# 4.启动程序
266-
# 4.1 启动成功:访问 http://localhost:8000/,页面输出:Xxx started successfully.
267-
# 4.2 接口文档:http://localhost:8000/doc.html
266+
# 启动成功,在控制台末尾会输出 ContiNew Admin service started successfully.
267+
# 并输出 API 地址及 API 接口文档地址
268268
```
269269

270270
## 项目结构
@@ -274,7 +274,7 @@ git clone https://github.com/continew-org/continew-admin.git
274274
275275
```
276276
continew-admin
277-
├─ continew-server(API 及打包部署模块
277+
├─ continew-server(打包部署模块
278278
│ ├─ src
279279
│ │ ├─ main
280280
│ │ │ ├─ java/top/continew/admin
Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package top.continew.admin.common.config.doc;
218

319
import org.springdoc.core.models.GroupedOpenApi;
@@ -16,28 +32,20 @@ public class GlobalSpringDocConfiguration {
1632
@Bean
1733
public GroupedOpenApi allApi() {
1834
return GroupedOpenApi.builder()
19-
.group("all")
20-
.displayName("全部接口")
21-
.pathsToMatch("/**")
22-
.packagesToExclude("/error")
23-
.build();
35+
.group("all")
36+
.displayName("全部接口")
37+
.pathsToMatch("/**")
38+
.packagesToExclude("/error")
39+
.build();
2440
}
2541

2642
@Bean
2743
public GroupedOpenApi commonApi() {
28-
return GroupedOpenApi.builder()
29-
.group("common")
30-
.displayName("通用接口")
31-
.pathsToMatch("/common/**")
32-
.build();
44+
return GroupedOpenApi.builder().group("common").displayName("通用接口").pathsToMatch("/common/**").build();
3345
}
3446

3547
@Bean
3648
public GroupedOpenApi monitorApi() {
37-
return GroupedOpenApi.builder()
38-
.group("monitor")
39-
.displayName("系统监控")
40-
.pathsToMatch("/monitor/**")
41-
.build();
49+
return GroupedOpenApi.builder().group("monitor").displayName("系统监控").pathsToMatch("/monitor/**").build();
4250
}
4351
}

continew-plugin/continew-plugin-generator/src/main/java/top/continew/admin/generator/config/CodeConfiguration.java

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package top.continew.admin.generator.config;
218

319
import org.springdoc.core.models.GroupedOpenApi;
@@ -18,10 +34,6 @@ public class CodeConfiguration {
1834
*/
1935
@Bean
2036
public GroupedOpenApi codeApi() {
21-
return GroupedOpenApi.builder()
22-
.group("code")
23-
.displayName("代码生成")
24-
.pathsToMatch("/code/**")
25-
.build();
37+
return GroupedOpenApi.builder().group("code").displayName("代码生成").pathsToMatch("/code/**").build();
2638
}
2739
}

continew-plugin/continew-plugin-open/src/main/java/top/continew/admin/open/config/OpenConfiguration.java

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package top.continew.admin.open.config;
218

319
import org.springdoc.core.models.GroupedOpenApi;
@@ -18,10 +34,6 @@ public class OpenConfiguration {
1834
*/
1935
@Bean
2036
public GroupedOpenApi openApi() {
21-
return GroupedOpenApi.builder()
22-
.group("open")
23-
.displayName("能力开放")
24-
.pathsToMatch("/open/**")
25-
.build();
37+
return GroupedOpenApi.builder().group("open").displayName("能力开放").pathsToMatch("/open/**").build();
2638
}
2739
}

continew-plugin/continew-plugin-schedule/src/main/java/top/continew/admin/schedule/config/ScheduleConfiguration.java

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package top.continew.admin.schedule.config;
218

319
import org.springdoc.core.models.GroupedOpenApi;
@@ -18,10 +34,6 @@ public class ScheduleConfiguration {
1834
*/
1935
@Bean
2036
public GroupedOpenApi scheduleApi() {
21-
return GroupedOpenApi.builder()
22-
.group("schedule")
23-
.displayName("任务调度")
24-
.pathsToMatch("/schedule/**")
25-
.build();
37+
return GroupedOpenApi.builder().group("schedule").displayName("任务调度").pathsToMatch("/schedule/**").build();
2638
}
2739
}

continew-system/src/main/java/top/continew/admin/auth/config/AuthConfiguration.java

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package top.continew.admin.auth.config;
218

319
import org.springdoc.core.models.GroupedOpenApi;
@@ -18,10 +34,6 @@ public class AuthConfiguration {
1834
*/
1935
@Bean
2036
public GroupedOpenApi authApi() {
21-
return GroupedOpenApi.builder()
22-
.group("auth")
23-
.displayName("系统认证")
24-
.pathsToMatch("/auth/**")
25-
.build();
37+
return GroupedOpenApi.builder().group("auth").displayName("系统认证").pathsToMatch("/auth/**").build();
2638
}
2739
}

continew-system/src/main/java/top/continew/admin/system/config/SystemConfiguration.java

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package top.continew.admin.system.config;
218

319
import org.springdoc.core.models.GroupedOpenApi;
@@ -18,10 +34,6 @@ public class SystemConfiguration {
1834
*/
1935
@Bean
2036
public GroupedOpenApi systemApi() {
21-
return GroupedOpenApi.builder()
22-
.group("system")
23-
.displayName("系统管理")
24-
.pathsToMatch("/system/**")
25-
.build();
37+
return GroupedOpenApi.builder().group("system").displayName("系统管理").pathsToMatch("/system/**").build();
2638
}
2739
}

0 commit comments

Comments
 (0)