using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace YD_WeChatApplet.Commons.Dto.Resource { /// /// 资源结构 /// public class ResourceTypeTreeDto { public int Id { get; set; } public string TypeName { get; set; } public int ParentId { get; set; } public bool IsLeaf { get; set; } public List ResourceDetails { get; set; } = new List(); public List Children { get; set; } = new List(); } /// /// 资源详情 /// public class ResourceDetailsDto { public int Id { get; set; } /// ///资源类型Id /// public int ResourceTypeId { get; set; } /// ///资源名称 /// public string ResourceName { get; set; } /// ///封面地址 /// public string ImageUrl { get; set; } /// ///资源地址 /// public string ResourceUrl { get; set; } } }