using System.Text.Json;
using Dpz.Core.Public.ViewModel.Response;

namespace Dpz.Core.Web.Models;

public class HomeContainerModel
{
    public IList<PictureRecordResponse> Pictures { get; set; } = [];

    public IList<ArticleMiniResponse> Blogs { get; set; } = [];

    public IList<ArticleMiniResponse> LikeArticle { get; set; } = [];

    public IList<ArticleMiniResponse> News { get; set; } = [];

    public IList<string> Tags { get; set; } = [];

    public VmVideo? Video { get; set; }

    public string? VideoJson =>
        Video == null ? null : JsonSerializer.Serialize(Video, JsonSerializerOptions.Web);
}
评论加载中...