using Yi.Framework.AiHub.Domain.Shared.Enums;

namespace Yi.Framework.AiHub.Application.Contracts.Dtos.Announcement;

/// <summary>
/// 公告 DTO（后台管理使用）
/// </summary>
public class AnnouncementDto
{
    /// <summary>
    /// 公告ID
    /// </summary>
    public Guid Id { get; set; }

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

    /// <summary>
    /// 内容列表
    /// </summary>
    public List<string> Content { get; set; } = new List<string>();

    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }

    /// <summary>
    /// 图片url
    /// </summary>
    public string? ImageUrl { get; set; }

    /// <summary>
    /// 开始时间
    /// </summary>
    public DateTime StartTime { get; set; }

    /// <summary>
    /// 活动结束时间
    /// </summary>
    public DateTime? EndTime { get; set; }

    /// <summary>
    /// 公告类型
    /// </summary>
    public AnnouncementTypeEnum Type { get; set; }

    /// <summary>
    /// 跳转链接
    /// </summary>
    public string? Url { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreationTime { get; set; }
}
