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
456a3e84
Commit
456a3e84
authored
Nov 04, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
协作人授权接口
parent
5599ed69
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
132 additions
and
0 deletions
+132
-0
AppDTO.java
...tform-auth-api/src/main/java/com/gic/auth/dto/AppDTO.java
+33
-0
CollaboratorDTO.java
...h-api/src/main/java/com/gic/auth/dto/CollaboratorDTO.java
+31
-0
MenuListQO.java
...rm-auth-api/src/main/java/com/gic/auth/qo/MenuListQO.java
+12
-0
CollaboratorApiService.java
...ain/java/com/gic/auth/service/CollaboratorApiService.java
+56
-0
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/dto/AppDTO.java
0 → 100644
View file @
456a3e84
package
com
.
gic
.
auth
.
dto
;
import
java.io.Serializable
;
/**
* 应用列表
* @ClassName: AppDTO
* @Description:
* @author guojuxing
* @date 2019/11/4 2:06 PM
*/
public
class
AppDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
2363021711587017578L
;
private
String
appId
;
private
String
appName
;
public
String
getAppId
()
{
return
appId
;
}
public
void
setAppId
(
String
appId
)
{
this
.
appId
=
appId
;
}
public
String
getAppName
()
{
return
appName
;
}
public
void
setAppName
(
String
appName
)
{
this
.
appName
=
appName
;
}
}
gic-platform-auth-api/src/main/java/com/gic/auth/dto/CollaboratorDTO.java
View file @
456a3e84
...
...
@@ -4,6 +4,7 @@ import javax.validation.constraints.NotBlank;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.List
;
/**
* 协作人
...
...
@@ -45,6 +46,8 @@ public class CollaboratorDTO implements Serializable{
@NotNull
(
message
=
"协作商户ID不能为空"
,
groups
=
{
SaveValid
.
class
})
private
Integer
collaborationEnterpriseId
;
private
String
collaborationEnterpriseName
;
/**
* 手机号码
*/
...
...
@@ -89,6 +92,10 @@ public class CollaboratorDTO implements Serializable{
*/
private
Date
updateTime
;
private
List
<
String
>
subAppIdList
;
private
List
<
Integer
>
menuIdList
;
public
Integer
getCollaboratorId
()
{
return
collaboratorId
;
}
...
...
@@ -184,4 +191,28 @@ public class CollaboratorDTO implements Serializable{
public
void
setCollaborationEnterpriseId
(
Integer
collaborationEnterpriseId
)
{
this
.
collaborationEnterpriseId
=
collaborationEnterpriseId
;
}
public
List
<
String
>
getSubAppIdList
()
{
return
subAppIdList
;
}
public
void
setSubAppIdList
(
List
<
String
>
subAppIdList
)
{
this
.
subAppIdList
=
subAppIdList
;
}
public
List
<
Integer
>
getMenuIdList
()
{
return
menuIdList
;
}
public
void
setMenuIdList
(
List
<
Integer
>
menuIdList
)
{
this
.
menuIdList
=
menuIdList
;
}
public
String
getCollaborationEnterpriseName
()
{
return
collaborationEnterpriseName
;
}
public
void
setCollaborationEnterpriseName
(
String
collaborationEnterpriseName
)
{
this
.
collaborationEnterpriseName
=
collaborationEnterpriseName
;
}
}
gic-platform-auth-api/src/main/java/com/gic/auth/qo/MenuListQO.java
View file @
456a3e84
...
...
@@ -27,6 +27,10 @@ public class MenuListQO extends PageQO{
*/
private
Integer
level
;
/**
* 应用
*/
private
String
project
;
/**
* 是否需要更新应用列表数据
*/
private
boolean
needUpdateAppMenu
;
...
...
@@ -70,4 +74,12 @@ public class MenuListQO extends PageQO{
public
void
setNeedUpdateAppMenu
(
boolean
needUpdateAppMenu
)
{
this
.
needUpdateAppMenu
=
needUpdateAppMenu
;
}
public
String
getProject
()
{
return
project
;
}
public
void
setProject
(
String
project
)
{
this
.
project
=
project
;
}
}
gic-platform-auth-api/src/main/java/com/gic/auth/service/CollaboratorApiService.java
View file @
456a3e84
...
...
@@ -2,10 +2,13 @@ package com.gic.auth.service;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.auth.dto.AppDTO
;
import
com.gic.auth.dto.CollaboratorDTO
;
import
com.gic.auth.dto.CollaboratorListDTO
;
import
com.gic.auth.qo.CollaboratorListQO
;
import
java.util.List
;
/**
* 协作人接口
* @ClassName: CollaboratorApiService
...
...
@@ -34,4 +37,57 @@ public interface CollaboratorApiService {
* @return com.gic.api.base.commons.ServiceResponse<com.gic.api.base.commons.Page<com.gic.auth.dto.CollaboratorListDTO>>
*/
ServiceResponse
<
Page
<
CollaboratorListDTO
>>
page
(
CollaboratorListQO
params
);
/**
* 查询已购买的一级应用
* @Title: listApp
* @Description:
* @author guojuxing
* @param enterpriseId
* @return com.gic.api.base.commons.ServiceResponse<com.gic.auth.dto.AppDTO>
*/
ServiceResponse
<
List
<
AppDTO
>>
listApp
(
Integer
enterpriseId
);
/**
* 查询子应用
* @Title: listSubApp
* @Description:
* @author guojuxing
* @param appId 父级应用ID
* @param enterpriseId
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.auth.dto.AppDTO>>
*/
ServiceResponse
<
List
<
AppDTO
>>
listSubApp
(
String
appId
,
Integer
enterpriseId
);
/**
* 查询详情
* @Title: getDetail
* @Description:
* @author guojuxing
* @param collaboratorId
* @return com.gic.api.base.commons.ServiceResponse<com.gic.auth.dto.CollaboratorDTO>
*/
ServiceResponse
<
CollaboratorDTO
>
getDetail
(
Integer
collaboratorId
);
/**
* 授权
* @Title: auth
* @Description:
* @author guojuxing
* @param subAppIds 子应用ID,英文逗号隔开
* @param menuIds 操作权限ID,英文逗号隔开
* @param collaboratorId
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
*/
ServiceResponse
<
Void
>
auth
(
String
subAppIds
,
String
menuIds
,
Integer
collaboratorId
);
/**
* 取消
* @Title: cancel
* @Description:
* @author guojuxing
* @param collaboratorId
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
*/
ServiceResponse
<
Void
>
cancel
(
Integer
collaboratorId
);
}
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