feat: 完成个个模型ai统计
This commit is contained in:
@@ -8,8 +8,6 @@ public class MessageDto : FullAuditedEntityDto<Guid>
|
||||
public Guid SessionId { get; set; }
|
||||
public string Content { get; set; }
|
||||
public string Role { get; set; }
|
||||
public decimal DeductCost { get; set; }
|
||||
public decimal TotalTokens { get; set; }
|
||||
public string ModelId { get; set; }
|
||||
public string Remark { get; set; }
|
||||
}
|
||||
@@ -39,8 +39,6 @@ public class MessageAggregateRoot : FullAuditedAggregateRoot<Guid>
|
||||
public string Content { get; set; }
|
||||
|
||||
public string Role { get; set; }
|
||||
public decimal DeductCost { get; set; }
|
||||
public decimal TotalTokens { get; set; }
|
||||
public string ModelId { get; set; }
|
||||
public string? Remark { get; set; }
|
||||
|
||||
|
||||
@@ -7,6 +7,11 @@ public class UsageStatisticsManager : DomainService
|
||||
{
|
||||
private readonly ISqlSugarRepository<UsageStatisticsAggregateRoot> _repository;
|
||||
|
||||
public UsageStatisticsManager(ISqlSugarRepository<UsageStatisticsAggregateRoot> repository)
|
||||
{
|
||||
_repository = repository;
|
||||
}
|
||||
|
||||
private IDistributedLockProvider DistributedLock =>
|
||||
LazyServiceProvider.LazyGetRequiredService<IDistributedLockProvider>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user