Browse Source

还原文件

wanggaokun 1 year ago
parent
commit
d88faf754e

+ 7 - 9
taais-admin/src/main/resources/application-dev.yml

@@ -17,8 +17,11 @@ spring:
       maxLifetime: 1800000
       # 多久检查一次连接的活性
       keepaliveTime: 30000
-
 mybatis-flex:
+  # sql审计
+  audit_enable: true
+  # sql打印
+  sql_print: true
   datasource:
     # 数据源-1
     ds1:
@@ -33,13 +36,8 @@ mybatis-flex:
       #postgresql数据库
       driver-class-name: org.postgresql.Driver
       url: jdbc:postgresql://localhost:5432/taais?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
-      username: 86187
-      password:
-# sql审计
-  audit_enable: true
-# sql打印
-  sql_print: true
-
+      username: postgres
+      password: P3x0LG8jzyHRX59l
 
 #    # 数据源-2
 #    ds2:
@@ -66,7 +64,7 @@ spring.data:
     # 数据库索引
     database: 0
     # 密码(如没有密码请注释掉)
-    password: 123456
+    password: CWwYsGjafmv8Sr7g
     # 连接超时时间
     timeout: 10s
     # 是否开启ssl

+ 1 - 1
taais-admin/src/main/resources/application.yml

@@ -9,7 +9,7 @@ taais:
   # 实例演示开关
   demoEnabled: true
   # 文件路径 示例( Windows配置D:/km/uploadPath,Linux配置 /home/km/uploadPath)
-  profile: E:/taais/uploadPath
+  profile: D:/taais/uploadPath
   # 获取ip地址开关
   addressEnabled: false
 

+ 2 - 2
taais-modules/taais-system/src/main/java/com/taais/system/controller/system/SysRoleController.java

@@ -159,8 +159,8 @@ public class SysRoleController extends BaseController {
      */
     @SaCheckPermission("system:role:remove")
     @Log(title = "角色管理", businessType = BusinessType.DELETE)
-    @DeleteMapping("/remove")
-    public CommonResult<Void> remove(@RequestBody Long[] roleIds) {
+    @DeleteMapping("/{roleIds}")
+    public CommonResult<Void> remove(@PathVariable Long[] roleIds) {
         boolean deleted = roleService.deleteRoleByIds(roleIds);
         if (!deleted) {
             return CommonResult.fail("批量删除角色失败,请联系管理员");