UserServiceRegionHelper.cs 908 B

1234567891011121314151617181920212223242526
  1. using Microsoft.Extensions.DependencyInjection;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using XYY.Data.Standard;
  8. namespace XYY.Service.Standard.UserService
  9. {
  10. public static class UserServiceRegionHelper
  11. {
  12. /// <summary>
  13. /// 注入用户信息数据操作方法
  14. /// </summary>
  15. /// <param name="services"></param>
  16. public static void RegionUserService(this IServiceCollection services)
  17. {
  18. services.AddScoped<IUserInfoRepository, UserInfoRepository>();
  19. services.AddScoped<IUserApiRepository, UserApiRepository>();
  20. services.AddScoped<IUserRoleRepository, UserRoleRepository>();
  21. services.AddScoped<IUserPermissionRepository, UserPermissionRepository>();
  22. services.AddScoped<IUserService, UserService>();
  23. }
  24. }
  25. }