协议提交

This commit is contained in:
2025-08-11 16:29:23 +08:00
parent 7a93c0f8f1
commit 9b95f48102
14 changed files with 71 additions and 35 deletions

View File

@@ -3,24 +3,26 @@ using MongoDB.Bson.Serialization.Attributes;
namespace NB.Chat;
/// <summary>
/// 聊天频道实体
/// </summary>
public class ChatChannel : Entity
{
[BsonElement("type")] public uint ChannelType;
/// <summary>
/// 频道Id
/// 频道类型 0.地图 1.公开 2.私密
/// </summary>
[BsonElement("cid")] public long ChannelId;
[BsonElement("type")] public uint ChannelType;
/// <summary>
/// 频道名称
/// </summary>
[BsonElement("name")] public string Name = "";
/// <summary>
/// 频道密码
/// </summary>
[BsonElement("pass")] public string Password = "";
/// <summary>
/// 创建者
/// </summary>
@@ -32,9 +34,12 @@ public class ChatChannel : Entity
[BsonElement("ct")] public long CreateTime;
/// <summary>
/// 频道地区
/// 频道地区 0全球 非0地区 如果是地图频道则表示地图位置
/// </summary>
[BsonElement("region")] public int Region;
/// <summary>
/// 当前频道在线人数
/// </summary>
[BsonElement("ids")] public readonly HashSet<long> Units = new HashSet<long>();
}