using System;
using System.Collections.Generic;
using System.Text;

namespace AutoTurnOver.Models
{
    public class TokenResult
    {
        /// <summary>
        /// 返回状态
        /// </summary>
        public bool result { get; set; }

        /// <summary>
        /// 返回信息
        /// </summary>
        public string message { get; set; }
    }

    public class tokenUser
    {
        public SaasUserInfo result { get; set; }

        public int statusCode { get; set; }
    }

    public class SaasUserInfo
    {
        public bool success { get; set; }
        public string Account { get; set; }
        public int UserId { get; set; }
        public bool AllCompany { get; set; }
        public List<tokenRole> roles { get; set; }
        public CompanyInfo Company { get; set; }
        //public DepartmentInfo Department { get; set; }
        public bool has_admin { get; set; }
    }
    public class tokenRole
    {
        public int Id { get; set; }
        public string RoleCode { get; set; }
        public string RoleName { get; set; }
    }
    public class DepartmentInfo
    {
        public int DepartmentId { get; set; }
        public string Name { get; set; }
        public string Code { get; set; }
    }
    public class CompanyInfo
    {
        public int Id { get; set; }
        public string CompanyCode { get; set; }
        public string CompanyName { get; set; }
    }
}
