사용자 권한레벨정보 추가
This commit is contained in:
@@ -38,6 +38,9 @@ public class Admin implements UserDetails{
|
||||
@JsonProperty("expired_dt")
|
||||
private LocalDateTime expiredDt;
|
||||
|
||||
@JsonProperty("auth_level_type")
|
||||
private EAuthAdminLevelType authLevelType;
|
||||
|
||||
/* 만료일 만 가져올려면 */
|
||||
/*@Column(name = "expired_dt")
|
||||
@Temporal(TemporalType.DATE)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.caliverse.admin.domain.entity;
|
||||
|
||||
public enum EAuthAdminLevelType {
|
||||
None,
|
||||
Reader,
|
||||
Master,
|
||||
Developer
|
||||
;
|
||||
|
||||
}
|
||||
@@ -47,6 +47,9 @@ public class AdminResponse {
|
||||
|
||||
private Long groupId;
|
||||
|
||||
@JsonProperty("auth_level_type")
|
||||
private EAuthAdminLevelType authLevelType;
|
||||
|
||||
@JsonProperty("list")
|
||||
private List<Admin> adminList;
|
||||
|
||||
|
||||
@@ -132,6 +132,7 @@ public class AdminService {
|
||||
.status(admin.get().getStatus())
|
||||
.authorityList(groupAuth)
|
||||
.expiredDt(admin.get().getPwUpdateDt().plus(passwordExpiration, ChronoUnit.DAYS))
|
||||
.authLevelType(admin.get().getAuthLevelType())
|
||||
.build();
|
||||
}
|
||||
return AdminResponse.builder()
|
||||
|
||||
Reference in New Issue
Block a user