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
ca0e804d
Commit
ca0e804d
authored
Sep 25, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户路由权限
parent
0fc49cca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
5 deletions
+39
-5
MenuProjectConstants.java
...main/java/com/gic/auth/constant/MenuProjectConstants.java
+15
-0
MenuApiService.java
...pi/src/main/java/com/gic/auth/service/MenuApiService.java
+24
-5
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/constant/MenuProjectConstants.java
View file @
ca0e804d
...
...
@@ -11,4 +11,19 @@ public class MenuProjectConstants {
* 默认项目
*/
public
final
static
String
DEFAULT_PROJECT
=
"gic"
;
/**
* gic
*/
public
final
static
int
DEFAULT_PROJECT_CODE
=
1
;
/**
* app
*/
public
final
static
int
APP_PROJECT_CODE
=
2
;
/**
* all
*/
public
final
static
int
ALL_CODE
=
3
;
}
gic-platform-auth-api/src/main/java/com/gic/auth/service/MenuApiService.java
View file @
ca0e804d
...
...
@@ -18,20 +18,39 @@ import java.util.List;
*/
public
interface
MenuApiService
{
/**
* 获取登陆用户的菜单
* 查询用户拥有的所有菜单路由权限
* @Title: listUserMenu
* @Description:
* @author guojuxing
* @param userId
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.auth.dto.MenuDTO>>
*/
ServiceResponse
<
List
<
MenuDTO
>>
listUserMenu
(
Integer
userId
);
/**
* 获取登陆用户的菜单(页面)
* @param userId
* @param
enterpriseId
* @param
currentMenu
* @return
*/
ServiceResponse
<
List
<
MenuDTO
>>
getUserMenu
(
Integer
userId
,
Integer
enterpriseId
,
Integer
currentMenu
);
ServiceResponse
<
List
<
MenuDTO
>>
getUserMenuOfGic
(
Integer
userId
,
Integer
currentMenu
);
/**
* 根据用户ID查询拥有的gic操作项
* @Title: getUserOperationItemOfGic
* @Description:
* @author guojuxing
* @param userId
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.auth.dto.MenuDTO>>
*/
ServiceResponse
<
List
<
MenuDTO
>>
getUserOperationItemOfGic
(
Integer
userId
);
/**
* 获取超级管理员菜单
* @param userId
* @param enterpriseId
* @return
*/
ServiceResponse
<
List
<
MenuDTO
>>
getSuperAdminMenu
(
Integer
userId
,
Integer
enterpriseId
);
ServiceResponse
<
List
<
MenuDTO
>>
getSuperAdminMenu
(
Integer
userId
);
/**
* 查询gic菜单页面树数据
...
...
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