사용자 권한레벨정보 추가

This commit is contained in:
2025-03-26 15:17:46 +09:00
parent 5b13f0c088
commit b6548a94a7
5 changed files with 18 additions and 0 deletions

View File

@@ -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)

View File

@@ -0,0 +1,10 @@
package com.caliverse.admin.domain.entity;
public enum EAuthAdminLevelType {
None,
Reader,
Master,
Developer
;
}

View File

@@ -47,6 +47,9 @@ public class AdminResponse {
private Long groupId;
@JsonProperty("auth_level_type")
private EAuthAdminLevelType authLevelType;
@JsonProperty("list")
private List<Admin> adminList;

View File

@@ -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()

View File

@@ -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">