- Entity: LoginHistory, PageView, Issue, IssueComment 추가 - Repository: 각 엔티티별 JpaRepository 추가 - Service: UserService, RoleService, ActivityService, IssueService - Admin API: 사용자 관리 7개, 롤/권한 관리 7개, 통계 1개 엔드포인트 - Activity API: 페이지뷰 기록, 로그인 이력 조회 - Issue API: CRUD + 코멘트, 프로젝트/위치/Gitea 링크 지원 - Exception: GlobalExceptionHandler, ResourceNotFoundException, BusinessException - AuthController: 로그인 시 LoginHistory 기록 추가 - Dockerfile 추가 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
492 B
Java
23 lines
492 B
Java
package com.gcsc.guide.dto;
|
|
|
|
import com.gcsc.guide.entity.LoginHistory;
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
public record LoginHistoryResponse(
|
|
Long id,
|
|
LocalDateTime loginAt,
|
|
String ipAddress,
|
|
String userAgent
|
|
) {
|
|
|
|
public static LoginHistoryResponse from(LoginHistory history) {
|
|
return new LoginHistoryResponse(
|
|
history.getId(),
|
|
history.getLoginAt(),
|
|
history.getIpAddress(),
|
|
history.getUserAgent()
|
|
);
|
|
}
|
|
}
|