using New_College.Common;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace New_College.Model.ViewModels
{
    public class OrderInfoQuery : BasePageRequest
    {
        /// <summary>
        /// 1支付宝支付  2微信支付
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public EnumPayType PayType { get; set; }

        /// <summary>
        /// 1支付宝支付  2微信支付
        /// </summary>
        public string PayTypeName { get; set; }

        /// <summary>
        /// 状态  1待支付 2已支付
        /// </summary>
        public EnumOrderType Status { get; set; }

        /// <summary>
        /// 状态  1待支付 2已支付
        /// </summary>
        public string StatusName { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 实付款
        /// </summary>
        public decimal PayPrice { get; set; }

        /// <summary>
        /// 卡Id
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int CardId { get; set; }

        /// <summary>
        /// 卡号
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string CardNo { get; set; }

        /// <summary>
        /// 卡类型Id
        /// </summary>
        public int CardTypeId { get; set; }

        /// <summary>
        /// 卡类型名字
        /// </summary>
        public string CardTypeName { get; set; }

        /// <summary>
        /// 用户Id
        /// </summary>
        public int CustomerId { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string CustomerName { get; set; }

        /// <summary>
        /// 名字
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// out_trade_no
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string out_trade_no { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string OrderId { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string Phone { get; set; }

    }

    public class SearchOrderQuery : BasePageRequest
    {
        /// <summary>
        /// 根据卡号查询
        /// </summary>
        public string CardNo { get; set; }

        /// <summary>
        /// 根据VIP类别查询
        /// </summary>
        public int CardTypeId { get; set; } = 0;

        /// <summary>
        /// 根据支付方式查询
        /// </summary>
        public int PayType { get; set; } = -1;

        /// <summary>
        /// 根据支付状态查询
        /// </summary>
        public int Status { get; set; } = -2;

        /// <summary>
        /// 根据手机号查询
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 根据out_trade_no号查询
        /// </summary>
        public string out_trade_no { get; set; }


    }

}
