添加项目文件。

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,42 @@
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using MongoRepository;
using MongoRepository.Attributes;
using MongoRepository.Config;
namespace CustomerService.Domain.Entity;
[BsonCollection("conversation", ServiceDatabases.Customer)]
[BsonIgnoreExtraElements]
public class ConversationEntity : MongoBaseEntity
{
[BsonElement("userid")]
public string? UserId { get; set; }
[BsonElement("username")]
public string? UserName { get; set; }
[BsonElement("useravatar")]
public string? UserAvatar { get; set; }
[BsonElement("customerid")]
public string? CustomerId { get; set; }
[BsonElement("customername")]
public string? CustomerName { get; set; }
[BsonElement("customeravatar")]
public string? CustomerAvatar { get; set; }
[BsonElement("status")]
public int Status { get; set; }
[BsonElement("createtime")]
public DateTime CreateTime { get; set; }
[BsonElement("endtime")]
public DateTime? EndTime { get; set; }
[BsonElement("lastreadtime")]
public DateTime? LastReadTime { get; set; }
}