using System.ComponentModel;

namespace FLY.Thick.Base.Common
{
    /// <summary>
    /// 密码元素
    /// </summary>
    public class PasswordCell : INotifyPropertyChanged
    {
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 权限， 数值越大，权限越大。
        /// </summary>
        public int Level { get; set; }

        /// <summary>
        /// 描述，例如 "管理员"
        /// </summary>
        public string Description { get; set; }
        public event PropertyChangedEventHandler PropertyChanged;
    }
    /// <summary>
    /// 界面权限元素
    /// </summary>
    public class UiLvCell : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        /// <summary>
        /// 请求权限界面名称
        /// </summary>
        public string UiName { get; set; }
        /// <summary>
        /// 描述， 当Description不为空，编辑界面显示 Description； 为空时，显示UiName
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 权限， 数值越大，权限越大。 0~10
        /// </summary>
        public int Level { get; set; }
    }
}
