Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sentinel
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
曲欣亮
sentinel
Commits
dc00bb4c
Commit
dc00bb4c
authored
Nov 23, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xx
parent
f043588f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletion
+29
-1
AdminAuthServiceImpl.java
...com/egolm/film/api/service/impl/AdminAuthServiceImpl.java
+1
-1
AdminAuthController.java
...ava/com/egolm/film/api/web/admin/AdminAuthController.java
+28
-0
No files found.
src/main/java/com/egolm/film/api/service/impl/AdminAuthServiceImpl.java
View file @
dc00bb4c
...
...
@@ -59,7 +59,7 @@ public class AdminAuthServiceImpl implements AdminAuthService {
public
void
mergeAdmin
(
Fc_admin
admin
)
{
jdbcTemplate
.
merge
(
admin
);
}
@Override
public
List
<
Map
<
String
,
Object
>>
queryGroupMenuList
(
Integer
group_id
)
{
String
s
=
"select am.*, agm.group_id from fc_admin_menu am left join fc_admin_group_menu agm on am.menu_id = agm.menu_id and agm.group_id = ? order by order_num"
;
...
...
src/main/java/com/egolm/film/api/web/admin/AdminAuthController.java
View file @
dc00bb4c
...
...
@@ -153,6 +153,34 @@ public class AdminAuthController {
return
Rjx
.
jsonOk
().
set
(
"groupMenuList"
,
groupMenuList
).
set
(
"groupFilmtypeList"
,
groupFilmtypeList
);
}
@ResponseBody
@PostMapping
(
"saveMenu"
)
@ApiOperation
(
"保存菜单"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"menu_type"
,
value
=
"菜单类型 [0 目录, 1 菜单, 2 按钮或其他功能或页面元素]"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"parent_id"
,
value
=
"状态"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"order_num"
,
value
=
"排序顺序"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"menu_name"
,
value
=
"菜单名(显示名)"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"menu_no"
,
value
=
"菜单编号[英文的菜单标记,如果没有可以填VUE路由名]"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"menu_link"
,
value
=
"菜单连接[URI或VUE路由]"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"menu_icon"
,
value
=
"菜单图标"
),
})
public
Object
saveMenu
(
Integer
group_id
,
String
group_name
,
Integer
state
)
{
Fc_admin_group
group
=
new
Fc_admin_group
();
group
.
setGroup_id
(
group_id
);
group
.
setGroup_name
(
group_name
);
group
.
setState
(
state
);
if
(
group
.
getGroup_id
()
==
null
)
{
group
.
setAdminid
((
Integer
)
tokenService
.
getToken
().
getId
());
String
remoteIp
=
WebMvcConfig
.
getRemoteIp
();
group
.
setUser_num
(
0L
);
group
.
setCreate_ip
(
remoteIp
);
group
.
setCreate_time
(
System
.
currentTimeMillis
());
}
service
.
mergeGroup
(
group
);
return
Rjx
.
jsonOk
();
}
@ResponseBody
@PostMapping
(
"groupAuthUpdate"
)
@ApiOperation
(
"保存或更新管理组权限"
)
...
...
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