feat:完善角色授权用户功能
This commit is contained in:
@@ -34,11 +34,5 @@ public class Startup : AppStartup
|
||||
|
||||
}
|
||||
|
||||
public async void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
||||
{
|
||||
app.UseSqlsugarCodeFirstServer();
|
||||
await app.UseDataSeedServer();
|
||||
app.UseDataFiterServer();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
using Furion;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Newtonsoft.Json.Schema;
|
||||
using Yi.Framework.Infrastructure.Data;
|
||||
using Yi.Framework.Infrastructure.Data.DataSeeds;
|
||||
using Yi.Framework.Infrastructure.Sqlsugar;
|
||||
|
||||
namespace Yi.Furion.Sqlsugar.Core;
|
||||
@@ -11,4 +15,11 @@ public class Startup : AppStartup
|
||||
{
|
||||
services.AddDbSqlsugarContextServer<YiDbContext>();
|
||||
}
|
||||
public async void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
||||
{
|
||||
app.UseDataFiterServer();
|
||||
app.UseSqlsugarCodeFirstServer();
|
||||
await app.UseDataSeedServer();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -69,10 +69,19 @@ public class Startup : AppStartup
|
||||
app.UseAuthorization();
|
||||
|
||||
app.UseInject(string.Empty);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
[AppStartup(-1)]
|
||||
public class EndStartup : AppStartup
|
||||
{
|
||||
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
||||
{
|
||||
app.UseEndpoints(endpoints =>
|
||||
{
|
||||
endpoints.MapHub<OnlineUserHub>("/api/hub/main");
|
||||
endpoints.MapControllers();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user