You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
|
|
|
namespace DS.Module.Core.Log;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 系统访问日志
|
|
|
|
|
/// </summary>
|
|
|
|
|
[global::SqlSugar.SugarTable("sys_log_visit")]
|
|
|
|
|
public class SysLogVisit
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 访问类型 0 登录 1 登出
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int LoginType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否执行成功(true-是,false-否)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool Success { get; set; } = true;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 登录Id
|
|
|
|
|
/// </summary>
|
|
|
|
|
public long UserId { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 登录账户
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string UserCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 用户姓名
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string UserName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 操作时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime OpTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 消息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Message { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 创建时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Description("创建时间")]
|
|
|
|
|
[SqlSugar.SugarColumn(IsOnlyIgnoreUpdate = true, ColumnDescription = "创建时间")]
|
|
|
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 租户id
|
|
|
|
|
/// </summary>
|
|
|
|
|
public long? TenantId { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|