namespace QYZH.InteractiveMagazine.Models.Dto.UserAnswerTaskService;

/// <summary>
/// 用户答题任务列表输出
/// </summary>
public class UserAnswerTaskListOutput
{
    /// <summary>
    /// 一级栏目名称
    /// </summary>
    public string FirstLevelCatalogName { get; set; }

    /// <summary>
    /// 目录名称（二级栏目）
    /// </summary>
    public string CatalogName { get; set; }

    /// <summary>
    /// 开始页码
    /// </summary>
    public int StartPage { get; set; }

    /// <summary>
    /// 结束页码
    /// </summary>
    public int EndPage { get; set; }

    /// <summary>
    /// 任务列表
    /// </summary>
    public List<UserAnswerTaskItemOutput> Tasks { get; set; } = new();
}

/// <summary>
/// 用户答题任务项输出
/// </summary>
public class UserAnswerTaskItemOutput
{
    /// <summary>
    /// 任务GroupId
    /// </summary>
    public long GroupId { get; set; }

    /// <summary>
    /// 任务名称
    /// </summary>
    public string TaskName { get; set; }

    /// <summary>
    /// 总成长值
    /// </summary>
    public int TotalGrowthPoints { get; set; }

    /// <summary>
    /// 总积分
    /// </summary>
    public int TotalPoints { get; set; }

    /// <summary>
    /// 答题时间（分钟）
    /// </summary>
    public double AnswerMinutes { get; set; }

    /// <summary>
    /// 任务状态（进行中、已完成、未开始）
    /// </summary>
    public string Status { get; set; }
}
