Files
ThingsGateway/framework/ThingsGateway.Application/Services/GatewayLogs/Dto/LogInput.cs
2023-08-27 16:58:45 +08:00

112 lines
2.8 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#region copyright
//------------------------------------------------------------------------------
// 此代码版权声明为全文件覆盖,如有原作者特别声明,会在下方手动补充
// 此代码版权除特别声明外的代码归作者本人Diego所有
// 源代码使用协议遵循本仓库的开源协议及附加协议
// Gitee源代码仓库https://gitee.com/diego2098/ThingsGateway
// Github源代码仓库https://github.com/kimdiego2098/ThingsGateway
// 使用文档https://diego2098.gitee.io/thingsgateway-docs/
// QQ群605534569
//------------------------------------------------------------------------------
#endregion
using System.ComponentModel;
namespace ThingsGateway.Application;
/// <summary>
/// 运行日志分页DTO
/// </summary>
public class BackendLogPageInput : BasePageInput
{
/// <summary>
/// 开始时间
/// </summary>
public DateTime? StartTime { get; set; } = DateTime.UtcNow.AddDays(-1);
/// <summary>
/// 结束时间
/// </summary>
public DateTime? EndTime { get; set; } = DateTime.UtcNow.AddDays(1);
/// <summary>
/// 日志源
/// </summary>
[Description("日志源")]
public string Source { get; set; }
/// <summary>
/// 日志等级
/// </summary>
[Description("日志等级")]
public string Level { get; set; }
}
/// <summary>
/// 运行日志分页DTO
/// </summary>
public class BackendLogInput
{
/// <summary>
/// 日志源
/// </summary>
[Description("日志源")]
public string Source { get; set; }
/// <summary>
/// 日志等级
/// </summary>
[Description("日志等级")]
public string Level { get; set; }
}
/// <summary>
/// RPC日志分页DTO
/// </summary>
public class RpcLogPageInput : BasePageInput
{
/// <summary>
/// 开始时间
/// </summary>
public DateTime? StartTime { get; set; } = DateTime.UtcNow.AddDays(-1);
/// <summary>
/// 结束时间
/// </summary>
public DateTime? EndTime { get; set; } = DateTime.UtcNow.AddDays(1);
/// <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
{
/// <summary>
/// 操作源
/// </summary>
[Description("操作源")]
public string Source { get; set; }
/// <summary>
/// 操作源
/// </summary>
[Description("操作对象")]
public string Object { get; set; }
/// <summary>
/// 方法
/// </summary>
[Description("方法")]
public string Method { get; set; }
}