网站首页 网站源码
website
站点相关全部源代码,隐藏了一些关于服务器的信息
using System.ComponentModel.DataAnnotations;
using Dpz.Core.EnumLibrary;

namespace Dpz.Core.Public.ViewModel.DynamicPages;

public class PageContent
{
    /// <summary>
    /// 页面名称
    /// </summary>
    [Required]
    public required string Name { get; set; }

    /// <summary>
    /// 内容
    /// </summary>
    [Required]
    public required string Content { get; set; }

    /// <summary>
    /// Content-Type
    /// </summary>
    public PageContentType ContentType { get; protected init; }

    /// <summary>
    /// Content-Type 字符串
    /// </summary>
    public string ContentTypeStr => ContentType.ToString();
}
loading