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