67 lines
1.4 KiB
C#
67 lines
1.4 KiB
C#
using IRaCIS.Core.Domain.Share;
|
|
|
|
namespace IRaCIS.Core.Domain.Models;
|
|
|
|
[Comment("后台 - 用户账户操作日志")]
|
|
[Table("UserLog")]
|
|
public class UserLog : BaseAddAuditEntity
|
|
{
|
|
#region 导航属性
|
|
[JsonIgnore]
|
|
public IdentityUser TargetIdentityUser { get; set; }
|
|
|
|
|
|
[JsonIgnore]
|
|
public IdentityUser ActionIdentityUser { get; set; }
|
|
|
|
#endregion
|
|
|
|
|
|
public string IP { get; set; } = string.Empty;
|
|
public UserOptType OptType { get; set; }
|
|
|
|
public string LoginPassword { get; set; } = string.Empty;
|
|
|
|
public string IPRegion { get; set; } = string.Empty;
|
|
|
|
|
|
#region 账号修改 维护
|
|
|
|
public Guid? ActionIdentityUserId { get; set; }
|
|
|
|
public string ActionUserName { get; set; }
|
|
|
|
public string ActionUserType { get; set; }
|
|
|
|
|
|
[MaxLength]
|
|
public string JsonObj { get; set; }
|
|
|
|
|
|
[Comment("被操作的对象 admin 修改张三信息 张三是被操作对象")]
|
|
public Guid? TargetIdentityUserId { get; set; }
|
|
|
|
|
|
[Comment("异地登录")]
|
|
public bool IsLoginUncommonly { get; set; }
|
|
|
|
[Comment("是否忽略异地登录")]
|
|
public bool IsIgnoreUncommonly { get; set; }
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region 后续删除
|
|
public string LoginFaildName { get; set; } = string.Empty;
|
|
|
|
[Comment("后续删除")]
|
|
public Guid? LoginUserId { get; set; }
|
|
[Comment("被操作的人,自己操作的就是自己--后续删除")]
|
|
public Guid? OptUserId { get; set; }
|
|
#endregion
|
|
|
|
|
|
}
|
|
|