30 lines
678 B
C#
Raw Normal View History

2025-04-15 15:49:51 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2025-04-15 16:05:07 +08:00
namespace JiShe.CollectBus.Common.Models
2025-04-15 15:49:51 +08:00
{
/// <summary>
/// 设备缓存基础模型
/// </summary>
2025-04-15 16:48:35 +08:00
public abstract class DeviceCacheBasicModel
2025-04-15 15:49:51 +08:00
{
/// <summary>
/// 集中器Id
/// </summary>
public int FocusId { get; set; }
/// <summary>
/// 表Id
/// </summary>
public int MeterId { get; set; }
2025-04-15 16:48:35 +08:00
/// <summary>
2025-04-15 23:20:46 +08:00
/// 唯一标识是redis ZSet和Set memberid
2025-04-15 16:48:35 +08:00
/// </summary>
2025-04-15 23:20:46 +08:00
public virtual string MemberID => $"{FocusId}:{MeterId}";
2025-04-15 15:49:51 +08:00
}
}