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

namespace New_College.Model.ViewModels
{
    public class CustomerInfoResult
    {

        public string session_key { get; set; }

        public string Token { get; set; }
        /// <summary>
        /// 返回状态1成功  2验证码错误  3失败
        /// </summary>
        public int Status { get; set; }

        public int Id { get; set; }

        /// <summary>
        /// 小程序openid
        /// </summary>
        public string OpenId { get; set; }

        /// <summary>
        /// 用户头像
        /// </summary>
        public string AvatarUrl { get; set; }

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

        /// <summary>
        /// 性别 1男 2女
        /// </summary>
        public int Gender { get; set; }

        /// <summary>
        /// 省市区id
        /// </summary>
        public int AreaId { get; set; } = 0;

        /// <summary>
        /// 省市区名称
        /// </summary>
        public string AreaName { get; set; }

        /// <summary>
        ///学生数据是否初始化（省份，选科等）
        /// </summary>
        public bool? Datainit { get; set; } = false;

        /// <summary>
        /// 0(新高考)，1(文科,理科)
        /// </summary>
        public int? Subject { get; set; } = 0;

        /// <summary>
        /// 选科文字展示
        /// </summary>
        public string Subjectgroup { get; set; }

        /// <summary>
        /// 考生预计分数
        /// </summary>
        public double? Expectedscore { get; set; } = 0;

        public string subjectgroupName { get; set; }

        /// <summary>
        /// 是否为VIP
        /// </summary>
        public bool IsVIP { get; set; } = false;

        public string VipCode { get; set; }


        public string Phone { get; set; }

        public int IsUpdateScore { get; set; }

        public CustomerTypeEnum CustomerType { get; set; }

        /// <summary>
        /// 学届
        /// </summary>
        public int Year { get; set; }

        public string SchoolName { get; set; }

        public string ClassName { get; set; }
    }
    public class CustomerInfoListResult : BasePageRequest
    {
        /// <summary>
        /// 编号id
        /// </summary>
        public int Id { get; set; }

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

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

        /// <summary>
        /// 住址
        /// </summary>
        public string AreaName { get; set; }

        /// <summary>
        /// Vip账号
        /// </summary>
        public string VipCode { get; set; }

        /// <summary>
        /// 0(新高考)，1(文科,理科)
        /// </summary>
        public int? Subject { get; set; } = 0;

        /// <summary>
        /// 选科文字展示
        /// </summary>
        public string Subjectgroup { get; set; }

        /// <summary>
        /// 考生预计分数
        /// </summary>
        public double? Expectedscore { get; set; } = 0;
    }

    public class CustomerSeachQuery : BasePageRequest
    {
        /// <summary>
        /// 根据用户名查询
        /// </summary>
        public string VipCode { get; set; }

        /// <summary>
        /// 根据选科查询
        /// </summary>
        public int Subject { get; set; } = 2;

        /// <summary>
        /// 根据电话查询
        /// </summary>
        public string Phone { get; set; }
    }
}
