feat: 增加缓存服务

This commit is contained in:
zhangpeihang 2022-01-26 15:36:35 +08:00
parent 0df75c019f
commit b25d6df9a7
1 changed files with 11 additions and 9 deletions

View File

@ -44,13 +44,15 @@ public static class ServicesExtensions
{ {
// 增加数据服务 // 增加数据服务
services.AddSingleton(typeof(IDataService<>), typeof(DefaultDataService<>)); services.AddSingleton(typeof(IDataService<>), typeof(DefaultDataService<>));
// 增加缓存服务
services.AddSingleton<INavigation, NavigationService>(); services.AddCacheManager();
services.AddSingleton<IDict, DictService>(); services.AddSingleton<INavigation, NavigationService>();
services.AddSingleton<IUser, UserService>(); services.AddSingleton<IDict, DictService>();
services.AddSingleton<IRole, RoleService>(); services.AddSingleton<IUser, UserService>();
services.AddSingleton<IGroup, GroupService>(); services.AddSingleton<IRole, RoleService>();
services.AddSingleton<ILogin, LoginService>(); services.AddSingleton<IGroup, GroupService>();
return services; services.AddSingleton<ILogin, LoginService>();
} return services;
} }
}