Update DataSourceController.java

大时代的小青年呀 3 years ago
parent 61cf4763a4
commit 8f2f871aee

@ -1,6 +1,7 @@
package com.anjiplus.template.gaea.business.modules.dataSource.controller;
import com.anji.plus.gaea.annotation.Permission;
import com.anji.plus.gaea.bean.ResponseBean;
import com.anji.plus.gaea.curd.controller.GaeaBaseController;
import com.anji.plus.gaea.curd.service.GaeaBaseService;
@ -22,6 +23,7 @@ import org.springframework.web.bind.annotation.*;
**/
@RestController
@Api(tags = "数据源管理")
@Permission(code = "datasourceManage", name = "数据源管理")
@RequestMapping("/dataSource")
public class DataSourceController extends GaeaBaseController<DataSourceParam, DataSource, DataSourceDto> {
@ -57,11 +59,10 @@ public class DataSourceController extends GaeaBaseController<DataSourceParam, Da
* @param connectionParam
* @return
*/
@Permission( code = "query", name = "测试数据源")
@PostMapping("/testConnection")
public ResponseBean testConnection(@Validated @RequestBody ConnectionParam connectionParam) {
return responseSuccessWithData(dataSourceService.testConnection(connectionParam));
}
}

Loading…
Cancel
Save