2016-11-05 15:26:42 +08:00
|
|
|
|
using System;
|
2018-10-19 23:09:52 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2016-11-05 15:26:42 +08:00
|
|
|
|
namespace Bootstrap.DataAccess
|
|
|
|
|
{
|
|
|
|
|
public class Log
|
|
|
|
|
{
|
2018-10-19 23:09:52 +08:00
|
|
|
|
protected const string RetrieveLogsDataKey = "LogHelper-RetrieveLogs";
|
2016-11-05 15:26:42 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获得/设置 操作日志主键ID
|
|
|
|
|
/// </summary>
|
2017-03-30 16:15:45 +08:00
|
|
|
|
public int Id { get; set; }
|
2016-11-05 15:26:42 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获得/设置 操作类型
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string CRUD { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获得/设置 用户名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string UserName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获得/设置 操作时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime LogTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获得/设置 客户端IP
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ClientIp { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取/设置 客户端信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ClientAgent { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取/设置 请求网址
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string RequestUrl { get; set; }
|
2018-10-19 23:09:52 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 查询所有日志信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="tId"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public virtual IEnumerable<Log> RetrieveLogs(string tId = null) => throw new NotImplementedException();
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 保存新增的日志信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="p"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public virtual bool SaveLog(Log p) => throw new NotImplementedException();
|
2016-11-05 15:26:42 +08:00
|
|
|
|
}
|
|
|
|
|
}
|