2025-06-21 13:02:38 +08:00
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
2026-01-07 22:25:54 +08:00
|
|
|
|
using Yi.Framework.AiHub.Domain.Shared.Enums;
|
2025-06-21 13:02:38 +08:00
|
|
|
|
|
2025-06-27 22:13:26 +08:00
|
|
|
|
namespace Yi.Framework.AiHub.Domain.Entities.Chat;
|
2025-06-21 13:02:38 +08:00
|
|
|
|
|
|
|
|
|
|
[SugarTable("Ai_Session")]
|
|
|
|
|
|
[SugarIndex($"index_{{table}}_{nameof(UserId)}",$"{nameof(UserId)}", OrderByType.Asc)]
|
|
|
|
|
|
public class SessionAggregateRoot : FullAuditedAggregateRoot<Guid>
|
|
|
|
|
|
{
|
|
|
|
|
|
public Guid UserId { get; set; }
|
|
|
|
|
|
public string SessionTitle { get; set; }
|
2026-01-07 22:25:54 +08:00
|
|
|
|
|
2025-06-29 12:21:28 +08:00
|
|
|
|
[SugarColumn(ColumnDataType = StaticConfig.CodeFirst_BigString)]
|
2025-06-21 13:02:38 +08:00
|
|
|
|
public string SessionContent { get; set; }
|
2025-06-22 19:09:13 +08:00
|
|
|
|
public string? Remark { get; set; }
|
2026-01-07 22:25:54 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 会话类型:0-普通聊天,1-Agent智能体
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public SessionTypeEnum SessionType { get; set; } = SessionTypeEnum.Chat;
|
2025-06-21 13:02:38 +08:00
|
|
|
|
}
|