/// <summary>
/// 응답 DTO 모음
/// </summary>
namespace bitforum.DTOs.Response
{
    public record ResultDto
    {
        public bool Ok { get; set; } = true;
        public int Status { get; set; } = StatusCodes.Status200OK;
        public string? Message { get; set; } = null;
        public object? Data { get; set; } = null;
        public Dictionary<string, List<string>>? Errors { get; set; } = null;

        public ResultDto() { } // 기본 생성자

        public ResultDto(bool ok, int status, string? message = "", object? data = null, Dictionary<string, List<string>>? errors = null)
        {
            Ok = ok;
            Status = status;
            Message = message;
            Data = data;
        }
    }
}
