| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- 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 List<string[]> replace { get; set; } = new();
- public string deeplink_template { get; set; } = string.Empty;
- public string prompt_text { get; set; } = string.Empty;
- public bool enable { get; set; } = true;
- public List<DeeplinkParseRule> childs { get; set; } = new();
- public List<DeeplinkResources> 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<string> 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;
- }
- }
|