Add Telegram bot integration and enhance user management features
- 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.
This commit is contained in:
@@ -2,9 +2,11 @@ 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;
|
||||
|
||||
@@ -12,12 +14,20 @@ 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>
|
||||
|
||||
Reference in New Issue
Block a user