using dodohold.core; using Spire.Pdf.Exporting.XPS.Schema; namespace molilian.core { public enum UrlAction { None = 0, Redirect = 1, Body = 2, } public class DeeplinkParseRule { public UrlAction url_action { get; set; } = UrlAction.None; public string body_pattern { get; set; } = string.Empty; public string url_pattern { get; set; } = string.Empty; public string pattern { get; set; } = string.Empty; public string plugin { get; set; } = string.Empty; public string deeplink_template { get; set; } = string.Empty; public string prompt_text { get; set; } = string.Empty; public bool enable { get; set; } = true; public List childs { get; set; } = new(); public List resources { get; set; } = new(); } public class DeeplinkResources { public string name { get; set; } = string.Empty; public string url_pattern { get; set; } = string.Empty; public UrlAction url_action { get; set; } = UrlAction.None; public List pattern { get; set; } = []; public bool enable { get; set; } = true; } [Table("deeplink_parse_rule")] public class DeeplinkParseRuleDTO { [Key] public int id { get; set; } public int channel_id { get; set; } = 0; public string channel_name { get; set; } = string.Empty; public string name { get; set; } = string.Empty; public string logo { get; set; } = string.Empty; public string rules { get; set; } = string.Empty; public string IgnorePercentageCity { get; set; } = string.Empty; public bool status { get; set; } = false; public DateTime create_time { get; set; } = DateTime.Now; [IgnoreUpdate] public DateTime last_time { get; set; } = DateTime.Now; } }