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