Convert Accounts module to MediatR commands/queries

Replaces IAccountService/AccountService with one command/query per
operation, following the pattern set in the Auth module.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-14 08:38:31 +07:00
co-authored by Claude Sonnet 5
parent ae03208f79
commit 50faf9052c
9 changed files with 183 additions and 134 deletions
@@ -1,7 +1,6 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Mws.Application.Accounts;
using Mws.Application.Auth;
using Mws.Application.Common;
using Mws.Application.Documents;
@@ -40,7 +39,6 @@ public static class DependencyInjection
services.AddSingleton(jwtOptions);
services.AddScoped<ITokenService, JwtTokenService>();
services.AddScoped<IAccountService, AccountService>();
services.AddScoped<IPermissionService, PermissionService>();
services.AddScoped<IRoleService, RoleService>();
services.AddScoped<IProjectService, ProjectService>();