49 lines
1.4 KiB
C#
49 lines
1.4 KiB
C#
using System;
|
|
using SqlSugar;
|
|
using Yi.Framework.Infrastructure.Data.Auditing;
|
|
using Yi.Framework.Infrastructure.Ddd.Entities;
|
|
|
|
namespace Yi.Furion.Core.Rbac.Entities
|
|
{
|
|
[SugarTable("LoginLog")]
|
|
public class LoginLogEntity : IEntity<long>, ICreationAuditedObject
|
|
{
|
|
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
|
|
public long Id { get; set; }
|
|
public DateTime CreationTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 登录用户
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "LoginUser")]
|
|
public string LoginUser { get; set; }
|
|
/// <summary>
|
|
/// 登录地点
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "LoginLocation")]
|
|
public string LoginLocation { get; set; }
|
|
/// <summary>
|
|
/// 登录Ip
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "LoginIp")]
|
|
public string LoginIp { get; set; }
|
|
/// <summary>
|
|
/// 浏览器
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Browser")]
|
|
public string Browser { get; set; }
|
|
/// <summary>
|
|
/// 操作系统
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Os")]
|
|
public string Os { get; set; }
|
|
/// <summary>
|
|
/// 登录信息
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "LogMsg")]
|
|
public string LogMsg { get; set; }
|
|
|
|
public long? CreatorId { get; set; }
|
|
}
|
|
}
|