添加项目文件。

This commit is contained in:
2026-10-12 16:22:04 +08:00
parent 7c68a0ca0a
commit aad11be43d
1000 changed files with 120807 additions and 0 deletions
@@ -0,0 +1,36 @@
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using MongoRepository;
using MongoRepository.Attributes;
using MongoRepository.Config;
namespace CustomerService.Domain.Entity;
[BsonCollection("message", ServiceDatabases.Customer)]
[BsonIgnoreExtraElements]
public class MessageEntity : MongoBaseEntity
{
[BsonElement("conversationid")]
public string? ConversationId { get; set; }
[BsonElement("sendertype")]
public int SenderType { get; set; }
[BsonElement("senderid")]
public string? SenderId { get; set; }
[BsonElement("sendername")]
public string? SenderName { get; set; }
[BsonElement("senderavatar")]
public string? SenderAvatar { get; set; }
[BsonElement("contenttype")]
public int ContentType { get; set; }
[BsonElement("content")]
public string? Content { get; set; }
[BsonElement("createtime")]
public DateTime CreateTime { get; set; }
}