Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
Overview
Overview
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
base_platform_enterprise
gic-platform-auth
Commits
3d256e84
Commit
3d256e84
authored
Sep 20, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询某个页面下的操作项列表数据
parent
665dd5b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
3 deletions
+44
-3
MenuController.java
...main/java/com/gic/auth/web/controller/MenuController.java
+8
-3
MenuOperationItemVO.java
...rc/main/java/com/gic/auth/web/vo/MenuOperationItemVO.java
+36
-0
No files found.
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/MenuController.java
View file @
3d256e84
...
...
@@ -7,6 +7,7 @@ import java.util.Map;
import
com.gic.auth.constant.SignConstants
;
import
com.gic.auth.qo.AuthItemSaveQO
;
import
com.gic.auth.web.vo.MenuOperationItemVO
;
import
org.apache.dubbo.rpc.RpcContext
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
...
...
@@ -37,12 +38,12 @@ public class MenuController {
private
MenuApiService
menuApiService
;
@RequestMapping
(
"login-user-menu"
)
public
RestResponse
loginUserMenu
(
Integer
currentMenu
){
public
RestResponse
loginUserMenu
(
Integer
currentMenu
)
{
Integer
userId
=
UserDetailUtils
.
getUserDetail
().
getUserId
();
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
();
System
.
out
.
println
(
JSON
.
toJSONString
(
RpcContext
.
getContext
().
getAttachments
()));
ServiceResponse
<
List
<
MenuDTO
>>
userMenu
=
this
.
menuApiService
.
getUserMenu
(
userId
,
enterpriseId
,
currentMenu
);
if
(
userMenu
.
isSuccess
())
{
if
(
userMenu
.
isSuccess
())
{
return
RestResponse
.
success
(
userMenu
.
getResult
());
}
return
EnterpriseRestResponse
.
failure
(
userMenu
);
...
...
@@ -70,6 +71,7 @@ public class MenuController {
public
RestResponse
deleteMenu
(
Integer
menuId
)
{
return
ResultControllerUtils
.
commonResult
(
menuApiService
.
deleteMenu
(
menuId
));
}
/**
* 新增gic子页面
* @Title: saveGICChildPage
...
...
@@ -82,6 +84,7 @@ public class MenuController {
public
RestResponse
saveGICChildPage
(
MenuDTO
menuDTO
)
{
return
ResultControllerUtils
.
commonResult
(
menuApiService
.
saveGICChildPage
(
menuDTO
));
}
@RequestMapping
(
"/update-gic-child-page"
)
public
RestResponse
updateGICChildPage
(
MenuDTO
menuDTO
)
{
return
ResultControllerUtils
.
commonResult
(
menuApiService
.
updateGICChildPage
(
menuDTO
));
...
...
@@ -127,6 +130,7 @@ public class MenuController {
}
return
EnterpriseRestResponse
.
failure
(
result
);
}
/**
* 查询页面下面的操作项列表数据
* @Title: listMenuRole
...
...
@@ -137,7 +141,8 @@ public class MenuController {
*/
@RequestMapping
(
"/list-menu-item"
)
public
RestResponse
listMenuItem
(
Integer
parentId
)
{
return
ResultControllerUtils
.
commonResult
(
menuApiService
.
listMenuItemByParentId
(
parentId
));
return
ResultControllerUtils
.
commonResult
(
menuApiService
.
listMenuItemByParentId
(
parentId
),
MenuOperationItemVO
.
class
);
}
@RequestMapping
(
"/set-menu-sort"
)
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/vo/MenuOperationItemVO.java
0 → 100644
View file @
3d256e84
package
com
.
gic
.
auth
.
web
.
vo
;
import
java.io.Serializable
;
/**
* 操作项列表
* @ClassName: MenuOperationItemVO
* @Description:
* @author guojuxing
* @date 2019/9/20 10:45 AM
*/
public
class
MenuOperationItemVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
5519227299518257155L
;
/**
*
*/
private
Integer
menuId
;
private
String
menuName
;
public
Integer
getMenuId
()
{
return
menuId
;
}
public
void
setMenuId
(
Integer
menuId
)
{
this
.
menuId
=
menuId
;
}
public
String
getMenuName
()
{
return
menuName
;
}
public
void
setMenuName
(
String
menuName
)
{
this
.
menuName
=
menuName
;
}
}
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