网站首页 网站源码
website
站点相关全部源代码,隐藏了一些关于服务器的信息
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
using Microsoft.AspNetCore.Mvc.ModelBinding;

#nullable enable

namespace Dpz.Core.Public.ViewModel.DynamicPages;

/// <summary>
/// 修改自定义页 入参
/// </summary>
public class VmEditDynamicPage
{
    /// <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>
    /// 创建人ID
    /// </summary>
    [BindNever, JsonIgnore]
    public string? CreatorId { get; set; }
}
loading