From 5b4c0d183fc17cd54741eca61ddf4f0bdb7a4cd0 Mon Sep 17 00:00:00 2001 From: hamid Date: Tue, 16 Jun 2026 01:46:53 +0330 Subject: [PATCH] server cleanup --- AGENTS.md | 4 +- client/.env.sample | 2 +- server/.gitignore | 2 +- server/AGENTS.md | 48 ++++++++--------- server/{CleanArcTemplate.sln => Baya.sln} | 24 ++++----- server/Dockerfile | 34 ++++++------ server/README.md | 36 ++++++------- server/docker-compose.yml | 6 +-- .../Baya.Web.Api.csproj} | 6 +-- .../V1/Admin/AdminManagerController.cs | 12 ++--- .../V1/Admin/OrderManagementController.cs | 10 ++-- .../V1/Admin/RoleManagerController.cs | 16 +++--- .../V1/Admin/UserManagementController.cs | 10 ++-- .../Controllers/V1/Order/OrderController.cs | 10 ++-- .../V1/UserManagement/UserController.cs | 20 +++---- .../Program.cs | 36 ++++++------- .../Properties/launchSettings.json | 0 .../appsettings.Development.json | 2 +- .../appsettings.json | 4 +- .../ProducesOkApiResponseTypeAttribute.cs | 4 +- .../BaseController/BaseController.cs | 8 +-- .../Baya.WebFramework.csproj} | 8 +-- .../BadRequestResultEndpointFilter.cs | 4 +- .../ModelStateValidationEndpointFilter.cs | 2 +- .../NotFoundResultEndpointFilter.cs | 4 +- .../EndpointFilters/OkResultEndpointFilter.cs | 4 +- .../Filters/ApiResultFilterAttribute.cs | 4 +- .../BadRequestResultFilterAttribute.cs | 6 +-- .../Filters/ContentResultFilterAttribute.cs | 4 +- .../Filters/ModelStateValidationAttribute.cs | 6 +-- .../Filters/NotFoundResultAttribute.cs | 4 +- .../Filters/OkResultAttribute.cs | 4 +- .../Filters/ServerErrorResult.cs | 4 +- .../Middlewares/ExceptionHandler.cs | 6 +-- .../ServiceCollectionExtension.cs | 2 +- .../Swagger/ApiVersionDocumentProcessor.cs | 4 +- .../Swagger/ApplySummariesOperationFilter.cs | 2 +- .../CustomTokenRequiredOperationFilter.cs | 2 +- ...quireTokenWithoutAuthorizationAttribute.cs | 2 +- .../Swagger/SwaggerConfigurationExtensions.cs | 2 +- .../Baya.Web.Plugins.Grpc.csproj} | 2 +- .../GrpcPluginStartup.cs | 4 +- .../ProtoModels/OrderGrpcServiceModels.proto | 2 +- .../ProtoModels/UserGrpcServiceModels.proto | 2 +- .../Services/OrderGrpcServices.cs | 8 +-- .../Services/UserGrpcServices.cs | 8 +-- .../Baya.Application.csproj} | 2 +- .../Common/LoggingBehavior.cs | 4 +- .../Common/MetricsBehaviour.cs | 2 +- .../Common/ValidateCommandBehavior.cs | 4 +- .../Contracts/IJwtService.cs | 6 +-- .../Contracts/Identity/IAppUserManager.cs | 4 +- .../Contracts/Identity/IRoleManagerService.cs | 6 +-- .../Contracts/Persistence/IOrderRepository.cs | 4 +- .../Contracts/Persistence/IUnitOfWork.cs | 2 +- .../IUserRefreshTokenRepository.cs | 4 +- .../AddAdminCommand.Handler.cs | 10 ++-- .../AddAdminCommand/AddAdminCommand.cs | 8 +-- .../GetToken/AdminGetTokenQuery.Handler.cs | 10 ++-- .../GetToken/AdminGetTokenQuery.Result.cs | 5 ++ .../Queries/GetToken/AdminGetTokenQuery.cs | 10 ++-- .../Order/Commands/AddOrderCommand.Handler.cs | 8 +-- .../Order/Commands/AddOrderCommand.cs | 8 +-- .../DeleteUserOrdersCommand.Handler.cs | 6 +-- .../Order/Commands/DeleteUserOrdersCommand.cs | 6 +++ .../UpdateUserOrderCommand.Handler.cs | 6 +-- .../Order/Commands/UpdateUserOrderCommand.cs | 8 +-- .../Queries/GetAllOrders/GetAllOrdersQuery.cs | 6 +++ .../GetAllOrders/GetAllOrdersQueryHandler.cs | 6 +-- .../GetAllOrders/GetAllOrdersQueryResult.cs | 2 +- .../GetUserOrdersQueryHandler.cs | 6 +-- .../GetUserOrders/GetUserOrdersQueryModel.cs | 4 +- .../GetUserOrders/GetUsersQueryResultModel.cs | 3 ++ .../AddRoleCommand/AddRoleCommand.Handler.cs | 8 +-- .../Commands/AddRoleCommand/AddRoleCommand.cs | 8 +-- .../UpdateRoleClaimsCommand.Handler.cs | 8 +-- .../UpdateRoleClaimsCommand.cs | 4 +- .../GetAllRolesQuery.Handler.cs | 6 +-- .../GetAllRolesQuery.Response.cs | 3 ++ .../GetAllRolesQuery/GetAllRolesQuery.cs | 6 +++ .../GetAuthorizableRoutesQuery.Handler.cs | 6 +-- .../GetAuthorizableRoutesQuery.Response.cs | 2 +- .../GetAuthorizableRoutesQuery.cs | 4 +- .../Create/UserCreateCommand.Handler.cs | 8 +-- .../Create/UserCreateCommand.Result.cs | 2 +- .../Commands/Create/UserCreateCommand.cs | 10 ++-- .../RefreshUserTokenCommand.Handler.cs | 8 +-- .../RefreshUserTokenCommand.cs | 10 ++-- .../RequestLogoutCommand.Handler.cs | 6 +-- .../RequestLogout/RequestLogoutCommand.cs | 6 +++ .../GenerateUserTokenQuery.Handler.cs | 12 ++--- .../GenerateUserTokenQuery.cs | 10 ++-- .../Queries/GetUsers/GetUsersQuery.Handler.cs | 8 +-- .../GetUsers/GetUsersQuery.Response.cs | 4 +- .../Users/Queries/GetUsers/GetUsersQuery.cs | 6 +++ .../PasswordUserTokenRequestQuery.Handler.cs | 10 ++-- .../PasswordUserTokenRequestQuery.cs | 10 ++-- .../UserTokenRequestQuery.Handler.cs | 6 +-- .../UserTokenRequestQuery.Response.cs | 2 +- .../TokenRequest/UserTokenRequestQuery.cs | 8 +-- .../Models/ApiResult/ApiResult.cs | 4 +- .../Models/ApiResult/ApiResultStatusCodecs.cs | 2 +- .../Models/Common/OperationResult.cs | 2 +- .../Models/Identity/ActionDescriptionDto.cs | 2 +- .../Models/Identity/CreateRoleDto.cs | 2 +- .../Models/Identity/EditRolePermissionsDto.cs | 2 +- .../Models/Identity/GetRolesDto.cs | 4 +- .../Models/Identity/RolePermissionDto.cs | 4 +- .../Models/Jwt/AccessToken.cs | 2 +- .../Models/Jwt/TokenRequest.cs | 2 +- .../ServiceCollectionExtension.cs | 6 +-- .../Baya.Domain.csproj} | 2 +- .../Common/BaseEntity.cs | 2 +- .../Entities/Order/Order.cs | 4 +- .../Entities/User/Role.cs | 4 +- .../Entities/User/RoleClaim.cs | 4 +- .../Entities/User/User.cs | 4 +- .../Entities/User/UserClaim.cs | 4 +- .../Entities/User/UserLogin.cs | 4 +- .../Entities/User/UserRefreshToken.cs | 4 +- .../Entities/User/UserRole.cs | 4 +- .../Entities/User/UserToken.cs | 4 +- .../GetToken/AdminGetTokenQuery.Result.cs | 5 -- .../Order/Commands/DeleteUserOrdersCommand.cs | 6 --- .../Queries/GetAllOrders/GetAllOrdersQuery.cs | 6 --- .../GetUserOrders/GetUsersQueryResultModel.cs | 3 -- .../GetAllRolesQuery.Response.cs | 3 -- .../GetAllRolesQuery/GetAllRolesQuery.cs | 6 --- .../RequestLogout/RequestLogoutCommand.cs | 6 --- .../Users/Queries/GetUsers/GetUsersQuery.cs | 6 --- .../Baya.Infrastructure.CrossCutting.csproj} | 4 +- .../Logging/LoggingConfiguration.cs | 2 +- .../Baya.Infrastructure.Identity.csproj} | 6 +-- .../Identity/AppErrorDescriber.cs | 2 +- .../Identity/AppUserClaimsPrincipleFactory.cs | 6 +-- .../Identity/DataProtection/KeyRing.cs | 2 +- .../DataProtection/LookupProtector.cs | 2 +- .../DataProtection/PersonalDataProtector.cs | 2 +- .../ProtectorAlgorithmHelper.cs | 2 +- .../Identity/Dtos/CustomIdentityConstants.cs | 2 +- .../Identity/Dtos/IdentitySettings.cs | 2 +- .../Extensions/CustomIdentityExtensions.cs | 2 +- .../Identity/Manager/AppRoleManager.cs | 4 +- .../Identity/Manager/AppSignInManager.cs | 4 +- .../Identity/Manager/AppUserManager.cs | 4 +- .../PermissionManager/ConstantPolicies.cs | 2 +- .../DynamicPermissionRequirement.cs | 2 +- .../DynamicPermissionService.cs | 2 +- .../IDynamicPermissionService.cs | 2 +- .../PermissionManager/RoleManagerService.cs | 12 ++--- .../SeedDatabaseService/SeedDataBase.cs | 6 +-- .../Identity/Store/AppUserStore.cs | 6 +-- .../Identity/Store/RoleStore.cs | 6 +-- .../Identity/validator/AppRoleValidator.cs | 4 +- .../Identity/validator/AppUserValidator.cs | 4 +- .../Jwt/JwtService.cs | 14 ++--- .../ServiceCollectionExtension.cs | 32 +++++------ .../AppUserManagerImplementation.cs | 10 ++-- .../Baya.Infrastructure.Monitoring.csproj} | 0 .../HealthCheckConfigurations.cs | 2 +- .../OpenTelemetryConfigurations.cs | 4 +- .../PrometheusMetricsConfigurations.cs | 2 +- .../ApplicationDbContext.cs | 8 +-- .../Baya.Infrastructure.Persistence.csproj} | 4 +- .../Configuration/OrderConfig/OrderConfig.cs | 4 +- .../UserConfig/RefreshTokenConfig.cs | 4 +- .../UserConfig/RoleClaimConfig.cs | 4 +- .../Configuration/UserConfig/RoleConfig.cs | 4 +- .../UserConfig/UserClaimConfig.cs | 4 +- .../Configuration/UserConfig/UserConfig.cs | 4 +- .../UserConfig/UserLoginConfig.cs | 4 +- .../UserConfig/UserRoleConfig.cs | 4 +- .../UserConfig/UserTokenConfig.cs | 4 +- .../20210327210004_Init.Designer.cs | 2 +- .../Migrations/20210327210004_Init.cs | 0 ...4354_AddedOrderAndUserRelation.Designer.cs | 2 +- ...0221205084354_AddedOrderAndUserRelation.cs | 0 ...126140035_AddedOrderDeleteFlag.Designer.cs | 54 +++++++++---------- .../20231126140035_AddedOrderDeleteFlag.cs | 0 .../ApplicationDbContextModelSnapshot.cs | 54 +++++++++---------- .../Common/BaseAsyncRepository.cs | 4 +- .../Repositories/Common/UnitOfWork.cs | 4 +- .../Repositories/OrderRepository.cs | 8 +-- .../UserRefreshTokenRepository.cs | 8 +-- .../ServiceCollectionExtensions.cs | 6 +-- .../Baya.SharedKernel.csproj} | 0 .../Extensions/AssemblyExtensions.cs | 2 +- .../Extensions/CollectionExtensions.cs | 2 +- .../Extensions/EnumExtentions.cs | 2 +- .../Extensions/IdentityExtensions.cs | 2 +- .../Extensions/ModelBuilderExtensions.cs | 2 +- .../Extensions/ReflectionExtensions.cs | 2 +- .../Extensions/RegExHelpers.cs | 2 +- .../Extensions/StringExtensions.cs | 2 +- .../Extensions/ValidatorExtensions.cs | 6 +-- .../ApplicationBaseValidationModelProvider.cs | 2 +- .../Contracts/IValidatableModel.cs | 2 +- .../Baya.Test.Infrastructure.Identity.csproj} | 2 +- .../UserManagerTest.cs | 6 +-- .../Usings.cs | 0 .../Baya.Tests.Setup.csproj} | 4 +- .../Setups/TestApplicationDbContext.cs | 4 +- .../Setups/TestIdentitySetup.cs | 30 +++++------ .../Usings.cs | 0 todo.md | 13 +++++ 205 files changed, 641 insertions(+), 628 deletions(-) rename server/{CleanArcTemplate.sln => Baya.sln} (76%) rename server/src/API/{CleanArc.Web.Api/CleanArc.Web.Api.csproj => Baya.Web.Api/Baya.Web.Api.csproj} (70%) rename server/src/API/{CleanArc.Web.Api => Baya.Web.Api}/Controllers/V1/Admin/AdminManagerController.cs (74%) rename server/src/API/{CleanArc.Web.Api => Baya.Web.Api}/Controllers/V1/Admin/OrderManagementController.cs (77%) rename server/src/API/{CleanArc.Web.Api => Baya.Web.Api}/Controllers/V1/Admin/RoleManagerController.cs (80%) rename server/src/API/{CleanArc.Web.Api => Baya.Web.Api}/Controllers/V1/Admin/UserManagementController.cs (77%) rename server/src/API/{CleanArc.Web.Api => Baya.Web.Api}/Controllers/V1/Order/OrderController.cs (84%) rename server/src/API/{CleanArc.Web.Api => Baya.Web.Api}/Controllers/V1/UserManagement/UserController.cs (81%) rename server/src/API/{CleanArc.Web.Api => Baya.Web.Api}/Program.cs (75%) rename server/src/API/{CleanArc.Web.Api => Baya.Web.Api}/Properties/launchSettings.json (100%) rename server/src/API/{CleanArc.Web.Api => Baya.Web.Api}/appsettings.Development.json (62%) rename server/src/API/{CleanArc.Web.Api => Baya.Web.Api}/appsettings.json (54%) rename server/src/API/{CleanArc.WebFramework => Baya.WebFramework}/Attributes/ProducesOkApiResponseTypeAttribute.cs (92%) rename server/src/API/{CleanArc.WebFramework => Baya.WebFramework}/BaseController/BaseController.cs (88%) rename server/src/API/{CleanArc.WebFramework/CleanArc.WebFramework.csproj => Baya.WebFramework/Baya.WebFramework.csproj} (50%) rename server/src/API/{CleanArc.WebFramework => Baya.WebFramework}/EndpointFilters/BadRequestResultEndpointFilter.cs (88%) rename server/src/API/{CleanArc.WebFramework => Baya.WebFramework}/EndpointFilters/ModelStateValidationEndpointFilter.cs (96%) rename server/src/API/{CleanArc.WebFramework => Baya.WebFramework}/EndpointFilters/NotFoundResultEndpointFilter.cs (88%) rename server/src/API/{CleanArc.WebFramework => Baya.WebFramework}/EndpointFilters/OkResultEndpointFilter.cs (88%) rename server/src/API/{CleanArc.WebFramework => Baya.WebFramework}/Filters/ApiResultFilterAttribute.cs (97%) rename server/src/API/{CleanArc.WebFramework => Baya.WebFramework}/Filters/BadRequestResultFilterAttribute.cs (91%) rename server/src/API/{CleanArc.WebFramework => Baya.WebFramework}/Filters/ContentResultFilterAttribute.cs (84%) rename server/src/API/{CleanArc.WebFramework => Baya.WebFramework}/Filters/ModelStateValidationAttribute.cs (94%) rename server/src/API/{CleanArc.WebFramework => Baya.WebFramework}/Filters/NotFoundResultAttribute.cs (90%) rename server/src/API/{CleanArc.WebFramework => Baya.WebFramework}/Filters/OkResultAttribute.cs (90%) rename server/src/API/{CleanArc.WebFramework => Baya.WebFramework}/Filters/ServerErrorResult.cs (86%) rename server/src/API/{CleanArc.WebFramework => Baya.WebFramework}/Middlewares/ExceptionHandler.cs (94%) rename server/src/API/{CleanArc.WebFramework => Baya.WebFramework}/ServiceConfiguration/ServiceCollectionExtension.cs (96%) rename server/src/API/{CleanArc.WebFramework => Baya.WebFramework}/Swagger/ApiVersionDocumentProcessor.cs (89%) rename server/src/API/{CleanArc.WebFramework => Baya.WebFramework}/Swagger/ApplySummariesOperationFilter.cs (99%) rename server/src/API/{CleanArc.WebFramework => Baya.WebFramework}/Swagger/CustomTokenRequiredOperationFilter.cs (96%) rename server/src/API/{CleanArc.WebFramework => Baya.WebFramework}/Swagger/RequireTokenWithoutAuthorizationAttribute.cs (86%) rename server/src/API/{CleanArc.WebFramework => Baya.WebFramework}/Swagger/SwaggerConfigurationExtensions.cs (98%) rename server/src/API/Plugins/{CleanArc.Web.Plugins.Grpc/CleanArc.Web.Plugins.Grpc.csproj => Baya.Web.Plugins.Grpc/Baya.Web.Plugins.Grpc.csproj} (86%) rename server/src/API/Plugins/{CleanArc.Web.Plugins.Grpc => Baya.Web.Plugins.Grpc}/GrpcPluginStartup.cs (92%) rename server/src/API/Plugins/{CleanArc.Web.Plugins.Grpc => Baya.Web.Plugins.Grpc}/ProtoModels/OrderGrpcServiceModels.proto (80%) rename server/src/API/Plugins/{CleanArc.Web.Plugins.Grpc => Baya.Web.Plugins.Grpc}/ProtoModels/UserGrpcServiceModels.proto (91%) rename server/src/API/Plugins/{CleanArc.Web.Plugins.Grpc => Baya.Web.Plugins.Grpc}/Services/OrderGrpcServices.cs (86%) rename server/src/API/Plugins/{CleanArc.Web.Plugins.Grpc => Baya.Web.Plugins.Grpc}/Services/UserGrpcServices.cs (92%) rename server/src/Core/{CleanArc.Application/CleanArc.Application.csproj => Baya.Application/Baya.Application.csproj} (90%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Common/LoggingBehavior.cs (91%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Common/MetricsBehaviour.cs (96%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Common/ValidateCommandBehavior.cs (93%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Contracts/IJwtService.cs (72%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Contracts/Identity/IAppUserManager.cs (93%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Contracts/Identity/IRoleManagerService.cs (78%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Contracts/Persistence/IOrderRepository.cs (77%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Contracts/Persistence/IUnitOfWork.cs (79%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Contracts/Persistence/IUserRefreshTokenRepository.cs (75%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Admin/Commands/AddAdminCommand/AddAdminCommand.Handler.cs (86%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Admin/Commands/AddAdminCommand/AddAdminCommand.cs (78%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Admin/Queries/GetToken/AdminGetTokenQuery.Handler.cs (87%) create mode 100644 server/src/Core/Baya.Application/Features/Admin/Queries/GetToken/AdminGetTokenQuery.Result.cs rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Admin/Queries/GetToken/AdminGetTokenQuery.cs (73%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Order/Commands/AddOrderCommand.Handler.cs (78%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Order/Commands/AddOrderCommand.cs (74%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Order/Commands/DeleteUserOrdersCommand.Handler.cs (74%) create mode 100644 server/src/Core/Baya.Application/Features/Order/Commands/DeleteUserOrdersCommand.cs rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Order/Commands/UpdateUserOrderCommand.Handler.cs (81%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Order/Commands/UpdateUserOrderCommand.cs (75%) create mode 100644 server/src/Core/Baya.Application/Features/Order/Queries/GetAllOrders/GetAllOrdersQuery.cs rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Order/Queries/GetAllOrders/GetAllOrdersQueryHandler.cs (81%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Order/Queries/GetAllOrders/GetAllOrdersQueryResult.cs (89%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Order/Queries/GetUserOrders/GetUserOrdersQueryHandler.cs (82%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Order/Queries/GetUserOrders/GetUserOrdersQueryModel.cs (52%) create mode 100644 server/src/Core/Baya.Application/Features/Order/Queries/GetUserOrders/GetUsersQueryResultModel.cs rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Role/Commands/AddRoleCommand/AddRoleCommand.Handler.cs (78%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Role/Commands/AddRoleCommand/AddRoleCommand.cs (69%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Role/Commands/UpdateRoleClaimsCommand/UpdateRoleClaimsCommand.Handler.cs (77%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Role/Commands/UpdateRoleClaimsCommand/UpdateRoleClaimsCommand.cs (52%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.Handler.cs (82%) create mode 100644 server/src/Core/Baya.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.Response.cs create mode 100644 server/src/Core/Baya.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.cs rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.Handler.cs (85%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.Response.cs (64%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.cs (50%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Users/Commands/Create/UserCreateCommand.Handler.cs (90%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Users/Commands/Create/UserCreateCommand.Result.cs (57%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Users/Commands/Create/UserCreateCommand.cs (86%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Users/Commands/RefreshUserTokenCommand/RefreshUserTokenCommand.Handler.cs (75%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Users/Commands/RefreshUserTokenCommand/RefreshUserTokenCommand.cs (67%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Users/Commands/RequestLogout/RequestLogoutCommand.Handler.cs (79%) create mode 100644 server/src/Core/Baya.Application/Features/Users/Commands/RequestLogout/RequestLogoutCommand.cs rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Users/Queries/GenerateUserToken/GenerateUserTokenQuery.Handler.cs (78%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Users/Queries/GenerateUserToken/GenerateUserTokenQuery.cs (72%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Users/Queries/GetUsers/GetUsersQuery.Handler.cs (78%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Users/Queries/GetUsers/GetUsersQuery.Response.cs (61%) create mode 100644 server/src/Core/Baya.Application/Features/Users/Queries/GetUsers/GetUsersQuery.cs rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Users/Queries/TokenRequest/PasswordUserTokenRequestQuery.Handler.cs (78%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Users/Queries/TokenRequest/PasswordUserTokenRequestQuery.cs (68%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.Handler.cs (87%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.Response.cs (55%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.cs (80%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Models/ApiResult/ApiResult.cs (90%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Models/ApiResult/ApiResultStatusCodecs.cs (93%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Models/Common/OperationResult.cs (97%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Models/Identity/ActionDescriptionDto.cs (88%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Models/Identity/CreateRoleDto.cs (58%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Models/Identity/EditRolePermissionsDto.cs (71%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Models/Identity/GetRolesDto.cs (53%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Models/Identity/RolePermissionDto.cs (72%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Models/Jwt/AccessToken.cs (92%) rename server/src/Core/{CleanArc.Application => Baya.Application}/Models/Jwt/TokenRequest.cs (90%) rename server/src/Core/{CleanArc.Application => Baya.Application}/ServiceConfiguration/ServiceCollectionExtension.cs (80%) rename server/src/Core/{CleanArc.Domain/CleanArc.Domain.csproj => Baya.Domain/Baya.Domain.csproj} (67%) rename server/src/Core/{CleanArc.Domain => Baya.Domain}/Common/BaseEntity.cs (96%) rename server/src/Core/{CleanArc.Domain => Baya.Domain}/Entities/Order/Order.cs (76%) rename server/src/Core/{CleanArc.Domain => Baya.Domain}/Entities/User/Role.cs (82%) rename server/src/Core/{CleanArc.Domain => Baya.Domain}/Entities/User/RoleClaim.cs (77%) rename server/src/Core/{CleanArc.Domain => Baya.Domain}/Entities/User/User.cs (90%) rename server/src/Core/{CleanArc.Domain => Baya.Domain}/Entities/User/UserClaim.cs (63%) rename server/src/Core/{CleanArc.Domain => Baya.Domain}/Entities/User/UserLogin.cs (76%) rename server/src/Core/{CleanArc.Domain => Baya.Domain}/Entities/User/UserRefreshToken.cs (79%) rename server/src/Core/{CleanArc.Domain => Baya.Domain}/Entities/User/UserRole.cs (74%) rename server/src/Core/{CleanArc.Domain => Baya.Domain}/Entities/User/UserToken.cs (77%) delete mode 100644 server/src/Core/CleanArc.Application/Features/Admin/Queries/GetToken/AdminGetTokenQuery.Result.cs delete mode 100644 server/src/Core/CleanArc.Application/Features/Order/Commands/DeleteUserOrdersCommand.cs delete mode 100644 server/src/Core/CleanArc.Application/Features/Order/Queries/GetAllOrders/GetAllOrdersQuery.cs delete mode 100644 server/src/Core/CleanArc.Application/Features/Order/Queries/GetUserOrders/GetUsersQueryResultModel.cs delete mode 100644 server/src/Core/CleanArc.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.Response.cs delete mode 100644 server/src/Core/CleanArc.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.cs delete mode 100644 server/src/Core/CleanArc.Application/Features/Users/Commands/RequestLogout/RequestLogoutCommand.cs delete mode 100644 server/src/Core/CleanArc.Application/Features/Users/Queries/GetUsers/GetUsersQuery.cs rename server/src/Infrastructure/{CleanArc.Infrastructure.CrossCutting/CleanArc.Infrastructure.CrossCutting.csproj => Baya.Infrastructure.CrossCutting/Baya.Infrastructure.CrossCutting.csproj} (74%) rename server/src/Infrastructure/{CleanArc.Infrastructure.CrossCutting => Baya.Infrastructure.CrossCutting}/Logging/LoggingConfiguration.cs (97%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity/CleanArc.Infrastructure.Identity.csproj => Baya.Infrastructure.Identity/Baya.Infrastructure.Identity.csproj} (69%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/AppErrorDescriber.cs (97%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/AppUserClaimsPrincipleFactory.cs (88%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/DataProtection/KeyRing.cs (97%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/DataProtection/LookupProtector.cs (99%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/DataProtection/PersonalDataProtector.cs (99%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/DataProtection/ProtectorAlgorithmHelper.cs (93%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/Dtos/CustomIdentityConstants.cs (79%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/Dtos/IdentitySettings.cs (82%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/Extensions/CustomIdentityExtensions.cs (96%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/Manager/AppRoleManager.cs (79%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/Manager/AppSignInManager.cs (86%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/Manager/AppUserManager.cs (86%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/PermissionManager/ConstantPolicies.cs (60%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/PermissionManager/DynamicPermissionRequirement.cs (95%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/PermissionManager/DynamicPermissionService.cs (87%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/PermissionManager/IDynamicPermissionService.cs (70%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/PermissionManager/RoleManagerService.cs (95%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/SeedDatabaseService/SeedDataBase.cs (86%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/Store/AppUserStore.cs (71%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/Store/RoleStore.cs (68%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/validator/AppRoleValidator.cs (77%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Identity/validator/AppUserValidator.cs (79%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/Jwt/JwtService.cs (93%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/ServiceConfiguration/ServiceCollectionExtension.cs (91%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Identity => Baya.Infrastructure.Identity}/UserManager/AppUserManagerImplementation.cs (94%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Monitoring/CleanArc.Infrastructure.Monitoring.csproj => Baya.Infrastructure.Monitoring/Baya.Infrastructure.Monitoring.csproj} (100%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Monitoring => Baya.Infrastructure.Monitoring}/Configurations/HealthCheckConfigurations.cs (94%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Monitoring => Baya.Infrastructure.Monitoring}/Configurations/OpenTelemetryConfigurations.cs (88%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Monitoring => Baya.Infrastructure.Monitoring}/Configurations/PrometheusMetricsConfigurations.cs (81%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/ApplicationDbContext.cs (94%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence/CleanArc.Infrastructure.Persistence.csproj => Baya.Infrastructure.Persistence/Baya.Infrastructure.Persistence.csproj} (75%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/Configuration/OrderConfig/OrderConfig.cs (76%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/Configuration/UserConfig/RefreshTokenConfig.cs (78%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/Configuration/UserConfig/RoleClaimConfig.cs (79%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/Configuration/UserConfig/RoleConfig.cs (70%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/Configuration/UserConfig/UserClaimConfig.cs (77%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/Configuration/UserConfig/UserConfig.cs (73%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/Configuration/UserConfig/UserLoginConfig.cs (77%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/Configuration/UserConfig/UserRoleConfig.cs (80%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/Configuration/UserConfig/UserTokenConfig.cs (77%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/Migrations/20210327210004_Init.Designer.cs (99%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/Migrations/20210327210004_Init.cs (100%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/Migrations/20221205084354_AddedOrderAndUserRelation.Designer.cs (99%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/Migrations/20221205084354_AddedOrderAndUserRelation.cs (100%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/Migrations/20231126140035_AddedOrderDeleteFlag.Designer.cs (86%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/Migrations/20231126140035_AddedOrderDeleteFlag.cs (100%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/Migrations/ApplicationDbContextModelSnapshot.cs (86%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/Repositories/Common/BaseAsyncRepository.cs (93%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/Repositories/Common/UnitOfWork.cs (83%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/Repositories/OrderRepository.cs (84%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/Repositories/UserRefreshTokenRepository.cs (83%) rename server/src/Infrastructure/{CleanArc.Infrastructure.Persistence => Baya.Infrastructure.Persistence}/ServiceConfiguration/ServiceCollectionExtensions.cs (84%) rename server/src/Shared/{CleanArc.SharedKernel/CleanArc.SharedKernel.csproj => Baya.SharedKernel/Baya.SharedKernel.csproj} (100%) rename server/src/Shared/{CleanArc.SharedKernel => Baya.SharedKernel}/Extensions/AssemblyExtensions.cs (92%) rename server/src/Shared/{CleanArc.SharedKernel => Baya.SharedKernel}/Extensions/CollectionExtensions.cs (89%) rename server/src/Shared/{CleanArc.SharedKernel => Baya.SharedKernel}/Extensions/EnumExtentions.cs (97%) rename server/src/Shared/{CleanArc.SharedKernel => Baya.SharedKernel}/Extensions/IdentityExtensions.cs (96%) rename server/src/Shared/{CleanArc.SharedKernel => Baya.SharedKernel}/Extensions/ModelBuilderExtensions.cs (99%) rename server/src/Shared/{CleanArc.SharedKernel => Baya.SharedKernel}/Extensions/ReflectionExtensions.cs (98%) rename server/src/Shared/{CleanArc.SharedKernel => Baya.SharedKernel}/Extensions/RegExHelpers.cs (89%) rename server/src/Shared/{CleanArc.SharedKernel => Baya.SharedKernel}/Extensions/StringExtensions.cs (98%) rename server/src/Shared/{CleanArc.SharedKernel => Baya.SharedKernel}/Extensions/ValidatorExtensions.cs (92%) rename server/src/Shared/{CleanArc.SharedKernel => Baya.SharedKernel}/ValidationBase/ApplicationBaseValidationModelProvider.cs (79%) rename server/src/Shared/{CleanArc.SharedKernel => Baya.SharedKernel}/ValidationBase/Contracts/IValidatableModel.cs (80%) rename server/src/Tests/{CleanArc.Test.Infrastructure.Identity/CleanArc.Test.Infrastructure.Identity/CleanArc.Test.Infrastructure.Identity.csproj => Baya.Test.Infrastructure.Identity/Baya.Test.Infrastructure.Identity/Baya.Test.Infrastructure.Identity.csproj} (90%) rename server/src/Tests/{CleanArc.Test.Infrastructure.Identity/CleanArc.Test.Infrastructure.Identity => Baya.Test.Infrastructure.Identity/Baya.Test.Infrastructure.Identity}/UserManagerTest.cs (96%) rename server/src/Tests/{CleanArc.Test.Infrastructure.Identity/CleanArc.Test.Infrastructure.Identity => Baya.Test.Infrastructure.Identity/Baya.Test.Infrastructure.Identity}/Usings.cs (100%) rename server/src/Tests/{CleanArc.Tests.Setup/CleanArc.Tests.Setup.csproj => Baya.Tests.Setup/Baya.Tests.Setup.csproj} (79%) rename server/src/Tests/{CleanArc.Tests.Setup => Baya.Tests.Setup}/Setups/TestApplicationDbContext.cs (88%) rename server/src/Tests/{CleanArc.Tests.Setup => Baya.Tests.Setup}/Setups/TestIdentitySetup.cs (79%) rename server/src/Tests/{CleanArc.Tests.Setup => Baya.Tests.Setup}/Usings.cs (100%) create mode 100644 todo.md diff --git a/AGENTS.md b/AGENTS.md index 3a4500c..9090a77 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -32,9 +32,9 @@ There is **no root-level build** — each project is built and run on its own. ` cd client && npm install && npm run dev # http://localhost:3000 # Backend -cd server && dotnet run --project src/API/CleanArc.Web.Api/CleanArc.Web.Api.csproj # https://localhost:5002/swagger +cd server && dotnet run --project src/API/Baya.Web.Api/Baya.Web.Api.csproj # https://localhost:5002/swagger ``` ## Naming note -The server's C# namespaces and solution file still use the `CleanArc*` prefix (e.g. `CleanArc.Web.Api`, `CleanArcTemplate.sln`). This is the internal project naming and is **not** template branding — do not mass-rename it unless explicitly asked, as it touches every file, the `.sln`, and EF migrations. +The server's C# namespaces, projects, and solution file all use the `Baya*` prefix (e.g. `Baya.Web.Api`, `Baya.sln`). Keep new server code under the same `Baya.*` namespace convention. diff --git a/client/.env.sample b/client/.env.sample index f56118c..0db0a4c 100644 --- a/client/.env.sample +++ b/client/.env.sample @@ -16,7 +16,7 @@ NEXT_PUBLIC_DEBUG = true NEXT_PUBLIC_PUBLIC_URL = http://localhost:3000 -# API/Backend basic URL (the CleanArc server) +# API/Backend basic URL (the Baya server) NEXT_PUBLIC_API_URL = https://localhost:5002 # NEXT_PUBLIC_API_URL = https://dev-api.domain.com # NEXT_PUBLIC_API_URL = https://api.domain.com \ No newline at end of file diff --git a/server/.gitignore b/server/.gitignore index 0e12b5f..9068a5e 100644 --- a/server/.gitignore +++ b/server/.gitignore @@ -339,4 +339,4 @@ ASALocalRun/ # BeatPulse healthcheck temp database healthchecksdb /nuget.exe -/src/API/CleanArc.Web.Api/logs/log.json +/src/API/Baya.Web.Api/logs/log.json diff --git a/server/AGENTS.md b/server/AGENTS.md index 332d5f4..6db83cb 100644 --- a/server/AGENTS.md +++ b/server/AGENTS.md @@ -17,37 +17,37 @@ Agent-oriented guide to the backend. For human setup/run instructions see [READM | Task | Command | | ---------- | --------------------------------------------------------------------------------- | -| Restore | `dotnet restore CleanArcTemplate.sln` | -| Build | `dotnet build CleanArcTemplate.sln` | -| Run API | `dotnet run --project src/API/CleanArc.Web.Api/CleanArc.Web.Api.csproj` | -| Test | `dotnet test CleanArcTemplate.sln` | -| Add migration | `dotnet ef migrations add --project src/Infrastructure/CleanArc.Infrastructure.Persistence --startup-project src/API/CleanArc.Web.Api` | +| Restore | `dotnet restore Baya.sln` | +| Build | `dotnet build Baya.sln` | +| Run API | `dotnet run --project src/API/Baya.Web.Api/Baya.Web.Api.csproj` | +| Test | `dotnet test Baya.sln` | +| Add migration | `dotnet ef migrations add --project src/Infrastructure/Baya.Infrastructure.Persistence --startup-project src/API/Baya.Web.Api` | -**Startup project:** `src/API/CleanArc.Web.Api`. Default URL `https://localhost:5002`, Swagger at `/swagger`. On boot the app applies EF migrations and seeds default users (`Program.cs` → `ApplyMigrationsAsync()` / `SeedDefaultUsersAsync()`), so a reachable DB is required. +**Startup project:** `src/API/Baya.Web.Api`. Default URL `https://localhost:5002`, Swagger at `/swagger`. On boot the app applies EF migrations and seeds default users (`Program.cs` → `ApplyMigrationsAsync()` / `SeedDefaultUsersAsync()`), so a reachable DB is required. ## Projects by layer ``` src/ ├── Core/ -│ ├── CleanArc.Domain Entities (User, Order, Role...), BaseEntity, IEntity, ITimeModification -│ └── CleanArc.Application CQRS Features/, Contracts/ (interfaces), Models/, MediatR pipeline (Common/) +│ ├── Baya.Domain Entities (User, Order, Role...), BaseEntity, IEntity, ITimeModification +│ └── Baya.Application CQRS Features/, Contracts/ (interfaces), Models/, MediatR pipeline (Common/) ├── Infrastructure/ -│ ├── CleanArc.Infrastructure.Persistence ApplicationDbContext, Configuration/, Repositories/, Migrations/ -│ ├── CleanArc.Infrastructure.Identity Jwt/, Identity/ (Managers, Stores, PermissionManager, Seed), ServiceConfiguration/ -│ ├── CleanArc.Infrastructure.CrossCutting Logging (Serilog) -│ └── CleanArc.Infrastructure.Monitoring HealthCheck / OpenTelemetry / Prometheus configs +│ ├── Baya.Infrastructure.Persistence ApplicationDbContext, Configuration/, Repositories/, Migrations/ +│ ├── Baya.Infrastructure.Identity Jwt/, Identity/ (Managers, Stores, PermissionManager, Seed), ServiceConfiguration/ +│ ├── Baya.Infrastructure.CrossCutting Logging (Serilog) +│ └── Baya.Infrastructure.Monitoring HealthCheck / OpenTelemetry / Prometheus configs ├── API/ -│ ├── CleanArc.Web.Api Program.cs, Controllers/V1/, appsettings*.json -│ ├── CleanArc.WebFramework BaseController, Filters/, Middlewares/, Swagger/, Attributes/ -│ └── Plugins/CleanArc.Web.Plugins.Grpc GrpcPluginStartup, Services/, ProtoModels/ -├── Shared/CleanArc.SharedKernel Extensions + validation base used by all layers -└── Tests/ CleanArc.Tests.Setup + CleanArc.Test.Infrastructure.Identity +│ ├── Baya.Web.Api Program.cs, Controllers/V1/, appsettings*.json +│ ├── Baya.WebFramework BaseController, Filters/, Middlewares/, Swagger/, Attributes/ +│ └── Plugins/Baya.Web.Plugins.Grpc GrpcPluginStartup, Services/, ProtoModels/ +├── Shared/Baya.SharedKernel Extensions + validation base used by all layers +└── Tests/ Baya.Tests.Setup + Baya.Test.Infrastructure.Identity ``` Dependency direction points **inward**: Domain depends on nothing; Application depends on Domain; Infrastructure and API implement/consume Application's contracts. Never make Domain or Application reference Infrastructure or the API. -## Startup wiring — `src/API/CleanArc.Web.Api/Program.cs` +## Startup wiring — `src/API/Baya.Web.Api/Program.cs` Service registration is composed from per-layer extension methods (in each project's `ServiceConfiguration`): @@ -67,7 +67,7 @@ When adding infrastructure, expose it as an extension method and call it here ra ## CQRS — how a feature is shaped -Features live under `CleanArc.Application/Features//{Commands|Queries}//`. A query example (`Features/Order/Queries/GetAllOrders/`): +Features live under `Baya.Application/Features//{Commands|Queries}//`. A query example (`Features/Order/Queries/GetAllOrders/`): - `GetAllOrdersQuery.cs` — `record ... : IRequest>` - `GetAllOrdersQueryHandler.cs` — `internal` handler; depends on `IUnitOfWork`, `IMapper`; returns `OperationResult` @@ -79,26 +79,26 @@ Commands additionally implement `IValidatableModel` and declare FluentValidat ## Controllers & results -- Controllers live in `CleanArc.Web.Api/Controllers/V1/` and inherit `BaseController` (`CleanArc.WebFramework/BaseController/BaseController.cs`), which exposes `UserId`/`UserName`/etc. from claims and maps `OperationResult` → `IActionResult`. +- Controllers live in `Baya.Web.Api/Controllers/V1/` and inherit `BaseController` (`Baya.WebFramework/BaseController/BaseController.cs`), which exposes `UserId`/`UserName`/etc. from claims and maps `OperationResult` → `IActionResult`. - All responses are wrapped in `OperationResult` (`Application/Models/Common/`): `Result`, `IsSuccess`, `ErrorMessages`, `IsNotFound`, `IsException`. Use the factory methods (`SuccessResult`, `FailureResult`, `NotFoundResult`). - Protected endpoints use `[Authorize(ConstantPolicies.DynamicPermission)]`. ## Persistence -- `ApplicationDbContext` (`CleanArc.Infrastructure.Persistence/ApplicationDbContext.cs`) extends `IdentityDbContext<...>`; it auto-registers `IEntity` types and applies all `IEntityTypeConfiguration` from the assembly. +- `ApplicationDbContext` (`Baya.Infrastructure.Persistence/ApplicationDbContext.cs`) extends `IdentityDbContext<...>`; it auto-registers `IEntity` types and applies all `IEntityTypeConfiguration` from the assembly. - Per-entity config in `Configuration/Config/`. Repositories in `Repositories/` derive from `BaseAsyncRepository`; expose them through `IUnitOfWork` (interface in `Application/Contracts/Persistence/`). Commit via `unitOfWork.CommitAsync()`. - Migrations in `Migrations/`. Add new ones with the `dotnet ef` command above. ## Identity & auth -- Token service: `CleanArc.Infrastructure.Identity/Jwt/JwtService.cs` (`IJwtService`) — issues JWE (HMAC-SHA256 signed, AES-128 encrypted), refresh tokens, and OTP/phone-based tokens. +- Token service: `Baya.Infrastructure.Identity/Jwt/JwtService.cs` (`IJwtService`) — issues JWE (HMAC-SHA256 signed, AES-128 encrypted), refresh tokens, and OTP/phone-based tokens. - Custom Identity managers/stores under `Identity/Manager/` and `Identity/Store/`. - Dynamic permissions: `Identity/PermissionManager/` (`DynamicPermissionService`, `DynamicPermissionHandler`, `ConstantPolicies`). - Settings from `appsettings.json` → `IdentitySettings` (`SecretKey`, `Encryptkey` = 16 chars, `Issuer`, `Audience`, lifetimes). ## gRPC plugin -`Plugins/CleanArc.Web.Plugins.Grpc` is a self-contained module mounted via Application Parts. `GrpcPluginStartup.cs` provides `ConfigureGrpcPluginServices()` / `ConfigureGrpcPipeline()` (called from `Program.cs`). Proto contracts in `ProtoModels/*.proto`, services in `Services/`. The host uses HTTP/2 (`Kestrel` config) for gRPC. +`Plugins/Baya.Web.Plugins.Grpc` is a self-contained module mounted via Application Parts. `GrpcPluginStartup.cs` provides `ConfigureGrpcPluginServices()` / `ConfigureGrpcPipeline()` (called from `Program.cs`). Proto contracts in `ProtoModels/*.proto`, services in `Services/`. The host uses HTTP/2 (`Kestrel` config) for gRPC. ## Conventions @@ -106,4 +106,4 @@ Commands additionally implement `IValidatableModel` and declare FluentValidat - Keep handlers `internal`; return `OperationResult`; don't throw for expected failures (use `FailureResult`/`NotFoundResult`). - Use Mapster for entity↔DTO mapping; FluentValidation for input validation. - Centralize package versions in `Directory.Packages.props` (no inline `Version=` in `.csproj`). -- The `CleanArc*` namespace/`.sln` naming is internal project naming, **not** template branding — don't rename it without an explicit request (it touches every file and the EF migrations). +- The `Baya*` namespace/`.sln` naming is internal project naming, **not** template branding — don't rename it without an explicit request (it touches every file and the EF migrations). diff --git a/server/CleanArcTemplate.sln b/server/Baya.sln similarity index 76% rename from server/CleanArcTemplate.sln rename to server/Baya.sln index c8e57d2..8b7019e 100644 --- a/server/CleanArcTemplate.sln +++ b/server/Baya.sln @@ -15,35 +15,35 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{DF0CD4 EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Plugins", "Plugins", "{542840FF-B0CC-4F8A-9F6E-1898BE0573D7}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanArc.SharedKernel", "src\Shared\CleanArc.SharedKernel\CleanArc.SharedKernel.csproj", "{56C4DDD2-4F8C-4D35-85D4-CC9064C52398}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Baya.SharedKernel", "src\Shared\Baya.SharedKernel\Baya.SharedKernel.csproj", "{56C4DDD2-4F8C-4D35-85D4-CC9064C52398}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanArc.Infrastructure.CrossCutting", "src\Infrastructure\CleanArc.Infrastructure.CrossCutting\CleanArc.Infrastructure.CrossCutting.csproj", "{09E81356-0531-42A0-9F7F-00C495F1226E}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Baya.Infrastructure.CrossCutting", "src\Infrastructure\Baya.Infrastructure.CrossCutting\Baya.Infrastructure.CrossCutting.csproj", "{09E81356-0531-42A0-9F7F-00C495F1226E}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanArc.Infrastructure.Identity", "src\Infrastructure\CleanArc.Infrastructure.Identity\CleanArc.Infrastructure.Identity.csproj", "{3AFD5AAD-8DCD-44D6-86B9-078FBE8F2A1F}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Baya.Infrastructure.Identity", "src\Infrastructure\Baya.Infrastructure.Identity\Baya.Infrastructure.Identity.csproj", "{3AFD5AAD-8DCD-44D6-86B9-078FBE8F2A1F}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanArc.Infrastructure.Persistence", "src\Infrastructure\CleanArc.Infrastructure.Persistence\CleanArc.Infrastructure.Persistence.csproj", "{9F3B3E49-3E3C-4244-AE88-D209B18B28B8}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Baya.Infrastructure.Persistence", "src\Infrastructure\Baya.Infrastructure.Persistence\Baya.Infrastructure.Persistence.csproj", "{9F3B3E49-3E3C-4244-AE88-D209B18B28B8}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanArc.Application", "src\Core\CleanArc.Application\CleanArc.Application.csproj", "{9C0BCB6F-614C-4FA9-83A2-E95834E3C153}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Baya.Application", "src\Core\Baya.Application\Baya.Application.csproj", "{9C0BCB6F-614C-4FA9-83A2-E95834E3C153}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanArc.Domain", "src\Core\CleanArc.Domain\CleanArc.Domain.csproj", "{DC49CD3F-840E-4634-B9DA-595F160E9499}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Baya.Domain", "src\Core\Baya.Domain\Baya.Domain.csproj", "{DC49CD3F-840E-4634-B9DA-595F160E9499}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanArc.Web.Plugins.Grpc", "src\API\Plugins\CleanArc.Web.Plugins.Grpc\CleanArc.Web.Plugins.Grpc.csproj", "{8F7135E8-68C9-4DA8-AA06-04518EBB403B}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Baya.Web.Plugins.Grpc", "src\API\Plugins\Baya.Web.Plugins.Grpc\Baya.Web.Plugins.Grpc.csproj", "{8F7135E8-68C9-4DA8-AA06-04518EBB403B}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanArc.Web.Api", "src\API\CleanArc.Web.Api\CleanArc.Web.Api.csproj", "{BE13FF32-B8D5-4AE7-B173-6CA96040B788}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Baya.Web.Api", "src\API\Baya.Web.Api\Baya.Web.Api.csproj", "{BE13FF32-B8D5-4AE7-B173-6CA96040B788}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanArc.WebFramework", "src\API\CleanArc.WebFramework\CleanArc.WebFramework.csproj", "{44DD0A96-BA65-476E-BC59-C8D2CFA703B9}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Baya.WebFramework", "src\API\Baya.WebFramework\Baya.WebFramework.csproj", "{44DD0A96-BA65-476E-BC59-C8D2CFA703B9}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{77986571-8153-4120-AD08-36729310A56B}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "BaseSetup", "BaseSetup", "{34B1F72E-A991-4705-ACC5-08E65E46D26E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CleanArc.Tests.Setup", "src\Tests\CleanArc.Tests.Setup\CleanArc.Tests.Setup.csproj", "{33AF382A-9E22-42F0-82E5-4F78BCFD40C1}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Baya.Tests.Setup", "src\Tests\Baya.Tests.Setup\Baya.Tests.Setup.csproj", "{33AF382A-9E22-42F0-82E5-4F78BCFD40C1}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Infrastructure", "Infrastructure", "{45FA88C0-9986-40E5-A2E2-7742302518D2}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CleanArc.Test.Infrastructure.Identity", "src\Tests\CleanArc.Test.Infrastructure.Identity\CleanArc.Test.Infrastructure.Identity\CleanArc.Test.Infrastructure.Identity.csproj", "{54203B4F-3CE8-4EBA-B5E2-F7C985FACE60}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Baya.Test.Infrastructure.Identity", "src\Tests\Baya.Test.Infrastructure.Identity\Baya.Test.Infrastructure.Identity\Baya.Test.Infrastructure.Identity.csproj", "{54203B4F-3CE8-4EBA-B5E2-F7C985FACE60}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CleanArc.Infrastructure.Monitoring", "src\Infrastructure\CleanArc.Infrastructure.Monitoring\CleanArc.Infrastructure.Monitoring.csproj", "{7699705C-2C15-467F-957D-4C5EBE4FD92E}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Baya.Infrastructure.Monitoring", "src\Infrastructure\Baya.Infrastructure.Monitoring\Baya.Infrastructure.Monitoring.csproj", "{7699705C-2C15-467F-957D-4C5EBE4FD92E}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{704FAE1E-F0D2-468E-8B3D-E9E6F323ABE8}" ProjectSection(SolutionItems) = preProject diff --git a/server/Dockerfile b/server/Dockerfile index 1e651bb..f3c2dc5 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -8,29 +8,29 @@ EXPOSE 443 FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build WORKDIR /src COPY ["../Directory.Packages.props", "./"] -COPY ["src/API/CleanArc.Web.Api/CleanArc.Web.Api.csproj", "src/API/CleanArc.Web.Api/"] -COPY ["src/API/CleanArc.WebFramework/CleanArc.WebFramework.csproj", "src/API/CleanArc.WebFramework/"] -COPY ["src/API/Plugins/CleanArc.Web.Plugins.Grpc/CleanArc.Web.Plugins.Grpc.csproj", "src/API/Plugins/CleanArc.Web.Plugins.Grpc/"] -COPY ["src/Core/CleanArc.Application/CleanArc.Application.csproj", "src/Core/CleanArc.Application/"] -COPY ["src/Core/CleanArc.Domain/CleanArc.Domain.csproj", "src/Core/CleanArc.Domain/"] -COPY ["src/Infrastructure/CleanArc.Infrastructure.CrossCutting/CleanArc.Infrastructure.CrossCutting.csproj", "src/Infrastructure/CleanArc.Infrastructure.CrossCutting/"] -COPY ["src/Infrastructure/CleanArc.Infrastructure.Identity/CleanArc.Infrastructure.Identity.csproj", "src/Infrastructure/CleanArc.Infrastructure.Identity/"] -COPY ["src/Infrastructure/CleanArc.Infrastructure.Persistence/CleanArc.Infrastructure.Persistence.csproj", "src/Infrastructure/CleanArc.Infrastructure.Persistence/"] -COPY ["src/Infrastructure/CleanArc.Infrastructure.Monitoring/CleanArc.Infrastructure.Monitoring.csproj", "src/Infrastructure/CleanArc.Infrastructure.Monitoring/"] -COPY ["src/Shared/CleanArc.SharedKernel/CleanArc.SharedKernel.csproj", "src/Shared/CleanArc.SharedKernel/"] -COPY ["src/Tests/CleanArc.Test.Infrastructure.Identity/CleanArc.Test.Infrastructure.Identity/CleanArc.Test.Infrastructure.Identity.csproj", "src/Tests/CleanArc.Test.Infrastructure.Identity/CleanArc.Test.Infrastructure.Identity/"] -COPY ["src/Tests/CleanArc.Tests.Setup/CleanArc.Tests.Setup.csproj", "src/Tests/CleanArc.Tests.Setup/"] +COPY ["src/API/Baya.Web.Api/Baya.Web.Api.csproj", "src/API/Baya.Web.Api/"] +COPY ["src/API/Baya.WebFramework/Baya.WebFramework.csproj", "src/API/Baya.WebFramework/"] +COPY ["src/API/Plugins/Baya.Web.Plugins.Grpc/Baya.Web.Plugins.Grpc.csproj", "src/API/Plugins/Baya.Web.Plugins.Grpc/"] +COPY ["src/Core/Baya.Application/Baya.Application.csproj", "src/Core/Baya.Application/"] +COPY ["src/Core/Baya.Domain/Baya.Domain.csproj", "src/Core/Baya.Domain/"] +COPY ["src/Infrastructure/Baya.Infrastructure.CrossCutting/Baya.Infrastructure.CrossCutting.csproj", "src/Infrastructure/Baya.Infrastructure.CrossCutting/"] +COPY ["src/Infrastructure/Baya.Infrastructure.Identity/Baya.Infrastructure.Identity.csproj", "src/Infrastructure/Baya.Infrastructure.Identity/"] +COPY ["src/Infrastructure/Baya.Infrastructure.Persistence/Baya.Infrastructure.Persistence.csproj", "src/Infrastructure/Baya.Infrastructure.Persistence/"] +COPY ["src/Infrastructure/Baya.Infrastructure.Monitoring/Baya.Infrastructure.Monitoring.csproj", "src/Infrastructure/Baya.Infrastructure.Monitoring/"] +COPY ["src/Shared/Baya.SharedKernel/Baya.SharedKernel.csproj", "src/Shared/Baya.SharedKernel/"] +COPY ["src/Tests/Baya.Test.Infrastructure.Identity/Baya.Test.Infrastructure.Identity/Baya.Test.Infrastructure.Identity.csproj", "src/Tests/Baya.Test.Infrastructure.Identity/Baya.Test.Infrastructure.Identity/"] +COPY ["src/Tests/Baya.Tests.Setup/Baya.Tests.Setup.csproj", "src/Tests/Baya.Tests.Setup/"] -RUN dotnet restore "src/API/CleanArc.Web.Api/CleanArc.Web.Api.csproj" +RUN dotnet restore "src/API/Baya.Web.Api/Baya.Web.Api.csproj" COPY . . -WORKDIR "src/API/CleanArc.Web.Api" -RUN dotnet build "CleanArc.Web.Api.csproj" -c Release -o /app/build +WORKDIR "src/API/Baya.Web.Api" +RUN dotnet build "Baya.Web.Api.csproj" -c Release -o /app/build FROM build AS publish -RUN dotnet publish "CleanArc.Web.Api.csproj" -c Release -o /app/publish /p:UseAppHost=false --no-restore +RUN dotnet publish "Baya.Web.Api.csproj" -c Release -o /app/publish /p:UseAppHost=false --no-restore FROM base AS final WORKDIR /app COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "CleanArc.Web.Api.dll"] +ENTRYPOINT ["dotnet", "Baya.Web.Api.dll"] diff --git a/server/README.md b/server/README.md index a7433bc..7716ee0 100644 --- a/server/README.md +++ b/server/README.md @@ -21,9 +21,9 @@ Backend API for the Balinyaar application. It is an **ASP.NET Core (.NET 10)** s From the `server/` folder: ```bash -dotnet restore CleanArcTemplate.sln -dotnet build CleanArcTemplate.sln -dotnet run --project src/API/CleanArc.Web.Api/CleanArc.Web.Api.csproj +dotnet restore Baya.sln +dotnet build Baya.sln +dotnet run --project src/API/Baya.Web.Api/Baya.Web.Api.csproj ``` By default the API listens on **https://localhost:5002** and serves Swagger UI at **/swagger**. @@ -32,7 +32,7 @@ On startup the app **applies EF Core migrations** and **seeds default users** au ### Configuration -Settings live in `src/API/CleanArc.Web.Api/appsettings.json` (+ `appsettings.Development.json`): +Settings live in `src/API/Baya.Web.Api/appsettings.json` (+ `appsettings.Development.json`): - `ConnectionStrings:SqlServer` — main application database - `ConnectionStrings:logDb` — Serilog SQL sink database @@ -43,14 +43,14 @@ Settings live in `src/API/CleanArc.Web.Api/appsettings.json` (+ `appsettings.Dev Generate a development HTTPS certificate (used by the container): ```bash -dotnet dev-certs https -ep $env:USERPROFILE/.aspnet/https/cleanarc.pfx -p Strong@Password +dotnet dev-certs https -ep $env:USERPROFILE/.aspnet/https/baya.pfx -p Strong@Password dotnet dev-certs https --trust ``` Build and start the API together with SQL Server 2022: ```bash -docker build -t balinyaar-server -f Dockerfile . +docker build -t bobby-baya -f Dockerfile . docker-compose up -d ``` @@ -61,19 +61,19 @@ The compose stack exposes the API on `http://localhost:5000` / `https://localhos ``` src/ ├── Core/ -│ ├── CleanArc.Domain Entities + domain primitives (the core / "brain") -│ └── CleanArc.Application CQRS features, contracts (interfaces), MediatR pipeline +│ ├── Baya.Domain Entities + domain primitives (the core / "brain") +│ └── Baya.Application CQRS features, contracts (interfaces), MediatR pipeline ├── Infrastructure/ -│ ├── CleanArc.Infrastructure.Persistence EF Core DbContext, configs, repositories, UoW, migrations -│ ├── CleanArc.Infrastructure.Identity Identity, JWE/JWT, OTP, dynamic permissions -│ ├── CleanArc.Infrastructure.CrossCutting Cross-cutting concerns (logging) -│ └── CleanArc.Infrastructure.Monitoring Health checks, OpenTelemetry, Prometheus +│ ├── Baya.Infrastructure.Persistence EF Core DbContext, configs, repositories, UoW, migrations +│ ├── Baya.Infrastructure.Identity Identity, JWE/JWT, OTP, dynamic permissions +│ ├── Baya.Infrastructure.CrossCutting Cross-cutting concerns (logging) +│ └── Baya.Infrastructure.Monitoring Health checks, OpenTelemetry, Prometheus ├── API/ -│ ├── CleanArc.Web.Api Presentation: REST controllers, Program.cs (startup) -│ ├── CleanArc.WebFramework Reusable web config: base controller, filters, middleware, Swagger -│ └── Plugins/CleanArc.Web.Plugins.Grpc Self-contained gRPC plugin +│ ├── Baya.Web.Api Presentation: REST controllers, Program.cs (startup) +│ ├── Baya.WebFramework Reusable web config: base controller, filters, middleware, Swagger +│ └── Plugins/Baya.Web.Plugins.Grpc Self-contained gRPC plugin ├── Shared/ -│ └── CleanArc.SharedKernel Shared extensions/helpers referenced by every layer +│ └── Baya.SharedKernel Shared extensions/helpers referenced by every layer └── Tests/ xUnit test setup + Identity tests ``` @@ -111,10 +111,10 @@ A standalone module that adds gRPC endpoints to the same host via **Application ## Tests ```bash -dotnet test CleanArcTemplate.sln +dotnet test Baya.sln ``` -Each layer is designed to be testable in isolation; `CleanArc.Tests.Setup` provides the shared test scaffolding. +Each layer is designed to be testable in isolation; `Baya.Tests.Setup` provides the shared test scaffolding. ## License diff --git a/server/docker-compose.yml b/server/docker-compose.yml index 133fa4a..d28b55c 100644 --- a/server/docker-compose.yml +++ b/server/docker-compose.yml @@ -1,12 +1,12 @@ version: "3.9" # optional since v1.27.0 services: web_api: - image: bobby-cleanarc - container_name: bobby-cleanarc-app + image: bobby-baya + container_name: bobby-baya-app environment: "ASPNETCORE_URLS": "https://+;http://+" "ASPNETCORE_Kestrel__Certificates__Default__Password": "Strong@Password" - "ASPNETCORE_Kestrel__Certificates__Default__Path": "/https/cleanarc.pfx" + "ASPNETCORE_Kestrel__Certificates__Default__Path": "/https/baya.pfx" ports: - "5000:80" - "5001:443" diff --git a/server/src/API/CleanArc.Web.Api/CleanArc.Web.Api.csproj b/server/src/API/Baya.Web.Api/Baya.Web.Api.csproj similarity index 70% rename from server/src/API/CleanArc.Web.Api/CleanArc.Web.Api.csproj rename to server/src/API/Baya.Web.Api/Baya.Web.Api.csproj index 9e8f166..561f463 100644 --- a/server/src/API/CleanArc.Web.Api/CleanArc.Web.Api.csproj +++ b/server/src/API/Baya.Web.Api/Baya.Web.Api.csproj @@ -18,9 +18,9 @@ - - - + + + diff --git a/server/src/API/CleanArc.Web.Api/Controllers/V1/Admin/AdminManagerController.cs b/server/src/API/Baya.Web.Api/Controllers/V1/Admin/AdminManagerController.cs similarity index 74% rename from server/src/API/CleanArc.Web.Api/Controllers/V1/Admin/AdminManagerController.cs rename to server/src/API/Baya.Web.Api/Controllers/V1/Admin/AdminManagerController.cs index 220fc82..fff98ac 100644 --- a/server/src/API/CleanArc.Web.Api/Controllers/V1/Admin/AdminManagerController.cs +++ b/server/src/API/Baya.Web.Api/Controllers/V1/Admin/AdminManagerController.cs @@ -1,14 +1,14 @@ using Asp.Versioning; -using CleanArc.Application.Features.Admin.Commands.AddAdminCommand; -using CleanArc.Application.Features.Admin.Queries.GetToken; -using CleanArc.Application.Models.Jwt; -using CleanArc.WebFramework.Attributes; -using CleanArc.WebFramework.BaseController; +using Baya.Application.Features.Admin.Commands.AddAdminCommand; +using Baya.Application.Features.Admin.Queries.GetToken; +using Baya.Application.Models.Jwt; +using Baya.WebFramework.Attributes; +using Baya.WebFramework.BaseController; using Mediator; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -namespace CleanArc.Web.Api.Controllers.V1.Admin +namespace Baya.Web.Api.Controllers.V1.Admin { [ApiVersion("1")] [ApiController] diff --git a/server/src/API/CleanArc.Web.Api/Controllers/V1/Admin/OrderManagementController.cs b/server/src/API/Baya.Web.Api/Controllers/V1/Admin/OrderManagementController.cs similarity index 77% rename from server/src/API/CleanArc.Web.Api/Controllers/V1/Admin/OrderManagementController.cs rename to server/src/API/Baya.Web.Api/Controllers/V1/Admin/OrderManagementController.cs index 8c7d1e9..236bacd 100644 --- a/server/src/API/CleanArc.Web.Api/Controllers/V1/Admin/OrderManagementController.cs +++ b/server/src/API/Baya.Web.Api/Controllers/V1/Admin/OrderManagementController.cs @@ -1,14 +1,14 @@ -using CleanArc.Infrastructure.Identity.Identity.PermissionManager; +using Baya.Infrastructure.Identity.Identity.PermissionManager; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System.ComponentModel.DataAnnotations; using Asp.Versioning; -using CleanArc.Application.Features.Order.Queries.GetAllOrders; -using CleanArc.WebFramework.Attributes; -using CleanArc.WebFramework.BaseController; +using Baya.Application.Features.Order.Queries.GetAllOrders; +using Baya.WebFramework.Attributes; +using Baya.WebFramework.BaseController; using Mediator; -namespace CleanArc.Web.Api.Controllers.V1.Admin +namespace Baya.Web.Api.Controllers.V1.Admin { [ApiVersion("1")] [ApiController] diff --git a/server/src/API/CleanArc.Web.Api/Controllers/V1/Admin/RoleManagerController.cs b/server/src/API/Baya.Web.Api/Controllers/V1/Admin/RoleManagerController.cs similarity index 80% rename from server/src/API/CleanArc.Web.Api/Controllers/V1/Admin/RoleManagerController.cs rename to server/src/API/Baya.Web.Api/Controllers/V1/Admin/RoleManagerController.cs index 7903c05..070dcc2 100644 --- a/server/src/API/CleanArc.Web.Api/Controllers/V1/Admin/RoleManagerController.cs +++ b/server/src/API/Baya.Web.Api/Controllers/V1/Admin/RoleManagerController.cs @@ -1,17 +1,17 @@ using System.ComponentModel.DataAnnotations; using Asp.Versioning; -using CleanArc.Application.Features.Role.Commands.AddRoleCommand; -using CleanArc.Application.Features.Role.Commands.UpdateRoleClaimsCommand; -using CleanArc.Application.Features.Role.Queries.GetAllRolesQuery; -using CleanArc.Application.Features.Role.Queries.GetAuthorizableRoutesQuery; -using CleanArc.Infrastructure.Identity.Identity.PermissionManager; -using CleanArc.WebFramework.Attributes; -using CleanArc.WebFramework.BaseController; +using Baya.Application.Features.Role.Commands.AddRoleCommand; +using Baya.Application.Features.Role.Commands.UpdateRoleClaimsCommand; +using Baya.Application.Features.Role.Queries.GetAllRolesQuery; +using Baya.Application.Features.Role.Queries.GetAuthorizableRoutesQuery; +using Baya.Infrastructure.Identity.Identity.PermissionManager; +using Baya.WebFramework.Attributes; +using Baya.WebFramework.BaseController; using Mediator; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -namespace CleanArc.Web.Api.Controllers.V1.Admin +namespace Baya.Web.Api.Controllers.V1.Admin { [ApiVersion("1")] [ApiController] diff --git a/server/src/API/CleanArc.Web.Api/Controllers/V1/Admin/UserManagementController.cs b/server/src/API/Baya.Web.Api/Controllers/V1/Admin/UserManagementController.cs similarity index 77% rename from server/src/API/CleanArc.Web.Api/Controllers/V1/Admin/UserManagementController.cs rename to server/src/API/Baya.Web.Api/Controllers/V1/Admin/UserManagementController.cs index 0cf671c..7015a05 100644 --- a/server/src/API/CleanArc.Web.Api/Controllers/V1/Admin/UserManagementController.cs +++ b/server/src/API/Baya.Web.Api/Controllers/V1/Admin/UserManagementController.cs @@ -1,14 +1,14 @@ -using CleanArc.Infrastructure.Identity.Identity.PermissionManager; +using Baya.Infrastructure.Identity.Identity.PermissionManager; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System.ComponentModel.DataAnnotations; using Asp.Versioning; -using CleanArc.Application.Features.Users.Queries.GetUsers; -using CleanArc.WebFramework.Attributes; -using CleanArc.WebFramework.BaseController; +using Baya.Application.Features.Users.Queries.GetUsers; +using Baya.WebFramework.Attributes; +using Baya.WebFramework.BaseController; using Mediator; -namespace CleanArc.Web.Api.Controllers.V1.Admin +namespace Baya.Web.Api.Controllers.V1.Admin { [ApiVersion("1")] [ApiController] diff --git a/server/src/API/CleanArc.Web.Api/Controllers/V1/Order/OrderController.cs b/server/src/API/Baya.Web.Api/Controllers/V1/Order/OrderController.cs similarity index 84% rename from server/src/API/CleanArc.Web.Api/Controllers/V1/Order/OrderController.cs rename to server/src/API/Baya.Web.Api/Controllers/V1/Order/OrderController.cs index 7166427..cfd1b76 100644 --- a/server/src/API/CleanArc.Web.Api/Controllers/V1/Order/OrderController.cs +++ b/server/src/API/Baya.Web.Api/Controllers/V1/Order/OrderController.cs @@ -1,13 +1,13 @@ using Asp.Versioning; -using CleanArc.Application.Features.Order.Commands; -using CleanArc.Application.Features.Order.Queries.GetUserOrders; -using CleanArc.WebFramework.Attributes; -using CleanArc.WebFramework.BaseController; +using Baya.Application.Features.Order.Commands; +using Baya.Application.Features.Order.Queries.GetUserOrders; +using Baya.WebFramework.Attributes; +using Baya.WebFramework.BaseController; using Mediator; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -namespace CleanArc.Web.Api.Controllers.V1.Order; +namespace Baya.Web.Api.Controllers.V1.Order; [ApiVersion("1")] [ApiController] diff --git a/server/src/API/CleanArc.Web.Api/Controllers/V1/UserManagement/UserController.cs b/server/src/API/Baya.Web.Api/Controllers/V1/UserManagement/UserController.cs similarity index 81% rename from server/src/API/CleanArc.Web.Api/Controllers/V1/UserManagement/UserController.cs rename to server/src/API/Baya.Web.Api/Controllers/V1/UserManagement/UserController.cs index 4f2f34f..b25d221 100644 --- a/server/src/API/CleanArc.Web.Api/Controllers/V1/UserManagement/UserController.cs +++ b/server/src/API/Baya.Web.Api/Controllers/V1/UserManagement/UserController.cs @@ -1,20 +1,20 @@ using Asp.Versioning; -using CleanArc.Application.Features.Users.Commands.Create; -using CleanArc.Application.Features.Users.Commands.RefreshUserTokenCommand; -using CleanArc.Application.Features.Users.Commands.RequestLogout; -using CleanArc.Application.Features.Users.Queries.GenerateUserToken; -using CleanArc.Application.Features.Users.Queries.TokenRequest; -using CleanArc.Application.Models.Jwt; -using CleanArc.WebFramework.Attributes; -using CleanArc.WebFramework.BaseController; -using CleanArc.WebFramework.Swagger; +using Baya.Application.Features.Users.Commands.Create; +using Baya.Application.Features.Users.Commands.RefreshUserTokenCommand; +using Baya.Application.Features.Users.Commands.RequestLogout; +using Baya.Application.Features.Users.Queries.GenerateUserToken; +using Baya.Application.Features.Users.Queries.TokenRequest; +using Baya.Application.Models.Jwt; +using Baya.WebFramework.Attributes; +using Baya.WebFramework.BaseController; +using Baya.WebFramework.Swagger; using Mediator; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -namespace CleanArc.Web.Api.Controllers.V1.UserManagement; +namespace Baya.Web.Api.Controllers.V1.UserManagement; [ApiVersion("1")] [ApiController] diff --git a/server/src/API/CleanArc.Web.Api/Program.cs b/server/src/API/Baya.Web.Api/Program.cs similarity index 75% rename from server/src/API/CleanArc.Web.Api/Program.cs rename to server/src/API/Baya.Web.Api/Program.cs index 88aaa2c..0b83ba1 100644 --- a/server/src/API/CleanArc.Web.Api/Program.cs +++ b/server/src/API/Baya.Web.Api/Program.cs @@ -1,22 +1,22 @@ using System.Diagnostics; -using CleanArc.Application.Features.Users.Commands.Create; -using CleanArc.Application.Models.ApiResult; -using CleanArc.Application.Models.Identity; -using CleanArc.Application.ServiceConfiguration; -using CleanArc.Domain.Entities.User; -using CleanArc.Infrastructure.CrossCutting.Logging; -using CleanArc.Infrastructure.Identity.Identity.Dtos; -using CleanArc.Infrastructure.Identity.Jwt; -using CleanArc.Infrastructure.Identity.ServiceConfiguration; -using CleanArc.Infrastructure.Monitoring.Configurations; -using CleanArc.Infrastructure.Persistence.ServiceConfiguration; -using CleanArc.SharedKernel.Extensions; -using CleanArc.Web.Api.Controllers.V1.UserManagement; -using CleanArc.Web.Plugins.Grpc; -using CleanArc.WebFramework.Filters; -using CleanArc.WebFramework.Middlewares; -using CleanArc.WebFramework.ServiceConfiguration; -using CleanArc.WebFramework.Swagger; +using Baya.Application.Features.Users.Commands.Create; +using Baya.Application.Models.ApiResult; +using Baya.Application.Models.Identity; +using Baya.Application.ServiceConfiguration; +using Baya.Domain.Entities.User; +using Baya.Infrastructure.CrossCutting.Logging; +using Baya.Infrastructure.Identity.Identity.Dtos; +using Baya.Infrastructure.Identity.Jwt; +using Baya.Infrastructure.Identity.ServiceConfiguration; +using Baya.Infrastructure.Monitoring.Configurations; +using Baya.Infrastructure.Persistence.ServiceConfiguration; +using Baya.SharedKernel.Extensions; +using Baya.Web.Api.Controllers.V1.UserManagement; +using Baya.Web.Plugins.Grpc; +using Baya.WebFramework.Filters; +using Baya.WebFramework.Middlewares; +using Baya.WebFramework.ServiceConfiguration; +using Baya.WebFramework.Swagger; using Mapster; using Microsoft.AspNetCore.Mvc; using Serilog; diff --git a/server/src/API/CleanArc.Web.Api/Properties/launchSettings.json b/server/src/API/Baya.Web.Api/Properties/launchSettings.json similarity index 100% rename from server/src/API/CleanArc.Web.Api/Properties/launchSettings.json rename to server/src/API/Baya.Web.Api/Properties/launchSettings.json diff --git a/server/src/API/CleanArc.Web.Api/appsettings.Development.json b/server/src/API/Baya.Web.Api/appsettings.Development.json similarity index 62% rename from server/src/API/CleanArc.Web.Api/appsettings.Development.json rename to server/src/API/Baya.Web.Api/appsettings.Development.json index e3ce936..f549d69 100644 --- a/server/src/API/CleanArc.Web.Api/appsettings.Development.json +++ b/server/src/API/Baya.Web.Api/appsettings.Development.json @@ -1,6 +1,6 @@ { "ConnectionStrings": { - "SqlServer": "Data Source=localhost;Initial Catalog=CleanArc_DB_8_0;Integrated Security=true;Encrypt=False" + "SqlServer": "Data Source=localhost;Initial Catalog=Baya_DB_8_0;Integrated Security=true;Encrypt=False" }, "Logging": { "LogLevel": { diff --git a/server/src/API/CleanArc.Web.Api/appsettings.json b/server/src/API/Baya.Web.Api/appsettings.json similarity index 54% rename from server/src/API/CleanArc.Web.Api/appsettings.json rename to server/src/API/Baya.Web.Api/appsettings.json index 4785216..9880419 100644 --- a/server/src/API/CleanArc.Web.Api/appsettings.json +++ b/server/src/API/Baya.Web.Api/appsettings.json @@ -1,7 +1,7 @@ { "ConnectionStrings": { - "SqlServer": "Server=sql_server2022;Database=CleanArc_DB_Docker;User Id=SA;Password=A&VeryComplex123Password;MultipleActiveResultSets=true;encrypt=false", - "logDb": "Server=sql_server2022;Database=CleanArc_Log_DB_Docker;User Id=SA;Password=A&VeryComplex123Password;MultipleActiveResultSets=true;encrypt=false" + "SqlServer": "Server=sql_server2022;Database=Baya_DB_Docker;User Id=SA;Password=A&VeryComplex123Password;MultipleActiveResultSets=true;encrypt=false", + "logDb": "Server=sql_server2022;Database=Baya_Log_DB_Docker;User Id=SA;Password=A&VeryComplex123Password;MultipleActiveResultSets=true;encrypt=false" }, "IdentitySettings": { "SecretKey": "ShouldBe-LongerThan-16Char-SecretKey", diff --git a/server/src/API/CleanArc.WebFramework/Attributes/ProducesOkApiResponseTypeAttribute.cs b/server/src/API/Baya.WebFramework/Attributes/ProducesOkApiResponseTypeAttribute.cs similarity index 92% rename from server/src/API/CleanArc.WebFramework/Attributes/ProducesOkApiResponseTypeAttribute.cs rename to server/src/API/Baya.WebFramework/Attributes/ProducesOkApiResponseTypeAttribute.cs index 0df1d56..6afd9b3 100644 --- a/server/src/API/CleanArc.WebFramework/Attributes/ProducesOkApiResponseTypeAttribute.cs +++ b/server/src/API/Baya.WebFramework/Attributes/ProducesOkApiResponseTypeAttribute.cs @@ -1,8 +1,8 @@ -using CleanArc.Application.Models.ApiResult; +using Baya.Application.Models.ApiResult; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -namespace CleanArc.WebFramework.Attributes; +namespace Baya.WebFramework.Attributes; /// /// Documents the 200 OK response type of endpoint as ApiResult diff --git a/server/src/API/CleanArc.WebFramework/BaseController/BaseController.cs b/server/src/API/Baya.WebFramework/BaseController/BaseController.cs similarity index 88% rename from server/src/API/CleanArc.WebFramework/BaseController/BaseController.cs rename to server/src/API/Baya.WebFramework/BaseController/BaseController.cs index 6f9623c..ea63b82 100644 --- a/server/src/API/CleanArc.WebFramework/BaseController/BaseController.cs +++ b/server/src/API/Baya.WebFramework/BaseController/BaseController.cs @@ -1,10 +1,10 @@ using System.Security.Claims; -using CleanArc.Application.Models.Common; -using CleanArc.SharedKernel.Extensions; -using CleanArc.WebFramework.Filters; +using Baya.Application.Models.Common; +using Baya.SharedKernel.Extensions; +using Baya.WebFramework.Filters; using Microsoft.AspNetCore.Mvc; -namespace CleanArc.WebFramework.BaseController; +namespace Baya.WebFramework.BaseController; public class BaseController : ControllerBase { diff --git a/server/src/API/CleanArc.WebFramework/CleanArc.WebFramework.csproj b/server/src/API/Baya.WebFramework/Baya.WebFramework.csproj similarity index 50% rename from server/src/API/CleanArc.WebFramework/CleanArc.WebFramework.csproj rename to server/src/API/Baya.WebFramework/Baya.WebFramework.csproj index a95c19b..6f008bb 100644 --- a/server/src/API/CleanArc.WebFramework/CleanArc.WebFramework.csproj +++ b/server/src/API/Baya.WebFramework/Baya.WebFramework.csproj @@ -14,10 +14,10 @@ - - - - + + + + diff --git a/server/src/API/CleanArc.WebFramework/EndpointFilters/BadRequestResultEndpointFilter.cs b/server/src/API/Baya.WebFramework/EndpointFilters/BadRequestResultEndpointFilter.cs similarity index 88% rename from server/src/API/CleanArc.WebFramework/EndpointFilters/BadRequestResultEndpointFilter.cs rename to server/src/API/Baya.WebFramework/EndpointFilters/BadRequestResultEndpointFilter.cs index ecf8218..a0c18ee 100644 --- a/server/src/API/CleanArc.WebFramework/EndpointFilters/BadRequestResultEndpointFilter.cs +++ b/server/src/API/Baya.WebFramework/EndpointFilters/BadRequestResultEndpointFilter.cs @@ -1,7 +1,7 @@ -using CleanArc.Application.Models.ApiResult; +using Baya.Application.Models.ApiResult; using Microsoft.AspNetCore.Http; -namespace CleanArc.WebFramework.EndpointFilters; +namespace Baya.WebFramework.EndpointFilters; public class BadRequestResultEndpointFilter:IEndpointFilter { diff --git a/server/src/API/CleanArc.WebFramework/EndpointFilters/ModelStateValidationEndpointFilter.cs b/server/src/API/Baya.WebFramework/EndpointFilters/ModelStateValidationEndpointFilter.cs similarity index 96% rename from server/src/API/CleanArc.WebFramework/EndpointFilters/ModelStateValidationEndpointFilter.cs rename to server/src/API/Baya.WebFramework/EndpointFilters/ModelStateValidationEndpointFilter.cs index 7ea13e5..c6c0a32 100644 --- a/server/src/API/CleanArc.WebFramework/EndpointFilters/ModelStateValidationEndpointFilter.cs +++ b/server/src/API/Baya.WebFramework/EndpointFilters/ModelStateValidationEndpointFilter.cs @@ -1,7 +1,7 @@ using FluentValidation; using Microsoft.AspNetCore.Http; -namespace CleanArc.WebFramework.EndpointFilters; +namespace Baya.WebFramework.EndpointFilters; public class ModelStateValidationEndpointFilter:IEndpointFilter { diff --git a/server/src/API/CleanArc.WebFramework/EndpointFilters/NotFoundResultEndpointFilter.cs b/server/src/API/Baya.WebFramework/EndpointFilters/NotFoundResultEndpointFilter.cs similarity index 88% rename from server/src/API/CleanArc.WebFramework/EndpointFilters/NotFoundResultEndpointFilter.cs rename to server/src/API/Baya.WebFramework/EndpointFilters/NotFoundResultEndpointFilter.cs index 6ae2244..fe80a51 100644 --- a/server/src/API/CleanArc.WebFramework/EndpointFilters/NotFoundResultEndpointFilter.cs +++ b/server/src/API/Baya.WebFramework/EndpointFilters/NotFoundResultEndpointFilter.cs @@ -1,7 +1,7 @@ -using CleanArc.Application.Models.ApiResult; +using Baya.Application.Models.ApiResult; using Microsoft.AspNetCore.Http; -namespace CleanArc.WebFramework.EndpointFilters; +namespace Baya.WebFramework.EndpointFilters; public class NotFoundResultEndpointFilter:IEndpointFilter { diff --git a/server/src/API/CleanArc.WebFramework/EndpointFilters/OkResultEndpointFilter.cs b/server/src/API/Baya.WebFramework/EndpointFilters/OkResultEndpointFilter.cs similarity index 88% rename from server/src/API/CleanArc.WebFramework/EndpointFilters/OkResultEndpointFilter.cs rename to server/src/API/Baya.WebFramework/EndpointFilters/OkResultEndpointFilter.cs index 2161a67..da5f601 100644 --- a/server/src/API/CleanArc.WebFramework/EndpointFilters/OkResultEndpointFilter.cs +++ b/server/src/API/Baya.WebFramework/EndpointFilters/OkResultEndpointFilter.cs @@ -1,7 +1,7 @@ -using CleanArc.Application.Models.ApiResult; +using Baya.Application.Models.ApiResult; using Microsoft.AspNetCore.Http; -namespace CleanArc.WebFramework.EndpointFilters; +namespace Baya.WebFramework.EndpointFilters; public class OkResultEndpointFilter:IEndpointFilter { diff --git a/server/src/API/CleanArc.WebFramework/Filters/ApiResultFilterAttribute.cs b/server/src/API/Baya.WebFramework/Filters/ApiResultFilterAttribute.cs similarity index 97% rename from server/src/API/CleanArc.WebFramework/Filters/ApiResultFilterAttribute.cs rename to server/src/API/Baya.WebFramework/Filters/ApiResultFilterAttribute.cs index bcef567..44eb995 100644 --- a/server/src/API/CleanArc.WebFramework/Filters/ApiResultFilterAttribute.cs +++ b/server/src/API/Baya.WebFramework/Filters/ApiResultFilterAttribute.cs @@ -1,9 +1,9 @@ -using CleanArc.Application.Models.ApiResult; +using Baya.Application.Models.ApiResult; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -namespace CleanArc.WebFramework.Filters; +namespace Baya.WebFramework.Filters; [Obsolete(message:"Separated filters added")] public class ApiResultFilterAttribute : ResultFilterAttribute diff --git a/server/src/API/CleanArc.WebFramework/Filters/BadRequestResultFilterAttribute.cs b/server/src/API/Baya.WebFramework/Filters/BadRequestResultFilterAttribute.cs similarity index 91% rename from server/src/API/CleanArc.WebFramework/Filters/BadRequestResultFilterAttribute.cs rename to server/src/API/Baya.WebFramework/Filters/BadRequestResultFilterAttribute.cs index cd94102..28e12ed 100644 --- a/server/src/API/CleanArc.WebFramework/Filters/BadRequestResultFilterAttribute.cs +++ b/server/src/API/Baya.WebFramework/Filters/BadRequestResultFilterAttribute.cs @@ -1,10 +1,10 @@ -using CleanArc.Application.Models.ApiResult; -using CleanArc.SharedKernel.Extensions; +using Baya.Application.Models.ApiResult; +using Baya.SharedKernel.Extensions; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -namespace CleanArc.WebFramework.Filters; +namespace Baya.WebFramework.Filters; public class BadRequestResultFilterAttribute : ActionFilterAttribute { diff --git a/server/src/API/CleanArc.WebFramework/Filters/ContentResultFilterAttribute.cs b/server/src/API/Baya.WebFramework/Filters/ContentResultFilterAttribute.cs similarity index 84% rename from server/src/API/CleanArc.WebFramework/Filters/ContentResultFilterAttribute.cs rename to server/src/API/Baya.WebFramework/Filters/ContentResultFilterAttribute.cs index c01df10..18a359a 100644 --- a/server/src/API/CleanArc.WebFramework/Filters/ContentResultFilterAttribute.cs +++ b/server/src/API/Baya.WebFramework/Filters/ContentResultFilterAttribute.cs @@ -1,8 +1,8 @@ -using CleanArc.Application.Models.ApiResult; +using Baya.Application.Models.ApiResult; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -namespace CleanArc.WebFramework.Filters; +namespace Baya.WebFramework.Filters; public class ContentResultFilterAttribute : ResultFilterAttribute { diff --git a/server/src/API/CleanArc.WebFramework/Filters/ModelStateValidationAttribute.cs b/server/src/API/Baya.WebFramework/Filters/ModelStateValidationAttribute.cs similarity index 94% rename from server/src/API/CleanArc.WebFramework/Filters/ModelStateValidationAttribute.cs rename to server/src/API/Baya.WebFramework/Filters/ModelStateValidationAttribute.cs index 60185a6..4843007 100644 --- a/server/src/API/CleanArc.WebFramework/Filters/ModelStateValidationAttribute.cs +++ b/server/src/API/Baya.WebFramework/Filters/ModelStateValidationAttribute.cs @@ -1,11 +1,11 @@ -using CleanArc.Application.Models.ApiResult; -using CleanArc.SharedKernel.Extensions; +using Baya.Application.Models.ApiResult; +using Baya.SharedKernel.Extensions; using FluentValidation; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using StatusCodes = Microsoft.AspNetCore.Http.StatusCodes; -namespace CleanArc.WebFramework.Filters; +namespace Baya.WebFramework.Filters; public class ModelStateValidationAttribute : ActionFilterAttribute { diff --git a/server/src/API/CleanArc.WebFramework/Filters/NotFoundResultAttribute.cs b/server/src/API/Baya.WebFramework/Filters/NotFoundResultAttribute.cs similarity index 90% rename from server/src/API/CleanArc.WebFramework/Filters/NotFoundResultAttribute.cs rename to server/src/API/Baya.WebFramework/Filters/NotFoundResultAttribute.cs index 18e2d5c..f0ce4ae 100644 --- a/server/src/API/CleanArc.WebFramework/Filters/NotFoundResultAttribute.cs +++ b/server/src/API/Baya.WebFramework/Filters/NotFoundResultAttribute.cs @@ -1,9 +1,9 @@ -using CleanArc.Application.Models.ApiResult; +using Baya.Application.Models.ApiResult; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -namespace CleanArc.WebFramework.Filters; +namespace Baya.WebFramework.Filters; public class NotFoundResultAttribute : ResultFilterAttribute { diff --git a/server/src/API/CleanArc.WebFramework/Filters/OkResultAttribute.cs b/server/src/API/Baya.WebFramework/Filters/OkResultAttribute.cs similarity index 90% rename from server/src/API/CleanArc.WebFramework/Filters/OkResultAttribute.cs rename to server/src/API/Baya.WebFramework/Filters/OkResultAttribute.cs index c5765f6..72d6b48 100644 --- a/server/src/API/CleanArc.WebFramework/Filters/OkResultAttribute.cs +++ b/server/src/API/Baya.WebFramework/Filters/OkResultAttribute.cs @@ -1,8 +1,8 @@ -using CleanArc.Application.Models.ApiResult; +using Baya.Application.Models.ApiResult; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -namespace CleanArc.WebFramework.Filters; +namespace Baya.WebFramework.Filters; public class OkResultAttribute:ResultFilterAttribute { diff --git a/server/src/API/CleanArc.WebFramework/Filters/ServerErrorResult.cs b/server/src/API/Baya.WebFramework/Filters/ServerErrorResult.cs similarity index 86% rename from server/src/API/CleanArc.WebFramework/Filters/ServerErrorResult.cs rename to server/src/API/Baya.WebFramework/Filters/ServerErrorResult.cs index 101aeb7..bf82097 100644 --- a/server/src/API/CleanArc.WebFramework/Filters/ServerErrorResult.cs +++ b/server/src/API/Baya.WebFramework/Filters/ServerErrorResult.cs @@ -1,8 +1,8 @@ -using CleanArc.Application.Models.ApiResult; +using Baya.Application.Models.ApiResult; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -namespace CleanArc.WebFramework.Filters; +namespace Baya.WebFramework.Filters; public class ServerErrorResult:IActionResult { diff --git a/server/src/API/CleanArc.WebFramework/Middlewares/ExceptionHandler.cs b/server/src/API/Baya.WebFramework/Middlewares/ExceptionHandler.cs similarity index 94% rename from server/src/API/CleanArc.WebFramework/Middlewares/ExceptionHandler.cs rename to server/src/API/Baya.WebFramework/Middlewares/ExceptionHandler.cs index 32ab6ff..e2f4558 100644 --- a/server/src/API/CleanArc.WebFramework/Middlewares/ExceptionHandler.cs +++ b/server/src/API/Baya.WebFramework/Middlewares/ExceptionHandler.cs @@ -1,12 +1,12 @@ -using CleanArc.Application.Models.ApiResult; +using Baya.Application.Models.ApiResult; using Microsoft.AspNetCore.Diagnostics; using Microsoft.AspNetCore.Http; -using CleanArc.SharedKernel.Extensions; +using Baya.SharedKernel.Extensions; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; -namespace CleanArc.WebFramework.Middlewares; +namespace Baya.WebFramework.Middlewares; public class ExceptionHandler(ILogger logger,IWebHostEnvironment environment) : IExceptionHandler { diff --git a/server/src/API/CleanArc.WebFramework/ServiceConfiguration/ServiceCollectionExtension.cs b/server/src/API/Baya.WebFramework/ServiceConfiguration/ServiceCollectionExtension.cs similarity index 96% rename from server/src/API/CleanArc.WebFramework/ServiceConfiguration/ServiceCollectionExtension.cs rename to server/src/API/Baya.WebFramework/ServiceConfiguration/ServiceCollectionExtension.cs index d4cd52b..14a9a8d 100644 --- a/server/src/API/CleanArc.WebFramework/ServiceConfiguration/ServiceCollectionExtension.cs +++ b/server/src/API/Baya.WebFramework/ServiceConfiguration/ServiceCollectionExtension.cs @@ -1,7 +1,7 @@ using Asp.Versioning; using Microsoft.Extensions.DependencyInjection; -namespace CleanArc.WebFramework.ServiceConfiguration; +namespace Baya.WebFramework.ServiceConfiguration; public static class ServiceCollectionExtension { diff --git a/server/src/API/CleanArc.WebFramework/Swagger/ApiVersionDocumentProcessor.cs b/server/src/API/Baya.WebFramework/Swagger/ApiVersionDocumentProcessor.cs similarity index 89% rename from server/src/API/CleanArc.WebFramework/Swagger/ApiVersionDocumentProcessor.cs rename to server/src/API/Baya.WebFramework/Swagger/ApiVersionDocumentProcessor.cs index af75bba..44c2984 100644 --- a/server/src/API/CleanArc.WebFramework/Swagger/ApiVersionDocumentProcessor.cs +++ b/server/src/API/Baya.WebFramework/Swagger/ApiVersionDocumentProcessor.cs @@ -1,8 +1,8 @@ -using CleanArc.SharedKernel.Extensions; +using Baya.SharedKernel.Extensions; using NSwag.Generation.Processors; using NSwag.Generation.Processors.Contexts; -namespace CleanArc.WebFramework.Swagger; +namespace Baya.WebFramework.Swagger; public class ApiVersionDocumentProcessor: IDocumentProcessor { diff --git a/server/src/API/CleanArc.WebFramework/Swagger/ApplySummariesOperationFilter.cs b/server/src/API/Baya.WebFramework/Swagger/ApplySummariesOperationFilter.cs similarity index 99% rename from server/src/API/CleanArc.WebFramework/Swagger/ApplySummariesOperationFilter.cs rename to server/src/API/Baya.WebFramework/Swagger/ApplySummariesOperationFilter.cs index e910caa..f8848e5 100644 --- a/server/src/API/CleanArc.WebFramework/Swagger/ApplySummariesOperationFilter.cs +++ b/server/src/API/Baya.WebFramework/Swagger/ApplySummariesOperationFilter.cs @@ -3,7 +3,7 @@ using NSwag.Generation.Processors.Contexts; using Pluralize.NET; -namespace CleanArc.WebFramework.Swagger; +namespace Baya.WebFramework.Swagger; public class ApplySummariesOperationFilter : IOperationProcessor { diff --git a/server/src/API/CleanArc.WebFramework/Swagger/CustomTokenRequiredOperationFilter.cs b/server/src/API/Baya.WebFramework/Swagger/CustomTokenRequiredOperationFilter.cs similarity index 96% rename from server/src/API/CleanArc.WebFramework/Swagger/CustomTokenRequiredOperationFilter.cs rename to server/src/API/Baya.WebFramework/Swagger/CustomTokenRequiredOperationFilter.cs index b7edbb8..45731e4 100644 --- a/server/src/API/CleanArc.WebFramework/Swagger/CustomTokenRequiredOperationFilter.cs +++ b/server/src/API/Baya.WebFramework/Swagger/CustomTokenRequiredOperationFilter.cs @@ -3,7 +3,7 @@ using NSwag.Generation.Processors; using NSwag.Generation.Processors.Contexts; -namespace CleanArc.WebFramework.Swagger; +namespace Baya.WebFramework.Swagger; public class CustomTokenRequiredOperationFilter : IOperationProcessor { diff --git a/server/src/API/CleanArc.WebFramework/Swagger/RequireTokenWithoutAuthorizationAttribute.cs b/server/src/API/Baya.WebFramework/Swagger/RequireTokenWithoutAuthorizationAttribute.cs similarity index 86% rename from server/src/API/CleanArc.WebFramework/Swagger/RequireTokenWithoutAuthorizationAttribute.cs rename to server/src/API/Baya.WebFramework/Swagger/RequireTokenWithoutAuthorizationAttribute.cs index 6f7be7c..c49cd4c 100644 --- a/server/src/API/CleanArc.WebFramework/Swagger/RequireTokenWithoutAuthorizationAttribute.cs +++ b/server/src/API/Baya.WebFramework/Swagger/RequireTokenWithoutAuthorizationAttribute.cs @@ -1,4 +1,4 @@ -namespace CleanArc.WebFramework.Swagger; +namespace Baya.WebFramework.Swagger; /// diff --git a/server/src/API/CleanArc.WebFramework/Swagger/SwaggerConfigurationExtensions.cs b/server/src/API/Baya.WebFramework/Swagger/SwaggerConfigurationExtensions.cs similarity index 98% rename from server/src/API/CleanArc.WebFramework/Swagger/SwaggerConfigurationExtensions.cs rename to server/src/API/Baya.WebFramework/Swagger/SwaggerConfigurationExtensions.cs index e0658b7..d2a12c3 100644 --- a/server/src/API/CleanArc.WebFramework/Swagger/SwaggerConfigurationExtensions.cs +++ b/server/src/API/Baya.WebFramework/Swagger/SwaggerConfigurationExtensions.cs @@ -4,7 +4,7 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using NSwag; -namespace CleanArc.WebFramework.Swagger; +namespace Baya.WebFramework.Swagger; public static class SwaggerConfigurationExtensions { diff --git a/server/src/API/Plugins/CleanArc.Web.Plugins.Grpc/CleanArc.Web.Plugins.Grpc.csproj b/server/src/API/Plugins/Baya.Web.Plugins.Grpc/Baya.Web.Plugins.Grpc.csproj similarity index 86% rename from server/src/API/Plugins/CleanArc.Web.Plugins.Grpc/CleanArc.Web.Plugins.Grpc.csproj rename to server/src/API/Plugins/Baya.Web.Plugins.Grpc/Baya.Web.Plugins.Grpc.csproj index 7329f1d..52a00dd 100644 --- a/server/src/API/Plugins/CleanArc.Web.Plugins.Grpc/CleanArc.Web.Plugins.Grpc.csproj +++ b/server/src/API/Plugins/Baya.Web.Plugins.Grpc/Baya.Web.Plugins.Grpc.csproj @@ -11,7 +11,7 @@ - + diff --git a/server/src/API/Plugins/CleanArc.Web.Plugins.Grpc/GrpcPluginStartup.cs b/server/src/API/Plugins/Baya.Web.Plugins.Grpc/GrpcPluginStartup.cs similarity index 92% rename from server/src/API/Plugins/CleanArc.Web.Plugins.Grpc/GrpcPluginStartup.cs rename to server/src/API/Plugins/Baya.Web.Plugins.Grpc/GrpcPluginStartup.cs index 45ce33b..cda271e 100644 --- a/server/src/API/Plugins/CleanArc.Web.Plugins.Grpc/GrpcPluginStartup.cs +++ b/server/src/API/Plugins/Baya.Web.Plugins.Grpc/GrpcPluginStartup.cs @@ -1,9 +1,9 @@ using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; -using CleanArc.Web.Plugins.Grpc.Services; +using Baya.Web.Plugins.Grpc.Services; -namespace CleanArc.Web.Plugins.Grpc; +namespace Baya.Web.Plugins.Grpc; public static class GrpcPluginStartup { diff --git a/server/src/API/Plugins/CleanArc.Web.Plugins.Grpc/ProtoModels/OrderGrpcServiceModels.proto b/server/src/API/Plugins/Baya.Web.Plugins.Grpc/ProtoModels/OrderGrpcServiceModels.proto similarity index 80% rename from server/src/API/Plugins/CleanArc.Web.Plugins.Grpc/ProtoModels/OrderGrpcServiceModels.proto rename to server/src/API/Plugins/Baya.Web.Plugins.Grpc/ProtoModels/OrderGrpcServiceModels.proto index 4aba0a2..d2ea289 100644 --- a/server/src/API/Plugins/CleanArc.Web.Plugins.Grpc/ProtoModels/OrderGrpcServiceModels.proto +++ b/server/src/API/Plugins/Baya.Web.Plugins.Grpc/ProtoModels/OrderGrpcServiceModels.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option csharp_namespace = "CleanArc.Web.Plugins.Grpc.ProtoModels"; +option csharp_namespace = "Baya.Web.Plugins.Grpc.ProtoModels"; import "google/protobuf/empty.proto"; package GrpcOrderController; diff --git a/server/src/API/Plugins/CleanArc.Web.Plugins.Grpc/ProtoModels/UserGrpcServiceModels.proto b/server/src/API/Plugins/Baya.Web.Plugins.Grpc/ProtoModels/UserGrpcServiceModels.proto similarity index 91% rename from server/src/API/Plugins/CleanArc.Web.Plugins.Grpc/ProtoModels/UserGrpcServiceModels.proto rename to server/src/API/Plugins/Baya.Web.Plugins.Grpc/ProtoModels/UserGrpcServiceModels.proto index 5c174e0..53f9070 100644 --- a/server/src/API/Plugins/CleanArc.Web.Plugins.Grpc/ProtoModels/UserGrpcServiceModels.proto +++ b/server/src/API/Plugins/Baya.Web.Plugins.Grpc/ProtoModels/UserGrpcServiceModels.proto @@ -1,7 +1,7 @@  syntax = "proto3"; -option csharp_namespace = "CleanArc.Web.Plugins.Grpc.ProtoModels"; +option csharp_namespace = "Baya.Web.Plugins.Grpc.ProtoModels"; package GrpcUserController; diff --git a/server/src/API/Plugins/CleanArc.Web.Plugins.Grpc/Services/OrderGrpcServices.cs b/server/src/API/Plugins/Baya.Web.Plugins.Grpc/Services/OrderGrpcServices.cs similarity index 86% rename from server/src/API/Plugins/CleanArc.Web.Plugins.Grpc/Services/OrderGrpcServices.cs rename to server/src/API/Plugins/Baya.Web.Plugins.Grpc/Services/OrderGrpcServices.cs index e1e4597..104f219 100644 --- a/server/src/API/Plugins/CleanArc.Web.Plugins.Grpc/Services/OrderGrpcServices.cs +++ b/server/src/API/Plugins/Baya.Web.Plugins.Grpc/Services/OrderGrpcServices.cs @@ -1,12 +1,12 @@ -using CleanArc.Application.Features.Order.Queries.GetUserOrders; -using CleanArc.SharedKernel.Extensions; -using CleanArc.Web.Plugins.Grpc.ProtoModels; +using Baya.Application.Features.Order.Queries.GetUserOrders; +using Baya.SharedKernel.Extensions; +using Baya.Web.Plugins.Grpc.ProtoModels; using Google.Protobuf.WellKnownTypes; using Grpc.Core; using Mediator; using Microsoft.AspNetCore.Authorization; -namespace CleanArc.Web.Plugins.Grpc.Services +namespace Baya.Web.Plugins.Grpc.Services { [Authorize] public class OrderGrpcServices:OrderServices.OrderServicesBase diff --git a/server/src/API/Plugins/CleanArc.Web.Plugins.Grpc/Services/UserGrpcServices.cs b/server/src/API/Plugins/Baya.Web.Plugins.Grpc/Services/UserGrpcServices.cs similarity index 92% rename from server/src/API/Plugins/CleanArc.Web.Plugins.Grpc/Services/UserGrpcServices.cs rename to server/src/API/Plugins/Baya.Web.Plugins.Grpc/Services/UserGrpcServices.cs index b0223ce..4d144bb 100644 --- a/server/src/API/Plugins/CleanArc.Web.Plugins.Grpc/Services/UserGrpcServices.cs +++ b/server/src/API/Plugins/Baya.Web.Plugins.Grpc/Services/UserGrpcServices.cs @@ -1,10 +1,10 @@ -using CleanArc.Application.Features.Users.Queries.GenerateUserToken; -using CleanArc.Application.Features.Users.Queries.TokenRequest; -using CleanArc.Web.Plugins.Grpc.ProtoModels; +using Baya.Application.Features.Users.Queries.GenerateUserToken; +using Baya.Application.Features.Users.Queries.TokenRequest; +using Baya.Web.Plugins.Grpc.ProtoModels; using Grpc.Core; using Mediator; -namespace CleanArc.Web.Plugins.Grpc.Services; +namespace Baya.Web.Plugins.Grpc.Services; public class UserGrpcServices : UserServices.UserServicesBase { diff --git a/server/src/Core/CleanArc.Application/CleanArc.Application.csproj b/server/src/Core/Baya.Application/Baya.Application.csproj similarity index 90% rename from server/src/Core/CleanArc.Application/CleanArc.Application.csproj rename to server/src/Core/Baya.Application/Baya.Application.csproj index fac9978..14cdd00 100644 --- a/server/src/Core/CleanArc.Application/CleanArc.Application.csproj +++ b/server/src/Core/Baya.Application/Baya.Application.csproj @@ -11,7 +11,7 @@ - + all runtime; build; native; contentfiles; analyzers diff --git a/server/src/Core/CleanArc.Application/Common/LoggingBehavior.cs b/server/src/Core/Baya.Application/Common/LoggingBehavior.cs similarity index 91% rename from server/src/Core/CleanArc.Application/Common/LoggingBehavior.cs rename to server/src/Core/Baya.Application/Common/LoggingBehavior.cs index a4512f5..dce433b 100644 --- a/server/src/Core/CleanArc.Application/Common/LoggingBehavior.cs +++ b/server/src/Core/Baya.Application/Common/LoggingBehavior.cs @@ -1,8 +1,8 @@ -using CleanArc.Application.Models.Common; +using Baya.Application.Models.Common; using Mediator; using Microsoft.Extensions.Logging; -namespace CleanArc.Application.Common; +namespace Baya.Application.Common; public class LoggingBehavior(ILogger> logger) : IPipelineBehavior diff --git a/server/src/Core/CleanArc.Application/Common/MetricsBehaviour.cs b/server/src/Core/Baya.Application/Common/MetricsBehaviour.cs similarity index 96% rename from server/src/Core/CleanArc.Application/Common/MetricsBehaviour.cs rename to server/src/Core/Baya.Application/Common/MetricsBehaviour.cs index 2ead0d6..ef7b25d 100644 --- a/server/src/Core/CleanArc.Application/Common/MetricsBehaviour.cs +++ b/server/src/Core/Baya.Application/Common/MetricsBehaviour.cs @@ -2,7 +2,7 @@ using System.Diagnostics.Metrics; using Mediator; -namespace CleanArc.Application.Common; +namespace Baya.Application.Common; public class MetricsBehaviour : IPipelineBehavior where TRequest : IRequest diff --git a/server/src/Core/CleanArc.Application/Common/ValidateCommandBehavior.cs b/server/src/Core/Baya.Application/Common/ValidateCommandBehavior.cs similarity index 93% rename from server/src/Core/CleanArc.Application/Common/ValidateCommandBehavior.cs rename to server/src/Core/Baya.Application/Common/ValidateCommandBehavior.cs index 5ae1d47..d8cb4cc 100644 --- a/server/src/Core/CleanArc.Application/Common/ValidateCommandBehavior.cs +++ b/server/src/Core/Baya.Application/Common/ValidateCommandBehavior.cs @@ -1,9 +1,9 @@ -using CleanArc.Application.Models.Common; +using Baya.Application.Models.Common; using FluentValidation; using FluentValidation.Results; using Mediator; -namespace CleanArc.Application.Common; +namespace Baya.Application.Common; public class ValidateCommandBehavior(IEnumerable> validators) : IPipelineBehavior diff --git a/server/src/Core/CleanArc.Application/Contracts/IJwtService.cs b/server/src/Core/Baya.Application/Contracts/IJwtService.cs similarity index 72% rename from server/src/Core/CleanArc.Application/Contracts/IJwtService.cs rename to server/src/Core/Baya.Application/Contracts/IJwtService.cs index 24ef87e..50857b4 100644 --- a/server/src/Core/CleanArc.Application/Contracts/IJwtService.cs +++ b/server/src/Core/Baya.Application/Contracts/IJwtService.cs @@ -1,8 +1,8 @@ using System.Security.Claims; -using CleanArc.Application.Models.Jwt; -using CleanArc.Domain.Entities.User; +using Baya.Application.Models.Jwt; +using Baya.Domain.Entities.User; -namespace CleanArc.Application.Contracts; +namespace Baya.Application.Contracts; public interface IJwtService { diff --git a/server/src/Core/CleanArc.Application/Contracts/Identity/IAppUserManager.cs b/server/src/Core/Baya.Application/Contracts/Identity/IAppUserManager.cs similarity index 93% rename from server/src/Core/CleanArc.Application/Contracts/Identity/IAppUserManager.cs rename to server/src/Core/Baya.Application/Contracts/Identity/IAppUserManager.cs index 4d1e768..551476a 100644 --- a/server/src/Core/CleanArc.Application/Contracts/Identity/IAppUserManager.cs +++ b/server/src/Core/Baya.Application/Contracts/Identity/IAppUserManager.cs @@ -1,7 +1,7 @@ -using CleanArc.Domain.Entities.User; +using Baya.Domain.Entities.User; using Microsoft.AspNetCore.Identity; -namespace CleanArc.Application.Contracts.Identity; +namespace Baya.Application.Contracts.Identity; public interface IAppUserManager { diff --git a/server/src/Core/CleanArc.Application/Contracts/Identity/IRoleManagerService.cs b/server/src/Core/Baya.Application/Contracts/Identity/IRoleManagerService.cs similarity index 78% rename from server/src/Core/CleanArc.Application/Contracts/Identity/IRoleManagerService.cs rename to server/src/Core/Baya.Application/Contracts/Identity/IRoleManagerService.cs index a1f181b..f80e41f 100644 --- a/server/src/Core/CleanArc.Application/Contracts/Identity/IRoleManagerService.cs +++ b/server/src/Core/Baya.Application/Contracts/Identity/IRoleManagerService.cs @@ -1,8 +1,8 @@ -using CleanArc.Application.Models.Identity; -using CleanArc.Domain.Entities.User; +using Baya.Application.Models.Identity; +using Baya.Domain.Entities.User; using Microsoft.AspNetCore.Identity; -namespace CleanArc.Application.Contracts.Identity; +namespace Baya.Application.Contracts.Identity; public interface IRoleManagerService { diff --git a/server/src/Core/CleanArc.Application/Contracts/Persistence/IOrderRepository.cs b/server/src/Core/Baya.Application/Contracts/Persistence/IOrderRepository.cs similarity index 77% rename from server/src/Core/CleanArc.Application/Contracts/Persistence/IOrderRepository.cs rename to server/src/Core/Baya.Application/Contracts/Persistence/IOrderRepository.cs index aa0c061..1b23147 100644 --- a/server/src/Core/CleanArc.Application/Contracts/Persistence/IOrderRepository.cs +++ b/server/src/Core/Baya.Application/Contracts/Persistence/IOrderRepository.cs @@ -1,6 +1,6 @@ -using CleanArc.Domain.Entities.Order; +using Baya.Domain.Entities.Order; -namespace CleanArc.Application.Contracts.Persistence; +namespace Baya.Application.Contracts.Persistence; public interface IOrderRepository { diff --git a/server/src/Core/CleanArc.Application/Contracts/Persistence/IUnitOfWork.cs b/server/src/Core/Baya.Application/Contracts/Persistence/IUnitOfWork.cs similarity index 79% rename from server/src/Core/CleanArc.Application/Contracts/Persistence/IUnitOfWork.cs rename to server/src/Core/Baya.Application/Contracts/Persistence/IUnitOfWork.cs index 972072f..65473c8 100644 --- a/server/src/Core/CleanArc.Application/Contracts/Persistence/IUnitOfWork.cs +++ b/server/src/Core/Baya.Application/Contracts/Persistence/IUnitOfWork.cs @@ -1,4 +1,4 @@ -namespace CleanArc.Application.Contracts.Persistence; +namespace Baya.Application.Contracts.Persistence; public interface IUnitOfWork { diff --git a/server/src/Core/CleanArc.Application/Contracts/Persistence/IUserRefreshTokenRepository.cs b/server/src/Core/Baya.Application/Contracts/Persistence/IUserRefreshTokenRepository.cs similarity index 75% rename from server/src/Core/CleanArc.Application/Contracts/Persistence/IUserRefreshTokenRepository.cs rename to server/src/Core/Baya.Application/Contracts/Persistence/IUserRefreshTokenRepository.cs index be0be93..502d5de 100644 --- a/server/src/Core/CleanArc.Application/Contracts/Persistence/IUserRefreshTokenRepository.cs +++ b/server/src/Core/Baya.Application/Contracts/Persistence/IUserRefreshTokenRepository.cs @@ -1,6 +1,6 @@ -using CleanArc.Domain.Entities.User; +using Baya.Domain.Entities.User; -namespace CleanArc.Application.Contracts.Persistence; +namespace Baya.Application.Contracts.Persistence; public interface IUserRefreshTokenRepository { diff --git a/server/src/Core/CleanArc.Application/Features/Admin/Commands/AddAdminCommand/AddAdminCommand.Handler.cs b/server/src/Core/Baya.Application/Features/Admin/Commands/AddAdminCommand/AddAdminCommand.Handler.cs similarity index 86% rename from server/src/Core/CleanArc.Application/Features/Admin/Commands/AddAdminCommand/AddAdminCommand.Handler.cs rename to server/src/Core/Baya.Application/Features/Admin/Commands/AddAdminCommand/AddAdminCommand.Handler.cs index 4680947..98de70f 100644 --- a/server/src/Core/CleanArc.Application/Features/Admin/Commands/AddAdminCommand/AddAdminCommand.Handler.cs +++ b/server/src/Core/Baya.Application/Features/Admin/Commands/AddAdminCommand/AddAdminCommand.Handler.cs @@ -1,10 +1,10 @@ -using CleanArc.Application.Contracts.Identity; -using CleanArc.Application.Models.Common; -using CleanArc.Domain.Entities.User; -using CleanArc.SharedKernel.Extensions; +using Baya.Application.Contracts.Identity; +using Baya.Application.Models.Common; +using Baya.Domain.Entities.User; +using Baya.SharedKernel.Extensions; using Mediator; -namespace CleanArc.Application.Features.Admin.Commands.AddAdminCommand +namespace Baya.Application.Features.Admin.Commands.AddAdminCommand { internal class AddAdminCommandHandler:IRequestHandler> { diff --git a/server/src/Core/CleanArc.Application/Features/Admin/Commands/AddAdminCommand/AddAdminCommand.cs b/server/src/Core/Baya.Application/Features/Admin/Commands/AddAdminCommand/AddAdminCommand.cs similarity index 78% rename from server/src/Core/CleanArc.Application/Features/Admin/Commands/AddAdminCommand/AddAdminCommand.cs rename to server/src/Core/Baya.Application/Features/Admin/Commands/AddAdminCommand/AddAdminCommand.cs index c842030..b752f81 100644 --- a/server/src/Core/CleanArc.Application/Features/Admin/Commands/AddAdminCommand/AddAdminCommand.cs +++ b/server/src/Core/Baya.Application/Features/Admin/Commands/AddAdminCommand/AddAdminCommand.cs @@ -1,10 +1,10 @@ -using CleanArc.Application.Models.Common; -using CleanArc.SharedKernel.ValidationBase; -using CleanArc.SharedKernel.ValidationBase.Contracts; +using Baya.Application.Models.Common; +using Baya.SharedKernel.ValidationBase; +using Baya.SharedKernel.ValidationBase.Contracts; using FluentValidation; using Mediator; -namespace CleanArc.Application.Features.Admin.Commands.AddAdminCommand; +namespace Baya.Application.Features.Admin.Commands.AddAdminCommand; public record AddAdminCommand (string UserName, string Email, string Password, int RoleId) : IRequest>, diff --git a/server/src/Core/CleanArc.Application/Features/Admin/Queries/GetToken/AdminGetTokenQuery.Handler.cs b/server/src/Core/Baya.Application/Features/Admin/Queries/GetToken/AdminGetTokenQuery.Handler.cs similarity index 87% rename from server/src/Core/CleanArc.Application/Features/Admin/Queries/GetToken/AdminGetTokenQuery.Handler.cs rename to server/src/Core/Baya.Application/Features/Admin/Queries/GetToken/AdminGetTokenQuery.Handler.cs index 773a5e9..ea3321a 100644 --- a/server/src/Core/CleanArc.Application/Features/Admin/Queries/GetToken/AdminGetTokenQuery.Handler.cs +++ b/server/src/Core/Baya.Application/Features/Admin/Queries/GetToken/AdminGetTokenQuery.Handler.cs @@ -1,10 +1,10 @@ -using CleanArc.Application.Contracts; -using CleanArc.Application.Contracts.Identity; -using CleanArc.Application.Models.Common; -using CleanArc.Application.Models.Jwt; +using Baya.Application.Contracts; +using Baya.Application.Contracts.Identity; +using Baya.Application.Models.Common; +using Baya.Application.Models.Jwt; using Mediator; -namespace CleanArc.Application.Features.Admin.Queries.GetToken; +namespace Baya.Application.Features.Admin.Queries.GetToken; public class AdminGetTokenQueryHandler:IRequestHandler> { diff --git a/server/src/Core/Baya.Application/Features/Admin/Queries/GetToken/AdminGetTokenQuery.Result.cs b/server/src/Core/Baya.Application/Features/Admin/Queries/GetToken/AdminGetTokenQuery.Result.cs new file mode 100644 index 0000000..d6f5678 --- /dev/null +++ b/server/src/Core/Baya.Application/Features/Admin/Queries/GetToken/AdminGetTokenQuery.Result.cs @@ -0,0 +1,5 @@ +using Baya.Application.Models.Jwt; + +namespace Baya.Application.Features.Admin.Queries.GetToken; + +public record AdminGetTokenQueryResult(AccessToken Token,string[] Roles); \ No newline at end of file diff --git a/server/src/Core/CleanArc.Application/Features/Admin/Queries/GetToken/AdminGetTokenQuery.cs b/server/src/Core/Baya.Application/Features/Admin/Queries/GetToken/AdminGetTokenQuery.cs similarity index 73% rename from server/src/Core/CleanArc.Application/Features/Admin/Queries/GetToken/AdminGetTokenQuery.cs rename to server/src/Core/Baya.Application/Features/Admin/Queries/GetToken/AdminGetTokenQuery.cs index 6c560a6..ff50b2f 100644 --- a/server/src/Core/CleanArc.Application/Features/Admin/Queries/GetToken/AdminGetTokenQuery.cs +++ b/server/src/Core/Baya.Application/Features/Admin/Queries/GetToken/AdminGetTokenQuery.cs @@ -1,11 +1,11 @@ -using CleanArc.Application.Models.Common; -using CleanArc.Application.Models.Jwt; -using CleanArc.SharedKernel.ValidationBase; -using CleanArc.SharedKernel.ValidationBase.Contracts; +using Baya.Application.Models.Common; +using Baya.Application.Models.Jwt; +using Baya.SharedKernel.ValidationBase; +using Baya.SharedKernel.ValidationBase.Contracts; using FluentValidation; using Mediator; -namespace CleanArc.Application.Features.Admin.Queries.GetToken; +namespace Baya.Application.Features.Admin.Queries.GetToken; public record AdminGetTokenQuery(string UserName, string Password) : IRequest>, IValidatableModel diff --git a/server/src/Core/CleanArc.Application/Features/Order/Commands/AddOrderCommand.Handler.cs b/server/src/Core/Baya.Application/Features/Order/Commands/AddOrderCommand.Handler.cs similarity index 78% rename from server/src/Core/CleanArc.Application/Features/Order/Commands/AddOrderCommand.Handler.cs rename to server/src/Core/Baya.Application/Features/Order/Commands/AddOrderCommand.Handler.cs index fd886d5..e939ce6 100644 --- a/server/src/Core/CleanArc.Application/Features/Order/Commands/AddOrderCommand.Handler.cs +++ b/server/src/Core/Baya.Application/Features/Order/Commands/AddOrderCommand.Handler.cs @@ -1,9 +1,9 @@ -using CleanArc.Application.Contracts.Identity; -using CleanArc.Application.Contracts.Persistence; -using CleanArc.Application.Models.Common; +using Baya.Application.Contracts.Identity; +using Baya.Application.Contracts.Persistence; +using Baya.Application.Models.Common; using Mediator; -namespace CleanArc.Application.Features.Order.Commands; +namespace Baya.Application.Features.Order.Commands; internal class AddOrderCommandHandler(IUnitOfWork unitOfWork, IAppUserManager userManager) : IRequestHandler> diff --git a/server/src/Core/CleanArc.Application/Features/Order/Commands/AddOrderCommand.cs b/server/src/Core/Baya.Application/Features/Order/Commands/AddOrderCommand.cs similarity index 74% rename from server/src/Core/CleanArc.Application/Features/Order/Commands/AddOrderCommand.cs rename to server/src/Core/Baya.Application/Features/Order/Commands/AddOrderCommand.cs index 5cf8436..9418c31 100644 --- a/server/src/Core/CleanArc.Application/Features/Order/Commands/AddOrderCommand.cs +++ b/server/src/Core/Baya.Application/Features/Order/Commands/AddOrderCommand.cs @@ -1,11 +1,11 @@ using System.Text.Json.Serialization; -using CleanArc.Application.Models.Common; -using CleanArc.SharedKernel.ValidationBase; -using CleanArc.SharedKernel.ValidationBase.Contracts; +using Baya.Application.Models.Common; +using Baya.SharedKernel.ValidationBase; +using Baya.SharedKernel.ValidationBase.Contracts; using FluentValidation; using Mediator; -namespace CleanArc.Application.Features.Order.Commands; +namespace Baya.Application.Features.Order.Commands; public record AddOrderCommand( string OrderName) : IRequest>, IValidatableModel diff --git a/server/src/Core/CleanArc.Application/Features/Order/Commands/DeleteUserOrdersCommand.Handler.cs b/server/src/Core/Baya.Application/Features/Order/Commands/DeleteUserOrdersCommand.Handler.cs similarity index 74% rename from server/src/Core/CleanArc.Application/Features/Order/Commands/DeleteUserOrdersCommand.Handler.cs rename to server/src/Core/Baya.Application/Features/Order/Commands/DeleteUserOrdersCommand.Handler.cs index 86c2466..f98305d 100644 --- a/server/src/Core/CleanArc.Application/Features/Order/Commands/DeleteUserOrdersCommand.Handler.cs +++ b/server/src/Core/Baya.Application/Features/Order/Commands/DeleteUserOrdersCommand.Handler.cs @@ -1,8 +1,8 @@ -using CleanArc.Application.Contracts.Persistence; -using CleanArc.Application.Models.Common; +using Baya.Application.Contracts.Persistence; +using Baya.Application.Models.Common; using Mediator; -namespace CleanArc.Application.Features.Order.Commands; +namespace Baya.Application.Features.Order.Commands; public class DeleteUserOrdersCommandHandler(IUnitOfWork unitOfWork) : IRequestHandler> { diff --git a/server/src/Core/Baya.Application/Features/Order/Commands/DeleteUserOrdersCommand.cs b/server/src/Core/Baya.Application/Features/Order/Commands/DeleteUserOrdersCommand.cs new file mode 100644 index 0000000..33a70be --- /dev/null +++ b/server/src/Core/Baya.Application/Features/Order/Commands/DeleteUserOrdersCommand.cs @@ -0,0 +1,6 @@ +using Baya.Application.Models.Common; +using Mediator; + +namespace Baya.Application.Features.Order.Commands; + +public record DeleteUserOrdersCommand(int UserId):IRequest>; \ No newline at end of file diff --git a/server/src/Core/CleanArc.Application/Features/Order/Commands/UpdateUserOrderCommand.Handler.cs b/server/src/Core/Baya.Application/Features/Order/Commands/UpdateUserOrderCommand.Handler.cs similarity index 81% rename from server/src/Core/CleanArc.Application/Features/Order/Commands/UpdateUserOrderCommand.Handler.cs rename to server/src/Core/Baya.Application/Features/Order/Commands/UpdateUserOrderCommand.Handler.cs index 4a9414c..7b29722 100644 --- a/server/src/Core/CleanArc.Application/Features/Order/Commands/UpdateUserOrderCommand.Handler.cs +++ b/server/src/Core/Baya.Application/Features/Order/Commands/UpdateUserOrderCommand.Handler.cs @@ -1,8 +1,8 @@ -using CleanArc.Application.Contracts.Persistence; -using CleanArc.Application.Models.Common; +using Baya.Application.Contracts.Persistence; +using Baya.Application.Models.Common; using Mediator; -namespace CleanArc.Application.Features.Order.Commands; +namespace Baya.Application.Features.Order.Commands; public class UpdateUserOrderCommandHandler(IUnitOfWork unitOfWork) : IRequestHandler> { diff --git a/server/src/Core/CleanArc.Application/Features/Order/Commands/UpdateUserOrderCommand.cs b/server/src/Core/Baya.Application/Features/Order/Commands/UpdateUserOrderCommand.cs similarity index 75% rename from server/src/Core/CleanArc.Application/Features/Order/Commands/UpdateUserOrderCommand.cs rename to server/src/Core/Baya.Application/Features/Order/Commands/UpdateUserOrderCommand.cs index 9f4f2fe..2091066 100644 --- a/server/src/Core/CleanArc.Application/Features/Order/Commands/UpdateUserOrderCommand.cs +++ b/server/src/Core/Baya.Application/Features/Order/Commands/UpdateUserOrderCommand.cs @@ -1,11 +1,11 @@ using System.Text.Json.Serialization; -using CleanArc.Application.Models.Common; -using CleanArc.SharedKernel.ValidationBase; -using CleanArc.SharedKernel.ValidationBase.Contracts; +using Baya.Application.Models.Common; +using Baya.SharedKernel.ValidationBase; +using Baya.SharedKernel.ValidationBase.Contracts; using FluentValidation; using Mediator; -namespace CleanArc.Application.Features.Order.Commands; +namespace Baya.Application.Features.Order.Commands; public record UpdateUserOrderCommand (int OrderId, string OrderName) : IRequest>,IValidatableModel diff --git a/server/src/Core/Baya.Application/Features/Order/Queries/GetAllOrders/GetAllOrdersQuery.cs b/server/src/Core/Baya.Application/Features/Order/Queries/GetAllOrders/GetAllOrdersQuery.cs new file mode 100644 index 0000000..d3ee2f4 --- /dev/null +++ b/server/src/Core/Baya.Application/Features/Order/Queries/GetAllOrders/GetAllOrdersQuery.cs @@ -0,0 +1,6 @@ +using Baya.Application.Models.Common; +using Mediator; + +namespace Baya.Application.Features.Order.Queries.GetAllOrders; + +public record GetAllOrdersQuery():IRequest>>; \ No newline at end of file diff --git a/server/src/Core/CleanArc.Application/Features/Order/Queries/GetAllOrders/GetAllOrdersQueryHandler.cs b/server/src/Core/Baya.Application/Features/Order/Queries/GetAllOrders/GetAllOrdersQueryHandler.cs similarity index 81% rename from server/src/Core/CleanArc.Application/Features/Order/Queries/GetAllOrders/GetAllOrdersQueryHandler.cs rename to server/src/Core/Baya.Application/Features/Order/Queries/GetAllOrders/GetAllOrdersQueryHandler.cs index 66d6593..6c79daa 100644 --- a/server/src/Core/CleanArc.Application/Features/Order/Queries/GetAllOrders/GetAllOrdersQueryHandler.cs +++ b/server/src/Core/Baya.Application/Features/Order/Queries/GetAllOrders/GetAllOrdersQueryHandler.cs @@ -1,9 +1,9 @@ -using CleanArc.Application.Contracts.Persistence; -using CleanArc.Application.Models.Common; +using Baya.Application.Contracts.Persistence; +using Baya.Application.Models.Common; using MapsterMapper; using Mediator; -namespace CleanArc.Application.Features.Order.Queries.GetAllOrders +namespace Baya.Application.Features.Order.Queries.GetAllOrders { internal class GetAllOrdersQueryHandler(IUnitOfWork unitOfWork, IMapper mapper) : IRequestHandler>> diff --git a/server/src/Core/CleanArc.Application/Features/Order/Queries/GetAllOrders/GetAllOrdersQueryResult.cs b/server/src/Core/Baya.Application/Features/Order/Queries/GetAllOrders/GetAllOrdersQueryResult.cs similarity index 89% rename from server/src/Core/CleanArc.Application/Features/Order/Queries/GetAllOrders/GetAllOrdersQueryResult.cs rename to server/src/Core/Baya.Application/Features/Order/Queries/GetAllOrders/GetAllOrdersQueryResult.cs index cb3408f..b55467c 100644 --- a/server/src/Core/CleanArc.Application/Features/Order/Queries/GetAllOrders/GetAllOrdersQueryResult.cs +++ b/server/src/Core/Baya.Application/Features/Order/Queries/GetAllOrders/GetAllOrdersQueryResult.cs @@ -2,7 +2,7 @@ using Mapster; -namespace CleanArc.Application.Features.Order.Queries.GetAllOrders; +namespace Baya.Application.Features.Order.Queries.GetAllOrders; public record GetAllOrdersQueryResult(int OrderId, string OrderName, int OrderOwnerId, string OrderOwnerUserName); diff --git a/server/src/Core/CleanArc.Application/Features/Order/Queries/GetUserOrders/GetUserOrdersQueryHandler.cs b/server/src/Core/Baya.Application/Features/Order/Queries/GetUserOrders/GetUserOrdersQueryHandler.cs similarity index 82% rename from server/src/Core/CleanArc.Application/Features/Order/Queries/GetUserOrders/GetUserOrdersQueryHandler.cs rename to server/src/Core/Baya.Application/Features/Order/Queries/GetUserOrders/GetUserOrdersQueryHandler.cs index c3aeae4..c7218df 100644 --- a/server/src/Core/CleanArc.Application/Features/Order/Queries/GetUserOrders/GetUserOrdersQueryHandler.cs +++ b/server/src/Core/Baya.Application/Features/Order/Queries/GetUserOrders/GetUserOrdersQueryHandler.cs @@ -1,8 +1,8 @@ -using CleanArc.Application.Contracts.Persistence; -using CleanArc.Application.Models.Common; +using Baya.Application.Contracts.Persistence; +using Baya.Application.Models.Common; using Mediator; -namespace CleanArc.Application.Features.Order.Queries.GetUserOrders; +namespace Baya.Application.Features.Order.Queries.GetUserOrders; internal class GetUserOrdersQueryHandler(IUnitOfWork unitOfWork) : IRequestHandler>> diff --git a/server/src/Core/CleanArc.Application/Features/Order/Queries/GetUserOrders/GetUserOrdersQueryModel.cs b/server/src/Core/Baya.Application/Features/Order/Queries/GetUserOrders/GetUserOrdersQueryModel.cs similarity index 52% rename from server/src/Core/CleanArc.Application/Features/Order/Queries/GetUserOrders/GetUserOrdersQueryModel.cs rename to server/src/Core/Baya.Application/Features/Order/Queries/GetUserOrders/GetUserOrdersQueryModel.cs index 8dbf0f3..e92f553 100644 --- a/server/src/Core/CleanArc.Application/Features/Order/Queries/GetUserOrders/GetUserOrdersQueryModel.cs +++ b/server/src/Core/Baya.Application/Features/Order/Queries/GetUserOrders/GetUserOrdersQueryModel.cs @@ -1,6 +1,6 @@ -using CleanArc.Application.Models.Common; +using Baya.Application.Models.Common; using Mediator; -namespace CleanArc.Application.Features.Order.Queries.GetUserOrders; +namespace Baya.Application.Features.Order.Queries.GetUserOrders; public record GetUserOrdersQueryModel(int UserId) : IRequest>>; \ No newline at end of file diff --git a/server/src/Core/Baya.Application/Features/Order/Queries/GetUserOrders/GetUsersQueryResultModel.cs b/server/src/Core/Baya.Application/Features/Order/Queries/GetUserOrders/GetUsersQueryResultModel.cs new file mode 100644 index 0000000..61f7189 --- /dev/null +++ b/server/src/Core/Baya.Application/Features/Order/Queries/GetUserOrders/GetUsersQueryResultModel.cs @@ -0,0 +1,3 @@ +namespace Baya.Application.Features.Order.Queries.GetUserOrders; + +public record GetUsersQueryResultModel(int OrderId, string OrderName); \ No newline at end of file diff --git a/server/src/Core/CleanArc.Application/Features/Role/Commands/AddRoleCommand/AddRoleCommand.Handler.cs b/server/src/Core/Baya.Application/Features/Role/Commands/AddRoleCommand/AddRoleCommand.Handler.cs similarity index 78% rename from server/src/Core/CleanArc.Application/Features/Role/Commands/AddRoleCommand/AddRoleCommand.Handler.cs rename to server/src/Core/Baya.Application/Features/Role/Commands/AddRoleCommand/AddRoleCommand.Handler.cs index 85f06ec..e407aa2 100644 --- a/server/src/Core/CleanArc.Application/Features/Role/Commands/AddRoleCommand/AddRoleCommand.Handler.cs +++ b/server/src/Core/Baya.Application/Features/Role/Commands/AddRoleCommand/AddRoleCommand.Handler.cs @@ -1,9 +1,9 @@ -using CleanArc.Application.Contracts.Identity; -using CleanArc.Application.Models.Common; -using CleanArc.Application.Models.Identity; +using Baya.Application.Contracts.Identity; +using Baya.Application.Models.Common; +using Baya.Application.Models.Identity; using Mediator; -namespace CleanArc.Application.Features.Role.Commands.AddRoleCommand +namespace Baya.Application.Features.Role.Commands.AddRoleCommand { internal class AddRoleCommandHandler(IRoleManagerService roleManagerService) : IRequestHandler> diff --git a/server/src/Core/CleanArc.Application/Features/Role/Commands/AddRoleCommand/AddRoleCommand.cs b/server/src/Core/Baya.Application/Features/Role/Commands/AddRoleCommand/AddRoleCommand.cs similarity index 69% rename from server/src/Core/CleanArc.Application/Features/Role/Commands/AddRoleCommand/AddRoleCommand.cs rename to server/src/Core/Baya.Application/Features/Role/Commands/AddRoleCommand/AddRoleCommand.cs index edfff41..8d80d11 100644 --- a/server/src/Core/CleanArc.Application/Features/Role/Commands/AddRoleCommand/AddRoleCommand.cs +++ b/server/src/Core/Baya.Application/Features/Role/Commands/AddRoleCommand/AddRoleCommand.cs @@ -1,10 +1,10 @@ -using CleanArc.Application.Models.Common; -using CleanArc.SharedKernel.ValidationBase; -using CleanArc.SharedKernel.ValidationBase.Contracts; +using Baya.Application.Models.Common; +using Baya.SharedKernel.ValidationBase; +using Baya.SharedKernel.ValidationBase.Contracts; using FluentValidation; using Mediator; -namespace CleanArc.Application.Features.Role.Commands.AddRoleCommand; +namespace Baya.Application.Features.Role.Commands.AddRoleCommand; public record AddRoleCommand(string RoleName) : IRequest>, IValidatableModel diff --git a/server/src/Core/CleanArc.Application/Features/Role/Commands/UpdateRoleClaimsCommand/UpdateRoleClaimsCommand.Handler.cs b/server/src/Core/Baya.Application/Features/Role/Commands/UpdateRoleClaimsCommand/UpdateRoleClaimsCommand.Handler.cs similarity index 77% rename from server/src/Core/CleanArc.Application/Features/Role/Commands/UpdateRoleClaimsCommand/UpdateRoleClaimsCommand.Handler.cs rename to server/src/Core/Baya.Application/Features/Role/Commands/UpdateRoleClaimsCommand/UpdateRoleClaimsCommand.Handler.cs index a7b0d12..8930a55 100644 --- a/server/src/Core/CleanArc.Application/Features/Role/Commands/UpdateRoleClaimsCommand/UpdateRoleClaimsCommand.Handler.cs +++ b/server/src/Core/Baya.Application/Features/Role/Commands/UpdateRoleClaimsCommand/UpdateRoleClaimsCommand.Handler.cs @@ -1,9 +1,9 @@ -using CleanArc.Application.Contracts.Identity; -using CleanArc.Application.Models.Common; -using CleanArc.Application.Models.Identity; +using Baya.Application.Contracts.Identity; +using Baya.Application.Models.Common; +using Baya.Application.Models.Identity; using Mediator; -namespace CleanArc.Application.Features.Role.Commands.UpdateRoleClaimsCommand +namespace Baya.Application.Features.Role.Commands.UpdateRoleClaimsCommand { internal class UpdateRoleClaimsCommandHandler(IRoleManagerService roleManagerService) : IRequestHandler> diff --git a/server/src/Core/CleanArc.Application/Features/Role/Commands/UpdateRoleClaimsCommand/UpdateRoleClaimsCommand.cs b/server/src/Core/Baya.Application/Features/Role/Commands/UpdateRoleClaimsCommand/UpdateRoleClaimsCommand.cs similarity index 52% rename from server/src/Core/CleanArc.Application/Features/Role/Commands/UpdateRoleClaimsCommand/UpdateRoleClaimsCommand.cs rename to server/src/Core/Baya.Application/Features/Role/Commands/UpdateRoleClaimsCommand/UpdateRoleClaimsCommand.cs index b5c92cc..e20346e 100644 --- a/server/src/Core/CleanArc.Application/Features/Role/Commands/UpdateRoleClaimsCommand/UpdateRoleClaimsCommand.cs +++ b/server/src/Core/Baya.Application/Features/Role/Commands/UpdateRoleClaimsCommand/UpdateRoleClaimsCommand.cs @@ -1,7 +1,7 @@  -using CleanArc.Application.Models.Common; +using Baya.Application.Models.Common; using Mediator; -namespace CleanArc.Application.Features.Role.Commands.UpdateRoleClaimsCommand; +namespace Baya.Application.Features.Role.Commands.UpdateRoleClaimsCommand; public record UpdateRoleClaimsCommand( int RoleId, List RoleClaimValue):IRequest>; \ No newline at end of file diff --git a/server/src/Core/CleanArc.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.Handler.cs b/server/src/Core/Baya.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.Handler.cs similarity index 82% rename from server/src/Core/CleanArc.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.Handler.cs rename to server/src/Core/Baya.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.Handler.cs index bd5fb48..51c2d79 100644 --- a/server/src/Core/CleanArc.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.Handler.cs +++ b/server/src/Core/Baya.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.Handler.cs @@ -1,8 +1,8 @@ -using CleanArc.Application.Contracts.Identity; -using CleanArc.Application.Models.Common; +using Baya.Application.Contracts.Identity; +using Baya.Application.Models.Common; using Mediator; -namespace CleanArc.Application.Features.Role.Queries.GetAllRolesQuery +namespace Baya.Application.Features.Role.Queries.GetAllRolesQuery { internal class GetAllRolesQueryHandler(IRoleManagerService roleManagerService) : IRequestHandler>> diff --git a/server/src/Core/Baya.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.Response.cs b/server/src/Core/Baya.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.Response.cs new file mode 100644 index 0000000..d158947 --- /dev/null +++ b/server/src/Core/Baya.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.Response.cs @@ -0,0 +1,3 @@ +namespace Baya.Application.Features.Role.Queries.GetAllRolesQuery; + +public record GetAllRolesQueryResponse(int RoleId,string RoleName); \ No newline at end of file diff --git a/server/src/Core/Baya.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.cs b/server/src/Core/Baya.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.cs new file mode 100644 index 0000000..4ad154a --- /dev/null +++ b/server/src/Core/Baya.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.cs @@ -0,0 +1,6 @@ +using Baya.Application.Models.Common; +using Mediator; + +namespace Baya.Application.Features.Role.Queries.GetAllRolesQuery; + +public record GetAllRolesQuery():IRequest>>; \ No newline at end of file diff --git a/server/src/Core/CleanArc.Application/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.Handler.cs b/server/src/Core/Baya.Application/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.Handler.cs similarity index 85% rename from server/src/Core/CleanArc.Application/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.Handler.cs rename to server/src/Core/Baya.Application/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.Handler.cs index 6048b77..9903722 100644 --- a/server/src/Core/CleanArc.Application/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.Handler.cs +++ b/server/src/Core/Baya.Application/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.Handler.cs @@ -1,8 +1,8 @@ -using CleanArc.Application.Contracts.Identity; -using CleanArc.Application.Models.Common; +using Baya.Application.Contracts.Identity; +using Baya.Application.Models.Common; using Mediator; -namespace CleanArc.Application.Features.Role.Queries.GetAuthorizableRoutesQuery +namespace Baya.Application.Features.Role.Queries.GetAuthorizableRoutesQuery { internal class GetAuthorizableRoutesQueryHandler(IRoleManagerService roleManagerService) : IRequestHandler>> diff --git a/server/src/Core/CleanArc.Application/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.Response.cs b/server/src/Core/Baya.Application/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.Response.cs similarity index 64% rename from server/src/Core/CleanArc.Application/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.Response.cs rename to server/src/Core/Baya.Application/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.Response.cs index 8f7abc9..3f2d5b2 100644 --- a/server/src/Core/CleanArc.Application/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.Response.cs +++ b/server/src/Core/Baya.Application/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.Response.cs @@ -1,3 +1,3 @@ -namespace CleanArc.Application.Features.Role.Queries.GetAuthorizableRoutesQuery; +namespace Baya.Application.Features.Role.Queries.GetAuthorizableRoutesQuery; public record GetAuthorizableRoutesQueryResponse(string RouteKey,string AreaName,string ControllerName,string ActionName,string ControllerDescription); \ No newline at end of file diff --git a/server/src/Core/CleanArc.Application/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.cs b/server/src/Core/Baya.Application/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.cs similarity index 50% rename from server/src/Core/CleanArc.Application/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.cs rename to server/src/Core/Baya.Application/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.cs index d9f9e13..b0fecb2 100644 --- a/server/src/Core/CleanArc.Application/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.cs +++ b/server/src/Core/Baya.Application/Features/Role/Queries/GetAuthorizableRoutesQuery/GetAuthorizableRoutesQuery.cs @@ -1,6 +1,6 @@ -using CleanArc.Application.Models.Common; +using Baya.Application.Models.Common; using Mediator; -namespace CleanArc.Application.Features.Role.Queries.GetAuthorizableRoutesQuery; +namespace Baya.Application.Features.Role.Queries.GetAuthorizableRoutesQuery; public record GetAuthorizableRoutesQuery():IRequest>>; \ No newline at end of file diff --git a/server/src/Core/CleanArc.Application/Features/Users/Commands/Create/UserCreateCommand.Handler.cs b/server/src/Core/Baya.Application/Features/Users/Commands/Create/UserCreateCommand.Handler.cs similarity index 90% rename from server/src/Core/CleanArc.Application/Features/Users/Commands/Create/UserCreateCommand.Handler.cs rename to server/src/Core/Baya.Application/Features/Users/Commands/Create/UserCreateCommand.Handler.cs index 48d7c82..0cb280e 100644 --- a/server/src/Core/CleanArc.Application/Features/Users/Commands/Create/UserCreateCommand.Handler.cs +++ b/server/src/Core/Baya.Application/Features/Users/Commands/Create/UserCreateCommand.Handler.cs @@ -1,11 +1,11 @@ -using CleanArc.Application.Contracts.Identity; -using CleanArc.Application.Models.Common; -using CleanArc.Domain.Entities.User; +using Baya.Application.Contracts.Identity; +using Baya.Application.Models.Common; +using Baya.Domain.Entities.User; using MapsterMapper; using Mediator; using Microsoft.Extensions.Logging; -namespace CleanArc.Application.Features.Users.Commands.Create; +namespace Baya.Application.Features.Users.Commands.Create; internal class UserCreateCommandHandler( IAppUserManager userManager, diff --git a/server/src/Core/CleanArc.Application/Features/Users/Commands/Create/UserCreateCommand.Result.cs b/server/src/Core/Baya.Application/Features/Users/Commands/Create/UserCreateCommand.Result.cs similarity index 57% rename from server/src/Core/CleanArc.Application/Features/Users/Commands/Create/UserCreateCommand.Result.cs rename to server/src/Core/Baya.Application/Features/Users/Commands/Create/UserCreateCommand.Result.cs index 4c9b9f5..2dfe5fe 100644 --- a/server/src/Core/CleanArc.Application/Features/Users/Commands/Create/UserCreateCommand.Result.cs +++ b/server/src/Core/Baya.Application/Features/Users/Commands/Create/UserCreateCommand.Result.cs @@ -1,4 +1,4 @@ -namespace CleanArc.Application.Features.Users.Commands.Create; +namespace Baya.Application.Features.Users.Commands.Create; public class UserCreateCommandResult { diff --git a/server/src/Core/CleanArc.Application/Features/Users/Commands/Create/UserCreateCommand.cs b/server/src/Core/Baya.Application/Features/Users/Commands/Create/UserCreateCommand.cs similarity index 86% rename from server/src/Core/CleanArc.Application/Features/Users/Commands/Create/UserCreateCommand.cs rename to server/src/Core/Baya.Application/Features/Users/Commands/Create/UserCreateCommand.cs index ccf0a7d..d129d41 100644 --- a/server/src/Core/CleanArc.Application/Features/Users/Commands/Create/UserCreateCommand.cs +++ b/server/src/Core/Baya.Application/Features/Users/Commands/Create/UserCreateCommand.cs @@ -1,12 +1,12 @@ using System.Text.RegularExpressions; -using CleanArc.Application.Models.Common; -using CleanArc.Domain.Entities.User; -using CleanArc.SharedKernel.ValidationBase; -using CleanArc.SharedKernel.ValidationBase.Contracts; +using Baya.Application.Models.Common; +using Baya.Domain.Entities.User; +using Baya.SharedKernel.ValidationBase; +using Baya.SharedKernel.ValidationBase.Contracts; using FluentValidation; using Mediator; -namespace CleanArc.Application.Features.Users.Commands.Create; +namespace Baya.Application.Features.Users.Commands.Create; public record UserCreateCommand (string UserName, string Name, string FamilyName, string PhoneNumber,string Password,string RepeatPassword) diff --git a/server/src/Core/CleanArc.Application/Features/Users/Commands/RefreshUserTokenCommand/RefreshUserTokenCommand.Handler.cs b/server/src/Core/Baya.Application/Features/Users/Commands/RefreshUserTokenCommand/RefreshUserTokenCommand.Handler.cs similarity index 75% rename from server/src/Core/CleanArc.Application/Features/Users/Commands/RefreshUserTokenCommand/RefreshUserTokenCommand.Handler.cs rename to server/src/Core/Baya.Application/Features/Users/Commands/RefreshUserTokenCommand/RefreshUserTokenCommand.Handler.cs index a5a8faf..40863af 100644 --- a/server/src/Core/CleanArc.Application/Features/Users/Commands/RefreshUserTokenCommand/RefreshUserTokenCommand.Handler.cs +++ b/server/src/Core/Baya.Application/Features/Users/Commands/RefreshUserTokenCommand/RefreshUserTokenCommand.Handler.cs @@ -1,9 +1,9 @@ -using CleanArc.Application.Contracts; -using CleanArc.Application.Models.Common; -using CleanArc.Application.Models.Jwt; +using Baya.Application.Contracts; +using Baya.Application.Models.Common; +using Baya.Application.Models.Jwt; using Mediator; -namespace CleanArc.Application.Features.Users.Commands.RefreshUserTokenCommand +namespace Baya.Application.Features.Users.Commands.RefreshUserTokenCommand { internal class RefreshUserTokenCommandHandler(IJwtService jwtService) : IRequestHandler> diff --git a/server/src/Core/CleanArc.Application/Features/Users/Commands/RefreshUserTokenCommand/RefreshUserTokenCommand.cs b/server/src/Core/Baya.Application/Features/Users/Commands/RefreshUserTokenCommand/RefreshUserTokenCommand.cs similarity index 67% rename from server/src/Core/CleanArc.Application/Features/Users/Commands/RefreshUserTokenCommand/RefreshUserTokenCommand.cs rename to server/src/Core/Baya.Application/Features/Users/Commands/RefreshUserTokenCommand/RefreshUserTokenCommand.cs index c5f3e7a..52408b2 100644 --- a/server/src/Core/CleanArc.Application/Features/Users/Commands/RefreshUserTokenCommand/RefreshUserTokenCommand.cs +++ b/server/src/Core/Baya.Application/Features/Users/Commands/RefreshUserTokenCommand/RefreshUserTokenCommand.cs @@ -1,11 +1,11 @@ -using CleanArc.Application.Models.Common; -using CleanArc.Application.Models.Jwt; -using CleanArc.SharedKernel.ValidationBase; -using CleanArc.SharedKernel.ValidationBase.Contracts; +using Baya.Application.Models.Common; +using Baya.Application.Models.Jwt; +using Baya.SharedKernel.ValidationBase; +using Baya.SharedKernel.ValidationBase.Contracts; using FluentValidation; using Mediator; -namespace CleanArc.Application.Features.Users.Commands.RefreshUserTokenCommand; +namespace Baya.Application.Features.Users.Commands.RefreshUserTokenCommand; public record RefreshUserTokenCommand(Guid RefreshToken) : IRequest>, IValidatableModel diff --git a/server/src/Core/CleanArc.Application/Features/Users/Commands/RequestLogout/RequestLogoutCommand.Handler.cs b/server/src/Core/Baya.Application/Features/Users/Commands/RequestLogout/RequestLogoutCommand.Handler.cs similarity index 79% rename from server/src/Core/CleanArc.Application/Features/Users/Commands/RequestLogout/RequestLogoutCommand.Handler.cs rename to server/src/Core/Baya.Application/Features/Users/Commands/RequestLogout/RequestLogoutCommand.Handler.cs index dd0192c..bd28123 100644 --- a/server/src/Core/CleanArc.Application/Features/Users/Commands/RequestLogout/RequestLogoutCommand.Handler.cs +++ b/server/src/Core/Baya.Application/Features/Users/Commands/RequestLogout/RequestLogoutCommand.Handler.cs @@ -1,8 +1,8 @@ -using CleanArc.Application.Contracts.Identity; -using CleanArc.Application.Models.Common; +using Baya.Application.Contracts.Identity; +using Baya.Application.Models.Common; using Mediator; -namespace CleanArc.Application.Features.Users.Commands.RequestLogout +namespace Baya.Application.Features.Users.Commands.RequestLogout { internal class RequestLogoutCommandHandler(IAppUserManager userManager) : IRequestHandler> diff --git a/server/src/Core/Baya.Application/Features/Users/Commands/RequestLogout/RequestLogoutCommand.cs b/server/src/Core/Baya.Application/Features/Users/Commands/RequestLogout/RequestLogoutCommand.cs new file mode 100644 index 0000000..802dc29 --- /dev/null +++ b/server/src/Core/Baya.Application/Features/Users/Commands/RequestLogout/RequestLogoutCommand.cs @@ -0,0 +1,6 @@ +using Baya.Application.Models.Common; +using Mediator; + +namespace Baya.Application.Features.Users.Commands.RequestLogout; + +public record RequestLogoutCommand(int UserId):IRequest>; \ No newline at end of file diff --git a/server/src/Core/CleanArc.Application/Features/Users/Queries/GenerateUserToken/GenerateUserTokenQuery.Handler.cs b/server/src/Core/Baya.Application/Features/Users/Queries/GenerateUserToken/GenerateUserTokenQuery.Handler.cs similarity index 78% rename from server/src/Core/CleanArc.Application/Features/Users/Queries/GenerateUserToken/GenerateUserTokenQuery.Handler.cs rename to server/src/Core/Baya.Application/Features/Users/Queries/GenerateUserToken/GenerateUserTokenQuery.Handler.cs index f2236f5..78d3622 100644 --- a/server/src/Core/CleanArc.Application/Features/Users/Queries/GenerateUserToken/GenerateUserTokenQuery.Handler.cs +++ b/server/src/Core/Baya.Application/Features/Users/Queries/GenerateUserToken/GenerateUserTokenQuery.Handler.cs @@ -1,11 +1,11 @@ -using CleanArc.Application.Contracts; -using CleanArc.Application.Contracts.Identity; -using CleanArc.Application.Models.Common; -using CleanArc.Application.Models.Jwt; -using CleanArc.SharedKernel.Extensions; +using Baya.Application.Contracts; +using Baya.Application.Contracts.Identity; +using Baya.Application.Models.Common; +using Baya.Application.Models.Jwt; +using Baya.SharedKernel.Extensions; using Mediator; -namespace CleanArc.Application.Features.Users.Queries.GenerateUserToken; +namespace Baya.Application.Features.Users.Queries.GenerateUserToken; internal class GenerateUserTokenQueryHandler(IJwtService jwtService, IAppUserManager userManager) : IRequestHandler> diff --git a/server/src/Core/CleanArc.Application/Features/Users/Queries/GenerateUserToken/GenerateUserTokenQuery.cs b/server/src/Core/Baya.Application/Features/Users/Queries/GenerateUserToken/GenerateUserTokenQuery.cs similarity index 72% rename from server/src/Core/CleanArc.Application/Features/Users/Queries/GenerateUserToken/GenerateUserTokenQuery.cs rename to server/src/Core/Baya.Application/Features/Users/Queries/GenerateUserToken/GenerateUserTokenQuery.cs index efe1c5e..4bc46c3 100644 --- a/server/src/Core/CleanArc.Application/Features/Users/Queries/GenerateUserToken/GenerateUserTokenQuery.cs +++ b/server/src/Core/Baya.Application/Features/Users/Queries/GenerateUserToken/GenerateUserTokenQuery.cs @@ -1,11 +1,11 @@ -using CleanArc.Application.Models.Common; -using CleanArc.Application.Models.Jwt; -using CleanArc.SharedKernel.ValidationBase; -using CleanArc.SharedKernel.ValidationBase.Contracts; +using Baya.Application.Models.Common; +using Baya.Application.Models.Jwt; +using Baya.SharedKernel.ValidationBase; +using Baya.SharedKernel.ValidationBase.Contracts; using FluentValidation; using Mediator; -namespace CleanArc.Application.Features.Users.Queries.GenerateUserToken; +namespace Baya.Application.Features.Users.Queries.GenerateUserToken; public record GenerateUserTokenQuery(string UserKey, string Code) : IRequest>, IValidatableModel diff --git a/server/src/Core/CleanArc.Application/Features/Users/Queries/GetUsers/GetUsersQuery.Handler.cs b/server/src/Core/Baya.Application/Features/Users/Queries/GetUsers/GetUsersQuery.Handler.cs similarity index 78% rename from server/src/Core/CleanArc.Application/Features/Users/Queries/GetUsers/GetUsersQuery.Handler.cs rename to server/src/Core/Baya.Application/Features/Users/Queries/GetUsers/GetUsersQuery.Handler.cs index 4c9a7ee..8a9722f 100644 --- a/server/src/Core/CleanArc.Application/Features/Users/Queries/GetUsers/GetUsersQuery.Handler.cs +++ b/server/src/Core/Baya.Application/Features/Users/Queries/GetUsers/GetUsersQuery.Handler.cs @@ -1,10 +1,10 @@ -using CleanArc.Application.Contracts.Identity; -using CleanArc.Application.Models.Common; -using CleanArc.Domain.Entities.User; +using Baya.Application.Contracts.Identity; +using Baya.Application.Models.Common; +using Baya.Domain.Entities.User; using MapsterMapper; using Mediator; -namespace CleanArc.Application.Features.Users.Queries.GetUsers; +namespace Baya.Application.Features.Users.Queries.GetUsers; internal class GetUsersQueryHandler(IAppUserManager userManager, IMapper mapper) : IRequestHandler>> diff --git a/server/src/Core/CleanArc.Application/Features/Users/Queries/GetUsers/GetUsersQuery.Response.cs b/server/src/Core/Baya.Application/Features/Users/Queries/GetUsers/GetUsersQuery.Response.cs similarity index 61% rename from server/src/Core/CleanArc.Application/Features/Users/Queries/GetUsers/GetUsersQuery.Response.cs rename to server/src/Core/Baya.Application/Features/Users/Queries/GetUsers/GetUsersQuery.Response.cs index 704c8e4..9ce2b1c 100644 --- a/server/src/Core/CleanArc.Application/Features/Users/Queries/GetUsers/GetUsersQuery.Response.cs +++ b/server/src/Core/Baya.Application/Features/Users/Queries/GetUsers/GetUsersQuery.Response.cs @@ -1,7 +1,7 @@  -using CleanArc.Domain.Entities.User; +using Baya.Domain.Entities.User; -namespace CleanArc.Application.Features.Users.Queries.GetUsers; +namespace Baya.Application.Features.Users.Queries.GetUsers; public record GetUsersQueryResponse { diff --git a/server/src/Core/Baya.Application/Features/Users/Queries/GetUsers/GetUsersQuery.cs b/server/src/Core/Baya.Application/Features/Users/Queries/GetUsers/GetUsersQuery.cs new file mode 100644 index 0000000..15c713d --- /dev/null +++ b/server/src/Core/Baya.Application/Features/Users/Queries/GetUsers/GetUsersQuery.cs @@ -0,0 +1,6 @@ +using Baya.Application.Models.Common; +using Mediator; + +namespace Baya.Application.Features.Users.Queries.GetUsers; + +public record GetUsersQuery : IRequest>>; \ No newline at end of file diff --git a/server/src/Core/CleanArc.Application/Features/Users/Queries/TokenRequest/PasswordUserTokenRequestQuery.Handler.cs b/server/src/Core/Baya.Application/Features/Users/Queries/TokenRequest/PasswordUserTokenRequestQuery.Handler.cs similarity index 78% rename from server/src/Core/CleanArc.Application/Features/Users/Queries/TokenRequest/PasswordUserTokenRequestQuery.Handler.cs rename to server/src/Core/Baya.Application/Features/Users/Queries/TokenRequest/PasswordUserTokenRequestQuery.Handler.cs index 1064c5a..3f51e6d 100644 --- a/server/src/Core/CleanArc.Application/Features/Users/Queries/TokenRequest/PasswordUserTokenRequestQuery.Handler.cs +++ b/server/src/Core/Baya.Application/Features/Users/Queries/TokenRequest/PasswordUserTokenRequestQuery.Handler.cs @@ -1,10 +1,10 @@ -using CleanArc.Application.Contracts; -using CleanArc.Application.Contracts.Identity; -using CleanArc.Application.Models.Common; -using CleanArc.Application.Models.Jwt; +using Baya.Application.Contracts; +using Baya.Application.Contracts.Identity; +using Baya.Application.Models.Common; +using Baya.Application.Models.Jwt; using Mediator; -namespace CleanArc.Application.Features.Users.Queries.TokenRequest; +namespace Baya.Application.Features.Users.Queries.TokenRequest; public class PasswordUserTokenRequestQueryResult (IAppUserManager userManager,IJwtService jwtService) diff --git a/server/src/Core/CleanArc.Application/Features/Users/Queries/TokenRequest/PasswordUserTokenRequestQuery.cs b/server/src/Core/Baya.Application/Features/Users/Queries/TokenRequest/PasswordUserTokenRequestQuery.cs similarity index 68% rename from server/src/Core/CleanArc.Application/Features/Users/Queries/TokenRequest/PasswordUserTokenRequestQuery.cs rename to server/src/Core/Baya.Application/Features/Users/Queries/TokenRequest/PasswordUserTokenRequestQuery.cs index a0d8edd..6d6387f 100644 --- a/server/src/Core/CleanArc.Application/Features/Users/Queries/TokenRequest/PasswordUserTokenRequestQuery.cs +++ b/server/src/Core/Baya.Application/Features/Users/Queries/TokenRequest/PasswordUserTokenRequestQuery.cs @@ -1,11 +1,11 @@ -using CleanArc.Application.Models.Common; -using CleanArc.Application.Models.Jwt; -using CleanArc.SharedKernel.ValidationBase; -using CleanArc.SharedKernel.ValidationBase.Contracts; +using Baya.Application.Models.Common; +using Baya.Application.Models.Jwt; +using Baya.SharedKernel.ValidationBase; +using Baya.SharedKernel.ValidationBase.Contracts; using FluentValidation; using Mediator; -namespace CleanArc.Application.Features.Users.Queries.TokenRequest; +namespace Baya.Application.Features.Users.Queries.TokenRequest; public record PasswordUserTokenRequestQuery (string UserName,string Password) diff --git a/server/src/Core/CleanArc.Application/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.Handler.cs b/server/src/Core/Baya.Application/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.Handler.cs similarity index 87% rename from server/src/Core/CleanArc.Application/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.Handler.cs rename to server/src/Core/Baya.Application/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.Handler.cs index 0173173..50607d5 100644 --- a/server/src/Core/CleanArc.Application/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.Handler.cs +++ b/server/src/Core/Baya.Application/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.Handler.cs @@ -1,9 +1,9 @@ -using CleanArc.Application.Contracts.Identity; -using CleanArc.Application.Models.Common; +using Baya.Application.Contracts.Identity; +using Baya.Application.Models.Common; using Mediator; using Microsoft.Extensions.Logging; -namespace CleanArc.Application.Features.Users.Queries.TokenRequest; +namespace Baya.Application.Features.Users.Queries.TokenRequest; public class UserTokenRequestQueryHandler( IAppUserManager userManager, diff --git a/server/src/Core/CleanArc.Application/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.Response.cs b/server/src/Core/Baya.Application/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.Response.cs similarity index 55% rename from server/src/Core/CleanArc.Application/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.Response.cs rename to server/src/Core/Baya.Application/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.Response.cs index 7319039..f9d77e5 100644 --- a/server/src/Core/CleanArc.Application/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.Response.cs +++ b/server/src/Core/Baya.Application/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.Response.cs @@ -1,4 +1,4 @@ -namespace CleanArc.Application.Features.Users.Queries.TokenRequest; +namespace Baya.Application.Features.Users.Queries.TokenRequest; public class UserTokenRequestQueryResponse { diff --git a/server/src/Core/CleanArc.Application/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.cs b/server/src/Core/Baya.Application/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.cs similarity index 80% rename from server/src/Core/CleanArc.Application/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.cs rename to server/src/Core/Baya.Application/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.cs index 2b6f92a..887261e 100644 --- a/server/src/Core/CleanArc.Application/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.cs +++ b/server/src/Core/Baya.Application/Features/Users/Queries/TokenRequest/UserTokenRequestQuery.cs @@ -1,11 +1,11 @@ -using CleanArc.Application.Models.Common; -using CleanArc.SharedKernel.ValidationBase; -using CleanArc.SharedKernel.ValidationBase.Contracts; +using Baya.Application.Models.Common; +using Baya.SharedKernel.ValidationBase; +using Baya.SharedKernel.ValidationBase.Contracts; using FluentValidation; using Mediator; using System.Text.RegularExpressions; -namespace CleanArc.Application.Features.Users.Queries.TokenRequest; +namespace Baya.Application.Features.Users.Queries.TokenRequest; public record UserTokenRequestQuery(string UserPhoneNumber) : IRequest>, IValidatableModel diff --git a/server/src/Core/CleanArc.Application/Models/ApiResult/ApiResult.cs b/server/src/Core/Baya.Application/Models/ApiResult/ApiResult.cs similarity index 90% rename from server/src/Core/CleanArc.Application/Models/ApiResult/ApiResult.cs rename to server/src/Core/Baya.Application/Models/ApiResult/ApiResult.cs index 1e22939..fd82e52 100644 --- a/server/src/Core/CleanArc.Application/Models/ApiResult/ApiResult.cs +++ b/server/src/Core/Baya.Application/Models/ApiResult/ApiResult.cs @@ -1,7 +1,7 @@ using System.Diagnostics; -using CleanArc.SharedKernel.Extensions; +using Baya.SharedKernel.Extensions; -namespace CleanArc.Application.Models.ApiResult; +namespace Baya.Application.Models.ApiResult; public class ApiResult { diff --git a/server/src/Core/CleanArc.Application/Models/ApiResult/ApiResultStatusCodecs.cs b/server/src/Core/Baya.Application/Models/ApiResult/ApiResultStatusCodecs.cs similarity index 93% rename from server/src/Core/CleanArc.Application/Models/ApiResult/ApiResultStatusCodecs.cs rename to server/src/Core/Baya.Application/Models/ApiResult/ApiResultStatusCodecs.cs index ca6f63c..2cdaad5 100644 --- a/server/src/Core/CleanArc.Application/Models/ApiResult/ApiResultStatusCodecs.cs +++ b/server/src/Core/Baya.Application/Models/ApiResult/ApiResultStatusCodecs.cs @@ -1,6 +1,6 @@ using System.ComponentModel.DataAnnotations; -namespace CleanArc.Application.Models.ApiResult; +namespace Baya.Application.Models.ApiResult; public enum ApiResultStatusCode { diff --git a/server/src/Core/CleanArc.Application/Models/Common/OperationResult.cs b/server/src/Core/Baya.Application/Models/Common/OperationResult.cs similarity index 97% rename from server/src/Core/CleanArc.Application/Models/Common/OperationResult.cs rename to server/src/Core/Baya.Application/Models/Common/OperationResult.cs index fdc6058..7a94464 100644 --- a/server/src/Core/CleanArc.Application/Models/Common/OperationResult.cs +++ b/server/src/Core/Baya.Application/Models/Common/OperationResult.cs @@ -1,4 +1,4 @@ -namespace CleanArc.Application.Models.Common; +namespace Baya.Application.Models.Common; /// /// Marker Interface To Mark Operation Result Response In Validation Pipeline diff --git a/server/src/Core/CleanArc.Application/Models/Identity/ActionDescriptionDto.cs b/server/src/Core/Baya.Application/Models/Identity/ActionDescriptionDto.cs similarity index 88% rename from server/src/Core/CleanArc.Application/Models/Identity/ActionDescriptionDto.cs rename to server/src/Core/Baya.Application/Models/Identity/ActionDescriptionDto.cs index df87808..f9a87cb 100644 --- a/server/src/Core/CleanArc.Application/Models/Identity/ActionDescriptionDto.cs +++ b/server/src/Core/Baya.Application/Models/Identity/ActionDescriptionDto.cs @@ -1,4 +1,4 @@ -namespace CleanArc.Application.Models.Identity; +namespace Baya.Application.Models.Identity; public class ActionDescriptionDto { diff --git a/server/src/Core/CleanArc.Application/Models/Identity/CreateRoleDto.cs b/server/src/Core/Baya.Application/Models/Identity/CreateRoleDto.cs similarity index 58% rename from server/src/Core/CleanArc.Application/Models/Identity/CreateRoleDto.cs rename to server/src/Core/Baya.Application/Models/Identity/CreateRoleDto.cs index 04150a6..13d1c16 100644 --- a/server/src/Core/CleanArc.Application/Models/Identity/CreateRoleDto.cs +++ b/server/src/Core/Baya.Application/Models/Identity/CreateRoleDto.cs @@ -1,4 +1,4 @@ -namespace CleanArc.Application.Models.Identity; +namespace Baya.Application.Models.Identity; public class CreateRoleDto { diff --git a/server/src/Core/CleanArc.Application/Models/Identity/EditRolePermissionsDto.cs b/server/src/Core/Baya.Application/Models/Identity/EditRolePermissionsDto.cs similarity index 71% rename from server/src/Core/CleanArc.Application/Models/Identity/EditRolePermissionsDto.cs rename to server/src/Core/Baya.Application/Models/Identity/EditRolePermissionsDto.cs index f955fe4..043125e 100644 --- a/server/src/Core/CleanArc.Application/Models/Identity/EditRolePermissionsDto.cs +++ b/server/src/Core/Baya.Application/Models/Identity/EditRolePermissionsDto.cs @@ -1,4 +1,4 @@ -namespace CleanArc.Application.Models.Identity; +namespace Baya.Application.Models.Identity; public class EditRolePermissionsDto { diff --git a/server/src/Core/CleanArc.Application/Models/Identity/GetRolesDto.cs b/server/src/Core/Baya.Application/Models/Identity/GetRolesDto.cs similarity index 53% rename from server/src/Core/CleanArc.Application/Models/Identity/GetRolesDto.cs rename to server/src/Core/Baya.Application/Models/Identity/GetRolesDto.cs index fb1cc9c..772983d 100644 --- a/server/src/Core/CleanArc.Application/Models/Identity/GetRolesDto.cs +++ b/server/src/Core/Baya.Application/Models/Identity/GetRolesDto.cs @@ -1,6 +1,6 @@ -using CleanArc.Domain.Entities.User; +using Baya.Domain.Entities.User; -namespace CleanArc.Application.Models.Identity; +namespace Baya.Application.Models.Identity; public class GetRolesDto { diff --git a/server/src/Core/CleanArc.Application/Models/Identity/RolePermissionDto.cs b/server/src/Core/Baya.Application/Models/Identity/RolePermissionDto.cs similarity index 72% rename from server/src/Core/CleanArc.Application/Models/Identity/RolePermissionDto.cs rename to server/src/Core/Baya.Application/Models/Identity/RolePermissionDto.cs index b2cc930..a5af41a 100644 --- a/server/src/Core/CleanArc.Application/Models/Identity/RolePermissionDto.cs +++ b/server/src/Core/Baya.Application/Models/Identity/RolePermissionDto.cs @@ -1,6 +1,6 @@ -using CleanArc.Domain.Entities.User; +using Baya.Domain.Entities.User; -namespace CleanArc.Application.Models.Identity; +namespace Baya.Application.Models.Identity; public class RolePermissionDto { diff --git a/server/src/Core/CleanArc.Application/Models/Jwt/AccessToken.cs b/server/src/Core/Baya.Application/Models/Jwt/AccessToken.cs similarity index 92% rename from server/src/Core/CleanArc.Application/Models/Jwt/AccessToken.cs rename to server/src/Core/Baya.Application/Models/Jwt/AccessToken.cs index c836d71..7a8e02c 100644 --- a/server/src/Core/CleanArc.Application/Models/Jwt/AccessToken.cs +++ b/server/src/Core/Baya.Application/Models/Jwt/AccessToken.cs @@ -1,6 +1,6 @@ using System.IdentityModel.Tokens.Jwt; -namespace CleanArc.Application.Models.Jwt; +namespace Baya.Application.Models.Jwt; public class AccessToken { diff --git a/server/src/Core/CleanArc.Application/Models/Jwt/TokenRequest.cs b/server/src/Core/Baya.Application/Models/Jwt/TokenRequest.cs similarity index 90% rename from server/src/Core/CleanArc.Application/Models/Jwt/TokenRequest.cs rename to server/src/Core/Baya.Application/Models/Jwt/TokenRequest.cs index b4b0773..3c1abb0 100644 --- a/server/src/Core/CleanArc.Application/Models/Jwt/TokenRequest.cs +++ b/server/src/Core/Baya.Application/Models/Jwt/TokenRequest.cs @@ -1,6 +1,6 @@ using System.ComponentModel.DataAnnotations; -namespace CleanArc.Application.Models.Jwt; +namespace Baya.Application.Models.Jwt; public class TokenRequest { diff --git a/server/src/Core/CleanArc.Application/ServiceConfiguration/ServiceCollectionExtension.cs b/server/src/Core/Baya.Application/ServiceConfiguration/ServiceCollectionExtension.cs similarity index 80% rename from server/src/Core/CleanArc.Application/ServiceConfiguration/ServiceCollectionExtension.cs rename to server/src/Core/Baya.Application/ServiceConfiguration/ServiceCollectionExtension.cs index a4610a7..c570ed2 100644 --- a/server/src/Core/CleanArc.Application/ServiceConfiguration/ServiceCollectionExtension.cs +++ b/server/src/Core/Baya.Application/ServiceConfiguration/ServiceCollectionExtension.cs @@ -1,10 +1,10 @@ using System.Reflection; -using CleanArc.Application.Common; +using Baya.Application.Common; using Mapster; using Mediator; using Microsoft.Extensions.DependencyInjection; -namespace CleanArc.Application.ServiceConfiguration; +namespace Baya.Application.ServiceConfiguration; public static class ServiceCollectionExtension { @@ -13,7 +13,7 @@ public static class ServiceCollectionExtension services.AddMediator(options => { options.ServiceLifetime = ServiceLifetime.Scoped; - options.Namespace = "CleanArc.Application.Mediator"; + options.Namespace = "Baya.Application.Mediator"; }); services.AddScoped(typeof(IPipelineBehavior<,>), typeof(MetricsBehaviour<,>)); diff --git a/server/src/Core/CleanArc.Domain/CleanArc.Domain.csproj b/server/src/Core/Baya.Domain/Baya.Domain.csproj similarity index 67% rename from server/src/Core/CleanArc.Domain/CleanArc.Domain.csproj rename to server/src/Core/Baya.Domain/Baya.Domain.csproj index d724280..161cc54 100644 --- a/server/src/Core/CleanArc.Domain/CleanArc.Domain.csproj +++ b/server/src/Core/Baya.Domain/Baya.Domain.csproj @@ -6,6 +6,6 @@ - + diff --git a/server/src/Core/CleanArc.Domain/Common/BaseEntity.cs b/server/src/Core/Baya.Domain/Common/BaseEntity.cs similarity index 96% rename from server/src/Core/CleanArc.Domain/Common/BaseEntity.cs rename to server/src/Core/Baya.Domain/Common/BaseEntity.cs index 1dea77c..a4ea467 100644 --- a/server/src/Core/CleanArc.Domain/Common/BaseEntity.cs +++ b/server/src/Core/Baya.Domain/Common/BaseEntity.cs @@ -1,4 +1,4 @@ -namespace CleanArc.Domain.Common; +namespace Baya.Domain.Common; public interface IEntity { diff --git a/server/src/Core/CleanArc.Domain/Entities/Order/Order.cs b/server/src/Core/Baya.Domain/Entities/Order/Order.cs similarity index 76% rename from server/src/Core/CleanArc.Domain/Entities/Order/Order.cs rename to server/src/Core/Baya.Domain/Entities/Order/Order.cs index 77d6dd0..01b3adf 100644 --- a/server/src/Core/CleanArc.Domain/Entities/Order/Order.cs +++ b/server/src/Core/Baya.Domain/Entities/Order/Order.cs @@ -1,6 +1,6 @@ -using CleanArc.Domain.Common; +using Baya.Domain.Common; -namespace CleanArc.Domain.Entities.Order; +namespace Baya.Domain.Entities.Order; public class Order:BaseEntity { diff --git a/server/src/Core/CleanArc.Domain/Entities/User/Role.cs b/server/src/Core/Baya.Domain/Entities/User/Role.cs similarity index 82% rename from server/src/Core/CleanArc.Domain/Entities/User/Role.cs rename to server/src/Core/Baya.Domain/Entities/User/Role.cs index fcc4ba7..a7ff051 100644 --- a/server/src/Core/CleanArc.Domain/Entities/User/Role.cs +++ b/server/src/Core/Baya.Domain/Entities/User/Role.cs @@ -1,7 +1,7 @@ -using CleanArc.Domain.Common; +using Baya.Domain.Common; using Microsoft.AspNetCore.Identity; -namespace CleanArc.Domain.Entities.User; +namespace Baya.Domain.Entities.User; public class Role:IdentityRole,IEntity { diff --git a/server/src/Core/CleanArc.Domain/Entities/User/RoleClaim.cs b/server/src/Core/Baya.Domain/Entities/User/RoleClaim.cs similarity index 77% rename from server/src/Core/CleanArc.Domain/Entities/User/RoleClaim.cs rename to server/src/Core/Baya.Domain/Entities/User/RoleClaim.cs index 3c1c5c9..c2eec48 100644 --- a/server/src/Core/CleanArc.Domain/Entities/User/RoleClaim.cs +++ b/server/src/Core/Baya.Domain/Entities/User/RoleClaim.cs @@ -1,7 +1,7 @@ -using CleanArc.Domain.Common; +using Baya.Domain.Common; using Microsoft.AspNetCore.Identity; -namespace CleanArc.Domain.Entities.User; +namespace Baya.Domain.Entities.User; public class RoleClaim:IdentityRoleClaim,IEntity { diff --git a/server/src/Core/CleanArc.Domain/Entities/User/User.cs b/server/src/Core/Baya.Domain/Entities/User/User.cs similarity index 90% rename from server/src/Core/CleanArc.Domain/Entities/User/User.cs rename to server/src/Core/Baya.Domain/Entities/User/User.cs index f9a9e61..820da2e 100644 --- a/server/src/Core/CleanArc.Domain/Entities/User/User.cs +++ b/server/src/Core/Baya.Domain/Entities/User/User.cs @@ -1,7 +1,7 @@ -using CleanArc.Domain.Common; +using Baya.Domain.Common; using Microsoft.AspNetCore.Identity; -namespace CleanArc.Domain.Entities.User; +namespace Baya.Domain.Entities.User; public class User:IdentityUser,IEntity { diff --git a/server/src/Core/CleanArc.Domain/Entities/User/UserClaim.cs b/server/src/Core/Baya.Domain/Entities/User/UserClaim.cs similarity index 63% rename from server/src/Core/CleanArc.Domain/Entities/User/UserClaim.cs rename to server/src/Core/Baya.Domain/Entities/User/UserClaim.cs index b6b9abb..33ffaa0 100644 --- a/server/src/Core/CleanArc.Domain/Entities/User/UserClaim.cs +++ b/server/src/Core/Baya.Domain/Entities/User/UserClaim.cs @@ -1,7 +1,7 @@ -using CleanArc.Domain.Common; +using Baya.Domain.Common; using Microsoft.AspNetCore.Identity; -namespace CleanArc.Domain.Entities.User; +namespace Baya.Domain.Entities.User; public class UserClaim:IdentityUserClaim,IEntity { diff --git a/server/src/Core/CleanArc.Domain/Entities/User/UserLogin.cs b/server/src/Core/Baya.Domain/Entities/User/UserLogin.cs similarity index 76% rename from server/src/Core/CleanArc.Domain/Entities/User/UserLogin.cs rename to server/src/Core/Baya.Domain/Entities/User/UserLogin.cs index 32953f4..e24849b 100644 --- a/server/src/Core/CleanArc.Domain/Entities/User/UserLogin.cs +++ b/server/src/Core/Baya.Domain/Entities/User/UserLogin.cs @@ -1,7 +1,7 @@ -using CleanArc.Domain.Common; +using Baya.Domain.Common; using Microsoft.AspNetCore.Identity; -namespace CleanArc.Domain.Entities.User; +namespace Baya.Domain.Entities.User; public class UserLogin:IdentityUserLogin,IEntity { diff --git a/server/src/Core/CleanArc.Domain/Entities/User/UserRefreshToken.cs b/server/src/Core/Baya.Domain/Entities/User/UserRefreshToken.cs similarity index 79% rename from server/src/Core/CleanArc.Domain/Entities/User/UserRefreshToken.cs rename to server/src/Core/Baya.Domain/Entities/User/UserRefreshToken.cs index 88e2b3b..379a1c1 100644 --- a/server/src/Core/CleanArc.Domain/Entities/User/UserRefreshToken.cs +++ b/server/src/Core/Baya.Domain/Entities/User/UserRefreshToken.cs @@ -1,6 +1,6 @@ -using CleanArc.Domain.Common; +using Baya.Domain.Common; -namespace CleanArc.Domain.Entities.User; +namespace Baya.Domain.Entities.User; public class UserRefreshToken:BaseEntity { diff --git a/server/src/Core/CleanArc.Domain/Entities/User/UserRole.cs b/server/src/Core/Baya.Domain/Entities/User/UserRole.cs similarity index 74% rename from server/src/Core/CleanArc.Domain/Entities/User/UserRole.cs rename to server/src/Core/Baya.Domain/Entities/User/UserRole.cs index 205df10..bbc95f4 100644 --- a/server/src/Core/CleanArc.Domain/Entities/User/UserRole.cs +++ b/server/src/Core/Baya.Domain/Entities/User/UserRole.cs @@ -1,7 +1,7 @@ -using CleanArc.Domain.Common; +using Baya.Domain.Common; using Microsoft.AspNetCore.Identity; -namespace CleanArc.Domain.Entities.User; +namespace Baya.Domain.Entities.User; public class UserRole : IdentityUserRole,IEntity { diff --git a/server/src/Core/CleanArc.Domain/Entities/User/UserToken.cs b/server/src/Core/Baya.Domain/Entities/User/UserToken.cs similarity index 77% rename from server/src/Core/CleanArc.Domain/Entities/User/UserToken.cs rename to server/src/Core/Baya.Domain/Entities/User/UserToken.cs index 99f206f..4d17e38 100644 --- a/server/src/Core/CleanArc.Domain/Entities/User/UserToken.cs +++ b/server/src/Core/Baya.Domain/Entities/User/UserToken.cs @@ -1,7 +1,7 @@ -using CleanArc.Domain.Common; +using Baya.Domain.Common; using Microsoft.AspNetCore.Identity; -namespace CleanArc.Domain.Entities.User; +namespace Baya.Domain.Entities.User; public class UserToken:IdentityUserToken,IEntity { diff --git a/server/src/Core/CleanArc.Application/Features/Admin/Queries/GetToken/AdminGetTokenQuery.Result.cs b/server/src/Core/CleanArc.Application/Features/Admin/Queries/GetToken/AdminGetTokenQuery.Result.cs deleted file mode 100644 index ea68f49..0000000 --- a/server/src/Core/CleanArc.Application/Features/Admin/Queries/GetToken/AdminGetTokenQuery.Result.cs +++ /dev/null @@ -1,5 +0,0 @@ -using CleanArc.Application.Models.Jwt; - -namespace CleanArc.Application.Features.Admin.Queries.GetToken; - -public record AdminGetTokenQueryResult(AccessToken Token,string[] Roles); \ No newline at end of file diff --git a/server/src/Core/CleanArc.Application/Features/Order/Commands/DeleteUserOrdersCommand.cs b/server/src/Core/CleanArc.Application/Features/Order/Commands/DeleteUserOrdersCommand.cs deleted file mode 100644 index 0f95f65..0000000 --- a/server/src/Core/CleanArc.Application/Features/Order/Commands/DeleteUserOrdersCommand.cs +++ /dev/null @@ -1,6 +0,0 @@ -using CleanArc.Application.Models.Common; -using Mediator; - -namespace CleanArc.Application.Features.Order.Commands; - -public record DeleteUserOrdersCommand(int UserId):IRequest>; \ No newline at end of file diff --git a/server/src/Core/CleanArc.Application/Features/Order/Queries/GetAllOrders/GetAllOrdersQuery.cs b/server/src/Core/CleanArc.Application/Features/Order/Queries/GetAllOrders/GetAllOrdersQuery.cs deleted file mode 100644 index 418f9a0..0000000 --- a/server/src/Core/CleanArc.Application/Features/Order/Queries/GetAllOrders/GetAllOrdersQuery.cs +++ /dev/null @@ -1,6 +0,0 @@ -using CleanArc.Application.Models.Common; -using Mediator; - -namespace CleanArc.Application.Features.Order.Queries.GetAllOrders; - -public record GetAllOrdersQuery():IRequest>>; \ No newline at end of file diff --git a/server/src/Core/CleanArc.Application/Features/Order/Queries/GetUserOrders/GetUsersQueryResultModel.cs b/server/src/Core/CleanArc.Application/Features/Order/Queries/GetUserOrders/GetUsersQueryResultModel.cs deleted file mode 100644 index 40467e3..0000000 --- a/server/src/Core/CleanArc.Application/Features/Order/Queries/GetUserOrders/GetUsersQueryResultModel.cs +++ /dev/null @@ -1,3 +0,0 @@ -namespace CleanArc.Application.Features.Order.Queries.GetUserOrders; - -public record GetUsersQueryResultModel(int OrderId, string OrderName); \ No newline at end of file diff --git a/server/src/Core/CleanArc.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.Response.cs b/server/src/Core/CleanArc.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.Response.cs deleted file mode 100644 index 215e83c..0000000 --- a/server/src/Core/CleanArc.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.Response.cs +++ /dev/null @@ -1,3 +0,0 @@ -namespace CleanArc.Application.Features.Role.Queries.GetAllRolesQuery; - -public record GetAllRolesQueryResponse(int RoleId,string RoleName); \ No newline at end of file diff --git a/server/src/Core/CleanArc.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.cs b/server/src/Core/CleanArc.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.cs deleted file mode 100644 index a90b005..0000000 --- a/server/src/Core/CleanArc.Application/Features/Role/Queries/GetAllRolesQuery/GetAllRolesQuery.cs +++ /dev/null @@ -1,6 +0,0 @@ -using CleanArc.Application.Models.Common; -using Mediator; - -namespace CleanArc.Application.Features.Role.Queries.GetAllRolesQuery; - -public record GetAllRolesQuery():IRequest>>; \ No newline at end of file diff --git a/server/src/Core/CleanArc.Application/Features/Users/Commands/RequestLogout/RequestLogoutCommand.cs b/server/src/Core/CleanArc.Application/Features/Users/Commands/RequestLogout/RequestLogoutCommand.cs deleted file mode 100644 index e5e1c20..0000000 --- a/server/src/Core/CleanArc.Application/Features/Users/Commands/RequestLogout/RequestLogoutCommand.cs +++ /dev/null @@ -1,6 +0,0 @@ -using CleanArc.Application.Models.Common; -using Mediator; - -namespace CleanArc.Application.Features.Users.Commands.RequestLogout; - -public record RequestLogoutCommand(int UserId):IRequest>; \ No newline at end of file diff --git a/server/src/Core/CleanArc.Application/Features/Users/Queries/GetUsers/GetUsersQuery.cs b/server/src/Core/CleanArc.Application/Features/Users/Queries/GetUsers/GetUsersQuery.cs deleted file mode 100644 index c205513..0000000 --- a/server/src/Core/CleanArc.Application/Features/Users/Queries/GetUsers/GetUsersQuery.cs +++ /dev/null @@ -1,6 +0,0 @@ -using CleanArc.Application.Models.Common; -using Mediator; - -namespace CleanArc.Application.Features.Users.Queries.GetUsers; - -public record GetUsersQuery : IRequest>>; \ No newline at end of file diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.CrossCutting/CleanArc.Infrastructure.CrossCutting.csproj b/server/src/Infrastructure/Baya.Infrastructure.CrossCutting/Baya.Infrastructure.CrossCutting.csproj similarity index 74% rename from server/src/Infrastructure/CleanArc.Infrastructure.CrossCutting/CleanArc.Infrastructure.CrossCutting.csproj rename to server/src/Infrastructure/Baya.Infrastructure.CrossCutting/Baya.Infrastructure.CrossCutting.csproj index 166333e..dd48cd6 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.CrossCutting/CleanArc.Infrastructure.CrossCutting.csproj +++ b/server/src/Infrastructure/Baya.Infrastructure.CrossCutting/Baya.Infrastructure.CrossCutting.csproj @@ -14,7 +14,7 @@ - - + + diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.CrossCutting/Logging/LoggingConfiguration.cs b/server/src/Infrastructure/Baya.Infrastructure.CrossCutting/Logging/LoggingConfiguration.cs similarity index 97% rename from server/src/Infrastructure/CleanArc.Infrastructure.CrossCutting/Logging/LoggingConfiguration.cs rename to server/src/Infrastructure/Baya.Infrastructure.CrossCutting/Logging/LoggingConfiguration.cs index 60f38ab..ef513f3 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.CrossCutting/Logging/LoggingConfiguration.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.CrossCutting/Logging/LoggingConfiguration.cs @@ -7,7 +7,7 @@ using Serilog.Exceptions; using Serilog.Formatting.Json; using Serilog.Sinks.MSSqlServer; -namespace CleanArc.Infrastructure.CrossCutting.Logging; +namespace Baya.Infrastructure.CrossCutting.Logging; public static class LoggingConfiguration { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/CleanArc.Infrastructure.Identity.csproj b/server/src/Infrastructure/Baya.Infrastructure.Identity/Baya.Infrastructure.Identity.csproj similarity index 69% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/CleanArc.Infrastructure.Identity.csproj rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Baya.Infrastructure.Identity.csproj index 93034ab..bcac71e 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/CleanArc.Infrastructure.Identity.csproj +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Baya.Infrastructure.Identity.csproj @@ -13,9 +13,9 @@ - - - + + + diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/AppErrorDescriber.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/AppErrorDescriber.cs similarity index 97% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/AppErrorDescriber.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/AppErrorDescriber.cs index 249a0db..b9a22af 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/AppErrorDescriber.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/AppErrorDescriber.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Identity; -namespace CleanArc.Infrastructure.Identity.Identity; +namespace Baya.Infrastructure.Identity.Identity; public class AppErrorDescriber:IdentityErrorDescriber { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/AppUserClaimsPrincipleFactory.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/AppUserClaimsPrincipleFactory.cs similarity index 88% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/AppUserClaimsPrincipleFactory.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/AppUserClaimsPrincipleFactory.cs index 6ac7472..5fcfa55 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/AppUserClaimsPrincipleFactory.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/AppUserClaimsPrincipleFactory.cs @@ -1,10 +1,10 @@ using System.Security.Claims; -using CleanArc.Domain.Entities.User; -using CleanArc.Infrastructure.Identity.Identity.Manager; +using Baya.Domain.Entities.User; +using Baya.Infrastructure.Identity.Identity.Manager; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.Options; -namespace CleanArc.Infrastructure.Identity.Identity; +namespace Baya.Infrastructure.Identity.Identity; public class AppUserClaimsPrincipleFactory:UserClaimsPrincipalFactory { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/DataProtection/KeyRing.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/DataProtection/KeyRing.cs similarity index 97% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/DataProtection/KeyRing.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/DataProtection/KeyRing.cs index e6c0f72..ab99eed 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/DataProtection/KeyRing.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/DataProtection/KeyRing.cs @@ -2,7 +2,7 @@ using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Identity; -namespace CleanArc.Infrastructure.Identity.Identity.DataProtection; +namespace Baya.Infrastructure.Identity.Identity.DataProtection; public class KeyRing : ILookupProtectorKeyRing { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/DataProtection/LookupProtector.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/DataProtection/LookupProtector.cs similarity index 99% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/DataProtection/LookupProtector.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/DataProtection/LookupProtector.cs index bee1c6e..b6c0dd9 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/DataProtection/LookupProtector.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/DataProtection/LookupProtector.cs @@ -4,7 +4,7 @@ using System.Text; using Microsoft.AspNetCore.Cryptography.KeyDerivation; using Microsoft.AspNetCore.Identity; -namespace CleanArc.Infrastructure.Identity.Identity.DataProtection; +namespace Baya.Infrastructure.Identity.Identity.DataProtection; public class LookupProtector : ILookupProtector { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/DataProtection/PersonalDataProtector.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/DataProtection/PersonalDataProtector.cs similarity index 99% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/DataProtection/PersonalDataProtector.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/DataProtection/PersonalDataProtector.cs index 9b24ba2..544a087 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/DataProtection/PersonalDataProtector.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/DataProtection/PersonalDataProtector.cs @@ -4,7 +4,7 @@ using System.Text; using Microsoft.AspNetCore.Cryptography.KeyDerivation; using Microsoft.AspNetCore.Identity; -namespace CleanArc.Infrastructure.Identity.Identity.DataProtection; +namespace Baya.Infrastructure.Identity.Identity.DataProtection; public class PersonalDataProtector : IPersonalDataProtector { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/DataProtection/ProtectorAlgorithmHelper.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/DataProtection/ProtectorAlgorithmHelper.cs similarity index 93% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/DataProtection/ProtectorAlgorithmHelper.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/DataProtection/ProtectorAlgorithmHelper.cs index 800cfac..f81ac4a 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/DataProtection/ProtectorAlgorithmHelper.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/DataProtection/ProtectorAlgorithmHelper.cs @@ -1,6 +1,6 @@ using System.Security.Cryptography; -namespace CleanArc.Infrastructure.Identity.Identity.DataProtection; +namespace Baya.Infrastructure.Identity.Identity.DataProtection; public enum ProtectorAlgorithm { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Dtos/CustomIdentityConstants.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Dtos/CustomIdentityConstants.cs similarity index 79% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Dtos/CustomIdentityConstants.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Dtos/CustomIdentityConstants.cs index fa12893..03e01a3 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Dtos/CustomIdentityConstants.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Dtos/CustomIdentityConstants.cs @@ -1,4 +1,4 @@ -namespace CleanArc.Infrastructure.Identity.Identity.Dtos +namespace Baya.Infrastructure.Identity.Identity.Dtos { internal class CustomIdentityConstants { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Dtos/IdentitySettings.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Dtos/IdentitySettings.cs similarity index 82% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Dtos/IdentitySettings.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Dtos/IdentitySettings.cs index 83559af..c40a1e5 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Dtos/IdentitySettings.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Dtos/IdentitySettings.cs @@ -1,4 +1,4 @@ -namespace CleanArc.Infrastructure.Identity.Identity.Dtos; +namespace Baya.Infrastructure.Identity.Identity.Dtos; public class IdentitySettings { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Extensions/CustomIdentityExtensions.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Extensions/CustomIdentityExtensions.cs similarity index 96% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Extensions/CustomIdentityExtensions.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Extensions/CustomIdentityExtensions.cs index 92d1ffe..7891b72 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Extensions/CustomIdentityExtensions.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Extensions/CustomIdentityExtensions.cs @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -namespace CleanArc.Infrastructure.Identity.Identity.Extensions; +namespace Baya.Infrastructure.Identity.Identity.Extensions; public class DataProtectionTokenProviderOptions { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Manager/AppRoleManager.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Manager/AppRoleManager.cs similarity index 79% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Manager/AppRoleManager.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Manager/AppRoleManager.cs index 3800894..2701a38 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Manager/AppRoleManager.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Manager/AppRoleManager.cs @@ -1,8 +1,8 @@ -using CleanArc.Domain.Entities.User; +using Baya.Domain.Entities.User; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.Logging; -namespace CleanArc.Infrastructure.Identity.Identity.Manager; +namespace Baya.Infrastructure.Identity.Identity.Manager; public class AppRoleManager:RoleManager { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Manager/AppSignInManager.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Manager/AppSignInManager.cs similarity index 86% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Manager/AppSignInManager.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Manager/AppSignInManager.cs index 9f7b400..51e4e36 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Manager/AppSignInManager.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Manager/AppSignInManager.cs @@ -1,11 +1,11 @@ -using CleanArc.Domain.Entities.User; +using Baya.Domain.Entities.User; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -namespace CleanArc.Infrastructure.Identity.Identity.Manager; +namespace Baya.Infrastructure.Identity.Identity.Manager; public class AppSignInManager : SignInManager { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Manager/AppUserManager.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Manager/AppUserManager.cs similarity index 86% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Manager/AppUserManager.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Manager/AppUserManager.cs index 24cd0a5..7ebed17 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Manager/AppUserManager.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Manager/AppUserManager.cs @@ -1,9 +1,9 @@ -using CleanArc.Domain.Entities.User; +using Baya.Domain.Entities.User; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -namespace CleanArc.Infrastructure.Identity.Identity.Manager; +namespace Baya.Infrastructure.Identity.Identity.Manager; public class AppUserManager:UserManager { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/PermissionManager/ConstantPolicies.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/PermissionManager/ConstantPolicies.cs similarity index 60% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/PermissionManager/ConstantPolicies.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/PermissionManager/ConstantPolicies.cs index 5200a92..8314b92 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/PermissionManager/ConstantPolicies.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/PermissionManager/ConstantPolicies.cs @@ -1,4 +1,4 @@ -namespace CleanArc.Infrastructure.Identity.Identity.PermissionManager; +namespace Baya.Infrastructure.Identity.Identity.PermissionManager; public static class ConstantPolicies { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/PermissionManager/DynamicPermissionRequirement.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/PermissionManager/DynamicPermissionRequirement.cs similarity index 95% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/PermissionManager/DynamicPermissionRequirement.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/PermissionManager/DynamicPermissionRequirement.cs index d6ec152..640b991 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/PermissionManager/DynamicPermissionRequirement.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/PermissionManager/DynamicPermissionRequirement.cs @@ -2,7 +2,7 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Routing; -namespace CleanArc.Infrastructure.Identity.Identity.PermissionManager; +namespace Baya.Infrastructure.Identity.Identity.PermissionManager; public class DynamicPermissionRequirement : IAuthorizationRequirement { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/PermissionManager/DynamicPermissionService.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/PermissionManager/DynamicPermissionService.cs similarity index 87% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/PermissionManager/DynamicPermissionService.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/PermissionManager/DynamicPermissionService.cs index 3bc0b93..3a1778d 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/PermissionManager/DynamicPermissionService.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/PermissionManager/DynamicPermissionService.cs @@ -1,6 +1,6 @@ using System.Security.Claims; -namespace CleanArc.Infrastructure.Identity.Identity.PermissionManager; +namespace Baya.Infrastructure.Identity.Identity.PermissionManager; public class DynamicPermissionService : IDynamicPermissionService { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/PermissionManager/IDynamicPermissionService.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/PermissionManager/IDynamicPermissionService.cs similarity index 70% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/PermissionManager/IDynamicPermissionService.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/PermissionManager/IDynamicPermissionService.cs index 71370c8..ba4b889 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/PermissionManager/IDynamicPermissionService.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/PermissionManager/IDynamicPermissionService.cs @@ -1,6 +1,6 @@ using System.Security.Claims; -namespace CleanArc.Infrastructure.Identity.Identity.PermissionManager; +namespace Baya.Infrastructure.Identity.Identity.PermissionManager; public interface IDynamicPermissionService { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/PermissionManager/RoleManagerService.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/PermissionManager/RoleManagerService.cs similarity index 95% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/PermissionManager/RoleManagerService.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/PermissionManager/RoleManagerService.cs index 0af1e0b..3cb58cb 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/PermissionManager/RoleManagerService.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/PermissionManager/RoleManagerService.cs @@ -1,10 +1,10 @@ using System.ComponentModel.DataAnnotations; using System.Reflection; -using CleanArc.Application.Contracts.Identity; -using CleanArc.Application.Models.Identity; -using CleanArc.Domain.Entities.User; -using CleanArc.Infrastructure.Identity.Identity.Manager; -using CleanArc.Infrastructure.Persistence; +using Baya.Application.Contracts.Identity; +using Baya.Application.Models.Identity; +using Baya.Domain.Entities.User; +using Baya.Infrastructure.Identity.Identity.Manager; +using Baya.Infrastructure.Persistence; using MapsterMapper; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; @@ -15,7 +15,7 @@ using Microsoft.AspNetCore.Routing; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; -namespace CleanArc.Infrastructure.Identity.Identity.PermissionManager; +namespace Baya.Infrastructure.Identity.Identity.PermissionManager; internal class RoleManagerService : IRoleManagerService { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/SeedDatabaseService/SeedDataBase.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/SeedDatabaseService/SeedDataBase.cs similarity index 86% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/SeedDatabaseService/SeedDataBase.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/SeedDatabaseService/SeedDataBase.cs index ce67221..456f071 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/SeedDatabaseService/SeedDataBase.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/SeedDatabaseService/SeedDataBase.cs @@ -1,8 +1,8 @@ -using CleanArc.Domain.Entities.User; -using CleanArc.Infrastructure.Identity.Identity.Manager; +using Baya.Domain.Entities.User; +using Baya.Infrastructure.Identity.Identity.Manager; using Microsoft.EntityFrameworkCore; -namespace CleanArc.Infrastructure.Identity.Identity.SeedDatabaseService; +namespace Baya.Infrastructure.Identity.Identity.SeedDatabaseService; public interface ISeedDataBase { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Store/AppUserStore.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Store/AppUserStore.cs similarity index 71% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Store/AppUserStore.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Store/AppUserStore.cs index c63f436..1721288 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Store/AppUserStore.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Store/AppUserStore.cs @@ -1,9 +1,9 @@ -using CleanArc.Domain.Entities.User; -using CleanArc.Infrastructure.Persistence; +using Baya.Domain.Entities.User; +using Baya.Infrastructure.Persistence; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; -namespace CleanArc.Infrastructure.Identity.Identity.Store; +namespace Baya.Infrastructure.Identity.Identity.Store; public class AppUserStore:UserStore { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Store/RoleStore.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Store/RoleStore.cs similarity index 68% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Store/RoleStore.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Store/RoleStore.cs index f214974..d666dff 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/Store/RoleStore.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/Store/RoleStore.cs @@ -1,9 +1,9 @@ -using CleanArc.Domain.Entities.User; -using CleanArc.Infrastructure.Persistence; +using Baya.Domain.Entities.User; +using Baya.Infrastructure.Persistence; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; -namespace CleanArc.Infrastructure.Identity.Identity.Store; +namespace Baya.Infrastructure.Identity.Identity.Store; public class RoleStore:RoleStore { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/validator/AppRoleValidator.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/validator/AppRoleValidator.cs similarity index 77% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/validator/AppRoleValidator.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/validator/AppRoleValidator.cs index e7d072f..fb9c00f 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/validator/AppRoleValidator.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/validator/AppRoleValidator.cs @@ -1,7 +1,7 @@ -using CleanArc.Domain.Entities.User; +using Baya.Domain.Entities.User; using Microsoft.AspNetCore.Identity; -namespace CleanArc.Infrastructure.Identity.Identity.validator; +namespace Baya.Infrastructure.Identity.Identity.validator; public class AppRoleValidator:RoleValidator { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/validator/AppUserValidator.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/validator/AppUserValidator.cs similarity index 79% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/validator/AppUserValidator.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/validator/AppUserValidator.cs index fde0c30..4969313 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Identity/validator/AppUserValidator.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Identity/validator/AppUserValidator.cs @@ -1,7 +1,7 @@ -using CleanArc.Domain.Entities.User; +using Baya.Domain.Entities.User; using Microsoft.AspNetCore.Identity; -namespace CleanArc.Infrastructure.Identity.Identity.validator; +namespace Baya.Infrastructure.Identity.Identity.validator; public class AppUserValidator:UserValidator { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Jwt/JwtService.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/Jwt/JwtService.cs similarity index 93% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/Jwt/JwtService.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/Jwt/JwtService.cs index 59bfbe8..61d8ea9 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/Jwt/JwtService.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/Jwt/JwtService.cs @@ -1,18 +1,18 @@ using System.IdentityModel.Tokens.Jwt; using System.Security.Claims; using System.Text; -using CleanArc.Application.Contracts; -using CleanArc.Application.Contracts.Persistence; -using CleanArc.Application.Models.Jwt; -using CleanArc.Domain.Entities.User; -using CleanArc.Infrastructure.Identity.Identity.Dtos; -using CleanArc.Infrastructure.Identity.Identity.Manager; +using Baya.Application.Contracts; +using Baya.Application.Contracts.Persistence; +using Baya.Application.Models.Jwt; +using Baya.Domain.Entities.User; +using Baya.Infrastructure.Identity.Identity.Dtos; +using Baya.Infrastructure.Identity.Identity.Manager; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Options; using Microsoft.IdentityModel.Tokens; -namespace CleanArc.Infrastructure.Identity.Jwt; +namespace Baya.Infrastructure.Identity.Jwt; public class JwtService : IJwtService { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/ServiceConfiguration/ServiceCollectionExtension.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/ServiceConfiguration/ServiceCollectionExtension.cs similarity index 91% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/ServiceConfiguration/ServiceCollectionExtension.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/ServiceConfiguration/ServiceCollectionExtension.cs index 9d757fa..540e6d4 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/ServiceConfiguration/ServiceCollectionExtension.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/ServiceConfiguration/ServiceCollectionExtension.cs @@ -1,20 +1,20 @@ using System.Security.Claims; using System.Text; -using CleanArc.Application.Contracts; -using CleanArc.Application.Contracts.Identity; -using CleanArc.Application.Models.ApiResult; -using CleanArc.Domain.Entities.User; -using CleanArc.Infrastructure.Identity.Identity; -using CleanArc.Infrastructure.Identity.Identity.Dtos; -using CleanArc.Infrastructure.Identity.Identity.Extensions; -using CleanArc.Infrastructure.Identity.Identity.Manager; -using CleanArc.Infrastructure.Identity.Identity.PermissionManager; -using CleanArc.Infrastructure.Identity.Identity.SeedDatabaseService; -using CleanArc.Infrastructure.Identity.Identity.Store; -using CleanArc.Infrastructure.Identity.Identity.validator; -using CleanArc.Infrastructure.Identity.Jwt; -using CleanArc.Infrastructure.Identity.UserManager; -using CleanArc.SharedKernel.Extensions; +using Baya.Application.Contracts; +using Baya.Application.Contracts.Identity; +using Baya.Application.Models.ApiResult; +using Baya.Domain.Entities.User; +using Baya.Infrastructure.Identity.Identity; +using Baya.Infrastructure.Identity.Identity.Dtos; +using Baya.Infrastructure.Identity.Identity.Extensions; +using Baya.Infrastructure.Identity.Identity.Manager; +using Baya.Infrastructure.Identity.Identity.PermissionManager; +using Baya.Infrastructure.Identity.Identity.SeedDatabaseService; +using Baya.Infrastructure.Identity.Identity.Store; +using Baya.Infrastructure.Identity.Identity.validator; +using Baya.Infrastructure.Identity.Jwt; +using Baya.Infrastructure.Identity.UserManager; +using Baya.SharedKernel.Extensions; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Builder; @@ -23,7 +23,7 @@ using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.DependencyInjection; using Microsoft.IdentityModel.Tokens; -namespace CleanArc.Infrastructure.Identity.ServiceConfiguration; +namespace Baya.Infrastructure.Identity.ServiceConfiguration; public static class ServiceCollectionExtension { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/UserManager/AppUserManagerImplementation.cs b/server/src/Infrastructure/Baya.Infrastructure.Identity/UserManager/AppUserManagerImplementation.cs similarity index 94% rename from server/src/Infrastructure/CleanArc.Infrastructure.Identity/UserManager/AppUserManagerImplementation.cs rename to server/src/Infrastructure/Baya.Infrastructure.Identity/UserManager/AppUserManagerImplementation.cs index 5550d2e..817774a 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Identity/UserManager/AppUserManagerImplementation.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Identity/UserManager/AppUserManagerImplementation.cs @@ -1,11 +1,11 @@ -using CleanArc.Application.Contracts.Identity; -using CleanArc.Domain.Entities.User; -using CleanArc.Infrastructure.Identity.Identity.Dtos; -using CleanArc.Infrastructure.Identity.Identity.Manager; +using Baya.Application.Contracts.Identity; +using Baya.Domain.Entities.User; +using Baya.Infrastructure.Identity.Identity.Dtos; +using Baya.Infrastructure.Identity.Identity.Manager; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; -namespace CleanArc.Infrastructure.Identity.UserManager; +namespace Baya.Infrastructure.Identity.UserManager; public class AppUserManagerImplementation : IAppUserManager { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Monitoring/CleanArc.Infrastructure.Monitoring.csproj b/server/src/Infrastructure/Baya.Infrastructure.Monitoring/Baya.Infrastructure.Monitoring.csproj similarity index 100% rename from server/src/Infrastructure/CleanArc.Infrastructure.Monitoring/CleanArc.Infrastructure.Monitoring.csproj rename to server/src/Infrastructure/Baya.Infrastructure.Monitoring/Baya.Infrastructure.Monitoring.csproj diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Monitoring/Configurations/HealthCheckConfigurations.cs b/server/src/Infrastructure/Baya.Infrastructure.Monitoring/Configurations/HealthCheckConfigurations.cs similarity index 94% rename from server/src/Infrastructure/CleanArc.Infrastructure.Monitoring/Configurations/HealthCheckConfigurations.cs rename to server/src/Infrastructure/Baya.Infrastructure.Monitoring/Configurations/HealthCheckConfigurations.cs index e65735c..86dce7b 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Monitoring/Configurations/HealthCheckConfigurations.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Monitoring/Configurations/HealthCheckConfigurations.cs @@ -7,7 +7,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Prometheus; -namespace CleanArc.Infrastructure.Monitoring.Configurations; +namespace Baya.Infrastructure.Monitoring.Configurations; public static class HealthCheckConfigurations { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Monitoring/Configurations/OpenTelemetryConfigurations.cs b/server/src/Infrastructure/Baya.Infrastructure.Monitoring/Configurations/OpenTelemetryConfigurations.cs similarity index 88% rename from server/src/Infrastructure/CleanArc.Infrastructure.Monitoring/Configurations/OpenTelemetryConfigurations.cs rename to server/src/Infrastructure/Baya.Infrastructure.Monitoring/Configurations/OpenTelemetryConfigurations.cs index 5188609..8165cf0 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Monitoring/Configurations/OpenTelemetryConfigurations.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Monitoring/Configurations/OpenTelemetryConfigurations.cs @@ -2,7 +2,7 @@ using Microsoft.Extensions.DependencyInjection; using OpenTelemetry.Metrics; -namespace CleanArc.Infrastructure.Monitoring.Configurations; +namespace Baya.Infrastructure.Monitoring.Configurations; public static class OpenTelemetryConfigurations { @@ -16,7 +16,7 @@ public static class OpenTelemetryConfigurations .AddMeter("Microsoft.AspNetCore.Hosting" , "Microsoft.AspNetCore.Server.Kestrel" , "System.Net.Http" - , "CleanArc.Web.Api" + , "Baya.Web.Api" , "ControllerMetrics") .AddPrometheusExporter(); }); diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Monitoring/Configurations/PrometheusMetricsConfigurations.cs b/server/src/Infrastructure/Baya.Infrastructure.Monitoring/Configurations/PrometheusMetricsConfigurations.cs similarity index 81% rename from server/src/Infrastructure/CleanArc.Infrastructure.Monitoring/Configurations/PrometheusMetricsConfigurations.cs rename to server/src/Infrastructure/Baya.Infrastructure.Monitoring/Configurations/PrometheusMetricsConfigurations.cs index f4b8f14..02c39f1 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Monitoring/Configurations/PrometheusMetricsConfigurations.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Monitoring/Configurations/PrometheusMetricsConfigurations.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Builder; using Prometheus; -namespace CleanArc.Infrastructure.Monitoring.Configurations; +namespace Baya.Infrastructure.Monitoring.Configurations; public static class PrometheusMetricsConfigurations { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/ApplicationDbContext.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/ApplicationDbContext.cs similarity index 94% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/ApplicationDbContext.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/ApplicationDbContext.cs index 1d936ee..7cf7dfc 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/ApplicationDbContext.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Persistence/ApplicationDbContext.cs @@ -1,11 +1,11 @@ using System.Reflection; -using CleanArc.Domain.Common; -using CleanArc.Domain.Entities.User; -using CleanArc.SharedKernel.Extensions; +using Baya.Domain.Common; +using Baya.Domain.Entities.User; +using Baya.SharedKernel.Extensions; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; -namespace CleanArc.Infrastructure.Persistence; +namespace Baya.Infrastructure.Persistence; public class ApplicationDbContext: IdentityDbContext { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/CleanArc.Infrastructure.Persistence.csproj b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Baya.Infrastructure.Persistence.csproj similarity index 75% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/CleanArc.Infrastructure.Persistence.csproj rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Baya.Infrastructure.Persistence.csproj index 8ca61a0..89c515e 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/CleanArc.Infrastructure.Persistence.csproj +++ b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Baya.Infrastructure.Persistence.csproj @@ -14,8 +14,8 @@ - - + + diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/OrderConfig/OrderConfig.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/OrderConfig/OrderConfig.cs similarity index 76% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/OrderConfig/OrderConfig.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/OrderConfig/OrderConfig.cs index d3a23a2..a2555aa 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/OrderConfig/OrderConfig.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/OrderConfig/OrderConfig.cs @@ -1,8 +1,8 @@ -using CleanArc.Domain.Entities.Order; +using Baya.Domain.Entities.Order; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; -namespace CleanArc.Infrastructure.Persistence.Configuration.OrderConfig; +namespace Baya.Infrastructure.Persistence.Configuration.OrderConfig; internal class OrderConfig:IEntityTypeConfiguration { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/RefreshTokenConfig.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/RefreshTokenConfig.cs similarity index 78% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/RefreshTokenConfig.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/RefreshTokenConfig.cs index 5860298..69180b5 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/RefreshTokenConfig.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/RefreshTokenConfig.cs @@ -1,8 +1,8 @@ -using CleanArc.Domain.Entities.User; +using Baya.Domain.Entities.User; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; -namespace CleanArc.Infrastructure.Persistence.Configuration.UserConfig; +namespace Baya.Infrastructure.Persistence.Configuration.UserConfig; internal class RefreshTokenConfig:IEntityTypeConfiguration { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/RoleClaimConfig.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/RoleClaimConfig.cs similarity index 79% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/RoleClaimConfig.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/RoleClaimConfig.cs index 7f081f7..50f71ec 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/RoleClaimConfig.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/RoleClaimConfig.cs @@ -1,8 +1,8 @@ -using CleanArc.Domain.Entities.User; +using Baya.Domain.Entities.User; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; -namespace CleanArc.Infrastructure.Persistence.Configuration.UserConfig; +namespace Baya.Infrastructure.Persistence.Configuration.UserConfig; internal class RoleClaimConfig:IEntityTypeConfiguration { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/RoleConfig.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/RoleConfig.cs similarity index 70% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/RoleConfig.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/RoleConfig.cs index 3ca901d..619cb82 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/RoleConfig.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/RoleConfig.cs @@ -1,8 +1,8 @@ -using CleanArc.Domain.Entities.User; +using Baya.Domain.Entities.User; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; -namespace CleanArc.Infrastructure.Persistence.Configuration.UserConfig; +namespace Baya.Infrastructure.Persistence.Configuration.UserConfig; internal class RoleConfig:IEntityTypeConfiguration { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/UserClaimConfig.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/UserClaimConfig.cs similarity index 77% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/UserClaimConfig.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/UserClaimConfig.cs index 0bf13d5..8c4af72 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/UserClaimConfig.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/UserClaimConfig.cs @@ -1,8 +1,8 @@ -using CleanArc.Domain.Entities.User; +using Baya.Domain.Entities.User; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; -namespace CleanArc.Infrastructure.Persistence.Configuration.UserConfig; +namespace Baya.Infrastructure.Persistence.Configuration.UserConfig; internal class UserClaimConfig:IEntityTypeConfiguration { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/UserConfig.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/UserConfig.cs similarity index 73% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/UserConfig.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/UserConfig.cs index 72b1431..d994836 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/UserConfig.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/UserConfig.cs @@ -1,8 +1,8 @@ -using CleanArc.Domain.Entities.User; +using Baya.Domain.Entities.User; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; -namespace CleanArc.Infrastructure.Persistence.Configuration.UserConfig; +namespace Baya.Infrastructure.Persistence.Configuration.UserConfig; internal class UserConfig:IEntityTypeConfiguration { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/UserLoginConfig.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/UserLoginConfig.cs similarity index 77% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/UserLoginConfig.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/UserLoginConfig.cs index 1208a37..2189f46 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/UserLoginConfig.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/UserLoginConfig.cs @@ -1,8 +1,8 @@ -using CleanArc.Domain.Entities.User; +using Baya.Domain.Entities.User; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; -namespace CleanArc.Infrastructure.Persistence.Configuration.UserConfig; +namespace Baya.Infrastructure.Persistence.Configuration.UserConfig; internal class UserLoginConfig:IEntityTypeConfiguration { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/UserRoleConfig.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/UserRoleConfig.cs similarity index 80% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/UserRoleConfig.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/UserRoleConfig.cs index 8ccbadb..c949765 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/UserRoleConfig.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/UserRoleConfig.cs @@ -1,8 +1,8 @@ -using CleanArc.Domain.Entities.User; +using Baya.Domain.Entities.User; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; -namespace CleanArc.Infrastructure.Persistence.Configuration.UserConfig; +namespace Baya.Infrastructure.Persistence.Configuration.UserConfig; internal class UserRoleConfig:IEntityTypeConfiguration { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/UserTokenConfig.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/UserTokenConfig.cs similarity index 77% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/UserTokenConfig.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/UserTokenConfig.cs index 2c4f415..f2b1842 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Configuration/UserConfig/UserTokenConfig.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Configuration/UserConfig/UserTokenConfig.cs @@ -1,8 +1,8 @@ -using CleanArc.Domain.Entities.User; +using Baya.Domain.Entities.User; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; -namespace CleanArc.Infrastructure.Persistence.Configuration.UserConfig; +namespace Baya.Infrastructure.Persistence.Configuration.UserConfig; internal class UserTokenConfig:IEntityTypeConfiguration { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Migrations/20210327210004_Init.Designer.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Migrations/20210327210004_Init.Designer.cs similarity index 99% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Migrations/20210327210004_Init.Designer.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Migrations/20210327210004_Init.Designer.cs index 601ff11..89c5fb3 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Migrations/20210327210004_Init.Designer.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Migrations/20210327210004_Init.Designer.cs @@ -1,6 +1,6 @@ // using System; -using CleanArc.Infrastructure.Persistence; +using Baya.Infrastructure.Persistence; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Migrations/20210327210004_Init.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Migrations/20210327210004_Init.cs similarity index 100% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Migrations/20210327210004_Init.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Migrations/20210327210004_Init.cs diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Migrations/20221205084354_AddedOrderAndUserRelation.Designer.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Migrations/20221205084354_AddedOrderAndUserRelation.Designer.cs similarity index 99% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Migrations/20221205084354_AddedOrderAndUserRelation.Designer.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Migrations/20221205084354_AddedOrderAndUserRelation.Designer.cs index 641924b..45f0f68 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Migrations/20221205084354_AddedOrderAndUserRelation.Designer.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Migrations/20221205084354_AddedOrderAndUserRelation.Designer.cs @@ -1,6 +1,6 @@ // using System; -using CleanArc.Infrastructure.Persistence; +using Baya.Infrastructure.Persistence; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Migrations/20221205084354_AddedOrderAndUserRelation.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Migrations/20221205084354_AddedOrderAndUserRelation.cs similarity index 100% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Migrations/20221205084354_AddedOrderAndUserRelation.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Migrations/20221205084354_AddedOrderAndUserRelation.cs diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Migrations/20231126140035_AddedOrderDeleteFlag.Designer.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Migrations/20231126140035_AddedOrderDeleteFlag.Designer.cs similarity index 86% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Migrations/20231126140035_AddedOrderDeleteFlag.Designer.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Migrations/20231126140035_AddedOrderDeleteFlag.Designer.cs index 2b1a7f9..02b593d 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Migrations/20231126140035_AddedOrderDeleteFlag.Designer.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Migrations/20231126140035_AddedOrderDeleteFlag.Designer.cs @@ -1,6 +1,6 @@ // using System; -using CleanArc.Infrastructure.Persistence; +using Baya.Infrastructure.Persistence; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; @@ -25,7 +25,7 @@ namespace Persistence.Migrations SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - modelBuilder.Entity("CleanArc.Domain.Entities.Order.Order", b => + modelBuilder.Entity("Baya.Domain.Entities.Order.Order", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -55,7 +55,7 @@ namespace Persistence.Migrations b.ToTable("Orders"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.Role", b => + modelBuilder.Entity("Baya.Domain.Entities.User.Role", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -91,7 +91,7 @@ namespace Persistence.Migrations b.ToTable("Roles", "usr"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.RoleClaim", b => + modelBuilder.Entity("Baya.Domain.Entities.User.RoleClaim", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -118,7 +118,7 @@ namespace Persistence.Migrations b.ToTable("RoleClaims", "usr"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.User", b => + modelBuilder.Entity("Baya.Domain.Entities.User.User", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -196,7 +196,7 @@ namespace Persistence.Migrations b.ToTable("Users", "usr"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.UserClaim", b => + modelBuilder.Entity("Baya.Domain.Entities.User.UserClaim", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -220,7 +220,7 @@ namespace Persistence.Migrations b.ToTable("UserClaims", "usr"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.UserLogin", b => + modelBuilder.Entity("Baya.Domain.Entities.User.UserLogin", b => { b.Property("LoginProvider") .HasColumnType("nvarchar(450)"); @@ -244,7 +244,7 @@ namespace Persistence.Migrations b.ToTable("UserLogins", "usr"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.UserRefreshToken", b => + modelBuilder.Entity("Baya.Domain.Entities.User.UserRefreshToken", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -272,7 +272,7 @@ namespace Persistence.Migrations b.ToTable("UserRefreshTokens", "usr"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.UserRole", b => + modelBuilder.Entity("Baya.Domain.Entities.User.UserRole", b => { b.Property("UserId") .HasColumnType("int"); @@ -290,7 +290,7 @@ namespace Persistence.Migrations b.ToTable("UserRoles", "usr"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.UserToken", b => + modelBuilder.Entity("Baya.Domain.Entities.User.UserToken", b => { b.Property("UserId") .HasColumnType("int"); @@ -312,9 +312,9 @@ namespace Persistence.Migrations b.ToTable("UserTokens", "usr"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.Order.Order", b => + modelBuilder.Entity("Baya.Domain.Entities.Order.Order", b => { - b.HasOne("CleanArc.Domain.Entities.User.User", "User") + b.HasOne("Baya.Domain.Entities.User.User", "User") .WithMany("Orders") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) @@ -323,9 +323,9 @@ namespace Persistence.Migrations b.Navigation("User"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.RoleClaim", b => + modelBuilder.Entity("Baya.Domain.Entities.User.RoleClaim", b => { - b.HasOne("CleanArc.Domain.Entities.User.Role", "Role") + b.HasOne("Baya.Domain.Entities.User.Role", "Role") .WithMany("Claims") .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Restrict) @@ -334,9 +334,9 @@ namespace Persistence.Migrations b.Navigation("Role"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.UserClaim", b => + modelBuilder.Entity("Baya.Domain.Entities.User.UserClaim", b => { - b.HasOne("CleanArc.Domain.Entities.User.User", "User") + b.HasOne("Baya.Domain.Entities.User.User", "User") .WithMany("Claims") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) @@ -345,9 +345,9 @@ namespace Persistence.Migrations b.Navigation("User"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.UserLogin", b => + modelBuilder.Entity("Baya.Domain.Entities.User.UserLogin", b => { - b.HasOne("CleanArc.Domain.Entities.User.User", "User") + b.HasOne("Baya.Domain.Entities.User.User", "User") .WithMany("Logins") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) @@ -356,9 +356,9 @@ namespace Persistence.Migrations b.Navigation("User"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.UserRefreshToken", b => + modelBuilder.Entity("Baya.Domain.Entities.User.UserRefreshToken", b => { - b.HasOne("CleanArc.Domain.Entities.User.User", "User") + b.HasOne("Baya.Domain.Entities.User.User", "User") .WithMany("UserRefreshTokens") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) @@ -367,15 +367,15 @@ namespace Persistence.Migrations b.Navigation("User"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.UserRole", b => + modelBuilder.Entity("Baya.Domain.Entities.User.UserRole", b => { - b.HasOne("CleanArc.Domain.Entities.User.Role", "Role") + b.HasOne("Baya.Domain.Entities.User.Role", "Role") .WithMany("Users") .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); - b.HasOne("CleanArc.Domain.Entities.User.User", "User") + b.HasOne("Baya.Domain.Entities.User.User", "User") .WithMany("UserRoles") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) @@ -386,9 +386,9 @@ namespace Persistence.Migrations b.Navigation("User"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.UserToken", b => + modelBuilder.Entity("Baya.Domain.Entities.User.UserToken", b => { - b.HasOne("CleanArc.Domain.Entities.User.User", "User") + b.HasOne("Baya.Domain.Entities.User.User", "User") .WithMany("Tokens") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) @@ -397,14 +397,14 @@ namespace Persistence.Migrations b.Navigation("User"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.Role", b => + modelBuilder.Entity("Baya.Domain.Entities.User.Role", b => { b.Navigation("Claims"); b.Navigation("Users"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.User", b => + modelBuilder.Entity("Baya.Domain.Entities.User.User", b => { b.Navigation("Claims"); diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Migrations/20231126140035_AddedOrderDeleteFlag.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Migrations/20231126140035_AddedOrderDeleteFlag.cs similarity index 100% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Migrations/20231126140035_AddedOrderDeleteFlag.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Migrations/20231126140035_AddedOrderDeleteFlag.cs diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Migrations/ApplicationDbContextModelSnapshot.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Migrations/ApplicationDbContextModelSnapshot.cs similarity index 86% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Migrations/ApplicationDbContextModelSnapshot.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Migrations/ApplicationDbContextModelSnapshot.cs index de30f7d..17bcb99 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Migrations/ApplicationDbContextModelSnapshot.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Migrations/ApplicationDbContextModelSnapshot.cs @@ -1,6 +1,6 @@ // using System; -using CleanArc.Infrastructure.Persistence; +using Baya.Infrastructure.Persistence; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; @@ -22,7 +22,7 @@ namespace Persistence.Migrations SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - modelBuilder.Entity("CleanArc.Domain.Entities.Order.Order", b => + modelBuilder.Entity("Baya.Domain.Entities.Order.Order", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -52,7 +52,7 @@ namespace Persistence.Migrations b.ToTable("Orders", (string)null); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.Role", b => + modelBuilder.Entity("Baya.Domain.Entities.User.Role", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -88,7 +88,7 @@ namespace Persistence.Migrations b.ToTable("Roles", "usr"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.RoleClaim", b => + modelBuilder.Entity("Baya.Domain.Entities.User.RoleClaim", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -115,7 +115,7 @@ namespace Persistence.Migrations b.ToTable("RoleClaims", "usr"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.User", b => + modelBuilder.Entity("Baya.Domain.Entities.User.User", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -193,7 +193,7 @@ namespace Persistence.Migrations b.ToTable("Users", "usr"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.UserClaim", b => + modelBuilder.Entity("Baya.Domain.Entities.User.UserClaim", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -217,7 +217,7 @@ namespace Persistence.Migrations b.ToTable("UserClaims", "usr"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.UserLogin", b => + modelBuilder.Entity("Baya.Domain.Entities.User.UserLogin", b => { b.Property("LoginProvider") .HasColumnType("nvarchar(450)"); @@ -241,7 +241,7 @@ namespace Persistence.Migrations b.ToTable("UserLogins", "usr"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.UserRefreshToken", b => + modelBuilder.Entity("Baya.Domain.Entities.User.UserRefreshToken", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -269,7 +269,7 @@ namespace Persistence.Migrations b.ToTable("UserRefreshTokens", "usr"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.UserRole", b => + modelBuilder.Entity("Baya.Domain.Entities.User.UserRole", b => { b.Property("UserId") .HasColumnType("int"); @@ -287,7 +287,7 @@ namespace Persistence.Migrations b.ToTable("UserRoles", "usr"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.UserToken", b => + modelBuilder.Entity("Baya.Domain.Entities.User.UserToken", b => { b.Property("UserId") .HasColumnType("int"); @@ -309,9 +309,9 @@ namespace Persistence.Migrations b.ToTable("UserTokens", "usr"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.Order.Order", b => + modelBuilder.Entity("Baya.Domain.Entities.Order.Order", b => { - b.HasOne("CleanArc.Domain.Entities.User.User", "User") + b.HasOne("Baya.Domain.Entities.User.User", "User") .WithMany("Orders") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) @@ -320,9 +320,9 @@ namespace Persistence.Migrations b.Navigation("User"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.RoleClaim", b => + modelBuilder.Entity("Baya.Domain.Entities.User.RoleClaim", b => { - b.HasOne("CleanArc.Domain.Entities.User.Role", "Role") + b.HasOne("Baya.Domain.Entities.User.Role", "Role") .WithMany("Claims") .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Restrict) @@ -331,9 +331,9 @@ namespace Persistence.Migrations b.Navigation("Role"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.UserClaim", b => + modelBuilder.Entity("Baya.Domain.Entities.User.UserClaim", b => { - b.HasOne("CleanArc.Domain.Entities.User.User", "User") + b.HasOne("Baya.Domain.Entities.User.User", "User") .WithMany("Claims") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) @@ -342,9 +342,9 @@ namespace Persistence.Migrations b.Navigation("User"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.UserLogin", b => + modelBuilder.Entity("Baya.Domain.Entities.User.UserLogin", b => { - b.HasOne("CleanArc.Domain.Entities.User.User", "User") + b.HasOne("Baya.Domain.Entities.User.User", "User") .WithMany("Logins") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) @@ -353,9 +353,9 @@ namespace Persistence.Migrations b.Navigation("User"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.UserRefreshToken", b => + modelBuilder.Entity("Baya.Domain.Entities.User.UserRefreshToken", b => { - b.HasOne("CleanArc.Domain.Entities.User.User", "User") + b.HasOne("Baya.Domain.Entities.User.User", "User") .WithMany("UserRefreshTokens") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) @@ -364,15 +364,15 @@ namespace Persistence.Migrations b.Navigation("User"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.UserRole", b => + modelBuilder.Entity("Baya.Domain.Entities.User.UserRole", b => { - b.HasOne("CleanArc.Domain.Entities.User.Role", "Role") + b.HasOne("Baya.Domain.Entities.User.Role", "Role") .WithMany("Users") .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); - b.HasOne("CleanArc.Domain.Entities.User.User", "User") + b.HasOne("Baya.Domain.Entities.User.User", "User") .WithMany("UserRoles") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) @@ -383,9 +383,9 @@ namespace Persistence.Migrations b.Navigation("User"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.UserToken", b => + modelBuilder.Entity("Baya.Domain.Entities.User.UserToken", b => { - b.HasOne("CleanArc.Domain.Entities.User.User", "User") + b.HasOne("Baya.Domain.Entities.User.User", "User") .WithMany("Tokens") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) @@ -394,14 +394,14 @@ namespace Persistence.Migrations b.Navigation("User"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.Role", b => + modelBuilder.Entity("Baya.Domain.Entities.User.Role", b => { b.Navigation("Claims"); b.Navigation("Users"); }); - modelBuilder.Entity("CleanArc.Domain.Entities.User.User", b => + modelBuilder.Entity("Baya.Domain.Entities.User.User", b => { b.Navigation("Claims"); diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Repositories/Common/BaseAsyncRepository.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Repositories/Common/BaseAsyncRepository.cs similarity index 93% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Repositories/Common/BaseAsyncRepository.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Repositories/Common/BaseAsyncRepository.cs index 169e3cb..a03e7a9 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Repositories/Common/BaseAsyncRepository.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Repositories/Common/BaseAsyncRepository.cs @@ -1,9 +1,9 @@ using System.Linq.Expressions; -using CleanArc.Domain.Common; +using Baya.Domain.Common; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Query; -namespace CleanArc.Infrastructure.Persistence.Repositories.Common; +namespace Baya.Infrastructure.Persistence.Repositories.Common; internal abstract class BaseAsyncRepository where TEntity:class,IEntity { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Repositories/Common/UnitOfWork.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Repositories/Common/UnitOfWork.cs similarity index 83% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Repositories/Common/UnitOfWork.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Repositories/Common/UnitOfWork.cs index 1d9c1e6..8cd517a 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Repositories/Common/UnitOfWork.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Repositories/Common/UnitOfWork.cs @@ -1,6 +1,6 @@ -using CleanArc.Application.Contracts.Persistence; +using Baya.Application.Contracts.Persistence; -namespace CleanArc.Infrastructure.Persistence.Repositories.Common; +namespace Baya.Infrastructure.Persistence.Repositories.Common; public class UnitOfWork : IUnitOfWork { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Repositories/OrderRepository.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Repositories/OrderRepository.cs similarity index 84% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Repositories/OrderRepository.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Repositories/OrderRepository.cs index 803a8cd..62dab82 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Repositories/OrderRepository.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Repositories/OrderRepository.cs @@ -1,9 +1,9 @@ -using CleanArc.Application.Contracts.Persistence; -using CleanArc.Domain.Entities.Order; -using CleanArc.Infrastructure.Persistence.Repositories.Common; +using Baya.Application.Contracts.Persistence; +using Baya.Domain.Entities.Order; +using Baya.Infrastructure.Persistence.Repositories.Common; using Microsoft.EntityFrameworkCore; -namespace CleanArc.Infrastructure.Persistence.Repositories; +namespace Baya.Infrastructure.Persistence.Repositories; internal class OrderRepository(ApplicationDbContext dbContext) : BaseAsyncRepository(dbContext), IOrderRepository { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Repositories/UserRefreshTokenRepository.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Repositories/UserRefreshTokenRepository.cs similarity index 83% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Repositories/UserRefreshTokenRepository.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/Repositories/UserRefreshTokenRepository.cs index 2176e8f..25c5a19 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/Repositories/UserRefreshTokenRepository.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Persistence/Repositories/UserRefreshTokenRepository.cs @@ -1,9 +1,9 @@ -using CleanArc.Application.Contracts.Persistence; -using CleanArc.Domain.Entities.User; -using CleanArc.Infrastructure.Persistence.Repositories.Common; +using Baya.Application.Contracts.Persistence; +using Baya.Domain.Entities.User; +using Baya.Infrastructure.Persistence.Repositories.Common; using Microsoft.EntityFrameworkCore; -namespace CleanArc.Infrastructure.Persistence.Repositories; +namespace Baya.Infrastructure.Persistence.Repositories; internal class UserRefreshTokenRepository : BaseAsyncRepository, IUserRefreshTokenRepository { diff --git a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/ServiceConfiguration/ServiceCollectionExtensions.cs b/server/src/Infrastructure/Baya.Infrastructure.Persistence/ServiceConfiguration/ServiceCollectionExtensions.cs similarity index 84% rename from server/src/Infrastructure/CleanArc.Infrastructure.Persistence/ServiceConfiguration/ServiceCollectionExtensions.cs rename to server/src/Infrastructure/Baya.Infrastructure.Persistence/ServiceConfiguration/ServiceCollectionExtensions.cs index 70d0de4..37efad8 100644 --- a/server/src/Infrastructure/CleanArc.Infrastructure.Persistence/ServiceConfiguration/ServiceCollectionExtensions.cs +++ b/server/src/Infrastructure/Baya.Infrastructure.Persistence/ServiceConfiguration/ServiceCollectionExtensions.cs @@ -1,11 +1,11 @@ -using CleanArc.Application.Contracts.Persistence; -using CleanArc.Infrastructure.Persistence.Repositories.Common; +using Baya.Application.Contracts.Persistence; +using Baya.Infrastructure.Persistence.Repositories.Common; using Microsoft.AspNetCore.Builder; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -namespace CleanArc.Infrastructure.Persistence.ServiceConfiguration; +namespace Baya.Infrastructure.Persistence.ServiceConfiguration; public static class ServiceCollectionExtensions { diff --git a/server/src/Shared/CleanArc.SharedKernel/CleanArc.SharedKernel.csproj b/server/src/Shared/Baya.SharedKernel/Baya.SharedKernel.csproj similarity index 100% rename from server/src/Shared/CleanArc.SharedKernel/CleanArc.SharedKernel.csproj rename to server/src/Shared/Baya.SharedKernel/Baya.SharedKernel.csproj diff --git a/server/src/Shared/CleanArc.SharedKernel/Extensions/AssemblyExtensions.cs b/server/src/Shared/Baya.SharedKernel/Extensions/AssemblyExtensions.cs similarity index 92% rename from server/src/Shared/CleanArc.SharedKernel/Extensions/AssemblyExtensions.cs rename to server/src/Shared/Baya.SharedKernel/Extensions/AssemblyExtensions.cs index 526e83f..a510140 100644 --- a/server/src/Shared/CleanArc.SharedKernel/Extensions/AssemblyExtensions.cs +++ b/server/src/Shared/Baya.SharedKernel/Extensions/AssemblyExtensions.cs @@ -1,6 +1,6 @@ using System.Reflection; -namespace CleanArc.SharedKernel.Extensions; +namespace Baya.SharedKernel.Extensions; public static class AssemblyExtensions { diff --git a/server/src/Shared/CleanArc.SharedKernel/Extensions/CollectionExtensions.cs b/server/src/Shared/Baya.SharedKernel/Extensions/CollectionExtensions.cs similarity index 89% rename from server/src/Shared/CleanArc.SharedKernel/Extensions/CollectionExtensions.cs rename to server/src/Shared/Baya.SharedKernel/Extensions/CollectionExtensions.cs index 57aa905..1943f2c 100644 --- a/server/src/Shared/CleanArc.SharedKernel/Extensions/CollectionExtensions.cs +++ b/server/src/Shared/Baya.SharedKernel/Extensions/CollectionExtensions.cs @@ -1,4 +1,4 @@ -namespace CleanArc.SharedKernel.Extensions; +namespace Baya.SharedKernel.Extensions; public static class CollectionExtensions { diff --git a/server/src/Shared/CleanArc.SharedKernel/Extensions/EnumExtentions.cs b/server/src/Shared/Baya.SharedKernel/Extensions/EnumExtentions.cs similarity index 97% rename from server/src/Shared/CleanArc.SharedKernel/Extensions/EnumExtentions.cs rename to server/src/Shared/Baya.SharedKernel/Extensions/EnumExtentions.cs index c26a4a7..5cd0311 100644 --- a/server/src/Shared/CleanArc.SharedKernel/Extensions/EnumExtentions.cs +++ b/server/src/Shared/Baya.SharedKernel/Extensions/EnumExtentions.cs @@ -1,7 +1,7 @@ using System.ComponentModel.DataAnnotations; using System.Reflection; -namespace CleanArc.SharedKernel.Extensions; +namespace Baya.SharedKernel.Extensions; public static class EnumExtensions { diff --git a/server/src/Shared/CleanArc.SharedKernel/Extensions/IdentityExtensions.cs b/server/src/Shared/Baya.SharedKernel/Extensions/IdentityExtensions.cs similarity index 96% rename from server/src/Shared/CleanArc.SharedKernel/Extensions/IdentityExtensions.cs rename to server/src/Shared/Baya.SharedKernel/Extensions/IdentityExtensions.cs index 2496217..48498f4 100644 --- a/server/src/Shared/CleanArc.SharedKernel/Extensions/IdentityExtensions.cs +++ b/server/src/Shared/Baya.SharedKernel/Extensions/IdentityExtensions.cs @@ -3,7 +3,7 @@ using System.Security.Claims; using System.Security.Principal; using Microsoft.AspNetCore.Identity; -namespace CleanArc.SharedKernel.Extensions; +namespace Baya.SharedKernel.Extensions; public static class IdentityExtensions { diff --git a/server/src/Shared/CleanArc.SharedKernel/Extensions/ModelBuilderExtensions.cs b/server/src/Shared/Baya.SharedKernel/Extensions/ModelBuilderExtensions.cs similarity index 99% rename from server/src/Shared/CleanArc.SharedKernel/Extensions/ModelBuilderExtensions.cs rename to server/src/Shared/Baya.SharedKernel/Extensions/ModelBuilderExtensions.cs index 9f3d62f..b265927 100644 --- a/server/src/Shared/CleanArc.SharedKernel/Extensions/ModelBuilderExtensions.cs +++ b/server/src/Shared/Baya.SharedKernel/Extensions/ModelBuilderExtensions.cs @@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata; using Pluralize.NET; -namespace CleanArc.SharedKernel.Extensions; +namespace Baya.SharedKernel.Extensions; public static class ModelBuilderExtensions { diff --git a/server/src/Shared/CleanArc.SharedKernel/Extensions/ReflectionExtensions.cs b/server/src/Shared/Baya.SharedKernel/Extensions/ReflectionExtensions.cs similarity index 98% rename from server/src/Shared/CleanArc.SharedKernel/Extensions/ReflectionExtensions.cs rename to server/src/Shared/Baya.SharedKernel/Extensions/ReflectionExtensions.cs index df08ee0..1d6de7c 100644 --- a/server/src/Shared/CleanArc.SharedKernel/Extensions/ReflectionExtensions.cs +++ b/server/src/Shared/Baya.SharedKernel/Extensions/ReflectionExtensions.cs @@ -1,7 +1,7 @@ using System.Collections; using System.Reflection; -namespace CleanArc.SharedKernel.Extensions; +namespace Baya.SharedKernel.Extensions; public static class ReflectionHelper { diff --git a/server/src/Shared/CleanArc.SharedKernel/Extensions/RegExHelpers.cs b/server/src/Shared/Baya.SharedKernel/Extensions/RegExHelpers.cs similarity index 89% rename from server/src/Shared/CleanArc.SharedKernel/Extensions/RegExHelpers.cs rename to server/src/Shared/Baya.SharedKernel/Extensions/RegExHelpers.cs index 3d10193..a5b22dd 100644 --- a/server/src/Shared/CleanArc.SharedKernel/Extensions/RegExHelpers.cs +++ b/server/src/Shared/Baya.SharedKernel/Extensions/RegExHelpers.cs @@ -1,6 +1,6 @@ using System.Text.RegularExpressions; -namespace CleanArc.SharedKernel.Extensions; +namespace Baya.SharedKernel.Extensions; public static class RegExHelpers { diff --git a/server/src/Shared/CleanArc.SharedKernel/Extensions/StringExtensions.cs b/server/src/Shared/Baya.SharedKernel/Extensions/StringExtensions.cs similarity index 98% rename from server/src/Shared/CleanArc.SharedKernel/Extensions/StringExtensions.cs rename to server/src/Shared/Baya.SharedKernel/Extensions/StringExtensions.cs index 97322f6..f1dd526 100644 --- a/server/src/Shared/CleanArc.SharedKernel/Extensions/StringExtensions.cs +++ b/server/src/Shared/Baya.SharedKernel/Extensions/StringExtensions.cs @@ -1,4 +1,4 @@ -namespace CleanArc.SharedKernel.Extensions; +namespace Baya.SharedKernel.Extensions; public static class StringExtensions { diff --git a/server/src/Shared/CleanArc.SharedKernel/Extensions/ValidatorExtensions.cs b/server/src/Shared/Baya.SharedKernel/Extensions/ValidatorExtensions.cs similarity index 92% rename from server/src/Shared/CleanArc.SharedKernel/Extensions/ValidatorExtensions.cs rename to server/src/Shared/Baya.SharedKernel/Extensions/ValidatorExtensions.cs index ed5bcab..3a71181 100644 --- a/server/src/Shared/CleanArc.SharedKernel/Extensions/ValidatorExtensions.cs +++ b/server/src/Shared/Baya.SharedKernel/Extensions/ValidatorExtensions.cs @@ -1,9 +1,9 @@ -using CleanArc.SharedKernel.ValidationBase; -using CleanArc.SharedKernel.ValidationBase.Contracts; +using Baya.SharedKernel.ValidationBase; +using Baya.SharedKernel.ValidationBase.Contracts; using FluentValidation; using Microsoft.Extensions.DependencyInjection; -namespace CleanArc.SharedKernel.Extensions +namespace Baya.SharedKernel.Extensions { public static class ValidatorExtensions { diff --git a/server/src/Shared/CleanArc.SharedKernel/ValidationBase/ApplicationBaseValidationModelProvider.cs b/server/src/Shared/Baya.SharedKernel/ValidationBase/ApplicationBaseValidationModelProvider.cs similarity index 79% rename from server/src/Shared/CleanArc.SharedKernel/ValidationBase/ApplicationBaseValidationModelProvider.cs rename to server/src/Shared/Baya.SharedKernel/ValidationBase/ApplicationBaseValidationModelProvider.cs index 8f1ea6a..1937b2e 100644 --- a/server/src/Shared/CleanArc.SharedKernel/ValidationBase/ApplicationBaseValidationModelProvider.cs +++ b/server/src/Shared/Baya.SharedKernel/ValidationBase/ApplicationBaseValidationModelProvider.cs @@ -1,6 +1,6 @@ using FluentValidation; using Microsoft.Extensions.DependencyInjection; -namespace CleanArc.SharedKernel.ValidationBase; +namespace Baya.SharedKernel.ValidationBase; public class ApplicationBaseValidationModelProvider:AbstractValidator; \ No newline at end of file diff --git a/server/src/Shared/CleanArc.SharedKernel/ValidationBase/Contracts/IValidatableModel.cs b/server/src/Shared/Baya.SharedKernel/ValidationBase/Contracts/IValidatableModel.cs similarity index 80% rename from server/src/Shared/CleanArc.SharedKernel/ValidationBase/Contracts/IValidatableModel.cs rename to server/src/Shared/Baya.SharedKernel/ValidationBase/Contracts/IValidatableModel.cs index 153f993..c90d88f 100644 --- a/server/src/Shared/CleanArc.SharedKernel/ValidationBase/Contracts/IValidatableModel.cs +++ b/server/src/Shared/Baya.SharedKernel/ValidationBase/Contracts/IValidatableModel.cs @@ -1,6 +1,6 @@ using FluentValidation; -namespace CleanArc.SharedKernel.ValidationBase.Contracts; +namespace Baya.SharedKernel.ValidationBase.Contracts; public interface IValidatableModel where TApplicationModel:class { diff --git a/server/src/Tests/CleanArc.Test.Infrastructure.Identity/CleanArc.Test.Infrastructure.Identity/CleanArc.Test.Infrastructure.Identity.csproj b/server/src/Tests/Baya.Test.Infrastructure.Identity/Baya.Test.Infrastructure.Identity/Baya.Test.Infrastructure.Identity.csproj similarity index 90% rename from server/src/Tests/CleanArc.Test.Infrastructure.Identity/CleanArc.Test.Infrastructure.Identity/CleanArc.Test.Infrastructure.Identity.csproj rename to server/src/Tests/Baya.Test.Infrastructure.Identity/Baya.Test.Infrastructure.Identity/Baya.Test.Infrastructure.Identity.csproj index 7651606..50edf98 100644 --- a/server/src/Tests/CleanArc.Test.Infrastructure.Identity/CleanArc.Test.Infrastructure.Identity/CleanArc.Test.Infrastructure.Identity.csproj +++ b/server/src/Tests/Baya.Test.Infrastructure.Identity/Baya.Test.Infrastructure.Identity/Baya.Test.Infrastructure.Identity.csproj @@ -22,7 +22,7 @@ - + diff --git a/server/src/Tests/CleanArc.Test.Infrastructure.Identity/CleanArc.Test.Infrastructure.Identity/UserManagerTest.cs b/server/src/Tests/Baya.Test.Infrastructure.Identity/Baya.Test.Infrastructure.Identity/UserManagerTest.cs similarity index 96% rename from server/src/Tests/CleanArc.Test.Infrastructure.Identity/CleanArc.Test.Infrastructure.Identity/UserManagerTest.cs rename to server/src/Tests/Baya.Test.Infrastructure.Identity/Baya.Test.Infrastructure.Identity/UserManagerTest.cs index 546c2be..4c3d071 100644 --- a/server/src/Tests/CleanArc.Test.Infrastructure.Identity/CleanArc.Test.Infrastructure.Identity/UserManagerTest.cs +++ b/server/src/Tests/Baya.Test.Infrastructure.Identity/Baya.Test.Infrastructure.Identity/UserManagerTest.cs @@ -1,7 +1,7 @@ -using CleanArc.Domain.Entities.User; -using CleanArc.Tests.Setup.Setups; +using Baya.Domain.Entities.User; +using Baya.Tests.Setup.Setups; -namespace CleanArc.Test.Infrastructure.Identity +namespace Baya.Test.Infrastructure.Identity { public class UserManagerTest: TestIdentitySetup { diff --git a/server/src/Tests/CleanArc.Test.Infrastructure.Identity/CleanArc.Test.Infrastructure.Identity/Usings.cs b/server/src/Tests/Baya.Test.Infrastructure.Identity/Baya.Test.Infrastructure.Identity/Usings.cs similarity index 100% rename from server/src/Tests/CleanArc.Test.Infrastructure.Identity/CleanArc.Test.Infrastructure.Identity/Usings.cs rename to server/src/Tests/Baya.Test.Infrastructure.Identity/Baya.Test.Infrastructure.Identity/Usings.cs diff --git a/server/src/Tests/CleanArc.Tests.Setup/CleanArc.Tests.Setup.csproj b/server/src/Tests/Baya.Tests.Setup/Baya.Tests.Setup.csproj similarity index 79% rename from server/src/Tests/CleanArc.Tests.Setup/CleanArc.Tests.Setup.csproj rename to server/src/Tests/Baya.Tests.Setup/Baya.Tests.Setup.csproj index 1ef867f..f35bb14 100644 --- a/server/src/Tests/CleanArc.Tests.Setup/CleanArc.Tests.Setup.csproj +++ b/server/src/Tests/Baya.Tests.Setup/Baya.Tests.Setup.csproj @@ -23,8 +23,8 @@ - - + + diff --git a/server/src/Tests/CleanArc.Tests.Setup/Setups/TestApplicationDbContext.cs b/server/src/Tests/Baya.Tests.Setup/Setups/TestApplicationDbContext.cs similarity index 88% rename from server/src/Tests/CleanArc.Tests.Setup/Setups/TestApplicationDbContext.cs rename to server/src/Tests/Baya.Tests.Setup/Setups/TestApplicationDbContext.cs index 418a4fe..71b63a3 100644 --- a/server/src/Tests/CleanArc.Tests.Setup/Setups/TestApplicationDbContext.cs +++ b/server/src/Tests/Baya.Tests.Setup/Setups/TestApplicationDbContext.cs @@ -1,8 +1,8 @@ -using CleanArc.Infrastructure.Persistence; +using Baya.Infrastructure.Persistence; using Microsoft.Data.Sqlite; using Microsoft.EntityFrameworkCore; -namespace CleanArc.Tests.Setup.Setups; +namespace Baya.Tests.Setup.Setups; public abstract class TestApplicationDbContext { diff --git a/server/src/Tests/CleanArc.Tests.Setup/Setups/TestIdentitySetup.cs b/server/src/Tests/Baya.Tests.Setup/Setups/TestIdentitySetup.cs similarity index 79% rename from server/src/Tests/CleanArc.Tests.Setup/Setups/TestIdentitySetup.cs rename to server/src/Tests/Baya.Tests.Setup/Setups/TestIdentitySetup.cs index 87e94dc..6806bec 100644 --- a/server/src/Tests/CleanArc.Tests.Setup/Setups/TestIdentitySetup.cs +++ b/server/src/Tests/Baya.Tests.Setup/Setups/TestIdentitySetup.cs @@ -1,21 +1,21 @@ -using CleanArc.Application.Contracts; -using CleanArc.Application.Contracts.Identity; -using CleanArc.Application.Contracts.Persistence; -using CleanArc.Domain.Entities.User; -using CleanArc.Infrastructure.Identity.Identity.Dtos; -using CleanArc.Infrastructure.Identity.Identity.Extensions; -using CleanArc.Infrastructure.Identity.Identity.Manager; -using CleanArc.Infrastructure.Identity.Identity.Store; -using CleanArc.Infrastructure.Identity.Jwt; -using CleanArc.Infrastructure.Identity.UserManager; -using CleanArc.Infrastructure.Persistence; -using CleanArc.Infrastructure.Persistence.Repositories.Common; +using Baya.Application.Contracts; +using Baya.Application.Contracts.Identity; +using Baya.Application.Contracts.Persistence; +using Baya.Domain.Entities.User; +using Baya.Infrastructure.Identity.Identity.Dtos; +using Baya.Infrastructure.Identity.Identity.Extensions; +using Baya.Infrastructure.Identity.Identity.Manager; +using Baya.Infrastructure.Identity.Identity.Store; +using Baya.Infrastructure.Identity.Jwt; +using Baya.Infrastructure.Identity.UserManager; +using Baya.Infrastructure.Persistence; +using Baya.Infrastructure.Persistence.Repositories.Common; using Microsoft.AspNetCore.Identity; using Microsoft.Data.Sqlite; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; -namespace CleanArc.Tests.Setup.Setups; +namespace Baya.Tests.Setup.Setups; public abstract class TestIdentitySetup { @@ -68,9 +68,9 @@ public abstract class TestIdentitySetup serviceCollection.Configure(settings => { - settings.Audience = "CleanArc.Unit.Tests"; + settings.Audience = "Baya.Unit.Tests"; settings.ExpirationMinutes = 5; - settings.Issuer = "CleanArc.Unit.Tests"; + settings.Issuer = "Baya.Unit.Tests"; settings.NotBeforeMinutes = 0; settings.SecretKey = "ShouldBe-LongerThan-16Char-SecretKey"; settings.Encryptkey = "16CharEncryptKey"; diff --git a/server/src/Tests/CleanArc.Tests.Setup/Usings.cs b/server/src/Tests/Baya.Tests.Setup/Usings.cs similarity index 100% rename from server/src/Tests/CleanArc.Tests.Setup/Usings.cs rename to server/src/Tests/Baya.Tests.Setup/Usings.cs diff --git a/todo.md b/todo.md new file mode 100644 index 0000000..be927d6 --- /dev/null +++ b/todo.md @@ -0,0 +1,13 @@ +# make theme css variable based for mui in client +# configure theme base on the colors of proposal +# update packages in client for the last version and update documents and agents +# upgrade server packages to the last stable one and for those packages which their last version is not free anymore use the last possible one ( like automapper and masstransit that their last versions is paid but they have versions that are compatible with dotnet 10 ) +# inspect the authorization flow and check both for client and server checking in the client project +# make sure there is a proper central service for all server and client ( one for server and one for client) fetchs which handles headers based on the browser cookies or cookies api in next.js +# ensure there is react query configured for server state management in the client project +# ensure proper error handling and toast for api errors in the client project + +# add proper skills and instruction in each project to help the quaility of code written by agents + +# add proper lint and type rules in client project and add rules for agents to do not violate those rules +