@RestController @RequestMapping(value="/infra/codegen") @Validated public class CodegenController extends Object
| Constructor and Description |
|---|
CodegenController() |
@GetMapping(value="/db/table/list") @PreAuthorize(value="@ss.hasPermission(\'infra:codegen:query\')") public org.openea.eap.framework.common.pojo.CommonResult<List<DatabaseTableRespVO>> getDatabaseTableList(@RequestParam(value="dataSourceConfigId") Long dataSourceConfigId, @RequestParam(value="name",required=false) String name, @RequestParam(value="comment",required=false) String comment)
@GetMapping(value="/table/list") @PreAuthorize(value="@ss.hasPermission(\'infra:codegen:query\')") public org.openea.eap.framework.common.pojo.CommonResult<List<CodegenTableRespVO>> getCodegenTableList(@RequestParam(value="dataSourceConfigId") Long dataSourceConfigId)
@GetMapping(value="/table/page") @PreAuthorize(value="@ss.hasPermission(\'infra:codegen:query\')") public org.openea.eap.framework.common.pojo.CommonResult<org.openea.eap.framework.common.pojo.PageResult<CodegenTableRespVO>> getCodegenTablePage(@Valid @Valid CodegenTablePageReqVO pageReqVO)
@GetMapping(value="/detail") @PreAuthorize(value="@ss.hasPermission(\'infra:codegen:query\')") public org.openea.eap.framework.common.pojo.CommonResult<CodegenDetailRespVO> getCodegenDetail(@RequestParam(value="tableId") Long tableId)
@PostMapping(value="/create-list") @PreAuthorize(value="@ss.hasPermission(\'infra:codegen:create\')") public org.openea.eap.framework.common.pojo.CommonResult<List<Long>> createCodegenList(@Valid @RequestBody @Valid CodegenCreateListReqVO reqVO)
@PutMapping(value="/update") @PreAuthorize(value="@ss.hasPermission(\'infra:codegen:update\')") public org.openea.eap.framework.common.pojo.CommonResult<Boolean> updateCodegen(@Valid @RequestBody @Valid CodegenUpdateReqVO updateReqVO)
@PutMapping(value="/sync-from-db") @PreAuthorize(value="@ss.hasPermission(\'infra:codegen:update\')") public org.openea.eap.framework.common.pojo.CommonResult<Boolean> syncCodegenFromDB(@RequestParam(value="tableId") Long tableId)
@DeleteMapping(value="/delete") @PreAuthorize(value="@ss.hasPermission(\'infra:codegen:delete\')") public org.openea.eap.framework.common.pojo.CommonResult<Boolean> deleteCodegen(@RequestParam(value="tableId") Long tableId)
@GetMapping(value="/preview") @PreAuthorize(value="@ss.hasPermission(\'infra:codegen:preview\')") public org.openea.eap.framework.common.pojo.CommonResult<List<CodegenPreviewRespVO>> previewCodegen(@RequestParam(value="tableId") Long tableId)
@GetMapping(value="/download")
@PreAuthorize(value="@ss.hasPermission(\'infra:codegen:download\')")
public void downloadCodegen(@RequestParam(value="tableId")
Long tableId,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionCopyright © 2024. All rights reserved.