using Edu.Common.Enum;
using Edu.Common.Enum.User;
using Edu.Model.ViewModel.System;
using System.Collections.Generic;

namespace Edu.Model.CacheModel
{
    /// <summary>
    /// app学生用户缓存
    /// </summary>
    public class AppStudentInfo
    {
        /// <summary>
        /// 账号编号
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 集团编号
        /// </summary>
        public int Group_Id { get; set; }

        /// <summary>
        /// 学校编号
        /// </summary>
        public int School_Id { get; set; }

        /// <summary>
        /// 账号名称
        /// </summary>
        public string AccountName { get; set; }


        /// <summary>
        /// 请求来源
        /// </summary>
        public ApiRequestFromEnum ApiRequestFromEnum { get; set; }

        /// <summary>
        /// 账号类型(1-管理端，2,-教师端，3-助教，4-学生)
        /// </summary>
        public AccountTypeEnum AccountType { get; set; }


        /// <summary>
        /// 对应的账户id
        /// </summary>
        public int AccountId { get; set; }

        /// <summary>
        /// 学校名称
        /// </summary>
        public string SchoolName { get; set; }

        /// <summary>
        /// 集团名称
        /// </summary>
        public string GroupName { get; set; }

        /// <summary>
        /// Token验证
        /// </summary>
        public string Token { get; set; }



        /// <summary>
        /// 集团Logo
        /// </summary>
        public string GroupLogo { get; set; }

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


        /// <summary>
        /// 上传配置
        /// </summary>
        public object UploadConfig { get; set; }

        public int ActivationStatus { get; set; }

        /// <summary>
        /// 是否冻结，1-是
        /// </summary>
        public int IsFrozen { get; set; }
    }


    public class AppStudentLoginError
    {
        /// <summary>
        /// 账号编号
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 集团编号
        /// </summary>
        public int Group_Id { get; set; }

        /// <summary>
        /// 学校编号
        /// </summary>
        public int School_Id { get; set; }

        /// <summary>
        /// 错误数
        /// </summary>
        public int ErrorNum { get; set; }

        /// <summary>
        /// 最近一次错误时间
        /// </summary>
        public System.DateTime? ErrorTime { get; set; }

    }
}