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.AddCacheManager();
services.AddSingleton<INavigation, NavigationService>();
services.AddSingleton<IDict, DictService>();
services.AddSingleton<IUser, UserService>();
services.AddSingleton<IRole, RoleService>();
services.AddSingleton<IGroup, GroupService>();
services.AddSingleton<ILogin, LoginService>();
return services;
services.AddSingleton<INavigation, NavigationService>();
services.AddSingleton<IDict, DictService>();
services.AddSingleton<IUser, UserService>();
services.AddSingleton<IRole, RoleService>();
services.AddSingleton<IGroup, GroupService>();
services.AddSingleton<ILogin, LoginService>();
return services;
}
} }
}