feat: introduce Shared.Contracts for account management and refactor related services

This commit is contained in:
2025-12-13 13:48:05 +03:30
parent c059066b13
commit 9469a5f76e
50 changed files with 520 additions and 1622 deletions

View File

@@ -6,21 +6,14 @@ using GozareshgirProgramManager.Application._Common.Interfaces;
using GozareshgirProgramManager.Domain._Common;
using GozareshgirProgramManager.Domain.CustomerAgg.Repositories;
using GozareshgirProgramManager.Domain.ProjectAgg.Repositories;
using GozareshgirProgramManager.Domain.RoleAgg.Repositories;
using GozareshgirProgramManager.Domain.SalaryPaymentSettingAgg.Repositories;
using GozareshgirProgramManager.Domain.SkillAgg.Repositories;
using GozareshgirProgramManager.Domain.UserAgg.Repositories;
using GozareshgirProgramManager.Infrastructure.Persistence;
using GozareshgirProgramManager.Infrastructure.Persistence.Context;
using GozareshgirProgramManager.Infrastructure.Persistence.Repositories;
using GozareshgirProgramManager.Infrastructure.Services.Authentication;
using MediatR;
using FluentValidation;
using GozareshgirProgramManager.Domain.CheckoutAgg.Repositories;
using GozareshgirProgramManager.Domain.RoleAgg.Repositories;
using GozareshgirProgramManager.Domain.SalaryPaymentSettingAgg.Repositories;
using GozareshgirProgramManager.Domain.SkillAgg.Repositories;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
@@ -55,12 +48,7 @@ public static class DependencyInjection
// Unit of Work
services.AddScoped<IUnitOfWork, UnitOfWork>();
//Users
services.AddScoped<IUserRepository, UserRepository>();
//Roles
services.AddScoped<IRoleRepository, RoleRepository>();
//WorkingHours
services.AddScoped<ISalaryPaymentSettingRepository, SalaryPaymentSettingRepository>();
@@ -83,8 +71,6 @@ public static class DependencyInjection
services.AddScoped<IProjectSectionRepository, ProjectSectionRepository>();
services.AddScoped<ISkillRepository, SkillRepository>();
services.AddScoped<IUserRefreshTokenRepository, UserRefreshTokenRepository>();
// JWT Settings
services.Configure<JwtSettings>(configuration.GetSection("JwtSettings"));