Commit 4bca6a30 by guojuxing

用户角色关联表

parent 9d9b811e
......@@ -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;
}
}
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;
}
}
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;
}
}
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);
}
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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment