BDU/ATS/Models/UserModel.cs

46 lines
1.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Newtonsoft.Json;
using PropertyChanged;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ATS.Models
{
[AddINotifyPropertyChangedInterface]
public class UserModel
{
public UserModel()
{
}
public UserModel(UserModel source)
{
UserId = source.UserId;
UserName = source.UserName;
UserAccount = source.UserAccount;
PassWord = source.PassWord;
Role = source.Role;
}
public Guid UserId { get; set; } = Guid.NewGuid();
public string UserName { get; set; } = "";
public string UserAccount { get; set; } = "";
public string PassWord { get; set; }
/// <summary>
/// 0用户1管理员2超级管理员
/// </summary>
public int Role { get; set; } = 0;
public DateTime LoginTime { get; set; }
public int LoginCount { get; set; }
}
}