Files
ThingsGateway/src/Gateway/ThingsGateway.Gateway.Application/Entity/RpcLog.cs
Diego 6af83152de build: 10.1.0.1
feat: 变量名称 由 全局唯一 更改为 采集设备内唯一
fix: opcda订阅方式初始化时未更新变量状态,导致后续变了状态一直是offline
feat: mqttServer 允许的连接ID前缀 为空时可为任意id

破坏性更新:
1、兼容旧版本数据库,但不兼容旧版本excel文件,不同点在于变量excel 业务属性页,添加了设备名称和业务设备名称,旧版本只有业务设备名称
2、业务上传内容更改为 字典类型,键为设备名称,值为变量列表。变量列表内容与旧版本相同
2025-03-04 21:09:11 +08:00

87 lines
3.3 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.

//------------------------------------------------------------------------------
// 此代码版权声明为全文件覆盖,如有原作者特别声明,会在下方手动补充
// 此代码版权除特别声明外的代码归作者本人Diego所有
// 源代码使用协议遵循本仓库的开源协议及附加协议
// Gitee源代码仓库https://gitee.com/diego2098/ThingsGateway
// Github源代码仓库https://github.com/kimdiego2098/ThingsGateway
// 使用文档https://thingsgateway.cn/
// QQ群605534569
//------------------------------------------------------------------------------
using BootstrapBlazor.Components;
using SqlSugar;
namespace ThingsGateway.Gateway.Application;
/// <summary>
/// Rpc写入日志
///</summary>
[SugarTable("rpc_log", TableDescription = "RPC操作日志")]
[Tenant(SqlSugarConst.DB_Log)]
public class RpcLog : PrimaryIdEntity
{
/// <summary>
/// 日志时间
/// </summary>
[SugarColumn(ColumnDescription = "日志时间", IsNullable = false)]
[AutoGenerateColumn(Visible = true, DefaultSort = true, Sortable = true, DefaultSortOrder = SortOrder.Desc)]
public DateTime LogTime { get; set; }
/// <summary>
/// 操作源
///</summary>
[SugarColumn(ColumnDescription = "操作源", IsNullable = false)]
[AutoGenerateColumn(Visible = true, Filterable = true, Sortable = true)]
public string OperateSource { get; set; }
/// <summary>
/// 操作设备
///</summary>
[SugarColumn(ColumnDescription = "操作设备", IsNullable = false)]
[AutoGenerateColumn(Visible = true, Filterable = true, Sortable = true)]
public string OperateDevice { get; set; }
/// <summary>
/// 操作对象
///</summary>
[SugarColumn(ColumnDescription = "操作对象", IsNullable = false)]
[AutoGenerateColumn(Visible = true, Filterable = true, Sortable = true)]
public string OperateObject { get; set; }
/// <summary>
/// 操作方法
///</summary>
[SugarColumn(ColumnDescription = "Rpc方法", IsNullable = false)]
[AutoGenerateColumn(Visible = true, Filterable = true, Sortable = true)]
public string OperateMethod { get; set; }
/// <summary>
/// 操作结果
///</summary>
[SugarColumn(ColumnDescription = "操作结果", IsNullable = false)]
[AutoGenerateColumn(Visible = true, Filterable = true, Sortable = true)]
public bool IsSuccess { get; set; }
/// <summary>
/// 请求参数
///</summary>
[SugarColumn(ColumnDescription = "请求参数", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
[AutoGenerateColumn(Visible = true, Filterable = true, Sortable = true, ShowTips = true)]
public string? ParamJson { get; set; }
/// <summary>
/// 返回结果
///</summary>
[SugarColumn(ColumnDescription = "返回结果", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
[AutoGenerateColumn(Visible = true, Filterable = true, Sortable = true, ShowTips = true)]
public string? ResultJson { get; set; }
/// <summary>
/// 具体消息
///</summary>
[SugarColumn(ColumnDescription = "具体消息", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
[AutoGenerateColumn(Visible = true, Filterable = true, Sortable = true, ShowTips = true)]
public string? OperateMessage { get; set; }
}