fix: 鏉冮檺controller鏂规硶鏀逛负public, 鏁版嵁搴撹繛鎺ユ寚鍚慺reedom_db, 鐢熸垚鍣╯chema閰嶇疆鍚屾鏇存柊
This commit is contained in:
@@ -40,7 +40,7 @@ public class TSysPermissionController extends BaseController {
|
||||
* */
|
||||
@RequestMapping("/getPermissionList")
|
||||
@PreAuthorize("permitAll()")
|
||||
private Result<Map<String,Object>> getPermissionList(){
|
||||
public Result<Map<String,Object>> getPermissionList(){
|
||||
List<Map<String, Object>> permissionList = tSysPermissionService.getPermissionListByUserId(getUser().getId());
|
||||
return Result.ok().setData(permissionList);
|
||||
}
|
||||
@@ -52,7 +52,7 @@ public class TSysPermissionController extends BaseController {
|
||||
*/
|
||||
@RequestMapping("/getTreeList")
|
||||
@PreAuthorize("permitAll()")
|
||||
private Result<Map<String,Object>> getTreeList(){
|
||||
public Result<Map<String,Object>> getTreeList(){
|
||||
List<Map<String, Object>> treeList = tSysPermissionService.getTreeList();
|
||||
return Result.ok().setData(treeList);
|
||||
}
|
||||
@@ -76,7 +76,7 @@ public class TSysPermissionController extends BaseController {
|
||||
*/
|
||||
@RequestMapping("/findPageList")
|
||||
@PreAuthorize("permitAll()")
|
||||
private Result findPageList(@Param("pageNum") long pageNum,
|
||||
public Result findPageList(@Param("pageNum") long pageNum,
|
||||
@Param("pageSize") long pageSize,
|
||||
TSysPermission tSysPermission){
|
||||
QueryWrapper<TSysPermission> queryWrapper = new QueryWrapper<>();
|
||||
@@ -94,7 +94,7 @@ public class TSysPermissionController extends BaseController {
|
||||
*/
|
||||
@RequestMapping("/getTreeListByRoleId")
|
||||
@PreAuthorize("permitAll()")
|
||||
private Result getTreeListByRoleId(@Param("roleId") Long roleId){
|
||||
public Result getTreeListByRoleId(@Param("roleId") Long roleId){
|
||||
List<Map<String, Object>> treeList = tSysPermissionService.getTreeListByRoleId(roleId);
|
||||
log.info("treeList:{}",treeList);
|
||||
return Result.ok().setData(treeList);
|
||||
|
||||
@@ -8,7 +8,7 @@ spring:
|
||||
datasource:
|
||||
type: com.zaxxer.hikari.HikariDataSource
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://localhost:3306/delta?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
|
||||
url: jdbc:mysql://124.221.214.237:3306/freedom_db?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
|
||||
username: root
|
||||
password: 1Qaz@4772
|
||||
hikari:
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
`column_comment` as 'columnComment'
|
||||
from information_schema.columns
|
||||
<where>
|
||||
table_schema = 'demo'
|
||||
table_schema = 'freedom_db'
|
||||
<if test="tableName != null and tableName != ''">
|
||||
and `table_name` = #{tableName}
|
||||
</if>
|
||||
@@ -30,7 +30,7 @@
|
||||
`table_name` as 'value',
|
||||
concat(`table_name`,' [ ',table_comment,' ] ') as 'label'
|
||||
from information_schema.TABLES
|
||||
where table_schema = 'demo'
|
||||
where table_schema = 'freedom_db'
|
||||
order by current_time desc
|
||||
</select>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user