Browse Source

refactor: 更新仓储接口引用路径,适配新的目录结构

refactor/repository-structure
hyh 2 months ago
parent
commit
d161bccab2
  1. 2
      src/CellularManagement.Application/Features/Auth/Commands/AuthenticateUser/AuthenticateUserCommandHandler.cs
  2. 2
      src/CellularManagement.Application/Features/Auth/Commands/BaseLoginCommandHandler.cs
  3. 2
      src/CellularManagement.Application/Features/Auth/Commands/EmailLogin/EmailLoginCommandHandler.cs
  4. 2
      src/CellularManagement.Application/Features/Auth/Commands/Logout/LogoutCommandHandler.cs
  5. 1
      src/CellularManagement.Application/Features/Auth/Commands/RefreshToken/RefreshTokenCommandHandler.cs
  6. 1
      src/CellularManagement.Application/Features/Auth/Commands/RegisterUser/RegisterUserCommandHandler.cs
  7. 1
      src/CellularManagement.Application/Features/Devices/Commands/CreateDevice/CreateDeviceCommandHandler.cs
  8. 1
      src/CellularManagement.Application/Features/Devices/Commands/DeleteDevice/DeleteDeviceCommandHandler.cs
  9. 1
      src/CellularManagement.Application/Features/Devices/Commands/UpdateDevice/UpdateDeviceCommandHandler.cs
  10. 1
      src/CellularManagement.Application/Features/Devices/Queries/GetDeviceById/GetDeviceByIdQueryHandler.cs
  11. 1
      src/CellularManagement.Application/Features/Devices/Queries/GetDevices/GetDevicesQueryHandler.cs
  12. 1
      src/CellularManagement.Application/Features/Permissions/Commands/CreatePermission/CreatePermissionCommandHandler.cs
  13. 1
      src/CellularManagement.Application/Features/RolePermissions/Commands/AddRolePermissions/AddRolePermissionsCommandHandler.cs
  14. 1
      src/CellularManagement.Application/Features/RolePermissions/Commands/DeleteRolePermissions/DeleteRolePermissionsCommandHandler.cs
  15. 1
      src/CellularManagement.Application/Features/RolePermissions/Queries/GetRolePermissions/GetRolePermissionsQueryHandler.cs
  16. 1
      src/CellularManagement.Application/Features/Users/Commands/CreateUser/CreateUserCommandHandler.cs
  17. 1
      src/CellularManagement.Application/Features/Users/Commands/DeleteUser/DeleteUserCommandHandler.cs
  18. 1
      src/CellularManagement.Application/Features/Users/Commands/UpdateUser/UpdateUserCommandHandler.cs
  19. 1
      src/CellularManagement.Infrastructure/Context/UnitOfWork.cs
  20. 2
      src/CellularManagement.Infrastructure/DependencyInjection.cs
  21. 1
      src/CellularManagement.Infrastructure/Repositories/Base/BaseRepository.cs
  22. 1
      src/CellularManagement.Infrastructure/Repositories/CQRS/CommandRepository.cs
  23. 1
      src/CellularManagement.Infrastructure/Repositories/CQRS/QueryRepository.cs
  24. 2
      src/CellularManagement.Infrastructure/Repositories/Device/CellularDeviceRepository.cs
  25. 2
      src/CellularManagement.Infrastructure/Repositories/Identity/LoginLogRepository.cs
  26. 2
      src/CellularManagement.Infrastructure/Repositories/Identity/PermissionRepository.cs
  27. 2
      src/CellularManagement.Infrastructure/Repositories/Identity/RolePermissionRepository.cs
  28. 3
      src/CellularManagement.Infrastructure/Repositories/Identity/UserRoleRepository.cs
  29. 1
      src/CellularManagement.Infrastructure/Repositories/UserRoleServiceRepository.cs
  30. 1
      src/CellularManagement.Infrastructure/Services/UserRegistrationService.cs

2
src/CellularManagement.Application/Features/Auth/Commands/AuthenticateUser/AuthenticateUserCommandHandler.cs

@ -16,6 +16,8 @@ using Microsoft.AspNetCore.Http;
using UAParser;
using Microsoft.EntityFrameworkCore;
using CellularManagement.Application.Features.Auth.Models;
using CellularManagement.Domain.Repositories.Identity;
using CellularManagement.Domain.Repositories.Base;
namespace CellularManagement.Application.Features.Auth.Commands.AuthenticateUser;

2
src/CellularManagement.Application/Features/Auth/Commands/BaseLoginCommandHandler.cs

@ -15,6 +15,8 @@ using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
using CellularManagement.Application.Features.Auth.Models;
using CellularManagement.Domain.Entities.Logging;
using CellularManagement.Domain.Repositories.Identity;
using CellularManagement.Domain.Repositories.Base;
namespace CellularManagement.Application.Features.Auth.Commands;

2
src/CellularManagement.Application/Features/Auth/Commands/EmailLogin/EmailLoginCommandHandler.cs

@ -9,6 +9,8 @@ using System.Threading;
using CellularManagement.Domain.Common;
using Microsoft.AspNetCore.Http;
using CellularManagement.Application.Features.Auth.Models;
using CellularManagement.Domain.Repositories.Identity;
using CellularManagement.Domain.Repositories.Base;
namespace CellularManagement.Application.Features.Auth.Commands.EmailLogin;

2
src/CellularManagement.Application/Features/Auth/Commands/Logout/LogoutCommandHandler.cs

@ -11,6 +11,8 @@ using System.Collections.Generic;
using System.Diagnostics;
using CellularManagement.Domain.Entities.Logging;
using Microsoft.AspNetCore.Http;
using CellularManagement.Domain.Repositories.Base;
using CellularManagement.Domain.Repositories.Identity;
namespace CellularManagement.Application.Features.Auth.Commands.Logout;

1
src/CellularManagement.Application/Features/Auth/Commands/RefreshToken/RefreshTokenCommandHandler.cs

@ -12,6 +12,7 @@ using System.Collections.Generic;
using System;
using CellularManagement.Domain.Common;
using CellularManagement.Application.Features.Auth.Models;
using CellularManagement.Domain.Repositories.Identity;
namespace CellularManagement.Application.Features.Auth.Commands.RefreshToken;

1
src/CellularManagement.Application/Features/Auth/Commands/RegisterUser/RegisterUserCommandHandler.cs

@ -9,6 +9,7 @@ using CellularManagement.Domain.Exceptions;
using System.Threading.Tasks;
using System.Threading;
using System;
using CellularManagement.Domain.Repositories.Base;
namespace CellularManagement.Application.Features.Auth.Commands.RegisterUser;

1
src/CellularManagement.Application/Features/Devices/Commands/CreateDevice/CreateDeviceCommandHandler.cs

@ -3,6 +3,7 @@ using Microsoft.Extensions.Logging;
using CellularManagement.Domain.Common;
using CellularManagement.Domain.Entities.Device;
using CellularManagement.Domain.Repositories;
using CellularManagement.Domain.Repositories.Device;
namespace CellularManagement.Application.Features.Devices.Commands.CreateDevice;

1
src/CellularManagement.Application/Features/Devices/Commands/DeleteDevice/DeleteDeviceCommandHandler.cs

@ -2,6 +2,7 @@ using MediatR;
using Microsoft.Extensions.Logging;
using CellularManagement.Domain.Common;
using CellularManagement.Domain.Repositories;
using CellularManagement.Domain.Repositories.Device;
namespace CellularManagement.Application.Features.Devices.Commands.DeleteDevice;

1
src/CellularManagement.Application/Features/Devices/Commands/UpdateDevice/UpdateDeviceCommandHandler.cs

@ -4,6 +4,7 @@ using CellularManagement.Domain.Common;
using CellularManagement.Domain.Entities.Device;
using CellularManagement.Domain.Repositories;
using CellularManagement.Application.Features.Devices.Commands.UpdateDevice;
using CellularManagement.Domain.Repositories.Device;
namespace CellularManagement.Application.Features.Devices.Commands.UpdateDevice;

1
src/CellularManagement.Application/Features/Devices/Queries/GetDeviceById/GetDeviceByIdQueryHandler.cs

@ -1,6 +1,7 @@
using CellularManagement.Domain.Common;
using CellularManagement.Domain.Entities.Device;
using CellularManagement.Domain.Repositories;
using CellularManagement.Domain.Repositories.Device;
using MediatR;
using Microsoft.Extensions.Logging;

1
src/CellularManagement.Application/Features/Devices/Queries/GetDevices/GetDevicesQueryHandler.cs

@ -6,6 +6,7 @@ using CellularManagement.Domain.Repositories;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using CellularManagement.Application.Features.Devices.Queries.GetDeviceById;
using CellularManagement.Domain.Repositories.Device;
namespace CellularManagement.Application.Features.Devices.Queries.GetDevices;

1
src/CellularManagement.Application/Features/Permissions/Commands/CreatePermission/CreatePermissionCommandHandler.cs

@ -7,6 +7,7 @@ using CellularManagement.Domain.Entities;
using CellularManagement.Domain.Repositories;
using CellularManagement.Domain.Common;
using System;
using CellularManagement.Domain.Repositories.Identity;
namespace CellularManagement.Application.Features.Permissions.Commands.CreatePermission;

1
src/CellularManagement.Application/Features/RolePermissions/Commands/AddRolePermissions/AddRolePermissionsCommandHandler.cs

@ -6,6 +6,7 @@ using System.Threading.Tasks;
using System.Threading;
using System;
using System.Linq;
using CellularManagement.Domain.Repositories.Identity;
namespace CellularManagement.Application.Features.RolePermissions.Commands.AddRolePermissions;

1
src/CellularManagement.Application/Features/RolePermissions/Commands/DeleteRolePermissions/DeleteRolePermissionsCommandHandler.cs

@ -6,6 +6,7 @@ using System.Threading.Tasks;
using System.Threading;
using System.Linq;
using System;
using CellularManagement.Domain.Repositories.Identity;
namespace CellularManagement.Application.Features.RolePermissions.Commands.DeleteRolePermissions;

1
src/CellularManagement.Application/Features/RolePermissions/Queries/GetRolePermissions/GetRolePermissionsQueryHandler.cs

@ -6,6 +6,7 @@ using System.Threading.Tasks;
using System.Threading;
using System.Linq;
using System;
using CellularManagement.Domain.Repositories.Identity;
namespace CellularManagement.Application.Features.RolePermissions.Queries.GetRolePermissions;

1
src/CellularManagement.Application/Features/Users/Commands/CreateUser/CreateUserCommandHandler.cs

@ -8,6 +8,7 @@ using System.Threading.Tasks;
using System.Threading;
using System;
using System.Linq;
using CellularManagement.Domain.Repositories.Base;
namespace CellularManagement.Application.Features.Users.Commands.CreateUser;

1
src/CellularManagement.Application/Features/Users/Commands/DeleteUser/DeleteUserCommandHandler.cs

@ -8,6 +8,7 @@ using System.Threading.Tasks;
using System.Threading;
using System.Linq;
using System;
using CellularManagement.Domain.Repositories.Base;
namespace CellularManagement.Application.Features.Users.Commands.DeleteUser;

1
src/CellularManagement.Application/Features/Users/Commands/UpdateUser/UpdateUserCommandHandler.cs

@ -8,6 +8,7 @@ using System.Threading.Tasks;
using System.Threading;
using System.Linq;
using System;
using CellularManagement.Domain.Repositories.Base;
namespace CellularManagement.Application.Features.Users.Commands.UpdateUser;

1
src/CellularManagement.Infrastructure/Context/UnitOfWork.cs

@ -4,6 +4,7 @@ using Microsoft.EntityFrameworkCore;
using CellularManagement.Domain.Repositories;
using Microsoft.Extensions.Logging;
using CellularManagement.Domain.Abstractions;
using CellularManagement.Domain.Repositories.Base;
namespace CellularManagement.Infrastructure.Context;

2
src/CellularManagement.Infrastructure/DependencyInjection.cs

@ -17,6 +17,8 @@ using CellularManagement.Domain.Options;
using CellularManagement.Infrastructure.Repositories.CQRS;
using CellularManagement.Infrastructure.Repositories.Identity;
using CellularManagement.Infrastructure.Configurations.Common;
using CellularManagement.Domain.Repositories.Base;
using CellularManagement.Domain.Repositories.Identity;
namespace CellularManagement.Infrastructure;

1
src/CellularManagement.Infrastructure/Repositories/Base/BaseRepository.cs

@ -1,5 +1,6 @@
using Microsoft.Extensions.Logging;
using CellularManagement.Domain.Repositories;
using CellularManagement.Domain.Repositories.Base;
namespace CellularManagement.Infrastructure.Repositories.Base;

1
src/CellularManagement.Infrastructure/Repositories/CQRS/CommandRepository.cs

@ -3,6 +3,7 @@ using CellularManagement.Domain.Repositories;
using CellularManagement.Infrastructure.Context;
using System.Linq.Expressions;
using Microsoft.Extensions.Logging;
using CellularManagement.Domain.Repositories.Base;
namespace CellularManagement.Infrastructure.Repositories.CQRS;

1
src/CellularManagement.Infrastructure/Repositories/CQRS/QueryRepository.cs

@ -3,6 +3,7 @@ using System.Linq.Expressions;
using CellularManagement.Domain.Repositories;
using CellularManagement.Infrastructure.Context;
using Microsoft.Extensions.Logging;
using CellularManagement.Domain.Repositories.Base;
namespace CellularManagement.Infrastructure.Repositories.CQRS;

2
src/CellularManagement.Infrastructure/Repositories/Device/CellularDeviceRepository.cs

@ -8,6 +8,8 @@ using CellularManagement.Domain.Entities;
using CellularManagement.Domain.Repositories;
using CellularManagement.Infrastructure.Repositories.Base;
using CellularManagement.Domain.Entities.Device;
using CellularManagement.Domain.Repositories.Base;
using CellularManagement.Domain.Repositories.Device;
namespace CellularManagement.Infrastructure.Repositories.Device;

2
src/CellularManagement.Infrastructure/Repositories/Identity/LoginLogRepository.cs

@ -9,6 +9,8 @@ using CellularManagement.Domain.Models;
using CellularManagement.Domain.Repositories;
using CellularManagement.Infrastructure.Repositories.Base;
using CellularManagement.Domain.Entities.Logging;
using CellularManagement.Domain.Repositories.Base;
using CellularManagement.Domain.Repositories.Identity;
namespace CellularManagement.Infrastructure.Repositories.Identity;

2
src/CellularManagement.Infrastructure/Repositories/Identity/PermissionRepository.cs

@ -6,6 +6,8 @@ using Microsoft.Extensions.Logging;
using CellularManagement.Domain.Entities;
using CellularManagement.Domain.Repositories;
using CellularManagement.Infrastructure.Repositories.Base;
using CellularManagement.Domain.Repositories.Base;
using CellularManagement.Domain.Repositories.Identity;
namespace CellularManagement.Infrastructure.Repositories.Identity;

2
src/CellularManagement.Infrastructure/Repositories/Identity/RolePermissionRepository.cs

@ -6,6 +6,8 @@ using Microsoft.Extensions.Logging;
using CellularManagement.Domain.Entities;
using CellularManagement.Domain.Repositories;
using CellularManagement.Infrastructure.Repositories.Base;
using CellularManagement.Domain.Repositories.Base;
using CellularManagement.Domain.Repositories.Identity;
namespace CellularManagement.Infrastructure.Repositories.Identity;

3
src/CellularManagement.Infrastructure/Repositories/Identity/UserRoleRepository.cs

@ -5,7 +5,8 @@ using Microsoft.Extensions.Logging;
using CellularManagement.Domain.Entities;
using CellularManagement.Domain.Repositories;
using CellularManagement.Infrastructure.Repositories.Base;
using CellularManagement.Domain.Repositories.Base;
using CellularManagement.Domain.Repositories.Identity;
namespace CellularManagement.Infrastructure.Repositories.Identity;
/// <summary>

1
src/CellularManagement.Infrastructure/Repositories/UserRoleServiceRepository.cs

@ -7,6 +7,7 @@ using Microsoft.Extensions.Logging;
using CellularManagement.Domain.Entities;
using CellularManagement.Domain.Repositories;
using CellularManagement.Infrastructure.Context;
using CellularManagement.Domain.Repositories.Identity;
namespace CellularManagement.Infrastructure.Repositories;

1
src/CellularManagement.Infrastructure/Services/UserRegistrationService.cs

@ -9,6 +9,7 @@ using System.Linq;
using Microsoft.EntityFrameworkCore;
using CellularManagement.Domain.Repositories;
using System.Threading;
using CellularManagement.Domain.Repositories.Identity;
namespace CellularManagement.Infrastructure.Services;

Loading…
Cancel
Save