using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.ModelBinding;
#nullable enable
namespace Dpz.Core.Public.ViewModel.DynamicPages;
/// <summary>
/// 自定义页
/// </summary>
public class VmCreateDynamicPage
{
/// <summary>
/// HTML 内容
/// </summary>
[Required]
public HtmlContent? HtmlContent { get; set; }
/// <summary>
/// 样式 内容
/// </summary>
public SortedDictionary<int,StyleContent> StyleContents { get; set; } = [];
/// <summary>
/// 脚本 内容
/// </summary>
public SortedDictionary<int,ScriptContent> ScriptContents { get; set; } = [];
/// <summary>
/// 创建人
/// </summary>
[BindNever]
public VmUserInfo? Creator { get; set; }
}