- Admin 엔티티에 Organization 컬럼 추가 + Migration - ProfileResponseDto에 last_login_at, organization 필드 추가 - UpdateProfileRequestDto에 organization 필드 추가 - AuthService 프로필 조회/수정 매핑 확장 - 활동 내역 DTO 및 GetActivityListAsync 메서드 추가 - ProfileController 활동 내역 조회 엔드포인트 추가 Closes #249
31 lines
793 B
C#
31 lines
793 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace SPMS.Application.DTOs.Account;
|
|
|
|
public class ProfileResponseDto
|
|
{
|
|
[JsonPropertyName("admin_code")]
|
|
public string AdminCode { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("email")]
|
|
public string Email { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("name")]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("phone")]
|
|
public string Phone { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("role")]
|
|
public int Role { get; set; }
|
|
|
|
[JsonPropertyName("created_at")]
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
[JsonPropertyName("last_login_at")]
|
|
public DateTime? LastLoginAt { get; set; }
|
|
|
|
[JsonPropertyName("organization")]
|
|
public string? Organization { get; set; }
|
|
}
|