using Cms.Core.Entity; using DG.Tool; using System.Text.Json.Serialization; namespace Cms.Core.WebApi.Dtos { public class LiveDetailDto { public int Id { get; set; } /// /// 违法类型 /// [JsonIgnore] public Illegaltype Illegaltype { get; set; } /// /// 违法类型 /// public string? IllegaltypeStr { get { return Illegaltype.GetDescription(); } } /// /// 消息类型 /// [JsonIgnore] public Msgtype Msgtype { get; set; } /// /// 消息类型 /// public string? MsgtypeStr { get { return Msgtype.GetDescription(); } } /// /// 内容 /// public string? Msg { get; set; } /// /// 时间 /// public DateTime Msgtime { get; set; } /// /// 营销类型 /// [JsonIgnore] public MarketingType? Marketingtype { get; set; } /// /// 营销类型 /// public string? MarketingtypeStr { get { return Marketingtype?.GetDescription(); } } /// /// 课程 /// public string? SchedulesTitle { get; set; } /// /// 直播间名称 /// public string? LiveTitle { get; set; } /// /// 课程id /// [JsonIgnore] public int? Scheduleid { get; set; } /// /// 直播间id /// [JsonIgnore] public int? Roomid { get; set; } } }