Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zh-baseversion-project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王浩
zh-baseversion-project
Commits
49da8d56
Commit
49da8d56
authored
Jul 12, 2024
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 SysLoginController 的 getInfo 接口 里面的参数集合取 sys_setting 表中的配置数据。
parent
d6dbf536
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
SysLoginController.java
.../com/zehong/web/controller/system/SysLoginController.java
+7
-5
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/system/SysLoginController.java
View file @
49da8d56
package
com
.
zehong
.
web
.
controller
.
system
;
package
com
.
zehong
.
web
.
controller
.
system
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.Set
;
import
com.zehong.framework.systemsetting.SystemSetting
;
import
com.zehong.framework.systemsetting.SystemSetting
;
import
com.zehong.framework.web.domain.server.Sys
;
import
com.zehong.system.service.ISysPostService
;
import
com.zehong.system.service.ISysPostService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
@@ -81,14 +80,17 @@ public class SysLoginController
...
@@ -81,14 +80,17 @@ public class SysLoginController
Set
<
String
>
roles
=
permissionService
.
getRolePermission
(
user
);
Set
<
String
>
roles
=
permissionService
.
getRolePermission
(
user
);
// 权限集合
// 权限集合
Set
<
String
>
permissions
=
permissionService
.
getMenuPermission
(
user
);
Set
<
String
>
permissions
=
permissionService
.
getMenuPermission
(
user
);
HashMap
hashMap
=
new
HashMap
();
//参数集合
Map
<
String
,
String
>
systemWebSetting
=
systemSetting
.
getSystemWebSetting
();
/* HashMap hashMap=new HashMap();
hashMap.put("map_center","[114.684979,38.038292]");//经开区
hashMap.put("map_center","[114.684979,38.038292]");//经开区
hashMap
.
put
(
"prod_test"
,
"prod"
);
hashMap.put("prod_test","prod");
*/
AjaxResult
ajax
=
AjaxResult
.
success
();
AjaxResult
ajax
=
AjaxResult
.
success
();
ajax
.
put
(
"user"
,
user
);
ajax
.
put
(
"user"
,
user
);
ajax
.
put
(
"roles"
,
roles
);
ajax
.
put
(
"roles"
,
roles
);
ajax
.
put
(
"permissions"
,
permissions
);
ajax
.
put
(
"permissions"
,
permissions
);
ajax
.
put
(
"systemSetting"
,
hashMap
);
ajax
.
put
(
"systemSetting"
,
systemWebSetting
);
ajax
.
put
(
"posts"
,
iSysPostService
.
getPostListByUserId
(
user
.
getUserId
()));
ajax
.
put
(
"posts"
,
iSysPostService
.
getPostListByUserId
(
user
.
getUserId
()));
return
ajax
;
return
ajax
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment