feat: 优化整体aihub架构

This commit is contained in:
ccnetcore
2025-07-05 15:11:56 +08:00
parent 0af2f867fc
commit 52961b459e
6 changed files with 272 additions and 411 deletions

View File

@@ -0,0 +1,12 @@
using Microsoft.AspNetCore.Http;
using Volo.Abp.Users;
namespace Yi.Framework.AiHub.Domain.Extensions;
public static class CurrentExtensions
{
public static bool IsAiVip(this ICurrentUser currentUser)
{
return currentUser.Roles.Contains("YiXinAi-Vip") || currentUser.UserName == "cc";
}
}