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
4bca6a30
Commit
4bca6a30
authored
Sep 02, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户角色关联表
parent
9d9b811e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
292 additions
and
0 deletions
+292
-0
UserDTO.java
...form-auth-api/src/main/java/com/gic/auth/dto/UserDTO.java
+26
-0
UserResourceDTO.java
...h-api/src/main/java/com/gic/auth/dto/UserResourceDTO.java
+106
-0
UserRoleDTO.java
...-auth-api/src/main/java/com/gic/auth/dto/UserRoleDTO.java
+114
-0
UserResourceApiService.java
...ain/java/com/gic/auth/service/UserResourceApiService.java
+23
-0
UserRoleApiService.java
...rc/main/java/com/gic/auth/service/UserRoleApiService.java
+23
-0
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/dto/UserDTO.java
View file @
4bca6a30
...
...
@@ -96,6 +96,16 @@ public class UserDTO implements UserInfo,Serializable{
@NotBlank
(
message
=
"手机国际区号不能为空"
,
groups
=
{
SaveUserValid
.
class
,
EditUserValid
.
class
,
UserQoValid
.
class
})
private
String
phoneAreaCode
;
/**
* 受审组,可以有多个,用英文逗号隔开
*/
private
String
userGroupIds
;
/**
* 登陆账号类型 1:运营 0:默认GIC
*/
private
Integer
loginType
;
public
Integer
getUserId
()
{
return
userId
;
}
...
...
@@ -191,4 +201,20 @@ public class UserDTO implements UserInfo,Serializable{
public
void
setConfirmPassword
(
String
confirmPassword
)
{
this
.
confirmPassword
=
confirmPassword
;
}
public
String
getUserGroupIds
()
{
return
userGroupIds
;
}
public
void
setUserGroupIds
(
String
userGroupIds
)
{
this
.
userGroupIds
=
userGroupIds
;
}
public
Integer
getLoginType
()
{
return
loginType
;
}
public
void
setLoginType
(
Integer
loginType
)
{
this
.
loginType
=
loginType
;
}
}
gic-platform-auth-api/src/main/java/com/gic/auth/dto/UserResourceDTO.java
0 → 100644
View file @
4bca6a30
package
com
.
gic
.
auth
.
dto
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 用户资源组关联表
* @ClassName: UserResourceDTO
* @Description:
* @author guojuxing
* @date 2019/9/2 10:54 AM
*/
public
class
UserResourceDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
5635155351382206941L
;
/**
* id
*/
private
Integer
userResourceId
;
/**
* 角色集id
*/
private
Integer
resourceId
;
/**
* 管理员ID
*/
private
Integer
userId
;
/**
* 企业ID
*/
private
Integer
enterpriseId
;
/**
* 状态1:有效 0:无效
*/
private
Integer
status
;
/**
*
*/
private
Date
createTime
;
/**
*
*/
private
Date
updateTime
;
public
Integer
getUserResourceId
()
{
return
userResourceId
;
}
public
void
setUserResourceId
(
Integer
userResourceId
)
{
this
.
userResourceId
=
userResourceId
;
}
public
Integer
getResourceId
()
{
return
resourceId
;
}
public
void
setResourceId
(
Integer
resourceId
)
{
this
.
resourceId
=
resourceId
;
}
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
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/UserRoleDTO.java
0 → 100644
View file @
4bca6a30
package
com
.
gic
.
auth
.
dto
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 用户角色关联表
* @ClassName: UserRoleDTO
* @Description:
* @author guojuxing
* @date 2019/9/2 10:53 AM
*/
public
class
UserRoleDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
8183365108130027735L
;
public
interface
SaveUserRoleValid
{
}
/**
* id
*/
private
Integer
userRoleId
;
/**
* 角色集id
*/
@NotNull
(
message
=
"角色不能为空"
,
groups
=
{
SaveUserRoleValid
.
class
})
private
Integer
roleId
;
/**
* 管理员ID
*/
@NotNull
(
message
=
"用户不能为空"
,
groups
=
{
SaveUserRoleValid
.
class
})
private
Integer
userId
;
/**
* 企业ID
*/
@NotNull
(
message
=
"商户不能为空"
,
groups
=
{
SaveUserRoleValid
.
class
})
private
Integer
enterpriseId
;
/**
* 状态1:有效 0:无效
*/
private
Integer
status
;
/**
*
*/
private
Date
createTime
;
/**
*
*/
private
Date
updateTime
;
public
Integer
getUserRoleId
()
{
return
userRoleId
;
}
public
void
setUserRoleId
(
Integer
userRoleId
)
{
this
.
userRoleId
=
userRoleId
;
}
public
Integer
getRoleId
()
{
return
roleId
;
}
public
void
setRoleId
(
Integer
roleId
)
{
this
.
roleId
=
roleId
;
}
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
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/service/UserResourceApiService.java
0 → 100644
View file @
4bca6a30
package
com
.
gic
.
auth
.
service
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.auth.dto.UserResourceDTO
;
/**
* 用户资源组关联
* @ClassName: UserResourceApiService
* @Description:
* @author guojuxing
* @date 2019/9/2 10:58 AM
*/
public
interface
UserResourceApiService
{
/**
* 新增
* @Title: save
* @Description:
* @author guojuxing
* @param dto
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
*/
ServiceResponse
<
Void
>
save
(
UserResourceDTO
dto
);
}
gic-platform-auth-api/src/main/java/com/gic/auth/service/UserRoleApiService.java
0 → 100644
View file @
4bca6a30
package
com
.
gic
.
auth
.
service
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.auth.dto.UserRoleDTO
;
/**
* 用户角色关联表
* @ClassName: UserRoleApiService
* @Description:
* @author guojuxing
* @date 2019/9/2 10:55 AM
*/
public
interface
UserRoleApiService
{
/**
* 新增
* @Title: save
* @Description:
* @author guojuxing
* @param dto
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
*/
ServiceResponse
<
Void
>
save
(
UserRoleDTO
dto
);
}
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