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
abe49ae3
Commit
abe49ae3
authored
Nov 14, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限控制加入gic基础服务版本逻辑
parent
711cab91
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
MenuListQO.java
...rm-auth-api/src/main/java/com/gic/auth/qo/MenuListQO.java
+12
-0
MenuApiService.java
...pi/src/main/java/com/gic/auth/service/MenuApiService.java
+12
-6
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/qo/MenuListQO.java
View file @
abe49ae3
...
...
@@ -34,6 +34,10 @@ public class MenuListQO extends PageQO{
* 是否需要更新应用列表数据
*/
private
boolean
needUpdateAppMenu
;
/**
* 商户版本
*/
private
String
versionCode
;
public
String
getSearch
()
{
return
search
;
...
...
@@ -82,4 +86,12 @@ public class MenuListQO extends PageQO{
public
void
setProject
(
String
project
)
{
this
.
project
=
project
;
}
public
String
getVersionCode
()
{
return
versionCode
;
}
public
void
setVersionCode
(
String
versionCode
)
{
this
.
versionCode
=
versionCode
;
}
}
gic-platform-auth-api/src/main/java/com/gic/auth/service/MenuApiService.java
View file @
abe49ae3
...
...
@@ -34,17 +34,19 @@ public interface MenuApiService {
* @Description:
* @author guojuxing
* @param userId
* @param versionCode 商户服务订购的版本
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.auth.dto.MenuDTO>>
*/
ServiceResponse
<
List
<
MenuDTO
>>
listUserMenu
(
Integer
userId
);
ServiceResponse
<
List
<
MenuDTO
>>
listUserMenu
(
Integer
userId
,
String
versionCode
);
/**
* 获取登陆用户的菜单(页面)
* @param userId
* @param currentMenu
* @param versionCode 商户服务订购的版本
* @return
*/
ServiceResponse
<
List
<
MenuDTO
>>
getUserMenuOfGic
(
Integer
userId
,
Integer
currentMenu
);
ServiceResponse
<
List
<
MenuDTO
>>
getUserMenuOfGic
(
Integer
userId
,
Integer
currentMenu
,
String
versionCode
);
/**
* 根据用户ID查询没拥有的gic操作项
...
...
@@ -52,16 +54,18 @@ public interface MenuApiService {
* @Description:
* @author guojuxing
* @param userId
* @param versionCode 商户服务订购的版本
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.auth.dto.MenuDTO>>
*/
ServiceResponse
<
List
<
MenuDTO
>>
getNoAuthOperationItemOfGic
(
Integer
userId
);
ServiceResponse
<
List
<
MenuDTO
>>
getNoAuthOperationItemOfGic
(
Integer
userId
,
String
versionCode
);
/**
* 获取超级管理员菜单
* @param userId
* @param versionCode 商户服务订购的版本
* @return
*/
ServiceResponse
<
List
<
MenuDTO
>>
getSuperAdminMenu
(
Integer
userId
);
ServiceResponse
<
List
<
MenuDTO
>>
getSuperAdminMenu
(
Integer
userId
,
String
versionCode
);
/**
* 查询gic菜单页面树数据
...
...
@@ -79,18 +83,20 @@ public interface MenuApiService {
* @Description:
* @author guojuxing
* @param project
* @param versionCode gic商户基础服务版本
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.auth.dto.MenuDTO>>
*/
ServiceResponse
<
List
<
MenuDTO
>>
listMenuTreeForRole
(
String
project
);
ServiceResponse
<
List
<
MenuDTO
>>
listMenuTreeForRole
(
String
project
,
String
versionCode
);
/**
* 查询菜单树(页面&权限项)
* @Title: listMenuTreeForRoleOfGic
* @Description:
* @author guojuxing
* @param versionCode gic商户基础服务版本
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.auth.dto.MenuDTO>>
*/
ServiceResponse
<
List
<
MenuDTO
>>
listMenuTreeForRoleOfGic
();
ServiceResponse
<
List
<
MenuDTO
>>
listMenuTreeForRoleOfGic
(
String
versionCode
);
/**
* 查询页面下面的操作项列表数据
...
...
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