using Microsoft.AspNetCore.Http;
using System.ComponentModel;

namespace Application.Features.Config.Get;

public sealed class Response
{
    public int ID { get; init; }

    public BasicConfigDto Basic { get; init; } = new();
    public ImagesConfigDto Images { get; init; } = new();
    public MetaConfigDto Meta { get; init; } = new();
    public CompanyConfigDto Company { get; init; } = new();
    public AccountConfigDto Account { get; init; } = new();
    public EmailTemplateConfigDto EmailTemplate { get; init; } = new();
    public ExternalApiConfigDto External { get; init; } = new();
    public PaymentConfigDto Payment { get; init; } = new();

    public sealed class BasicConfigDto
    {
        [DisplayName("����Ʈ �̸�")]
        public string? SiteName { get; init; }

        [DisplayName("����Ʈ �ּ�")]
        public string? SiteURL { get; init; }

        [DisplayName("�ְ� ������ ID")]
        public string? RootID { get; init; }

        [DisplayName("�ۼ��� �̸���")]
        public string? FromEmail { get; init; }

        [DisplayName("�ۼ����� �̸�")]
        public string? FromName { get; init; }

        [DisplayName("SMTP Server")]
        public string? SmtpServer { get; init; }

        [DisplayName("SMTP Port")]
        public int? SmtpPort { get; set; }

        [DisplayName("SMTP Enable SSL")]
        public bool SmtpEnableSSL { get; init; } = false;

        [DisplayName("SMTP Username")]
        public string? SmtpUsername { get; init; }

        [DisplayName("SMTP Password")]
        public string? SmtpPassword { get; init; }

        [DisplayName("�����ڴ� ���� ���� IP")]
        public string? AdminWhiteIPList { get; init; }

        [DisplayName("����ڴ� ���� ���� IP")]
        public string? FrontWhiteIPList { get; init; }

        [DisplayName("���� �� �ȳ��� ����")]
        public string? BlockAlertTitle { get; init; }

        [DisplayName("���� �� �ȳ��� ����")]
        public string? BlockAlertContent { get; init; }

        [DisplayName("���� ����")]
        public bool IsMaintenance { get; init; } = false;

        [DisplayName("���� ����")]
        public string? MaintenanceContent { get; init; }
    }

    public sealed class ImagesConfigDto
    {
        // ====== DB�� ����/ǥ���� ���(���ڿ�) ======
        [DisplayName("Favicon")]
        public string? FaviconPath { get; init; }

        [DisplayName("Logo-square")]
        public string? LogoSquarePath { get; init; }

        [DisplayName("Logo-horizontal")]
        public string? LogoHorizontalPath { get; init; }

        [DisplayName("og-default")]
        public string? OgDefaultPath { get; init; }

        [DisplayName("Twitter-image")]
        public string? TwitterImagePath { get; init; }

        [DisplayName("Apple-touch-icon")]
        public string? AppleTouchIconPath { get; init; }

        [DisplayName("App-icon-192")]
        public string? AppIcon192Path { get; init; }

        [DisplayName("App-icon-512")]
        public string? AppIcon512Path { get; init; }

        // ====== ���ε� �Է�(�� ���ε���) ======
        [DisplayName("Favicon ���ε�")]
        public IFormFile? FaviconFile { get; init; }

        [DisplayName("Logo-square ���ε�")]
        public IFormFile? LogoSquareFile { get; init; }

        [DisplayName("Logo-horizontal ���ε�")]
        public IFormFile? LogoHorizontalFile { get; init; }

        [DisplayName("og-default ���ε�")]
        public IFormFile? OgDefaultFile { get; init; }

        [DisplayName("Twitter-image ���ε�")]
        public IFormFile? TwitterImageFile { get; init; }

        [DisplayName("Apple-touch-icon ���ε�")]
        public IFormFile? AppleTouchIconFile { get; init; }

        [DisplayName("App-icon-192 ���ε�")]
        public IFormFile? AppIcon192File { get; init; }

        [DisplayName("App-icon-512 ���ε�")]
        public IFormFile? AppIcon512File { get; init; }
    }

    public sealed class MetaConfigDto
    {
        [DisplayName("Meta Keywords")]
        public string? Keywords { get; init; }

        [DisplayName("Meta Description")]
        public string? Description { get; init; }

        [DisplayName("Meta Author")]
        public string? Author { get; init; }

        [DisplayName("Meta Viewport")]
        public string? Viewport { get; init; }

        [DisplayName("Meta ApplicationName")]
        public string? ApplicationName { get; init; }

        [DisplayName("Meta Generator")]
        public string? Generator { get; init; }

        [DisplayName("Meta Robots")]
        public string? Robots { get; init; }

        [DisplayName("Meta Adds")]
        public string? Adds { get; init; }
    }

    public sealed class CompanyConfigDto
    {
        [DisplayName("��ȣ ��")]
        public string? Name { get; init; }

        [DisplayName("����� ��� ��ȣ")]
        public string? RegNo { get; init; }

        [DisplayName("����� ������")]
        public string? Address { get; init; }

        [DisplayName("������ȣ")]
        public string? ZipCode { get; init; }

        [DisplayName("��ǥ�� ��")]
        public string? Owner { get; init; }

        [DisplayName("��ǥ ��ȭ��ȣ")]
        public string? Tel { get; init; }

        [DisplayName("FAX")]
        public string? Fax { get; init; }

        [DisplayName("����Ǹž� �Ű���ȣ")]
        public string? RetailSaleNo { get; init; }

        [DisplayName("�ΰ���� ����ڹ�ȣ")]
        public string? AddedSaleNo { get; init; }

        [DisplayName("ȣ���� ����")]
        public string? Hosting { get; init; }

        [DisplayName("��������å����")]
        public string? AdminName { get; init; }

        [DisplayName("��������å���� �̸���")]
        public string? AdminEmail { get; init; }

        [DisplayName("����Ʈ �ּ�")]
        public string? SiteUrl { get; init; }

        [DisplayName("�Աݰ��� - ����")]
        public string? BankCode { get; init; }

        [DisplayName("�Աݰ��� - ������")]
        public string? BankOwner { get; init; }

        [DisplayName("�Աݰ��� - ���¹�ȣ")]
        public string? BankNumber { get; init; }
    }

    public sealed class AccountConfigDto
    {
        [DisplayName("ȸ������ �� - ���� ����")]
        public bool IsRegisterBlock { get; init; }

        [DisplayName("ȸ������ �� - �̸��� ���� ����")]
        public bool IsRegisterEmailAuth { get; init; }

        [DisplayName("ȸ������ �� - ��й�ȣ �ּ� ����")]
        public ushort? PasswordMinLength { get; init; }

        [DisplayName("ȸ������ �� - ��й�ȣ �빮�� �ּ� ����")]
        public ushort? PasswordUppercaseLength { get; init; }

        [DisplayName("ȸ������ �� - ��й�ȣ ���� �ּ� ����")]
        public ushort? PasswordNumbersLength { get; init; }

        [DisplayName("ȸ������ �� - ��й�ȣ Ư������ �ּ� ����")]
        public ushort? PasswordSpecialcharsLength { get; init; }

        [DisplayName("ȸ������ �� - ���� �̸���")]
        public string? DeniedEmailList { get; init; }

        [DisplayName("ȸ������ �� - ���� ����")]
        public string? DeniedNameList { get; init; }

        [DisplayName("ȸ������ �� - �̸��� ���� �ֱ�")]
        public ushort? ChangeEmailDay { get; init; }

        [DisplayName("ȸ������ �� - �̸� ���� �ֱ�")]
        public ushort? ChangeNameDay { get; init; }

        [DisplayName("ȸ������ �� - �Ұ� ���� �ֱ�")]
        public ushort? ChangeSummaryDay { get; init; }

        [DisplayName("ȸ������ �� - �ڱ�Ұ� ���� �ֱ�")]
        public ushort? ChangeIntroDay { get; init; }

        [DisplayName("ȸ������ �� - ��й�ȣ ���� �ֱ�")]
        public ushort? ChangePasswordDay { get; init; }

        [DisplayName("�α��� �� - �̸��� ���� �ʿ�")]
        public bool IsLoginEmailVerifiedOnly { get; init; }

        [DisplayName("�α��� �� - �α��� �õ�(ȸ)")]
        public ushort? MaxLoginTryCount { get; init; }

        [DisplayName("�α��� �� - �α��� ����(��)")]
        public ushort? MaxLoginTryLimitSecond { get; init; }
    }

    public sealed class EmailTemplateConfigDto
    {
        [DisplayName("ȸ������ �� - ����")]
        public string? RegisterEmailFormTitle { get; init; }

        [DisplayName("ȸ������ �� - ����")]
        public string? RegisterEmailFormContent { get; init; }

        [DisplayName("ȸ������ �Ϸ� - ����")]
        public string? RegistrationEmailFormTitle { get; init; }

        [DisplayName("ȸ������ �Ϸ� - ����")]
        public string? RegistrationEmailFormContent { get; init; }

        [DisplayName("��й�ȣ �缳�� - ����")]
        public string? ResetPasswordEmailFormTitle { get; init; }

        [DisplayName("��й�ȣ �缳�� - ����")]
        public string? ResetPasswordEmailFormContent { get; init; }

        [DisplayName("��й�ȣ ���� �Ϸ� - ����")]
        public string? ChangedPasswordEmailFormTitle { get; init; }

        [DisplayName("��й�ȣ ���� �Ϸ� - ����")]
        public string? ChangedPasswordEmailFormContent { get; init; }

        [DisplayName("ȸ��Ż�� �� - ����")]
        public string? WithdrawEmailFormTitle { get; init; }

        [DisplayName("ȸ��Ż�� �� - ����")]
        public string? WithdrawEmailFormContent { get; init; }

        [DisplayName("�̸��� ���� �� - ����")]
        public string? EmailVerifyFormTitle { get; init; }

        [DisplayName("�̸��� ���� �� - ����")]
        public string? EmailVerifyFormContent { get; init; }

        [DisplayName("�̸��� ���� �Ϸ� - ����")]
        public string? ChangedEmailFormTitle { get; init; }

        [DisplayName("�̸��� ���� �Ϸ� - ����")]
        public string? ChangedEmailFormContent { get; init; }
    }

    public sealed class ExternalApiConfigDto
    {
        [DisplayName("YouTube - API Name")]
        public string? YouTubeApiKeyEnc { get; init; }

        [DisplayName("YouTube - API Key")]
        public string? YouTubeApiName { get; init; }

        [DisplayName("Google - Client ID")]
        public string? GoogleClientId { get; init; }

        [DisplayName("Google - Client Secret")]
        public string? GoogleClientSecretEnc { get; init; }

        [DisplayName("Google - App ID")]
        public string? GoogleAppId { get; init; }

        [DisplayName("다날 - 결제 환경")]
        public string? DanalPayMode { get; init; }

        [DisplayName("다날 - Test CPID")]
        public string? DanalTestCpid { get; init; }

        [DisplayName("다날 - Test Client Key")]
        public string? DanalTestClientKeyEnc { get; init; }

        [DisplayName("다날 - Test Secret Key")]
        public string? DanalTestSecretKeyEnc { get; init; }

        [DisplayName("다날 - Live CPID")]
        public string? DanalLiveCpid { get; init; }

        [DisplayName("다날 - Live Client Key")]
        public string? DanalLiveClientKeyEnc { get; init; }

        [DisplayName("다날 - Live Secret Key")]
        public string? DanalLiveSecretKeyEnc { get; init; }
    }

    public sealed class PaymentConfigDto
    {
    }
}
