namespace HoneyBox.Admin.Business.Models.Danye;

#region Response Models

/// <summary>
/// 单页列表响应模型
/// </summary>
public class DanyeResponse
{
    /// <summary>
    /// 单页ID
    /// </summary>
    public int Id { get; set; }

    /// <summary>
    /// 标题
    /// </summary>
    public string Title { get; set; } = string.Empty;

    /// <summary>
    /// 是否启用图片优化
    /// </summary>
    public bool IsImageOptimizer { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime UpdateTime { get; set; }
}

/// <summary>
/// 单页详情响应模型
/// </summary>
public class DanyeDetailResponse
{
    /// <summary>
    /// 单页ID
    /// </summary>
    public int Id { get; set; }

    /// <summary>
    /// 标题
    /// </summary>
    public string Title { get; set; } = string.Empty;

    /// <summary>
    /// 内容（富文本HTML）
    /// </summary>
    public string Content { get; set; } = string.Empty;

    /// <summary>
    /// 是否启用图片优化
    /// </summary>
    public bool IsImageOptimizer { get; set; }

    /// <summary>
    /// 标题是否可编辑（ID 2-20 不可编辑）
    /// </summary>
    public bool IsTitleEditable { get; set; }
}

#endregion

#region Request Models

/// <summary>
/// 单页更新请求模型
/// </summary>
public class DanyeUpdateRequest
{
    /// <summary>
    /// 标题（可选，ID 2-20 的单页标题不可编辑）
    /// </summary>
    public string? Title { get; set; }

    /// <summary>
    /// 内容（富文本HTML）
    /// </summary>
    public string Content { get; set; } = string.Empty;
}

/// <summary>
/// 图片优化切换请求模型
/// </summary>
public class ImageOptimizerRequest
{
    /// <summary>
    /// 是否启用图片优化
    /// </summary>
    public bool IsImageOptimizer { get; set; }
}

#endregion
