using dodohold.core;
using System.Xml.Linq;

namespace molilian.core
{
    [Table("tk_endpoint_config")]
    public class TkEndpointConfigDTO
    {
        [Key]
        public int id { get; set; }
        public int tk_pool_id { get; set; }
        public int ep_id { get; set; }

        public string name { get; set; } = string.Empty;

        public string endpoint { get; set; } = string.Empty;

        public bool enable_coupon { get; set; } = false;

        public int daily_calls_limit { get; set; } = 0;

        public int current_daily_calls { get; set; } = 0;

        public int hourly_calls_limit { get; set; } = 0;

        public int current_hourly_calls { get; set; } = 0;

        public int interval_seconds { get; set; } = 0;

        public bool status { get; set; } = false;
        public int suspend_duration { get; set; } = 0;

        public DateTime last_call_time { get; set; } = DateTime.MinValue;

        //0无强制要求；1只处理淘宝数字id的文本；2不处理淘宝数字id的文本
        public int taobao_id_handling { get; set; } = 0;
    }
}