网站首页 网站源码
website
站点相关全部源代码,隐藏了一些关于服务器的信息
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; }
}
loading