@@ -55,22 +55,22 @@ public class DatabaseController {
5555 @ ApiOperation ("导出数据库数据" )
5656 @ GetMapping (value = "/download" )
5757 @ PreAuthorize ("@el.check('database:list')" )
58- public void download (HttpServletResponse response , DatabaseQueryCriteria criteria ) throws IOException {
58+ public void exportDatabase (HttpServletResponse response , DatabaseQueryCriteria criteria ) throws IOException {
5959 databaseService .download (databaseService .queryAll (criteria ), response );
6060 }
6161
6262 @ ApiOperation (value = "查询数据库" )
6363 @ GetMapping
6464 @ PreAuthorize ("@el.check('database:list')" )
65- public ResponseEntity <Object > query (DatabaseQueryCriteria criteria , Pageable pageable ){
65+ public ResponseEntity <Object > queryDatabase (DatabaseQueryCriteria criteria , Pageable pageable ){
6666 return new ResponseEntity <>(databaseService .queryAll (criteria ,pageable ),HttpStatus .OK );
6767 }
6868
6969 @ Log ("新增数据库" )
7070 @ ApiOperation (value = "新增数据库" )
7171 @ PostMapping
7272 @ PreAuthorize ("@el.check('database:add')" )
73- public ResponseEntity <Object > create (@ Validated @ RequestBody Database resources ){
73+ public ResponseEntity <Object > createDatabase (@ Validated @ RequestBody Database resources ){
7474 databaseService .create (resources );
7575 return new ResponseEntity <>(HttpStatus .CREATED );
7676 }
@@ -79,7 +79,7 @@ public ResponseEntity<Object> create(@Validated @RequestBody Database resources)
7979 @ ApiOperation (value = "修改数据库" )
8080 @ PutMapping
8181 @ PreAuthorize ("@el.check('database:edit')" )
82- public ResponseEntity <Object > update (@ Validated @ RequestBody Database resources ){
82+ public ResponseEntity <Object > updateDatabase (@ Validated @ RequestBody Database resources ){
8383 databaseService .update (resources );
8484 return new ResponseEntity <>(HttpStatus .NO_CONTENT );
8585 }
@@ -88,7 +88,7 @@ public ResponseEntity<Object> update(@Validated @RequestBody Database resources)
8888 @ ApiOperation (value = "删除数据库" )
8989 @ DeleteMapping
9090 @ PreAuthorize ("@el.check('database:del')" )
91- public ResponseEntity <Object > delete (@ RequestBody Set <String > ids ){
91+ public ResponseEntity <Object > deleteDatabase (@ RequestBody Set <String > ids ){
9292 databaseService .delete (ids );
9393 return new ResponseEntity <>(HttpStatus .OK );
9494 }
@@ -105,7 +105,7 @@ public ResponseEntity<Object> testConnect(@Validated @RequestBody Database resou
105105 @ ApiOperation (value = "执行SQL脚本" )
106106 @ PostMapping (value = "/upload" )
107107 @ PreAuthorize ("@el.check('database:add')" )
108- public ResponseEntity <Object > upload (@ RequestBody MultipartFile file , HttpServletRequest request )throws Exception {
108+ public ResponseEntity <Object > uploadDatabase (@ RequestBody MultipartFile file , HttpServletRequest request )throws Exception {
109109 String id = request .getParameter ("id" );
110110 DatabaseDto database = databaseService .findById (id );
111111 String fileName ;
0 commit comments