using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Dpz.Core.EnumLibrary;
using Dpz.Core.Infrastructure;
using Dpz.Core.Public.Entity;
#nullable enable
namespace Dpz.Core.Public.ViewModel.DynamicPages;
public class VmDynamicPage : IMapFrom<DynamicPage>
{
[Required] public string? Id { get; set; }
[Required] public string? Content { get; set; }
/// <summary>
/// 脚本 地址
/// </summary>
public SortedDictionary<int,string>? Scripts { get; set; }
/// <summary>
/// 样式 地址
/// </summary>
public SortedDictionary<int,string>? Styles { get; set; }
/// <summary>
/// Content-Type
/// </summary>
public PageContentType ContentType { get; set; }
/// <summary>
/// content type
/// </summary>
public string ContentTypeStr => ContentType.ToString();
public VmUserInfo? Creator { get; set; }
public DateTime CreateTime { get; set; } = DateTime.Now;
public DateTime LastUpdateTime { get; set; } = DateTime.Now;
}