- Admin 엔티티에 Organization 컬럼 추가 + Migration - ProfileResponseDto에 last_login_at, organization 필드 추가 - UpdateProfileRequestDto에 organization 필드 추가 - AuthService 프로필 조회/수정 매핑 확장 - 활동 내역 DTO 및 GetActivityListAsync 메서드 추가 - ProfileController 활동 내역 조회 엔드포인트 추가 Closes #249
19 lines
659 B
C#
19 lines
659 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace SPMS.Application.DTOs.Account;
|
|
|
|
public class UpdateProfileRequestDto
|
|
{
|
|
[StringLength(50, ErrorMessage = "이름은 50자 이내여야 합니다.")]
|
|
public string? Name { get; set; }
|
|
|
|
[Phone(ErrorMessage = "올바른 전화번호 형식이 아닙니다.")]
|
|
[StringLength(20, ErrorMessage = "전화번호는 20자 이내여야 합니다.")]
|
|
public string? Phone { get; set; }
|
|
|
|
[JsonPropertyName("organization")]
|
|
[StringLength(100, ErrorMessage = "소속은 100자 이내여야 합니다.")]
|
|
public string? Organization { get; set; }
|
|
}
|