- ProfileResponseDto, UpdateProfileRequestDto 생성 - IAuthService에 GetProfileAsync, UpdateProfileAsync 추가 - AuthService에 프로필 조회/수정 로직 구현 - ProfileController 생성 (v1/in/account/profile)
14 lines
452 B
C#
14 lines
452 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
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; }
|
|
}
|