62 lines
1.7 KiB
C#
Raw Normal View History

2025-01-15 21:08:04 +08:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
2025-03-14 14:28:04 +08:00
namespace JiShe.CollectBus.IotSystems.Records
2025-01-15 21:08:04 +08:00
{
/// <summary>
/// 集中器上下线、心跳记录
/// </summary>
public class FocusRecord : AggregateRoot<Guid>
{
public FocusRecord(string address,string gatherServerId,int intervalTime,DateTime logTime,
string logType,string remark)
{
Address = address;
GatherServerId = gatherServerId;
IntervalTime = intervalTime;
LogTime = logTime;
LogType = logType;
Remark = remark;
}
/// <summary>
/// 集中器编号
/// </summary>
public string Address { get; set; }
/// <summary>
/// 采集主站
/// </summary>
public string GatherServerId { get; set; }
/// <summary>
/// 间隔时间 DateTime.Now.Minute - LogTime.Minute
/// </summary>
public int IntervalTime { get; set; }
/// <summary>
/// 离/在线发生时间
/// </summary>
public DateTime LogTime { get; set; }
/// <summary>
/// 终端心跳SignIn 终端登录SignOut 终端登出
/// </summary>
public string LogType { get; set; }
public string Remark { get; set; }
}
//public enum LogType
//{
// [Description("终端心跳")]
// HeartBeat,
// [Description("终端登录")]
// SignIn,
// [Description("终端登出")]
// SignOut
//}
}