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
c19f3aee
Commit
c19f3aee
authored
Oct 31, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
管理员增删改添加账号分组
parent
6e790cab
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
180 additions
and
0 deletions
+180
-0
AccountGroupMemberTypeEnum.java
...ava/com/gic/auth/constant/AccountGroupMemberTypeEnum.java
+36
-0
AccountGroupRelDTO.java
...pi/src/main/java/com/gic/auth/dto/AccountGroupRelDTO.java
+120
-0
UserDTO.java
...form-auth-api/src/main/java/com/gic/auth/dto/UserDTO.java
+12
-0
UserApiService.java
...pi/src/main/java/com/gic/auth/service/UserApiService.java
+12
-0
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/constant/AccountGroupMemberTypeEnum.java
0 → 100644
View file @
c19f3aee
package
com
.
gic
.
auth
.
constant
;
/**
* 账号分组组员类型
* @ClassName: MenuTypeEnum
* @Description:
* @author guojuxing
* @date 2019/9/17 11:05 AM
*/
public
enum
AccountGroupMemberTypeEnum
{
ADMIN
(
1
,
"管理员"
),
COLLABORATOR
(
2
,
"协作人"
);
private
int
code
;
private
String
message
;
private
AccountGroupMemberTypeEnum
(
int
code
,
String
message
)
{
this
.
code
=
code
;
this
.
message
=
message
;
}
public
int
getCode
()
{
return
code
;
}
public
void
setCode
(
int
code
)
{
this
.
code
=
code
;
}
public
String
getMessage
()
{
return
message
;
}
public
void
setMessage
(
String
message
)
{
this
.
message
=
message
;
}
}
gic-platform-auth-api/src/main/java/com/gic/auth/dto/AccountGroupRelDTO.java
0 → 100644
View file @
c19f3aee
package
com
.
gic
.
auth
.
dto
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 账号分组组员关联
* @ClassName: AccountGroupRelDTO
* @Description:
* @author guojuxing
* @date 2019/10/31 9:32 AM
*/
public
class
AccountGroupRelDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
6909938575008627379L
;
/**
* ID
*/
private
Integer
accountGroupRelId
;
/**
* 账号分组ID
*/
private
Integer
accountGroupId
;
/**
* 用户ID/协作人ID
*/
private
Integer
userId
;
/**
*
*/
private
Integer
enterpriseId
;
/**
* 1:有效 0:无效
*/
private
Integer
status
;
/**
* 1:管理员 2:协作人
*/
private
Integer
type
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
public
Integer
getAccountGroupRelId
()
{
return
accountGroupRelId
;
}
public
void
setAccountGroupRelId
(
Integer
accountGroupRelId
)
{
this
.
accountGroupRelId
=
accountGroupRelId
;
}
public
Integer
getAccountGroupId
()
{
return
accountGroupId
;
}
public
void
setAccountGroupId
(
Integer
accountGroupId
)
{
this
.
accountGroupId
=
accountGroupId
;
}
public
Integer
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
Integer
userId
)
{
this
.
userId
=
userId
;
}
public
Integer
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
Integer
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Integer
getType
()
{
return
type
;
}
public
void
setType
(
Integer
type
)
{
this
.
type
=
type
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
gic-platform-auth-api/src/main/java/com/gic/auth/dto/UserDTO.java
View file @
c19f3aee
...
...
@@ -115,6 +115,10 @@ public class UserDTO implements Serializable{
* 1:是编辑操作,并且没修改过密码 2:与1相反
*/
private
Integer
operPasswordType
;
/**
* 账号分组,可以多选,用英文逗号隔开
*/
private
String
accountGroupIds
;
public
Integer
getUserId
()
{
return
userId
;
...
...
@@ -251,4 +255,12 @@ public class UserDTO implements Serializable{
public
void
setOperPasswordType
(
Integer
operPasswordType
)
{
this
.
operPasswordType
=
operPasswordType
;
}
public
String
getAccountGroupIds
()
{
return
accountGroupIds
;
}
public
void
setAccountGroupIds
(
String
accountGroupIds
)
{
this
.
accountGroupIds
=
accountGroupIds
;
}
}
gic-platform-auth-api/src/main/java/com/gic/auth/service/UserApiService.java
View file @
c19f3aee
...
...
@@ -120,4 +120,16 @@ public interface UserApiService {
ServiceResponse
<
List
<
UserDTO
>>
listUserByIdList
(
List
<
Integer
>
userIdList
);
ServiceResponse
<
UserDetail
>
getUserDetail
(
String
token
);
/**
* 移除对应的分组
* @Title: removeAccountGroup
* @Description:
* @author guojuxing
* @param accountGroupId
* @param userId
* @param type
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
*/
ServiceResponse
<
Void
>
removeAccountGroup
(
Integer
accountGroupId
,
Integer
userId
,
Integer
type
);
}
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