using System; using WingServerCommon.Log; using WingServerCommon.Interfaces.OpLog; namespace WingServerCommon.Interfaces.Cache { public interface IDistributedServerInfosManager : IBaseCacheManager { } public class DistributedServerInfosManager : CacheManager, IDistributedServerInfosManager { public DistributedServerInfosManager() : base() { } } public class CacheDistributedServerInfosDTO : ICacheObject { /// /// 编码 /// public string Code { get; set; } /// /// 是否主服务器 /// /// public bool IsMaster { get; set; } /// /// 服务器名称 /// public string Name { get; set; } /// /// 描述 /// /// public string Description { get; set; } /// /// 启用 /// /// public bool Enable { get; set; } /// /// 功能区分 官方或私有服务器 /// /// public int ServerType { get; set; } /// /// 云服务地址 /// public string ServerUrl { get; set; } /// /// 纬度 /// /// public string Lat { get; set; } /// /// 经度 /// /// public string Lng { get; set; } /// /// 指定客户端IP访问此服务器 /// /// public List AssignClientIPList { get; set; } /// /// 内网地址含端口 /// /// public string LANHost { get; set; } } /// /// IP 字段信息 /// public class CacheIPAddressInfoDTO { /// /// 起始IP段 /// /// public string StartIp { get; set; } /// /// 结束IP段 /// /// public string EndIp { get; set; } /// /// 起始IP段 Long类型 /// /// public long LongStartIP { get; set; } /// /// 结束IP段 Long类型 /// /// public long LongEndIP { get; set; } } }