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

namespace WCS.Model.ApiModel
{

    public class UserModel
    {
        public int Id { get; set; }
        /// <summary>
        /// 登录名
        /// </summary>
        public string LoginName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        public List<int> RoleIds { get; set; } = new List<int>();

        public List<string> RoleNames { get; set; }

        /// <summary>
        /// 是否最大权限管理员
        /// </summary>
        public bool IsAdmin { get; set; }

        /// <summary>
        /// 是否是工程研发人员
        /// </summary>
        public bool IsGCYF { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Time { get; set; }

        /// <summary>
        /// 用户拥有的权限
        /// </summary>
        public List<RoleModel> GetRoles { get; set; }
    }
    public class RoleModel
    {
        public int Id { get; set; }
        /// <summary>
        /// 角色名
        /// </summary>
        public string Name { get; set; }

        public List<int> Auths { get; set; } = new List<int>();

        public string AuthNames { get; set; } 
        /// <summary>
        /// 是否最大权限
        /// </summary>
        public bool IsAdmin { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Time { get; set; }
    }

}
