diff --git a/base/src/main/java/com/tinyengine/it/controller/AppController.java b/base/src/main/java/com/tinyengine/it/controller/AppController.java index b4c07a90..9d7110ab 100644 --- a/base/src/main/java/com/tinyengine/it/controller/AppController.java +++ b/base/src/main/java/com/tinyengine/it/controller/AppController.java @@ -60,13 +60,13 @@ public class AppController { * * @return App信息 all app */ - @Operation(summary = "查询表App信息", - description = "查询表App信息", - responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", - schema = @Schema(implementation = App.class))), - @ApiResponse(responseCode = "400", description = "请求失败")}) + @Operation(summary = "查询表App信息", description = "查询表App信息", + responses = { + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = App.class))), + @ApiResponse(responseCode = "400", description = "请求失败") + }) @SystemControllerLog(description = "查询表App信息") @GetMapping("/apps/list") public Result> getAllApp() { @@ -80,17 +80,15 @@ public Result> getAllApp() { * @param id the id * @return App信息 app by id */ - @Operation(summary = "根据id查询表App信息", - description = "根据id查询表App信息", - parameters = { - @Parameter(name = "id", description = "App主键id") - }, - responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", - schema = @Schema(implementation = App.class))), - @ApiResponse(responseCode = "400", description = "请求失败")} - ) + @Operation(summary = "根据id查询表App信息", description = "根据id查询表App信息", + parameters = { + @Parameter(name = "id", description = "App主键id") + }, responses = { + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = App.class))), + @ApiResponse(responseCode = "400", description = "请求失败") + }) @SystemControllerLog(description = "根据id查询表App信息") @GetMapping("/apps/{id}") public Result getAppById(@PathVariable Integer id) { @@ -103,16 +101,14 @@ public Result getAppById(@PathVariable Integer id) { * @param app the app * @return App信息 result */ - @Operation(summary = "创建app", - description = "创建app", - parameters = { - @Parameter(name = "app", description = "App入参对象") - }, - responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", - schema = @Schema(implementation = App.class))), - @ApiResponse(responseCode = "400", description = "请求失败")} + @Operation(summary = "创建app", description = "创建app", + parameters = { + @Parameter(name = "app", description = "App入参对象") + }, responses = { + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = App.class))), + @ApiResponse(responseCode = "400", description = "请求失败")} ) @SystemControllerLog(description = "创建app") @PostMapping("/apps/create") @@ -127,13 +123,15 @@ public Result createApp(@Valid @RequestBody App app) { * @param app the app * @return App信息 result */ - @Operation(summary = "修改单个App信息", description = "修改单个App信息", parameters = { + @Operation(summary = "修改单个App信息", description = "修改单个App信息", + parameters = { @Parameter(name = "id", description = "appId"), @Parameter(name = "App", description = "入参对象")}, responses = { @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", - schema = @Schema(implementation = App.class))), - @ApiResponse(responseCode = "400", description = "请求失败")}) + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = App.class))), + @ApiResponse(responseCode = "400", description = "请求失败") + }) @SystemControllerLog(description = "修改单个App信息") @PostMapping("/apps/update/{id}") public Result updateApp(@PathVariable Integer id, @RequestBody App app) { @@ -147,17 +145,15 @@ public Result updateApp(@PathVariable Integer id, @RequestBody App app) { * @param id the id * @return app信息 result */ - @Operation(summary = "删除app信息", - description = "删除app信息", - parameters = { - @Parameter(name = "id", description = "App主键id") - }, - responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", - schema = @Schema(implementation = App.class))), - @ApiResponse(responseCode = "400", description = "请求失败")} - ) + @Operation(summary = "删除app信息", description = "删除app信息", + parameters = { + @Parameter(name = "id", description = "App主键id") + }, responses = { + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = App.class))), + @ApiResponse(responseCode = "400", description = "请求失败") + }) @SystemControllerLog(description = "删除app信息") @GetMapping("/apps/delete/{id}") public Result deleteApp(@PathVariable Integer id) { @@ -170,12 +166,14 @@ public Result deleteApp(@PathVariable Integer id) { * @param id the id * @return the result */ - @Operation(summary = "获取应用信息详情", description = "获取应用信息详情", parameters = { + @Operation(summary = "获取应用信息详情", description = "获取应用信息详情", + parameters = { @Parameter(name = "id", description = "appId")}, responses = { @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", - schema = @Schema(implementation = App.class))), - @ApiResponse(responseCode = "400", description = "请求失败")}) + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = App.class))), + @ApiResponse(responseCode = "400", description = "请求失败") + }) @SystemControllerLog(description = "获取应用信息详情") @GetMapping("/apps/detail/{id}") public Result detail(@PathVariable Integer id) { @@ -189,13 +187,15 @@ public Result detail(@PathVariable Integer id) { * @param param the param * @return the result */ - @Operation(summary = "修改应用对应的国际化语种关联", description = "修改应用对应的国际化语种关联", parameters = { + @Operation(summary = "修改应用对应的国际化语种关联", description = "修改应用对应的国际化语种关联", + parameters = { @Parameter(name = "id", description = "appId"), @Parameter(name = "param", description = "入参对象")}, responses = { @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", - schema = @Schema(implementation = App.class))), - @ApiResponse(responseCode = "400", description = "请求失败")}) + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = App.class))), + @ApiResponse(responseCode = "400", description = "请求失败") + }) @SystemControllerLog(description = "修改应用对应的国际化语种关联") @PostMapping("/apps/i18n/{id}") public Result updateI18n(@PathVariable Integer id, @RequestBody Map param) { diff --git a/base/src/main/java/com/tinyengine/it/controller/AppExtensionController.java b/base/src/main/java/com/tinyengine/it/controller/AppExtensionController.java index 2ae2c1c4..2aed1b35 100644 --- a/base/src/main/java/com/tinyengine/it/controller/AppExtensionController.java +++ b/base/src/main/java/com/tinyengine/it/controller/AppExtensionController.java @@ -63,13 +63,15 @@ public class AppExtensionController { * @param category 分类 * @return 返回值 all app extension */ - @Operation(summary = "获取应用的桥接源或工具类列表", description = "获取应用的桥接源或工具类列表", parameters = { + @Operation(summary = "获取应用的桥接源或工具类列表", description = "获取应用的桥接源或工具类列表", + parameters = { @Parameter(name = "appId", description = "appId"), @Parameter(name = "category", description = "category")}, responses = { @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", - schema = @Schema(implementation = AppExtension.class))), - @ApiResponse(responseCode = "400", description = "请求失败")}) + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = AppExtension.class))), + @ApiResponse(responseCode = "400", description = "请求失败") + }) @SystemControllerLog(description = "获取应用的桥接源或工具类列表") @GetMapping("/apps/extension/list") public Result> getAllAppExtension(@RequestParam(value = "app") String appId, @@ -86,12 +88,14 @@ public Result> getAllAppExtension(@RequestParam(value = "app" * @param map the map * @return app extension by id */ - @Operation(summary = "获取单个应用的桥接源或工具类列表", description = "获取单个应用的桥接源或工具类列表", parameters = { + @Operation(summary = "获取单个应用的桥接源或工具类列表", description = "获取单个应用的桥接源或工具类列表", + parameters = { @Parameter(name = "map", description = "入参对象")}, responses = { @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", - schema = @Schema(implementation = AppExtension.class))), - @ApiResponse(responseCode = "400", description = "请求失败")}) + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = AppExtension.class))), + @ApiResponse(responseCode = "400", description = "请求失败") + }) @SystemControllerLog(description = "获取单个应用的桥接源或工具类列表") @GetMapping("/apps/extension") public Result getAppExtensionById(@RequestParam Map map) { @@ -109,12 +113,14 @@ public Result getAppExtensionById(@RequestParam Map createAppExtension(@Valid @RequestBody AppExtension appExtension) { @@ -127,12 +133,14 @@ public Result createAppExtension(@Valid @RequestBody AppExtension * @param appExtension the app extension * @return AppExtension */ - @Operation(summary = "修改桥接或工具", description = "修改桥接或工具", parameters = { + @Operation(summary = "修改桥接或工具", description = "修改桥接或工具", + parameters = { @Parameter(name = "AppExtension", description = "入参对象")}, responses = { @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", - schema = @Schema(implementation = AppExtension.class))), - @ApiResponse(responseCode = "400", description = "请求失败")}) + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = AppExtension.class))), + @ApiResponse(responseCode = "400", description = "请求失败") + }) @SystemControllerLog(description = "修改桥接或工具") @PostMapping("/apps/extension/update") public Result updateAppExtension(@RequestBody AppExtension appExtension) { @@ -145,12 +153,14 @@ public Result updateAppExtension(@RequestBody AppExtension appExte * @param id the id * @return result */ - @Operation(summary = "删除单个桥接或工具", description = "删除单个桥接或工具", parameters = { + @Operation(summary = "删除单个桥接或工具", description = "删除单个桥接或工具", + parameters = { @Parameter(name = "id", description = "AppExtensionId")}, responses = { @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", - schema = @Schema(implementation = AppExtension.class))), - @ApiResponse(responseCode = "400", description = "请求失败")}) + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = AppExtension.class))), + @ApiResponse(responseCode = "400", description = "请求失败") + }) @SystemControllerLog(description = "删除单个桥接或工具") @GetMapping("/apps/extension/delete") public Result deleteAppExtension(@RequestParam Integer id) { diff --git a/base/src/main/java/com/tinyengine/it/controller/BlockGroupController.java b/base/src/main/java/com/tinyengine/it/controller/BlockGroupController.java index 133fa936..613a0551 100644 --- a/base/src/main/java/com/tinyengine/it/controller/BlockGroupController.java +++ b/base/src/main/java/com/tinyengine/it/controller/BlockGroupController.java @@ -67,14 +67,15 @@ public class BlockGroupController { * @param from from * @return the list */ - @Operation(summary = "获取区块分组", description = "获取区块分组", parameters = { - @Parameter(name = "ids", description = "分组ids"), - @Parameter(name = "appId", description = "appId"), - @Parameter(name = "from", description = "区分是在物料管理还是区块管理(block:在区块管理)") + @Operation(summary = "获取区块分组", description = "获取区块分组", + parameters = { + @Parameter(name = "ids", description = "分组ids"), + @Parameter(name = "appId", description = "appId"), + @Parameter(name = "from", description = "区分是在物料管理还是区块管理(block:在区块管理)") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema())), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", schema = @Schema())), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "获取区块分组") @GetMapping("/block-groups") @@ -93,12 +94,14 @@ public Result> getAllBlockGroups( * @param blockGroup blockGroup * @return the list */ - @Operation(summary = "创建区块分组", description = "创建区块分组", parameters = { - @Parameter(name = "blockGroups", description = "入参对象") + @Operation(summary = "创建区块分组", description = "创建区块分组", + parameters = { + @Parameter(name = "blockGroups", description = "入参对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = BlockGroup.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = BlockGroup.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "创建区块分组") @PostMapping("/block-groups/create") @@ -113,13 +116,14 @@ public Result createBlockGroups(@Valid @RequestBody BlockGroup block * @param blockGroup blockGroup * @return the list */ - @Operation(summary = "修改区块分组", description = "修改区块分组", parameters = { - @Parameter(name = "id", description = "分组id"), - @Parameter(name = "blockGroups", description = "入参对象") + @Operation(summary = "修改区块分组", description = "修改区块分组", + parameters = { + @Parameter(name = "id", description = "分组id"), + @Parameter(name = "blockGroups", description = "入参对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = BlockGroup.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", schema = @Schema(implementation = BlockGroup.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "修改区块分组") @PostMapping("/block-groups/update/{id}") @@ -139,12 +143,14 @@ public Result> updateBlockGroups(@Valid @PathVariable Integer i * @return the list * @throws ServiceException serviceException */ - @Operation(summary = "根据id删除区块分组", description = "根据id删除区块分组", parameters = { - @Parameter(name = "id", description = "分组id") + @Operation(summary = "根据id删除区块分组", description = "根据id删除区块分组", + parameters = { + @Parameter(name = "id", description = "分组id") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = BlockGroup.class))), - @ApiResponse(responseCode = "400", description = "请求失败")} + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = BlockGroup.class))), + @ApiResponse(responseCode = "400", description = "请求失败")} ) @SystemControllerLog(description = "根据id删除区块分组") @GetMapping("/block-groups/delete/{id}") diff --git a/base/src/main/java/com/tinyengine/it/controller/CanvasController.java b/base/src/main/java/com/tinyengine/it/controller/CanvasController.java index a9a3ba40..9512dfd8 100644 --- a/base/src/main/java/com/tinyengine/it/controller/CanvasController.java +++ b/base/src/main/java/com/tinyengine/it/controller/CanvasController.java @@ -55,14 +55,15 @@ public class CanvasController { * @param type the type * @return CanvasDto */ - @Operation(summary = "区块及页面锁", description = "区块及页面锁", parameters = { - @Parameter(name = "id", description = "页面id"), - @Parameter(name = "state", description = "状态"), - @Parameter(name = "type", description = "区分是页面还是区块") + @Operation(summary = "区块及页面锁", description = "区块及页面锁", + parameters = { + @Parameter(name = "id", description = "页面id"), + @Parameter(name = "state", description = "状态"), + @Parameter(name = "type", description = "区分是页面还是区块") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema())), - @ApiResponse(responseCode = "400", description = "请求失败")} + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", schema = @Schema())), + @ApiResponse(responseCode = "400", description = "请求失败")} ) @SystemControllerLog(description = "区块及页面锁") @GetMapping("apps/canvas/lock") diff --git a/base/src/main/java/com/tinyengine/it/controller/ComponentController.java b/base/src/main/java/com/tinyengine/it/controller/ComponentController.java index dabeb230..adb80992 100644 --- a/base/src/main/java/com/tinyengine/it/controller/ComponentController.java +++ b/base/src/main/java/com/tinyengine/it/controller/ComponentController.java @@ -61,12 +61,13 @@ public class ComponentController { * @param file the file * @return result */ - @Operation(summary = "上传bunled.json文件创建组件", description = "上传bunled.json文件创建组件", parameters = { - @Parameter(name = "file", description = "文件参数对象") + @Operation(summary = "上传bunled.json文件创建组件", description = "上传bunled.json文件创建组件", + parameters = { + @Parameter(name = "file", description = "文件参数对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema())), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", schema = @Schema())), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "上传bunled.json文件创建组件") @PostMapping("/component/bundle/create") @@ -91,12 +92,13 @@ public Result bundleCreateComponent(@RequestParam MultipartFile file * @param file the file * @return result */ - @Operation(summary = "上传bunled.json文件处理自定义组件", description = "上传bunled.json文件处理自定义组件", parameters = { - @Parameter(name = "file", description = "文件参数对象") + @Operation(summary = "上传bunled.json文件处理自定义组件", description = "上传bunled.json文件处理自定义组件", + parameters = { + @Parameter(name = "file", description = "文件参数对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema())), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", schema = @Schema())), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "上传bunled.json文件处理自定义组件") @PostMapping("/component/bundle/split") @@ -120,12 +122,13 @@ public Result bundleSplit(@RequestParam MultipartFile file) { * @param custComponentDto the custComponentDto * @return result */ - @Operation(summary = "批量创建自定义组件", description = "批量创建自定义组件", parameters = { - @Parameter(name = "custComponentDto", description = "自定义组件对象") + @Operation(summary = "批量创建自定义组件", description = "批量创建自定义组件", + parameters = { + @Parameter(name = "custComponentDto", description = "自定义组件对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema())), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", schema = @Schema())), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "批量创建自定义组件") @PostMapping("/component/batch/create") diff --git a/base/src/main/java/com/tinyengine/it/controller/ComponentLibraryController.java b/base/src/main/java/com/tinyengine/it/controller/ComponentLibraryController.java index b30e2017..958238a4 100644 --- a/base/src/main/java/com/tinyengine/it/controller/ComponentLibraryController.java +++ b/base/src/main/java/com/tinyengine/it/controller/ComponentLibraryController.java @@ -57,10 +57,12 @@ public class ComponentLibraryController { * * @return ComponentLibrary信息 all componentLibrary */ - @Operation(summary = "查询表ComponentLibrary信息列表", description = "查询表ComponentLibrary信息列表", responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = ComponentLibrary.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @Operation(summary = "查询表ComponentLibrary信息列表", description = "查询表ComponentLibrary信息列表", + responses = { + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = ComponentLibrary.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "查询表ComponentLibrary信息列表") @GetMapping("/component-library/list") @@ -75,12 +77,13 @@ public Result> getAllComponentLibrary() { * @param componentLibrary the componentLibrary * @return ComponentLibrary信息 result */ - @Operation(summary = "创建ComponentLibrary", description = "创建ComponentLibrary", parameters = { - @Parameter(name = "ComponentLibrary", description = "ComponentLibrary入参对象") + @Operation(summary = "创建ComponentLibrary", description = "创建ComponentLibrary", + parameters = { + @Parameter(name = "ComponentLibrary", description = "ComponentLibrary入参对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = ComponentLibrary.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", schema = @Schema(implementation = ComponentLibrary.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "创建ComponentLibrary") @PostMapping("/component-library/create") @@ -95,13 +98,15 @@ public Result createComponentLibrary(@Valid @RequestBody Compo * @param componentLibrary the componentLibrary * @return ComponentLibrary信息 result */ - @Operation(summary = "修改单个ComponentLibrary信息", description = "修改单个ComponentLibrary信息", parameters = { - @Parameter(name = "id", description = "appId"), - @Parameter(name = "ComponentLibrary", description = "入参对象") + @Operation(summary = "修改单个ComponentLibrary信息", description = "修改单个ComponentLibrary信息", + parameters = { + @Parameter(name = "id", description = "appId"), + @Parameter(name = "ComponentLibrary", description = "入参对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = ComponentLibrary.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = ComponentLibrary.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "修改单个ComponentLibrary信息") @PostMapping("/component-library/update/{id}") @@ -117,12 +122,14 @@ public Result updateComponentLibrary(@PathVariable Integer id, * @param id the id * @return ComponentLibrary信息 result */ - @Operation(summary = "删除ComponentLibrary信息", description = "删除ComponentLibrary信息", parameters = { - @Parameter(name = "id", description = "ComponentLibrary主键id") + @Operation(summary = "删除ComponentLibrary信息", description = "删除ComponentLibrary信息", + parameters = { + @Parameter(name = "id", description = "ComponentLibrary主键id") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = ComponentLibrary.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = ComponentLibrary.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "删除ComponentLibrary信息") @DeleteMapping("/component-library/delete/{id}") @@ -136,12 +143,14 @@ public Result deleteComponentLibrary(@PathVariable Integer id) * @param id the id * @return the result */ - @Operation(summary = "获取ComponentLibrary信息详情", description = "获取ComponentLibrary信息详情", parameters = { - @Parameter(name = "id", description = "appId") + @Operation(summary = "获取ComponentLibrary信息详情", description = "获取ComponentLibrary信息详情", + parameters = { + @Parameter(name = "id", description = "appId") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = ComponentLibrary.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = ComponentLibrary.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "获取ComponentLibrary信息详情") @GetMapping("/component-library/detail/{id}") diff --git a/base/src/main/java/com/tinyengine/it/controller/DataSourceController.java b/base/src/main/java/com/tinyengine/it/controller/DataSourceController.java index 4b6ae3c3..82ae69d3 100644 --- a/base/src/main/java/com/tinyengine/it/controller/DataSourceController.java +++ b/base/src/main/java/com/tinyengine/it/controller/DataSourceController.java @@ -61,12 +61,14 @@ public class DataSourceController { * @param aid the aid * @return all sources */ - @Operation(summary = "获取数据源列表", description = "获取数据源列表", parameters = { - @Parameter(name = "aid", description = "appId") + @Operation(summary = "获取数据源列表", description = "获取数据源列表", + parameters = { + @Parameter(name = "aid", description = "appId") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = Datasource.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Datasource.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "获取数据源列表") @GetMapping("/sources/list/{aid}") @@ -82,12 +84,14 @@ public Result> getAllSources(@PathVariable Integer aid) { * @param id the id * @return sources by id */ - @Operation(summary = "获取某条数据源", description = "获取某条数据源", parameters = { - @Parameter(name = "id", description = "数据源主键id") + @Operation(summary = "获取某条数据源", description = "获取某条数据源", + parameters = { + @Parameter(name = "id", description = "数据源主键id") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = Datasource.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Datasource.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "获取某条数据源") @GetMapping("/sources/detail/{id}") @@ -102,12 +106,14 @@ public Result getSourcesById(@PathVariable Integer id) { * @param sources the sources * @return result */ - @Operation(summary = "创建数据源", description = "创建数据源", parameters = { - @Parameter(name = "sources", description = "入参对象") + @Operation(summary = "创建数据源", description = "创建数据源", + parameters = { + @Parameter(name = "sources", description = "入参对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = Datasource.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Datasource.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "创建数据源") @PostMapping("/sources/create") @@ -122,13 +128,15 @@ public Result createSources(@Valid @RequestBody Datasource sources) * @param sources the sources * @return result */ - @Operation(summary = "修改数据源某条数据", description = "修改数据源某条数据", parameters = { - @Parameter(name = "id", description = "数据源主键id"), - @Parameter(name = "sources", description = "入参对象") + @Operation(summary = "修改数据源某条数据", description = "修改数据源某条数据", + parameters = { + @Parameter(name = "id", description = "数据源主键id"), + @Parameter(name = "sources", description = "入参对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = Datasource.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Datasource.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "修改数据源某条数据") @PostMapping("/sources/update/{id}") @@ -143,12 +151,14 @@ public Result updateSources(@PathVariable Integer id, @RequestBody D * @param id the id * @return result */ - @Operation(summary = "删除数据源某条数据", description = "删除数据源某条数据", parameters = { - @Parameter(name = "id", description = "数据源主键id") + @Operation(summary = "删除数据源某条数据", description = "删除数据源某条数据", + parameters = { + @Parameter(name = "id", description = "数据源主键id") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = Datasource.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Datasource.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "删除数据源某条数据") @GetMapping("/sources/delete/{id}") diff --git a/base/src/main/java/com/tinyengine/it/controller/I18nEntryController.java b/base/src/main/java/com/tinyengine/it/controller/I18nEntryController.java index 7894f254..11c3f88e 100644 --- a/base/src/main/java/com/tinyengine/it/controller/I18nEntryController.java +++ b/base/src/main/java/com/tinyengine/it/controller/I18nEntryController.java @@ -76,10 +76,11 @@ public class I18nEntryController { * * @return 获取国际化词条列表 i 18 n entries */ - @Operation(summary = "通过app获取国际化词条列表", description = "通过app获取国际化词条列表", responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema())), - @ApiResponse(responseCode = "400", description = "请求失败") + @Operation(summary = "通过app获取国际化词条列表", description = "通过app获取国际化词条列表", + responses = { + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", schema = @Schema())), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "通过app获取国际化词条列表") @GetMapping("/i18n/entries") @@ -95,12 +96,14 @@ public Result getI18nEntriesByApp(@RequestParam(value = "ho * @param id 国际化语言id * @return 国际化语言详情 i 18 n entries by id */ - @Operation(summary = "获取国际化语言的详情", description = "获取国际化语言的详情", parameters = { - @Parameter(name = "id", description = "I18nEntries主键id") + @Operation(summary = "获取国际化语言的详情", description = "获取国际化语言的详情", + parameters = { + @Parameter(name = "id", description = "I18nEntries主键id") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = I18nEntry.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = I18nEntry.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "获取国际化语言的详情") @GetMapping("/i18n/entries/{id}") @@ -115,12 +118,14 @@ public Result getI18nEntriesById(@Valid @PathVariable Integer id) * @param operateI18nEntries the operate i 18 n entries * @return result */ - @Operation(summary = "创建国际化多语言词条", description = "创建国际化多语言词条", parameters = { - @Parameter(name = "OperateI18nEntries", description = "入参对象") + @Operation(summary = "创建国际化多语言词条", description = "创建国际化多语言词条", + parameters = { + @Parameter(name = "OperateI18nEntries", description = "入参对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = I18nEntry.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = I18nEntry.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "创建国际化多语言词条") @PostMapping("/i18n/entries/create") @@ -136,12 +141,14 @@ public Result> createI18nEntries(@Valid @RequestBody OperateI18n * @param operateI18nBatchEntries the operate i 18 n batch entries * @return the result */ - @Operation(summary = "批量创建国际化多语言词条", description = "批量创建国际化多语言词条", parameters = { - @Parameter(name = "operateI18nBatchEntries", description = "入参对象") + @Operation(summary = "批量创建国际化多语言词条", description = "批量创建国际化多语言词条", + parameters = { + @Parameter(name = "operateI18nBatchEntries", description = "入参对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = I18nEntry.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = I18nEntry.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "批量创建国际化多语言词条") @PostMapping("/i18n/entries/batch/create") @@ -159,13 +166,15 @@ public Result> batchCreateEntries( * @param i18nEntries the 18 n entries * @return the result */ - @Operation(summary = "修改国际化单语言词条", description = "修改国际化单语言词条", parameters = { - @Parameter(name = "id", description = "I18nEntries主键id"), - @Parameter(name = "i18nEntries", description = "入参对象") + @Operation(summary = "修改国际化单语言词条", description = "修改国际化单语言词条", + parameters = { + @Parameter(name = "id", description = "I18nEntries主键id"), + @Parameter(name = "i18nEntries", description = "入参对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = I18nEntry.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = I18nEntry.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "修改国际化单语言词条") @PostMapping("/i18n/entries/update/{id}") @@ -183,12 +192,14 @@ public Result updateI18nEntries(@PathVariable Integer id, * @param operateI18nEntries the operate i 18 n entries * @return 修改成功信息 result */ - @Operation(summary = "修改国际化多语言词条", description = "修改国际化多语言词条", parameters = { - @Parameter(name = "operateI18nEntries", description = "入参对象") + @Operation(summary = "修改国际化多语言词条", description = "修改国际化多语言词条", + parameters = { + @Parameter(name = "operateI18nEntries", description = "入参对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = I18nEntry.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = I18nEntry.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "修改国际化多语言词条") @PostMapping("/i18n/entries/update") @@ -206,12 +217,14 @@ public Result> updateEntry(@Valid @RequestBody OperateI18nEntrie * @return result * @throws ServiceException the service exception */ - @Operation(summary = "删除多语言词条", description = "删除多语言词条", parameters = { - @Parameter(name = "iDeleteI18nEntry", description = "入参对象") + @Operation(summary = "删除多语言词条", description = "删除多语言词条", + parameters = { + @Parameter(name = "iDeleteI18nEntry", description = "入参对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = I18nEntry.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = I18nEntry.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "删除多语言词条") @PostMapping("/i18n/entries/bulk/delete") @@ -230,13 +243,14 @@ public Result> deleteI18nEntries(@RequestBody DeleteI18nEntry * @return result * @throws Exception the exception */ - @Operation(summary = "应用下上传单文件处理国际化词条", description = "应用下上传单文件处理国际化词条", parameters = { - @Parameter(name = "id", description = "appId"), - @Parameter(name = "filesMap", description = "文件参数对象") + @Operation(summary = "应用下上传单文件处理国际化词条", description = "应用下上传单文件处理国际化词条", + parameters = { + @Parameter(name = "id", description = "appId"), + @Parameter(name = "filesMap", description = "文件参数对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema())), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", schema = @Schema())), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "应用下上传单文件处理国际化词条") @PostMapping("/apps/{id}/i18n/entries/update") @@ -273,13 +287,14 @@ public Result updateI18nSingleFile( * @return the result * @throws Exception exception */ - @Operation(summary = "应用下批量上传国际化词条文件", description = "应用下批量上传国际化词条文件", parameters = { - @Parameter(name = "id", description = "appId"), - @Parameter(name = "filesMap", description = "文件参数对象") + @Operation(summary = "应用下批量上传国际化词条文件", description = "应用下批量上传国际化词条文件", + parameters = { + @Parameter(name = "id", description = "appId"), + @Parameter(name = "filesMap", description = "文件参数对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema())), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", schema = @Schema())), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "应用下批量上传国际化词条文件") @PostMapping("/apps/{id}/i18n/entries/multiUpdate") diff --git a/base/src/main/java/com/tinyengine/it/controller/MaterialController.java b/base/src/main/java/com/tinyengine/it/controller/MaterialController.java index 27f8609b..e672094a 100644 --- a/base/src/main/java/com/tinyengine/it/controller/MaterialController.java +++ b/base/src/main/java/com/tinyengine/it/controller/MaterialController.java @@ -57,10 +57,12 @@ public class MaterialController { * * @return Material信息 all material */ - @Operation(summary = "查询表Material信息列表", description = "查询表Material信息列表", responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = Material.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @Operation(summary = "查询表Material信息列表", description = "查询表Material信息列表", + responses = { + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Material.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "查询表Material信息列表") @GetMapping("/material/list") @@ -75,12 +77,14 @@ public Result> getAllMaterial() { * @param material the material * @return Material信息 result */ - @Operation(summary = "创建Material", description = "创建Material", parameters = { - @Parameter(name = "Material", description = "Material入参对象") + @Operation(summary = "创建Material", description = "创建Material", + parameters = { + @Parameter(name = "Material", description = "Material入参对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = Material.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Material.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "创建Material") @PostMapping("/material/create") @@ -95,13 +99,15 @@ public Result createMaterial(@Valid @RequestBody Material material) { * @param material the material * @return Material信息 result */ - @Operation(summary = "修改单个Material信息", description = "修改单个Material信息", parameters = { - @Parameter(name = "id", description = "appId"), - @Parameter(name = "Material", description = "入参对象") + @Operation(summary = "修改单个Material信息", description = "修改单个Material信息", + parameters = { + @Parameter(name = "id", description = "appId"), + @Parameter(name = "Material", description = "入参对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = Material.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Material.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "修改单个Material信息") @PostMapping("/material/update/{id}") @@ -116,12 +122,14 @@ public Result updateMaterial(@PathVariable Integer id, @RequestBody Ma * @param id the id * @return app信息 result */ - @Operation(summary = "删除Material信息", description = "删除Material信息", parameters = { - @Parameter(name = "id", description = "Material主键id") + @Operation(summary = "删除Material信息", description = "删除Material信息", + parameters = { + @Parameter(name = "id", description = "Material主键id") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = Material.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Material.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "删除Material信息") @DeleteMapping("/material/delete/{id}") @@ -135,12 +143,14 @@ public Result deleteMaterial(@PathVariable Integer id) { * @param id the id * @return the result */ - @Operation(summary = "获取Material信息详情", description = "获取Material信息详情", parameters = { - @Parameter(name = "id", description = "appId") + @Operation(summary = "获取Material信息详情", description = "获取Material信息详情", + parameters = { + @Parameter(name = "id", description = "appId") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = Material.class))), - @ApiResponse(responseCode = "400", description = "请求失败")}) + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Material.class))), + @ApiResponse(responseCode = "400", description = "请求失败")}) @SystemControllerLog(description = "获取Material信息详情") @GetMapping("/material/detail/{id}") public Result detail(@PathVariable Integer id) { diff --git a/base/src/main/java/com/tinyengine/it/controller/ModelController.java b/base/src/main/java/com/tinyengine/it/controller/ModelController.java index 394575a4..70c4b681 100644 --- a/base/src/main/java/com/tinyengine/it/controller/ModelController.java +++ b/base/src/main/java/com/tinyengine/it/controller/ModelController.java @@ -59,15 +59,17 @@ public class ModelController { * * @return all Model信息 */ - @Operation(summary = "查询表Model信息列表", description = "查询表Model信息列表", parameters = { - @Parameter(name = "currentPage", description = "当前页"), - @Parameter(name = "pageSize", description = "页数"), - @Parameter(name = "nameCn", description = "模型中文名称"), - @Parameter(name = "nameEn", description = "模型英文名称") + @Operation(summary = "查询表Model信息列表", description = "查询表Model信息列表", + parameters = { + @Parameter(name = "currentPage", description = "当前页"), + @Parameter(name = "pageSize", description = "页数"), + @Parameter(name = "nameCn", description = "模型中文名称"), + @Parameter(name = "nameEn", description = "模型英文名称") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = Model.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Model.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "查询表Model信息列表") @GetMapping("/model/list") @@ -84,12 +86,14 @@ public Result> getAllModel(@RequestParam(value = "currentPage", requ * * @return Model信息 */ - @Operation(summary = "根据nameCn查询表Model信息", description = "根据nameCn查询表Model信息", parameters = { - @Parameter(name = "nameCn", description = "名称"), + @Operation(summary = "根据nameCn查询表Model信息", description = "根据nameCn查询表Model信息", + parameters = { + @Parameter(name = "nameCn", description = "名称"), }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = Model.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Model.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "根据nameCn查询表Model信息") @GetMapping("/model/find") @@ -104,12 +108,14 @@ public Result> getModelByName(@RequestParam(value = "nameCn", requir * @param model the model * @return Model信息 result */ - @Operation(summary = "创建Model", description = "创建Model", parameters = { - @Parameter(name = "Model", description = "Model入参对象") + @Operation(summary = "创建Model", description = "创建Model", + parameters = { + @Parameter(name = "Model", description = "Model入参对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", content = @Content(mediaType = "application/json", - schema = @Schema(implementation = Model.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Model.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "创建Model") @PostMapping("/model/create") @@ -125,13 +131,15 @@ public Result createModel(@Valid @RequestBody Model model) { * @param model the model * @return Model信息 result */ - @Operation(summary = "修改单个Model信息", description = "修改单个Model信息", parameters = { - @Parameter(name = "id", description = "模型id"), - @Parameter(name = "Model", description = "入参对象") + @Operation(summary = "修改单个Model信息", description = "修改单个Model信息", + parameters = { + @Parameter(name = "id", description = "模型id"), + @Parameter(name = "Model", description = "入参对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = Model.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Model.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "修改单个Model信息") @PutMapping("/model/update/{id}") @@ -147,12 +155,14 @@ public Result updateModel(@PathVariable Integer id, @RequestBody Model mo * @param id the id * @return app信息 result */ - @Operation(summary = "删除Model信息", description = "删除Model信息", parameters = { - @Parameter(name = "id", description = "Model主键id") + @Operation(summary = "删除Model信息", description = "删除Model信息", + parameters = { + @Parameter(name = "id", description = "Model主键id") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = Model.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Model.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "删除Model信息") @DeleteMapping("/model/delete/{id}") @@ -167,12 +177,14 @@ public Result deleteModel(@PathVariable Integer id) { * @param id the id * @return the result */ - @Operation(summary = "获取Model信息详情", description = "获取Model信息详情", parameters = { - @Parameter(name = "id", description = "模型id") + @Operation(summary = "获取Model信息详情", description = "获取Model信息详情", + parameters = { + @Parameter(name = "id", description = "模型id") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = Model.class))), - @ApiResponse(responseCode = "400", description = "请求失败")}) + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Model.class))), + @ApiResponse(responseCode = "400", description = "请求失败")}) @SystemControllerLog(description = "获取Model信息详情") @GetMapping("/model/detail/{id}") public Result detail(@PathVariable Integer id) { @@ -186,12 +198,14 @@ public Result detail(@PathVariable Integer id) { * @param id the id * @return the result */ - @Operation(summary = "获取Model建表sql", description = "获取Model建表sql", parameters = { - @Parameter(name = "id", description = "模型id") + @Operation(summary = "获取Model建表sql", description = "获取Model建表sql", + parameters = { + @Parameter(name = "id", description = "模型id") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = String.class))), - @ApiResponse(responseCode = "400", description = "请求失败")}) + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = String.class))), + @ApiResponse(responseCode = "400", description = "请求失败")}) @SystemControllerLog(description = "获取Model建表sql") @GetMapping("/model/table/{id}") public Result getTable(@PathVariable Integer id) { diff --git a/base/src/main/java/com/tinyengine/it/controller/PageController.java b/base/src/main/java/com/tinyengine/it/controller/PageController.java index 64a64118..d6512477 100644 --- a/base/src/main/java/com/tinyengine/it/controller/PageController.java +++ b/base/src/main/java/com/tinyengine/it/controller/PageController.java @@ -76,12 +76,14 @@ public class PageController { * @param aid the aid * @return allpage */ - @Operation(summary = "获取页面列表", description = "获取页面列表", parameters = { - @Parameter(name = "aid", description = "appId") + @Operation(summary = "获取页面列表", description = "获取页面列表", + parameters = { + @Parameter(name = "aid", description = "appId") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = Page.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Page.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "获取页面列表") @GetMapping("/pages/list/{aid}") @@ -97,12 +99,14 @@ public Result> getAllPage(@PathVariable Integer aid) { * @return by id * @throws Exception the exception */ - @Operation(summary = "获取页面明细", description = "获取页面明细", parameters = { - @Parameter(name = "id", description = "page主键id") + @Operation(summary = "获取页面明细", description = "获取页面明细", + parameters = { + @Parameter(name = "id", description = "page主键id") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = Page.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Page.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "获取页面明细") @GetMapping("/pages/detail/{id}") @@ -118,12 +122,14 @@ public Result getPageById(@PathVariable Integer id) throws Exception { * @return result * @throws Exception the exception */ - @Operation(summary = "创建页面", description = "创建页面", parameters = { - @Parameter(name = "page", description = "入参对象") + @Operation(summary = "创建页面", description = "创建页面", + parameters = { + @Parameter(name = "page", description = "入参对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = Page.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Page.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "创建页面") @PostMapping("/pages/create") @@ -145,12 +151,14 @@ public Result createPage(HttpServletRequest request) throws IOException { * @return result * @throws Exception the exception */ - @Operation(summary = "修改页面", description = "修改页面", parameters = {@Parameter(name = "id", description = "页面主键id"), - @Parameter(name = "param", description = "入参对象") + @Operation(summary = "修改页面", description = "修改页面", + parameters = {@Parameter(name = "id", description = "页面主键id"), + @Parameter(name = "param", description = "入参对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = Page.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Page.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "修改页面") @PostMapping("/pages/update/{id}") @@ -186,12 +194,14 @@ public Result updatePage(HttpServletRequest request) throws IOException { * @return result * @throws Exception the exception */ - @Operation(summary = "删除页面", description = "删除页面", parameters = { - @Parameter(name = "id", description = "页面主键id") + @Operation(summary = "删除页面", description = "删除页面", + parameters = { + @Parameter(name = "id", description = "页面主键id") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema(implementation = Page.class))), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", + schema = @Schema(implementation = Page.class))), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "删除页面") @GetMapping("/pages/delete/{id}") @@ -205,12 +215,13 @@ public Result deletePage(@PathVariable Integer id) throws Exception { * @param previewParam the preview param * @return PreviewDto result */ - @Operation(summary = "查询页面预览元数据", description = "查询页面预览元数据信息并返回", parameters = { - @Parameter(name = "PreviewParam", description = "入参对象") + @Operation(summary = "查询页面预览元数据", description = "查询页面预览元数据信息并返回", + parameters = { + @Parameter(name = "PreviewParam", description = "入参对象") }, responses = { - @ApiResponse(responseCode = "200", description = "返回信息", - content = @Content(mediaType = "application/json", schema = @Schema())), - @ApiResponse(responseCode = "400", description = "请求失败") + @ApiResponse(responseCode = "200", description = "返回信息", + content = @Content(mediaType = "application/json", schema = @Schema())), + @ApiResponse(responseCode = "400", description = "请求失败") }) @SystemControllerLog(description = "查询页面预览元数据") @GetMapping("/preview/metadata") diff --git a/base/src/main/java/com/tinyengine/it/controller/ResourceController.java b/base/src/main/java/com/tinyengine/it/controller/ResourceController.java index e235f5de..f11912a7 100644 --- a/base/src/main/java/com/tinyengine/it/controller/ResourceController.java +++ b/base/src/main/java/com/tinyengine/it/controller/ResourceController.java @@ -334,8 +334,8 @@ public void getResource(@PathVariable String name, HttpServletResponse response) // 设置Content-Disposition String contentDisposition = Utils.isDownload(name) - ? "attachment; filename*=UTF-8''" + encodedFileName - : "inline; filename*=UTF-8''" + encodedFileName; + ? "attachment; filename*=UTF-8''" + encodedFileName + : "inline; filename*=UTF-8''" + encodedFileName; response.setHeader("Content-Disposition", contentDisposition); // 写入响应体 try (OutputStream out = response.getOutputStream()) {