2023-05-23 23:54:28 +08:00
|
|
|
|
#region copyright
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
// 此代码版权声明为全文件覆盖,如有原作者特别声明,会在下方手动补充
|
|
|
|
|
|
// 此代码版权(除特别声明外的代码)归作者本人Diego所有
|
|
|
|
|
|
// 源代码使用协议遵循本仓库的开源协议及附加协议
|
2023-07-16 17:48:22 +08:00
|
|
|
|
// Gitee源代码仓库:https://gitee.com/diego2098/ThingsGateway
|
2023-05-23 23:54:28 +08:00
|
|
|
|
// Github源代码仓库:https://github.com/kimdiego2098/ThingsGateway
|
2023-07-16 17:48:22 +08:00
|
|
|
|
// 使用文档:https://diego2098.gitee.io/thingsgateway-docs/
|
2023-05-23 23:54:28 +08:00
|
|
|
|
// QQ群:605534569
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
2023-08-07 15:09:53 +08:00
|
|
|
|
using System.ComponentModel;
|
2023-03-04 18:41:11 +08:00
|
|
|
|
|
2023-08-07 15:09:53 +08:00
|
|
|
|
namespace ThingsGateway.Application;
|
2023-06-06 19:37:04 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 运行日志分页DTO
|
|
|
|
|
|
/// </summary>
|
2023-07-12 21:16:38 +08:00
|
|
|
|
public class BackendLogPageInput : BasePageInput
|
2023-03-04 18:41:11 +08:00
|
|
|
|
{
|
2023-08-27 16:58:45 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 开始时间
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public DateTime? StartTime { get; set; } = DateTime.UtcNow.AddDays(-1);
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 结束时间
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public DateTime? EndTime { get; set; } = DateTime.UtcNow.AddDays(1);
|
|
|
|
|
|
|
2023-03-29 16:22:01 +08:00
|
|
|
|
/// <summary>
|
2023-06-06 19:37:04 +08:00
|
|
|
|
/// 日志源
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Description("日志源")]
|
|
|
|
|
|
public string Source { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 日志等级
|
2023-03-29 16:22:01 +08:00
|
|
|
|
/// </summary>
|
2023-06-06 19:37:04 +08:00
|
|
|
|
[Description("日志等级")]
|
|
|
|
|
|
public string Level { get; set; }
|
2023-03-04 18:41:11 +08:00
|
|
|
|
|
2023-06-06 19:37:04 +08:00
|
|
|
|
}
|
2023-08-07 15:09:53 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 运行日志分页DTO
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class BackendLogInput
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 日志源
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Description("日志源")]
|
|
|
|
|
|
public string Source { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 日志等级
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Description("日志等级")]
|
|
|
|
|
|
public string Level { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-06-06 19:37:04 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// RPC日志分页DTO
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class RpcLogPageInput : BasePageInput
|
2023-08-07 15:09:53 +08:00
|
|
|
|
{
|
2023-08-27 16:58:45 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 开始时间
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public DateTime? StartTime { get; set; } = DateTime.UtcNow.AddDays(-1);
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 结束时间
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public DateTime? EndTime { get; set; } = DateTime.UtcNow.AddDays(1);
|
2023-08-07 15:09:53 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 操作源
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Description("操作源")]
|
|
|
|
|
|
public string Source { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 操作源
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Description("操作对象")]
|
|
|
|
|
|
public string Object { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 方法
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Description("方法")]
|
|
|
|
|
|
public string Method { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// RPC日志分页DTO
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class RpcLogInput
|
2023-06-06 19:37:04 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 操作源
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Description("操作源")]
|
|
|
|
|
|
public string Source { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 操作源
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Description("操作对象")]
|
|
|
|
|
|
public string Object { get; set; }
|
2023-03-29 16:22:01 +08:00
|
|
|
|
/// <summary>
|
2023-06-06 19:37:04 +08:00
|
|
|
|
/// 方法
|
2023-03-29 16:22:01 +08:00
|
|
|
|
/// </summary>
|
2023-06-06 19:37:04 +08:00
|
|
|
|
[Description("方法")]
|
|
|
|
|
|
public string Method { get; set; }
|
2023-03-04 18:41:11 +08:00
|
|
|
|
}
|