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();
}