using QYZH.InteractiveMagazine.Models.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace QYZH.InteractiveMagazine.Models.Dto.Journal
{
    public partial class JournalAddDto
    {

        /// <summary>
        /// Desc:书籍名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Desc:标题
        /// </summary>
        public string? Title { get; set; }

        /// <summary>
        /// Desc:总页数
        /// </summary>
        public int TotalPage { get; set; }


        /// <summary>
        /// Desc:状态
        /// </summary>
        public JournalStatusEnum Status { get; set; } = JournalStatusEnum.Created;

        /// <summary>
        /// Desc:pdf地址
        /// </summary>
        public string PdfUrl { get; set; }

        /// <summary>
        /// Desc:宽度
        /// </summary>
        public float Width { get; set; }

        /// <summary>
        /// Desc:高度
        /// </summary>
        public float Height { get; set; }

        /// <summary>
        /// Desc:乐观锁
        /// </summary>
        [JsonIgnore]
        public int Revision { get; set; }


        /// <summary>
        /// Desc:封面
        /// </summary>
        public string Cover { get; set; }

        /// <summary>
        /// Desc:封底
        /// </summary>
        public string BackCover { get; set; }

        /// <summary>
        /// Desc:pdf预览地址
        /// </summary>
        public string? PdfPreviewUrl { get; set; }

        /// <summary>
        /// Desc:发布开始时间
        /// </summary>
        public DateTime? StartTime { get; set; }

        /// <summary>
        /// Desc:发布结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }

    }
    public partial class JournalEditDto: JournalAddDto
    {
        /// <summary>
        /// Desc:主键id
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// Desc:状态
        /// </summary>
        public JournalStatusEnum Status { get; set; }

    }
}
