mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-09 10:54:46 +08:00
采用全新的数据库架构
This commit is contained in:
@@ -1,25 +1,19 @@
|
||||
using System;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
{
|
||||
public partial class User
|
||||
{
|
||||
public string UserId { get; set; }
|
||||
public string Account { get; set; }
|
||||
public string Password { get; set; }
|
||||
public string RealName { get; set; }
|
||||
public string RoleId { get; set; }
|
||||
public bool Enabled { get; set; }
|
||||
public bool DeleteMark { get; set; }
|
||||
|
||||
public void CheckLogin(string password)
|
||||
{
|
||||
if(this.Password != password)
|
||||
throw new Exception("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
||||
if(!this.Enabled)
|
||||
throw new Exception("<22>û<EFBFBD><C3BB>Ѿ<EFBFBD><D1BE><EFBFBD>ͣ<EFBFBD><CDA3>");
|
||||
if (DeleteMark)
|
||||
throw new Exception("<22><><EFBFBD>˺<EFBFBD><CBBA>Ѿ<EFBFBD><D1BE><EFBFBD>ɾ<EFBFBD><C9BE>");
|
||||
}
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
{
|
||||
public partial class User
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Account { get; set; }
|
||||
public string Password { get; set; }
|
||||
public string Name { get; set; }
|
||||
public int Sex { get; set; }
|
||||
public int Status { get; set; }
|
||||
public int Type { get; set; }
|
||||
public string BizCode { get; set; }
|
||||
public System.DateTime CreateTime { get; set; }
|
||||
public int CreateId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user