refactor: 删掉过期的类
This commit is contained in:
parent
1aebdb76ec
commit
f2fad1c4f7
@ -26,12 +26,6 @@ public class Constants {
|
||||
|
||||
|
||||
public static class Token {
|
||||
/**
|
||||
* 令牌
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String TOKEN_FIELD = "token";
|
||||
|
||||
/**
|
||||
* 令牌前缀
|
||||
*/
|
||||
|
||||
@ -1,17 +0,0 @@
|
||||
package com.agileboot.common.core.base;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author valarchie
|
||||
*/
|
||||
@Deprecated
|
||||
@Data
|
||||
public class BaseUser {
|
||||
|
||||
private Long userId;
|
||||
private String username;
|
||||
private Long deptId;
|
||||
private Long roleId;
|
||||
|
||||
}
|
||||
@ -19,7 +19,7 @@ public class NoticeAddCommand {
|
||||
protected String noticeType;
|
||||
|
||||
/**
|
||||
* 想要支持富文本的话 请加上@JsonDeserialize(using = StringDeserializer.class) 注解
|
||||
* 想要支持富文本的话, 避免Xss过滤的话, 请加上@JsonDeserialize(using = StringDeserializer.class) 注解
|
||||
*/
|
||||
@NotBlank
|
||||
@JsonDeserialize(using = StringDeserializer.class)
|
||||
|
||||
@ -1,12 +1,7 @@
|
||||
package com.agileboot.infrastructure.web.domain.login;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.agileboot.orm.common.enums.DataScopeEnum;
|
||||
import com.agileboot.orm.common.util.BasicEnumUtil;
|
||||
import com.agileboot.orm.system.entity.SysRoleEntity;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
@ -39,24 +34,6 @@ public class RoleInfo {
|
||||
}
|
||||
|
||||
|
||||
@Deprecated
|
||||
public RoleInfo(SysRoleEntity entity, String roleKey, Set<String> menuPermissions, Set<Long> menuIds) {
|
||||
if (entity != null) {
|
||||
this.roleId = entity.getRoleId();
|
||||
this.roleName = entity.getRoleName();
|
||||
this.dataScope = BasicEnumUtil.fromValue(DataScopeEnum.class, entity.getDataScope());
|
||||
|
||||
if(StrUtil.isNotEmpty(entity.getDeptIdSet())) {
|
||||
this.deptIdSet = StrUtil.split(entity.getDeptIdSet(), ",").stream()
|
||||
.map(Convert::toLong).collect( Collectors.toSet());
|
||||
}
|
||||
|
||||
this.roleKey = roleKey;
|
||||
this.menuPermissions = menuPermissions != null ? menuPermissions : SetUtils.emptySet();
|
||||
this.menuIds = menuIds != null ? menuIds : SetUtils.emptySet();
|
||||
}
|
||||
}
|
||||
|
||||
private Long roleId;
|
||||
private String roleName;
|
||||
private DataScopeEnum dataScope;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user