using System;
using System.Collections.Generic;
using System.Text;
using Bailun.DC.Models;
using Dapper;

namespace Bailun.DC.Services
{
    public class PlatformSiteServices
    {
        /// <summary>
        /// 获取平台提现损耗的比例
        /// </summary>
        /// <returns></returns>
        public List<dc_platform_and_site> GetPlatformLossWithdraw()
        {
            using (var cn = new MySql.Data.MySqlClient.MySqlConnection(Common.GlobalConfig.ConnectionString))
            {
                if (cn.State == System.Data.ConnectionState.Closed)
                {
                    cn.Open();
                }

                return cn.Query<dc_platform_and_site>("select english_name,Loss_withdrawal_percent from dc_platform_and_site where type=1").AsList();
            }
        }

    }
}
