namespace molilian.core
{
    public enum JdUnionWorkMode
    {
        SiteApi = 1,
        AffApi = 2,
        Crawler = 3,

    }
    public class JdPoolDTO
    {
        public int id { get; set; }
        public string name { get; set; } = string.Empty;
        public string pin { get; set; } = string.Empty;
        public string company { get; set; } = string.Empty;
        public string unionid { get; set; } = string.Empty;
        public string description { get; set; } = string.Empty;
        public string site_id { get; set; } = string.Empty;
        public string app_key { get; set; } = string.Empty;
        public string app_secret { get; set; } = string.Empty;
        public DateTime create_time { get; set; } = DateTime.Now;
        public DateTime last_time { get; set; } = DateTime.Now;
        public DateTime login_time { get; set; } = DateTime.Now;
        public bool status { get; set; }
        public JdUnionWorkMode work_mode { get; set; } = JdUnionWorkMode.SiteApi;
        public string user_agent { get; set; } = string.Empty;
        public string cookies { get; set; } = string.Empty;


        public string nodeName { get; set; } = string.Empty;
        public string end_point { get; set; } = string.Empty;
        public decimal current_amt { get; set; } = 0;
        public int current_daily_calls { get; set; } = 0;
        public int current_hourly_calls { get; set; } = 0;
        public decimal daily_income_limit { get; set; } = 0;
        public int daily_calls_limit { get; set; } = 0;
        public int hourly_calls_limit { get; set; } = 0;
        public decimal draw_balance { get; set; } = 0;
        public bool enable_parse { get; set; } = false;
        public bool enable_coupon { get; set; } = false;
        public bool enable_sync_order { get; set; } = false;
        public int time_range { get; set; } = 0;


        public int today_clickNum { get; set; } = 0;
        public decimal today_cosFee { get; set; } = 0;
        public decimal today_cosPrice { get; set; } = 0;
        public decimal today_finishCosFee { get; set; } = 0;
        public decimal today_finishCosPrice { get; set; } = 0;
        public int today_finishOrderNum { get; set; } = 0;
        public int today_orderNum { get; set; } = 0;

    }
}
