@@ -12,6 +12,7 @@ using IRaCIS.Core.Domain;
|
||||
using IRaCIS.Core.Domain.Models;
|
||||
using IRaCIS.Core.Domain.Share;
|
||||
using IRaCIS.Core.Infra.EFCore;
|
||||
using IRaCIS.Core.Infra.EFCore.Context;
|
||||
using IRaCIS.Core.Infrastructure;
|
||||
using IRaCIS.Core.Infrastructure.Encryption;
|
||||
using IRaCIS.Core.Infrastructure.NewtonsoftJson;
|
||||
@@ -75,6 +76,25 @@ namespace IRaCIS.Core.Application.Service
|
||||
{
|
||||
public static int IntValue = 100;
|
||||
|
||||
|
||||
[AllowAnonymous]
|
||||
|
||||
public async Task<IResponseOutput> CreatNewDBStruct()
|
||||
{
|
||||
var factory = new IRaCISDBContextFactory();
|
||||
|
||||
using var db = factory.CreateDbContext(Array.Empty<string>());
|
||||
|
||||
// ⚠️ 临时用,确认是测试库
|
||||
// db.Database.EnsureDeleted();
|
||||
|
||||
db.Database.EnsureCreated();
|
||||
|
||||
Console.WriteLine("数据库结构已创建完成");
|
||||
|
||||
return ResponseOutput.Ok();
|
||||
}
|
||||
|
||||
[AllowAnonymous]
|
||||
public async Task<IResponseOutput> TestOSS(StorageClass storageClass)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user