using dodohold.core;

namespace molilian.core
{
    public enum JdUnionWorkMode
    {
        None = 0,
        SiteApi = 1,
        AffApi = 2,
        Crawler = 3,
        Ddx = 4, //临时加的 0529
        JingFen = 5,
        ConvertSuperLink = 6,
    }
    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; }
        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 riskCookie { get; set; } = string.Empty;
        public string union_cookies { get; set; } = string.Empty;
        public string h5st { get; set; } = string.Empty;
        public string envStr { get; set; } = string.Empty;

        public string nodeName { get; set; } = string.Empty;
        public bool? proxyStatus { get; set; }
        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 bool enable_sync_report { 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;
        public bool is_hide { get; set; } = false;
        public bool enable_call_stats { get; set; } = true;

        public bool other_api_enabled { get; set; } = false;
        public string other_api_platform_id { get; set; } = string.Empty;
        public string other_api_key { get; set; } = string.Empty;
        public bool other_api_non_numeric_required { get; set; } = true;
        public string riskStrategy { get; set; } = string.Empty;

        public int launchScene { get; set; } = -1;
        public string parse_type { get; set; } = string.Empty;


    }
}
