사용자 권한레벨정보 추가
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()
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
<result property="groupId" column="group_id"/>
|
||||
<result property="groupNm" column="group_nm"/>
|
||||
<result property="pwUpdateDt" column="pw_update_dt"/>
|
||||
<result property="authLevelType" column="auth_level_type"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="findByEmail" resultMap="UserResultMap" parameterType="java.lang.String">
|
||||
|
||||
Reference in New Issue
Block a user