사용자 권한레벨정보 추가
This commit is contained in:
@@ -38,6 +38,9 @@ public class Admin implements UserDetails{
|
|||||||
@JsonProperty("expired_dt")
|
@JsonProperty("expired_dt")
|
||||||
private LocalDateTime expiredDt;
|
private LocalDateTime expiredDt;
|
||||||
|
|
||||||
|
@JsonProperty("auth_level_type")
|
||||||
|
private EAuthAdminLevelType authLevelType;
|
||||||
|
|
||||||
/* 만료일 만 가져올려면 */
|
/* 만료일 만 가져올려면 */
|
||||||
/*@Column(name = "expired_dt")
|
/*@Column(name = "expired_dt")
|
||||||
@Temporal(TemporalType.DATE)
|
@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;
|
private Long groupId;
|
||||||
|
|
||||||
|
@JsonProperty("auth_level_type")
|
||||||
|
private EAuthAdminLevelType authLevelType;
|
||||||
|
|
||||||
@JsonProperty("list")
|
@JsonProperty("list")
|
||||||
private List<Admin> adminList;
|
private List<Admin> adminList;
|
||||||
|
|
||||||
|
|||||||
@@ -132,6 +132,7 @@ public class AdminService {
|
|||||||
.status(admin.get().getStatus())
|
.status(admin.get().getStatus())
|
||||||
.authorityList(groupAuth)
|
.authorityList(groupAuth)
|
||||||
.expiredDt(admin.get().getPwUpdateDt().plus(passwordExpiration, ChronoUnit.DAYS))
|
.expiredDt(admin.get().getPwUpdateDt().plus(passwordExpiration, ChronoUnit.DAYS))
|
||||||
|
.authLevelType(admin.get().getAuthLevelType())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
return AdminResponse.builder()
|
return AdminResponse.builder()
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
<result property="groupId" column="group_id"/>
|
<result property="groupId" column="group_id"/>
|
||||||
<result property="groupNm" column="group_nm"/>
|
<result property="groupNm" column="group_nm"/>
|
||||||
<result property="pwUpdateDt" column="pw_update_dt"/>
|
<result property="pwUpdateDt" column="pw_update_dt"/>
|
||||||
|
<result property="authLevelType" column="auth_level_type"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<select id="findByEmail" resultMap="UserResultMap" parameterType="java.lang.String">
|
<select id="findByEmail" resultMap="UserResultMap" parameterType="java.lang.String">
|
||||||
|
|||||||
Reference in New Issue
Block a user