using System; namespace Hg.Core.Domain.Dto.Meeting { public class MeetingAccessoryDto { public MeetingAccessoryDto() { Accessories = new List(); } public int Id { get; set; } /// /// 会议名称 /// public string? MeetingName { get; set; } /// /// 会议类型 /// public string? MeetingType { get; set; } /// /// 主讲人 /// public string? Compere { get; set; } /// /// 附件列表 /// public List Accessories { get; set; } /// /// 主讲人 /// [JsonIgnore] public List? CompereList { get { return string.IsNullOrEmpty(Compere) ? new List() : JsonSerializer.Deserialize>(Compere); } } /// /// 主讲人 /// public string? Comperes { get { return CompereList == null || !CompereList.Any() ? "" : string.Join(",", CompereList.Select(x => x.Name)); } } } public class AccessoryDto { public AccessoryDto() { } public int Id { get; set; } /// /// 文件名称 /// [JsonPropertyName("fileName")] public string? FileName { get; set; } /// /// 文件大小 /// [JsonPropertyName("fileSize")] public string? FileSize { get; set; } /// /// 文件地址 /// [JsonPropertyName("fileUrl")] public string? FileUrl { get; set; } /// /// 上传人 /// public string? Uploader { get; set; } /// /// 上传时间 /// public DateTime UploadTime { get; set; } } }