fix: 完善修复种子数据
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"Yi.BBS.Web": {
|
||||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": false,
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "swagger",
|
||||
"applicationUrl": "http://localhost:19003",
|
||||
"environmentVariables": {
|
||||
|
||||
@@ -17,8 +17,7 @@ namespace Yi.BBS.Application.GlobalSetting
|
||||
public class TempService : ApplicationService, IAutoApiService
|
||||
{
|
||||
|
||||
public TempService(IDataSeed<UserEntity> dataSeed) {
|
||||
dataSeed.InvokerAsync().Wait();
|
||||
public TempService() {
|
||||
}
|
||||
///// <summary>
|
||||
///// 登录
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"Yi.BBS.Web": {
|
||||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": false,
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "swagger",
|
||||
"applicationUrl": "http://localhost:19003",
|
||||
"environmentVariables": {
|
||||
|
||||
@@ -12,8 +12,8 @@ using Yi.RBAC.Domain.Shared.Identity.EnumClasses;
|
||||
namespace Yi.RBAC.Domain.DataSeeds
|
||||
{
|
||||
//支持依赖注入执行
|
||||
//[AppService(typeof(IDataSeed<>))]
|
||||
|
||||
[AppService(typeof(IDataSeed<UserEntity>))]
|
||||
|
||||
//支持启动时执行
|
||||
[AppService(typeof(IDataSeed))]
|
||||
public class UserDataSeed : AbstractDataSeed<UserEntity>
|
||||
|
||||
Reference in New Issue
Block a user