251201_01_ENH : JWT 수정, RequestUserContext 추가, 엑셀 매퍼 및 유틸, Json 유틸, DateTime 유틸 추가
This commit is contained in:
21
src/main/java/com/kri/common/webmvc/RequestUserContext.java
Normal file
21
src/main/java/com/kri/common/webmvc/RequestUserContext.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package com.kri.common.webmvc;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Value;
|
||||
|
||||
@Value
|
||||
@Builder
|
||||
public class RequestUserContext {
|
||||
|
||||
String userId;
|
||||
String userCmpn;
|
||||
String userTeam;
|
||||
String userName;
|
||||
Integer userRole;
|
||||
|
||||
String clientIp; // IpUtil 에서 가져온 값
|
||||
|
||||
public boolean isAuthenticated() {
|
||||
return userId != null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user