Skip to content

Commit e139d53

Browse files
committed
fix: Modify code format
1 parent 60926cd commit e139d53

12 files changed

Lines changed: 399 additions & 310 deletions

base/src/main/java/com/tinyengine/it/controller/AppController.java

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ public class AppController {
6060
*
6161
* @return App信息 all app
6262
*/
63-
@Operation(summary = "查询表App信息",
64-
description = "查询表App信息",
65-
responses = {
66-
@ApiResponse(responseCode = "200", description = "返回信息",
67-
content = @Content(mediaType = "application/json",
68-
schema = @Schema(implementation = App.class))),
69-
@ApiResponse(responseCode = "400", description = "请求失败")})
63+
@Operation(summary = "查询表App信息", description = "查询表App信息",
64+
responses = {
65+
@ApiResponse(responseCode = "200", description = "返回信息",
66+
content = @Content(mediaType = "application/json",
67+
schema = @Schema(implementation = App.class))),
68+
@ApiResponse(responseCode = "400", description = "请求失败")
69+
})
7070
@SystemControllerLog(description = "查询表App信息")
7171
@GetMapping("/apps/list")
7272
public Result<List<App>> getAllApp() {
@@ -80,17 +80,15 @@ public Result<List<App>> getAllApp() {
8080
* @param id the id
8181
* @return App信息 app by id
8282
*/
83-
@Operation(summary = "根据id查询表App信息",
84-
description = "根据id查询表App信息",
85-
parameters = {
86-
@Parameter(name = "id", description = "App主键id")
87-
},
88-
responses = {
89-
@ApiResponse(responseCode = "200", description = "返回信息",
90-
content = @Content(mediaType = "application/json",
91-
schema = @Schema(implementation = App.class))),
92-
@ApiResponse(responseCode = "400", description = "请求失败")}
93-
)
83+
@Operation(summary = "根据id查询表App信息", description = "根据id查询表App信息",
84+
parameters = {
85+
@Parameter(name = "id", description = "App主键id")
86+
}, responses = {
87+
@ApiResponse(responseCode = "200", description = "返回信息",
88+
content = @Content(mediaType = "application/json",
89+
schema = @Schema(implementation = App.class))),
90+
@ApiResponse(responseCode = "400", description = "请求失败")
91+
})
9492
@SystemControllerLog(description = "根据id查询表App信息")
9593
@GetMapping("/apps/{id}")
9694
public Result<App> getAppById(@PathVariable Integer id) {
@@ -103,16 +101,14 @@ public Result<App> getAppById(@PathVariable Integer id) {
103101
* @param app the app
104102
* @return App信息 result
105103
*/
106-
@Operation(summary = "创建app",
107-
description = "创建app",
108-
parameters = {
109-
@Parameter(name = "app", description = "App入参对象")
110-
},
111-
responses = {
112-
@ApiResponse(responseCode = "200", description = "返回信息",
113-
content = @Content(mediaType = "application/json",
114-
schema = @Schema(implementation = App.class))),
115-
@ApiResponse(responseCode = "400", description = "请求失败")}
104+
@Operation(summary = "创建app", description = "创建app",
105+
parameters = {
106+
@Parameter(name = "app", description = "App入参对象")
107+
}, responses = {
108+
@ApiResponse(responseCode = "200", description = "返回信息",
109+
content = @Content(mediaType = "application/json",
110+
schema = @Schema(implementation = App.class))),
111+
@ApiResponse(responseCode = "400", description = "请求失败")}
116112
)
117113
@SystemControllerLog(description = "创建app")
118114
@PostMapping("/apps/create")
@@ -127,13 +123,15 @@ public Result<App> createApp(@Valid @RequestBody App app) {
127123
* @param app the app
128124
* @return App信息 result
129125
*/
130-
@Operation(summary = "修改单个App信息", description = "修改单个App信息", parameters = {
126+
@Operation(summary = "修改单个App信息", description = "修改单个App信息",
127+
parameters = {
131128
@Parameter(name = "id", description = "appId"),
132129
@Parameter(name = "App", description = "入参对象")}, responses = {
133130
@ApiResponse(responseCode = "200", description = "返回信息",
134-
content = @Content(mediaType = "application/json",
135-
schema = @Schema(implementation = App.class))),
136-
@ApiResponse(responseCode = "400", description = "请求失败")})
131+
content = @Content(mediaType = "application/json",
132+
schema = @Schema(implementation = App.class))),
133+
@ApiResponse(responseCode = "400", description = "请求失败")
134+
})
137135
@SystemControllerLog(description = "修改单个App信息")
138136
@PostMapping("/apps/update/{id}")
139137
public Result<App> updateApp(@PathVariable Integer id, @RequestBody App app) {
@@ -147,17 +145,15 @@ public Result<App> updateApp(@PathVariable Integer id, @RequestBody App app) {
147145
* @param id the id
148146
* @return app信息 result
149147
*/
150-
@Operation(summary = "删除app信息",
151-
description = "删除app信息",
152-
parameters = {
153-
@Parameter(name = "id", description = "App主键id")
154-
},
155-
responses = {
156-
@ApiResponse(responseCode = "200", description = "返回信息",
157-
content = @Content(mediaType = "application/json",
158-
schema = @Schema(implementation = App.class))),
159-
@ApiResponse(responseCode = "400", description = "请求失败")}
160-
)
148+
@Operation(summary = "删除app信息", description = "删除app信息",
149+
parameters = {
150+
@Parameter(name = "id", description = "App主键id")
151+
}, responses = {
152+
@ApiResponse(responseCode = "200", description = "返回信息",
153+
content = @Content(mediaType = "application/json",
154+
schema = @Schema(implementation = App.class))),
155+
@ApiResponse(responseCode = "400", description = "请求失败")
156+
})
161157
@SystemControllerLog(description = "删除app信息")
162158
@GetMapping("/apps/delete/{id}")
163159
public Result<App> deleteApp(@PathVariable Integer id) {
@@ -170,12 +166,14 @@ public Result<App> deleteApp(@PathVariable Integer id) {
170166
* @param id the id
171167
* @return the result
172168
*/
173-
@Operation(summary = "获取应用信息详情", description = "获取应用信息详情", parameters = {
169+
@Operation(summary = "获取应用信息详情", description = "获取应用信息详情",
170+
parameters = {
174171
@Parameter(name = "id", description = "appId")}, responses = {
175172
@ApiResponse(responseCode = "200", description = "返回信息",
176-
content = @Content(mediaType = "application/json",
177-
schema = @Schema(implementation = App.class))),
178-
@ApiResponse(responseCode = "400", description = "请求失败")})
173+
content = @Content(mediaType = "application/json",
174+
schema = @Schema(implementation = App.class))),
175+
@ApiResponse(responseCode = "400", description = "请求失败")
176+
})
179177
@SystemControllerLog(description = "获取应用信息详情")
180178
@GetMapping("/apps/detail/{id}")
181179
public Result<App> detail(@PathVariable Integer id) {
@@ -189,13 +187,15 @@ public Result<App> detail(@PathVariable Integer id) {
189187
* @param param the param
190188
* @return the result
191189
*/
192-
@Operation(summary = "修改应用对应的国际化语种关联", description = "修改应用对应的国际化语种关联", parameters = {
190+
@Operation(summary = "修改应用对应的国际化语种关联", description = "修改应用对应的国际化语种关联",
191+
parameters = {
193192
@Parameter(name = "id", description = "appId"),
194193
@Parameter(name = "param", description = "入参对象")}, responses = {
195194
@ApiResponse(responseCode = "200", description = "返回信息",
196-
content = @Content(mediaType = "application/json",
197-
schema = @Schema(implementation = App.class))),
198-
@ApiResponse(responseCode = "400", description = "请求失败")})
195+
content = @Content(mediaType = "application/json",
196+
schema = @Schema(implementation = App.class))),
197+
@ApiResponse(responseCode = "400", description = "请求失败")
198+
})
199199
@SystemControllerLog(description = "修改应用对应的国际化语种关联")
200200
@PostMapping("/apps/i18n/{id}")
201201
public Result<App> updateI18n(@PathVariable Integer id, @RequestBody Map<String, Object> param) {

base/src/main/java/com/tinyengine/it/controller/AppExtensionController.java

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,15 @@ public class AppExtensionController {
6363
* @param category 分类
6464
* @return 返回值 all app extension
6565
*/
66-
@Operation(summary = "获取应用的桥接源或工具类列表", description = "获取应用的桥接源或工具类列表", parameters = {
66+
@Operation(summary = "获取应用的桥接源或工具类列表", description = "获取应用的桥接源或工具类列表",
67+
parameters = {
6768
@Parameter(name = "appId", description = "appId"),
6869
@Parameter(name = "category", description = "category")}, responses = {
6970
@ApiResponse(responseCode = "200", description = "返回信息",
70-
content = @Content(mediaType = "application/json",
71-
schema = @Schema(implementation = AppExtension.class))),
72-
@ApiResponse(responseCode = "400", description = "请求失败")})
71+
content = @Content(mediaType = "application/json",
72+
schema = @Schema(implementation = AppExtension.class))),
73+
@ApiResponse(responseCode = "400", description = "请求失败")
74+
})
7375
@SystemControllerLog(description = "获取应用的桥接源或工具类列表")
7476
@GetMapping("/apps/extension/list")
7577
public Result<List<AppExtension>> getAllAppExtension(@RequestParam(value = "app") String appId,
@@ -86,12 +88,14 @@ public Result<List<AppExtension>> getAllAppExtension(@RequestParam(value = "app"
8688
* @param map the map
8789
* @return app extension by id
8890
*/
89-
@Operation(summary = "获取单个应用的桥接源或工具类列表", description = "获取单个应用的桥接源或工具类列表", parameters = {
91+
@Operation(summary = "获取单个应用的桥接源或工具类列表", description = "获取单个应用的桥接源或工具类列表",
92+
parameters = {
9093
@Parameter(name = "map", description = "入参对象")}, responses = {
9194
@ApiResponse(responseCode = "200", description = "返回信息",
92-
content = @Content(mediaType = "application/json",
93-
schema = @Schema(implementation = AppExtension.class))),
94-
@ApiResponse(responseCode = "400", description = "请求失败")})
95+
content = @Content(mediaType = "application/json",
96+
schema = @Schema(implementation = AppExtension.class))),
97+
@ApiResponse(responseCode = "400", description = "请求失败")
98+
})
9599
@SystemControllerLog(description = "获取单个应用的桥接源或工具类列表")
96100
@GetMapping("/apps/extension")
97101
public Result<AppExtension> getAppExtensionById(@RequestParam Map<String, String> map) {
@@ -109,12 +113,14 @@ public Result<AppExtension> getAppExtensionById(@RequestParam Map<String, String
109113
* @param appExtension the app extension
110114
* @return AppExtension
111115
*/
112-
@Operation(summary = "新建桥接或工具", description = "新建桥接或工具", parameters = {
116+
@Operation(summary = "新建桥接或工具", description = "新建桥接或工具",
117+
parameters = {
113118
@Parameter(name = "AppExtension", description = "入参对象")}, responses = {
114119
@ApiResponse(responseCode = "200", description = "返回信息",
115-
content = @Content(mediaType = "application/json",
116-
schema = @Schema(implementation = AppExtension.class))),
117-
@ApiResponse(responseCode = "400", description = "请求失败")})
120+
content = @Content(mediaType = "application/json",
121+
schema = @Schema(implementation = AppExtension.class))),
122+
@ApiResponse(responseCode = "400", description = "请求失败")
123+
})
118124
@SystemControllerLog(description = "新建桥接或工具")
119125
@PostMapping("/apps/extension/create")
120126
public Result<AppExtension> createAppExtension(@Valid @RequestBody AppExtension appExtension) {
@@ -127,12 +133,14 @@ public Result<AppExtension> createAppExtension(@Valid @RequestBody AppExtension
127133
* @param appExtension the app extension
128134
* @return AppExtension
129135
*/
130-
@Operation(summary = "修改桥接或工具", description = "修改桥接或工具", parameters = {
136+
@Operation(summary = "修改桥接或工具", description = "修改桥接或工具",
137+
parameters = {
131138
@Parameter(name = "AppExtension", description = "入参对象")}, responses = {
132139
@ApiResponse(responseCode = "200", description = "返回信息",
133-
content = @Content(mediaType = "application/json",
134-
schema = @Schema(implementation = AppExtension.class))),
135-
@ApiResponse(responseCode = "400", description = "请求失败")})
140+
content = @Content(mediaType = "application/json",
141+
schema = @Schema(implementation = AppExtension.class))),
142+
@ApiResponse(responseCode = "400", description = "请求失败")
143+
})
136144
@SystemControllerLog(description = "修改桥接或工具")
137145
@PostMapping("/apps/extension/update")
138146
public Result<AppExtension> updateAppExtension(@RequestBody AppExtension appExtension) {
@@ -145,12 +153,14 @@ public Result<AppExtension> updateAppExtension(@RequestBody AppExtension appExte
145153
* @param id the id
146154
* @return result
147155
*/
148-
@Operation(summary = "删除单个桥接或工具", description = "删除单个桥接或工具", parameters = {
156+
@Operation(summary = "删除单个桥接或工具", description = "删除单个桥接或工具",
157+
parameters = {
149158
@Parameter(name = "id", description = "AppExtensionId")}, responses = {
150159
@ApiResponse(responseCode = "200", description = "返回信息",
151-
content = @Content(mediaType = "application/json",
152-
schema = @Schema(implementation = AppExtension.class))),
153-
@ApiResponse(responseCode = "400", description = "请求失败")})
160+
content = @Content(mediaType = "application/json",
161+
schema = @Schema(implementation = AppExtension.class))),
162+
@ApiResponse(responseCode = "400", description = "请求失败")
163+
})
154164
@SystemControllerLog(description = "删除单个桥接或工具")
155165
@GetMapping("/apps/extension/delete")
156166
public Result<AppExtension> deleteAppExtension(@RequestParam Integer id) {

0 commit comments

Comments
 (0)