- Admin 엔티티에 Organization 컬럼 추가 + Migration - ProfileResponseDto에 last_login_at, organization 필드 추가 - UpdateProfileRequestDto에 organization 필드 추가 - AuthService 프로필 조회/수정 매핑 확장 - 활동 내역 DTO 및 GetActivityListAsync 메서드 추가 - ProfileController 활동 내역 조회 엔드포인트 추가 Closes #249
32 lines
820 B
C#
32 lines
820 B
C#
using System.Text.Json.Serialization;
|
|
using SPMS.Application.DTOs.Notice;
|
|
|
|
namespace SPMS.Application.DTOs.Account;
|
|
|
|
public class ActivityListResponseDto
|
|
{
|
|
[JsonPropertyName("items")]
|
|
public List<ActivityItemDto> Items { get; set; } = new();
|
|
|
|
[JsonPropertyName("pagination")]
|
|
public PaginationDto Pagination { get; set; } = new();
|
|
}
|
|
|
|
public class ActivityItemDto
|
|
{
|
|
[JsonPropertyName("activity_type")]
|
|
public string ActivityType { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("title")]
|
|
public string Title { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("description")]
|
|
public string? Description { get; set; }
|
|
|
|
[JsonPropertyName("ip_address")]
|
|
public string? IpAddress { get; set; }
|
|
|
|
[JsonPropertyName("occurred_at")]
|
|
public DateTime OccurredAt { get; set; }
|
|
}
|