30 lines
696 B
C#
30 lines
696 B
C#
namespace PortBlog.API.Models
|
|
{
|
|
public class PostDto
|
|
{
|
|
public int PostId { get; set; }
|
|
|
|
public string Slug { get; set; } = string.Empty;
|
|
|
|
public string Title { get; set; } = string.Empty;
|
|
|
|
public string Description { get; set; } = string.Empty;
|
|
|
|
public string[] Categories { get; set; } = [];
|
|
|
|
public string PostUrl { get; set; } = string.Empty;
|
|
|
|
public int Likes { get; set; } = 0;
|
|
|
|
public int Views { get; set; } = 0;
|
|
|
|
public int Comments { get; set; } = 0;
|
|
|
|
public string? Image { get; set; }
|
|
|
|
public string? CreatedDate { get; set; }
|
|
|
|
public string? ModifiedDate { get; set; }
|
|
}
|
|
}
|