79 lines
3.4 KiB
C#
79 lines
3.4 KiB
C#
#region copyright
|
||
//------------------------------------------------------------------------------
|
||
// 此代码版权声明为全文件覆盖,如有原作者特别声明,会在下方手动补充
|
||
// 此代码版权(除特别声明外的代码)归作者本人Diego所有
|
||
// 源代码使用协议遵循本仓库的开源协议及附加协议
|
||
// Gitee源代码仓库:https://gitee.com/diego2098/ThingsGateway
|
||
// Github源代码仓库:https://github.com/kimdiego2098/ThingsGateway
|
||
// 使用文档:https://diego2098.gitee.io/thingsgateway-docs/
|
||
// QQ群:605534569
|
||
//------------------------------------------------------------------------------
|
||
#endregion
|
||
|
||
namespace ThingsGateway.Application;
|
||
|
||
/// <summary>
|
||
/// Rpc写入日志
|
||
///</summary>
|
||
[SugarTable("rpcLog", TableDescription = "RPC操作日志")]
|
||
[Tenant(SqlSugarConst.DB_Default)]
|
||
public class RpcLog : PrimaryIdEntity
|
||
{
|
||
/// <summary>
|
||
/// 日志时间
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "LogTime", ColumnDescription = "日志时间", IsNullable = false)]
|
||
[DataTable(Order = 1, IsShow = true, Sortable = true, CellClass = " table-text-truncate ")]
|
||
public DateTime LogTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 操作源
|
||
///</summary>
|
||
[SugarColumn(ColumnName = "OperateSource", ColumnDescription = "操作源", IsNullable = false)]
|
||
[DataTable(Order = 2, IsShow = true, Sortable = true, CellClass = " table-text-truncate ")]
|
||
public string OperateSource { get; set; }
|
||
|
||
/// <summary>
|
||
/// 操作对象
|
||
///</summary>
|
||
[SugarColumn(ColumnName = "OperateObject", ColumnDescription = "操作对象", IsNullable = false)]
|
||
[DataTable(Order = 2, IsShow = true, Sortable = true, CellClass = " table-text-truncate ")]
|
||
public string OperateObject { get; set; }
|
||
|
||
|
||
/// <summary>
|
||
/// 操作方法
|
||
///</summary>
|
||
[SugarColumn(ColumnName = "OperateMethod", ColumnDescription = "Rpc方法", IsNullable = false)]
|
||
[DataTable(Order = 2, IsShow = true, Sortable = true, CellClass = " table-text-truncate ")]
|
||
public string OperateMethod { get; set; }
|
||
|
||
|
||
/// <summary>
|
||
/// 操作结果
|
||
///</summary>
|
||
[SugarColumn(ColumnName = "IsSuccess", ColumnDescription = "操作结果", IsNullable = false)]
|
||
[DataTable(Order = 3, IsShow = true, Sortable = true, CellClass = " table-text-truncate ")]
|
||
public bool IsSuccess { get; set; }
|
||
|
||
/// <summary>
|
||
/// 请求参数
|
||
///</summary>
|
||
[SugarColumn(ColumnName = "ParamJson", ColumnDescription = "请求参数", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
|
||
[DataTable(Order = 2, IsShow = true, Sortable = true, CellClass = " table-text-truncate ")]
|
||
public string ParamJson { get; set; }
|
||
|
||
/// <summary>
|
||
/// 返回结果
|
||
///</summary>
|
||
[SugarColumn(ColumnName = "ResultJson", ColumnDescription = "返回结果", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
|
||
[DataTable(Order = 3, IsShow = true, Sortable = true, CellClass = " table-text-truncate ")]
|
||
public string ResultJson { get; set; }
|
||
|
||
/// <summary>
|
||
/// 具体消息
|
||
///</summary>
|
||
[SugarColumn(ColumnName = "OperateMessage", ColumnDescription = "具体消息", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
|
||
[DataTable(Order = 4, IsShow = true, Sortable = true, CellClass = " table-text-truncate ")]
|
||
public string OperateMessage { get; set; }
|
||
} |