| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using dodohold.core;
- 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 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();
- }
- [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;
- }
- }
|