Commit c19f3aee by guojuxing

管理员增删改添加账号分组

parent 6e790cab
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;
}
}
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;
}
}
......@@ -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;
}
}
......@@ -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);
}
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