Files
shgx_tz_mes_backend_sync/ZR.Model/System/Dto/ArticleDto.cs

52 lines
1.3 KiB
C#
Raw Normal View History

2021-08-23 16:57:25 +08:00
using System;
2023-03-14 12:21:43 +08:00
using System.ComponentModel.DataAnnotations;
2021-08-23 16:57:25 +08:00
2021-09-16 19:07:49 +08:00
namespace ZR.Model.System.Dto
2021-08-23 16:57:25 +08:00
{
2023-03-14 12:21:43 +08:00
public class ArticleQueryDto : PagerInfo
2021-08-23 16:57:25 +08:00
{
public string Status { get; set; }
public string Title { get; set; }
public DateTime BeginTime { get; set; }
public DateTime EndTime { get; set; }
}
2023-03-14 12:21:43 +08:00
/// <summary>
/// 输入输出对象
/// </summary>
public class ArticleDto
{
[Required(ErrorMessage = "Cid不能为空")]
public int Cid { get; set; }
[Required(ErrorMessage = "文章标题不能为空")]
2023-03-14 12:21:43 +08:00
public string Title { get; set; }
[Required(ErrorMessage = "文章内容不能为空")]
2023-03-14 12:21:43 +08:00
public string Content { get; set; }
public long? UserId { get; set; }
public string Status { get; set; }
public string FmtType { get; set; }
public string Tags { get; set; }
public int? Hits { get; set; }
public int? CategoryId { get; set; }
public DateTime? CreateTime { get; set; }
public DateTime? UpdateTime { get; set; }
public string AuthorName { get; set; }
public string CoverUrl { get; set; }
public ArticleCategory ArticleCategoryNav { get; set; }
public string[] TagList { get; set; }
}
2021-08-23 16:57:25 +08:00
}