- Introduced Telegram.Bot package for bot functionality. - Updated user management to include Telegram linking and blocking features. - Enhanced activation request handling with notifications via Telegram. - Added new database entities for Telegram link tokens and login requests. - Implemented traffic synchronization for client stats in the XuiPanelGateway. - Updated application structure to support new test projects and improved dependency injection for Telegram services.
38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using PnvPanel.Domain.Activation;
|
|
using PnvPanel.Domain.Apps;
|
|
using PnvPanel.Domain.Audit;
|
|
using PnvPanel.Domain.Configs;
|
|
using PnvPanel.Domain.Inbounds;
|
|
using PnvPanel.Domain.Nodes;
|
|
using PnvPanel.Domain.Telegram;
|
|
|
|
namespace PnvPanel.Application.Common.Interfaces;
|
|
|
|
public interface IAppDbContext
|
|
{
|
|
DbSet<ActivationRequest> ActivationRequests { get; }
|
|
|
|
DbSet<AuditLog> AuditLogs { get; }
|
|
|
|
DbSet<TelegramLinkToken> TelegramLinkTokens { get; }
|
|
|
|
DbSet<TelegramLoginRequest> TelegramLoginRequests { get; }
|
|
|
|
DbSet<Node> Nodes { get; }
|
|
|
|
DbSet<Inbound> Inbounds { get; }
|
|
|
|
DbSet<VpnConfig> VpnConfigs { get; }
|
|
|
|
DbSet<TrafficSample> TrafficSamples { get; }
|
|
|
|
DbSet<ClientApp> ClientApps { get; }
|
|
|
|
/// <summary>Нужен для advisory-lock при проверке квоты конфигов (см. CreateVpnConfigCommandHandler).</summary>
|
|
DatabaseFacade Database { get; }
|
|
|
|
Task<int> SaveChangesAsync(CancellationToken cancellationToken);
|
|
}
|