网站首页/ 网站源码
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Dpz.Core.Public.ViewModel.V4;
/// <summary>
/// 文章创建
/// </summary>
public class VmCreateArticleV4
{
/// <summary>
/// 标题
/// </summary>
[Required]
public string Title { get; set; }
/// <summary>
/// 文章内容 Markdown
/// </summary>
[Required]
public string Markdown { get; set; }
/// <summary>
/// 文章内容 Markdown渲染的HTML
/// 正在考虑是否移除
/// </summary>
[Required]
public string Content { get; set; }
/// <summary>
/// 标签
/// </summary>
[Required]
public List<string> Tags { get; set; }
/// <summary>
/// 简介
/// </summary>
[Required]
public string Introduction { get; set; }
/// <summary>
/// 来源
/// </summary>
public string From { get; set; }
/// <summary>
/// 发布时间
/// </summary>
public DateTime? PublishTime { get; set; }
}