diff --git a/.github/workflows/azure-functions-app-dotnet.yml b/.github/workflows/azure-functions-app-dotnet.yml
new file mode 100644
index 00000000..051ad179
--- /dev/null
+++ b/.github/workflows/azure-functions-app-dotnet.yml
@@ -0,0 +1,55 @@
+name: Deploy WebFunctions to Azure
+
+on:
+ push:
+ branches: ["main"]
+
+env:
+ AZURE_FUNCTIONAPP_NAME: "GPIC-Stg-WebFunctions" # set this to your function app name on Azure
+ AZURE_FUNCTIONAPP_PACKAGE_PATH: "src" # set this to the path to your function app project, defaults to the repository root
+ DOTNET_VERSION: "7.0" # set this to the dotnet version to use (e.g. '2.1.x', '3.1.x', '5.0.x')
+
+jobs:
+ build-and-deploy:
+ runs-on: ubuntu-latest # For Linux, use ubuntu-latest
+ environment: dev
+ steps:
+ - name: "Checkout GitHub Action"
+ uses: actions/checkout@v3
+
+ - name: Setup DotNet ${{ env.DOTNET_VERSION }} Environment
+ uses: actions/setup-dotnet@v3
+ with:
+ dotnet-version: ${{ env.DOTNET_VERSION }}
+
+ - name: "Resolve Project Dependencies Using Dotnet"
+ shell: bash # For Linux, use bash
+ run: |
+ pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
+ dotnet build --configuration Release --output ./output
+ popd
+
+ - name: Create env
+ run: |
+ echo "AZURE_BLOB_STORAGE_CONNECTION_STRING=${{ secrets.AZURE_BLOB_STORAGE_CONNECTION_STRING }}
+ AZURE_BLOB_STORAGE_CONTAINER_NAME=${{ secrets.AZURE_BLOB_STORAGE_CONTAINER_NAME }}
+ POSTGRES_CONNECTION_STRING=${{ secrets.POSTGRES_CONNECTION_STRING }}
+ FRONTEND_URL=${{ secrets.FRONTEND_URL }}
+ ALLOW_ORIGINS=${{ secrets.ALLOW_ORIGINS }}
+ JWT_AUDIENCE=${{ secrets.JWT_AUDIENCE }}
+ JWT_EXPIRE_IN=${{ secrets.JWT_EXPIRE_IN }}
+ JWT_ISSUER=${{ secrets.JWT_ISSUER }}
+ JWT_SECRET_KEY=${{ secrets.JWT_SECRET_KEY }}
+ SEQ_API_KEY=${{ secrets.SEQ_API_KEY }}
+ SEQ_URL=${{ secrets.SEQ_URL }}
+ SMTP_EMAIL_PASSWORD=${{ secrets.SMTP_EMAIL_PASSWORD }}
+ SMTP_EMAIL_USERNAME=${{ secrets.SMTP_EMAIL_USERNAME }}
+ EXECUTE_MIGRATION=${{ secrets.EXECUTE_MIGRATION }}" > src/Infrastructure/WebAPI/.env
+
+ - name: "Run Azure Functions Action"
+ uses: Azure/functions-action@v1
+ id: fa
+ with:
+ app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
+ package: "${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}/output"
+ publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }} # Remove publish-profile to use Azure RBAC
diff --git a/.github/workflows/azure-webapps-dotnet-core.yml b/.github/workflows/azure-webapps-dotnet-core.yml
index 08b8208a..286b9e85 100644
--- a/.github/workflows/azure-webapps-dotnet-core.yml
+++ b/.github/workflows/azure-webapps-dotnet-core.yml
@@ -1,13 +1,18 @@
-name: Build and deploy ASP.Net Core app to an Azure Web App
+name: Deploy WebAPI to Azure
env:
- AZURE_WEBAPP_NAME: GPIC-Staging-WebAPI # set this to the name of your Azure Web App
- AZURE_WEBAPP_PACKAGE_PATH: 'src' # set this to the path to your web app project, defaults to the repository root
- DOTNET_VERSION: '7.0' # set this to the .NET Core version to use
+ AZURE_WEBAPP_NAME: ${{ secrets.AZURE_WEBAPP_NAME }}
+ AZURE_WEBAPP_PACKAGE_PATH: "."
+ DOTNET_VERSION: "7.0"
+ PROJECT_PATH: "src/Infrastructure/WebAPI/WebAPI.csproj"
+ WEBAPI_PATH: "src/Infrastructure/WebAPI/"
+ UNIT_TESTS_PROJ: "src/Domain.Tests/Domain.Tests.csproj"
+ INTEGRATION_TESTS_PROJ: "src/Application.Tests/Application.Tests.csproj"
+ ASPNETCORE_ENVIRONMENT: ${{ secrets.ASPNETCORE_ENVIRONMENT }}
on:
push:
- branches: [ "main" ]
+ branches: ["staging"]
workflow_dispatch:
permissions:
@@ -16,6 +21,7 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
+ environment: STAGING
steps:
- uses: actions/checkout@v3
@@ -33,11 +39,34 @@ jobs:
restore-keys: |
${{ runner.os }}-nuget-
+ - name: Create env
+ run: |
+ echo "AZURE_BLOB_STORAGE_CONNECTION_STRING=${{ secrets.AZURE_BLOB_STORAGE_CONNECTION_STRING }}
+ AZURE_BLOB_STORAGE_CONTAINER_NAME=${{ secrets.AZURE_BLOB_STORAGE_CONTAINER_NAME }}
+ POSTGRES_CONNECTION_STRING=${{ secrets.POSTGRES_CONNECTION_STRING }}
+ FRONTEND_URL=${{ secrets.FRONTEND_URL }}
+ ALLOW_ORIGINS=${{ secrets.ALLOW_ORIGINS }}
+ JWT_AUDIENCE=${{ secrets.JWT_AUDIENCE }}
+ JWT_EXPIRE_IN=${{ secrets.JWT_EXPIRE_IN }}
+ JWT_ISSUER=${{ secrets.JWT_ISSUER }}
+ JWT_SECRET_KEY=${{ secrets.JWT_SECRET_KEY }}
+ SEQ_API_KEY=${{ secrets.SEQ_API_KEY }}
+ SEQ_URL=${{ secrets.SEQ_URL }}
+ SMTP_EMAIL_PASSWORD=${{ secrets.SMTP_EMAIL_PASSWORD }}
+ SMTP_EMAIL_USERNAME=${{ secrets.SMTP_EMAIL_USERNAME }}
+ EXECUTE_MIGRATION=${{ secrets.EXECUTE_MIGRATION }}" > src/Infrastructure/WebAPI/.env
+
+ - name: Set environment variable
+ run: echo "ASPNETCORE_ENVIRONMENT=${{ env.ASPNETCORE_ENVIRONMENT }}" >> $GITHUB_ENV
+
- name: Build with dotnet
- run: dotnet build --configuration Release
+ run: dotnet build ${{env.PROJECT_PATH}} --configuration Release -o ${{env.DOTNET_ROOT}}/dist
- - name: dotnet publish
- run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
+ - name: Dotnet publish
+ run: dotnet publish ${{env.PROJECT_PATH}} -c Release -o ${{env.DOTNET_ROOT}}/myapp
+
+ - name: Copy XML documentation file
+ run: cp ${{env.DOTNET_ROOT}}/dist/*.xml ${{env.DOTNET_ROOT}}/myapp/
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
@@ -45,13 +74,33 @@ jobs:
name: .net-app
path: ${{env.DOTNET_ROOT}}/myapp
+ test:
+ needs: build
+ runs-on: ubuntu-latest
+ environment: STAGING
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v3
+
+ - name: Set up .NET Core
+ uses: actions/setup-dotnet@v2
+ with:
+ dotnet-version: ${{ env.DOTNET_VERSION }}
+
+ - name: Run Unit Tests
+ run: dotnet test ${{ env.UNIT_TESTS_PROJ }} --configuration Release
+
+ - name: Run Integration Tests
+ run: dotnet test ${{ env.INTEGRATION_TESTS_PROJ }} --configuration Release
+
deploy:
permissions:
contents: none
runs-on: ubuntu-latest
- needs: build
+ needs: test
environment:
- name: 'Development'
+ name: STAGING
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
steps:
diff --git a/.gitignore b/.gitignore
index b19556e6..28cdfd4f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -398,7 +398,6 @@ FodyWeavers.xsd
*.sln.iml
volumes
-Migrations
node_modules
.DS_Store
@@ -406,6 +405,14 @@ node_modules
certificate
certificate/*
-RemoteFiles
-RemoteFiles/*
-src/Infrastructure/WebAPI/.env
+storage
+storage/*
+
+temp
+temp/*
+
+files
+files/*
+
+**/.env
+thunder-tests
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index 45c511c0..bb763007 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -1,3 +1,6 @@
{
- "recommendations": []
+ "recommendations": [
+ "ms-azuretools.vscode-azurefunctions",
+ "ms-dotnettools.csharp"
+ ]
}
\ No newline at end of file
diff --git a/.vscode/launch.json b/.vscode/launch.json
index 635e62d1..1b23f5d7 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -28,6 +28,12 @@
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
+ },
+ {
+ "name": "Attach to .NET Functions",
+ "type": "coreclr",
+ "request": "attach",
+ "processId": "${command:azureFunctions.pickProcess}"
}
]
-}
+}
\ No newline at end of file
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 1501347a..7181dee0 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,3 +1,11 @@
{
- "dotnet-test-explorer.testProjectPath": "src/Domain.Tests/Domain.Tests.csproj"
-}
+ // "dotnet-test-explorer.testProjectPath": "src/Domain.Tests/Domain.Tests.csproj",
+ "dotnet-test-explorer.testProjectPath": "src/Application.Tests/Application.Tests.csproj",
+ "dotnet.defaultSolution": "src/GPIC.BackEnd.sln",
+ "azureFunctions.deploySubpath": "src/Infrastructure/WebFunctions/bin/Release/net7.0/publish",
+ "azureFunctions.projectLanguage": "C#",
+ "azureFunctions.projectRuntime": "~4",
+ "debug.internalConsoleOptions": "neverOpen",
+ "azureFunctions.projectSubpath": "src/Infrastructure/WebFunctions",
+ "azureFunctions.preDeployTask": "publish (functions)"
+}
\ No newline at end of file
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index c39e443c..3b7307cf 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -36,6 +36,82 @@
"${workspaceFolder}/src/Infrastructure/WebAPI/WebAPI.csproj"
],
"problemMatcher": "$msCompile"
+ },
+ {
+ "label": "clean (functions)",
+ "command": "dotnet",
+ "args": [
+ "clean",
+ "/property:GenerateFullPaths=true",
+ "/consoleloggerparameters:NoSummary"
+ ],
+ "type": "process",
+ "problemMatcher": "$msCompile",
+ "options": {
+ "cwd": "${workspaceFolder}/src/Infrastructure/WebFunctions"
+ }
+ },
+ {
+ "label": "build (functions)",
+ "command": "dotnet",
+ "args": [
+ "build",
+ "/property:GenerateFullPaths=true",
+ "/consoleloggerparameters:NoSummary"
+ ],
+ "type": "process",
+ "dependsOn": "clean (functions)",
+ "group": {
+ "kind": "build",
+ "isDefault": true
+ },
+ "problemMatcher": "$msCompile",
+ "options": {
+ "cwd": "${workspaceFolder}/src/Infrastructure/WebFunctions"
+ }
+ },
+ {
+ "label": "clean release (functions)",
+ "command": "dotnet",
+ "args": [
+ "clean",
+ "--configuration",
+ "Release",
+ "/property:GenerateFullPaths=true",
+ "/consoleloggerparameters:NoSummary"
+ ],
+ "type": "process",
+ "problemMatcher": "$msCompile",
+ "options": {
+ "cwd": "${workspaceFolder}/src/Infrastructure/WebFunctions"
+ }
+ },
+ {
+ "label": "publish (functions)",
+ "command": "dotnet",
+ "args": [
+ "publish",
+ "--configuration",
+ "Release",
+ "/property:GenerateFullPaths=true",
+ "/consoleloggerparameters:NoSummary"
+ ],
+ "type": "process",
+ "dependsOn": "clean release (functions)",
+ "problemMatcher": "$msCompile",
+ "options": {
+ "cwd": "${workspaceFolder}/src/Infrastructure/WebFunctions"
+ }
+ },
+ {
+ "type": "func",
+ "dependsOn": "build (functions)",
+ "options": {
+ "cwd": "${workspaceFolder}/src/Infrastructure/WebFunctions/bin/Debug/net7.0"
+ },
+ "command": "host start",
+ "isBackground": true,
+ "problemMatcher": "$func-dotnet-watch"
}
]
-}
+}
\ No newline at end of file
diff --git a/README.md b/README.md
index c7de7194..0627cd68 100644
--- a/README.md
+++ b/README.md
@@ -1,66 +1,3 @@
-# Infrastructure.WebAPI
+# GPIC WebAPI / WebFunctions
-Restful API created in .NET 7.0.0 to support SPA.
-
-## DataBase - PostgreSQL
-
-Para levantar o banco de dados é necessário executar o comando abaixo na pasta raiz:
-
-```bash
-cd docker
-docker compose up -d
-```
-
-Em seguida, é preciso acessar o pgAdmin através da rota abaixo:
-
-- [PGAdmin](http://localhost:16543/browser)
-
-E criar um servidor utilizando as informações de _host_, _username_, _password_ e _database_ que estão informadas no arquivo docker-compose.yaml utilizado.
-Exemplo:
-
-- **host**: copet-system-db
-- **username**: copet-admin
-- **password**: Copet@123
-- **database**: COPET_DB
-- **port**: 5432
-
-## Migrations
-
-Criando as Migrations iniciais para criação das tabelas do banco de dados:
-
-```bash
-cd src/Infrastructure/WebAPI
-dotnet ef migrations add Initialize --project ../Persistence/Persistence.csproj
-```
-
-Executando as Migrations:
-
-```bash
-dotnet ef database update
-```
-
-Removendo as Migrations:
-
-```bash
-cd src/Infrastructure/WebAPI
-dotnet ef migrations remove --project ../Persistence/Persistence.csproj
-```
-
-## Execução com Dotnet
-
-Comandos para execução do projeto .NET utilizando CLI:
-
-```bash
-cd Infrastructure.WebAPI
-dotnet build
-dotnet run
-```
-
-## Execucação com Docker
-
-Comandos para execução do projeto .NET utilizando Docker:
-
-```bash
-docker build . -t copet-system-api:dev
-docker run --name copet-system-api -p 8080:80 -d copet-system-api:dev
-```
+Restful API created in .NET 7 to centralize the business rules of the GPIC system (Gerenciador de Projetos de Iniciação Científica).
diff --git a/docs/forms/entrega-docs.md b/docs/forms/entrega-docs.md
index 06920ae4..4251b236 100644
--- a/docs/forms/entrega-docs.md
+++ b/docs/forms/entrega-docs.md
@@ -29,7 +29,7 @@ Essa seção deverá ser preenchida apenas pelos alunos bolsistas. Caso o aluno
- Número da Conta Corrente
- Comprovante de Abertura de Conta
-## DOCUMENTOS DO ALUNO A SEREM ENTREGUES (ANEXADOS)
+## Documentos do Aluno a serem Entregues (Anexados)
Nos próximos itens anexe os documentos solicitados
@@ -43,7 +43,7 @@ Nos próximos itens anexe os documentos solicitados
- Autorização dos pais ou responsáveis legais, em caso de aluno menor de 18 anos (Anexo 3 do Edital PIBIC ou modelo disponível na página da COPET -> File)
- Aceite (Boolean)
- ```text
- DECLARO PARA TODOS OS FINS PERANTE A COORDENADORIA DE PESQUISA E ESTUDOS TECNOLÓGICOS – COPET, QUE AS INFORMAÇÕES PRESTADAS NESTE FORMULÁRIO E OS DOCUMENTOS ANEXADOS SÃO VERDADEIROS.
- DECLARO AINDA TER PLENA CIÊNCIA DOS DIREITOS, COMPROMISSOS E OBRIGAÇÕES ASSUMIDOS, DE ACORDO COM OS TERMOS DO EDITAL PIBIC 2020 E ESPECIALMENTE DO TERMO DE ACEITE.
- ```
+```text
+DECLARO PARA TODOS OS FINS PERANTE A COORDENADORIA DE PESQUISA E ESTUDOS TECNOLÓGICOS – COPET, QUE AS INFORMAÇÕES PRESTADAS NESTE FORMULÁRIO E OS DOCUMENTOS ANEXADOS SÃO VERDADEIROS.
+DECLARO AINDA TER PLENA CIÊNCIA DOS DIREITOS, COMPROMISSOS E OBRIGAÇÕES ASSUMIDOS, DE ACORDO COM OS TERMOS DO EDITAL PIBIC 2020 E ESPECIALMENTE DO TERMO DE ACEITE.
+```
diff --git a/docs/forms/inscricao-edital.md b/docs/forms/inscricao-edital.md
index b24b6e88..0172e68e 100644
--- a/docs/forms/inscricao-edital.md
+++ b/docs/forms/inscricao-edital.md
@@ -22,7 +22,7 @@ _Campos que comporão as entidades relacionadas com Projeto._
- Título do Projeto de Iniciação Científica
- Grande Área (areas.txt -> \*.00.00.00)
- Área (areas.txt -> \*.00.00)
-- Sub-área (areas.txt -> others)
+- Sub-área (areas.txt -> \*.00)
- É candidato a Bolsa? (Boolean)
- Palavras Chave (3x - String)
@@ -85,7 +85,7 @@ _Campos que comporão as entidades relacionadas com Projeto._
### PontuacaoAtividades (Índice AP - Edital PIBIC) (OK)
-- Pegar do arquivo Excel <--
+- _(Planilha de avaliação do projeto de IC)_
### CompromissoOrientador
diff --git a/docs/forms/relatorio-parcial.md b/docs/forms/relatorio-parcial.md
new file mode 100644
index 00000000..886108b7
--- /dev/null
+++ b/docs/forms/relatorio-parcial.md
@@ -0,0 +1,16 @@
+# Refatório Parcial (Edital PIBIC/PIBIC-EM)
+
+## Relatorio
+
+- Nome Completo do Orientador
+- E-mail institucional do orientador
+- Nome completo do bolsista
+- E-mail institucional do bolsista
+- Programa do Bolsista
+- Título do Projeto de IC
+- Estágio atual de desenvolvimento do Projeto de IC:
+ - Percentual atual de desenvolvimento do projeto (aproximadamente de acordo com o cronograma)
+ - Combobox de 10% à 100%, de 10 em 10.
+- Avaliação de Desempenho do Bolsista Segundo o Orientador:
+ - Ruim, Regular, Bom, Muito Bom, Excelente.
+- Informações Adicionais (caso julgue necessário)
diff --git a/docs/images/apim_gpic.png b/docs/images/apim_gpic.png
new file mode 100644
index 00000000..d9e53da8
Binary files /dev/null and b/docs/images/apim_gpic.png differ
diff --git a/docs/images/app_architecture.png b/docs/images/app_architecture.png
new file mode 100644
index 00000000..7a3bc8bc
Binary files /dev/null and b/docs/images/app_architecture.png differ
diff --git a/docs/images/app_tests.png b/docs/images/app_tests.png
new file mode 100644
index 00000000..7f240003
Binary files /dev/null and b/docs/images/app_tests.png differ
diff --git a/docs/images/ci-cd.png b/docs/images/ci-cd.png
new file mode 100644
index 00000000..bd895a0b
Binary files /dev/null and b/docs/images/ci-cd.png differ
diff --git a/docs/images/demo_rate_limit.png b/docs/images/demo_rate_limit.png
new file mode 100644
index 00000000..712a4ea9
Binary files /dev/null and b/docs/images/demo_rate_limit.png differ
diff --git a/docs/images/der_simple.png b/docs/images/der_simple.png
new file mode 100644
index 00000000..26d938df
Binary files /dev/null and b/docs/images/der_simple.png differ
diff --git a/docs/images/diag_application.png b/docs/images/diag_application.png
new file mode 100644
index 00000000..4910bce7
Binary files /dev/null and b/docs/images/diag_application.png differ
diff --git a/docs/images/diag_domain.png b/docs/images/diag_domain.png
new file mode 100644
index 00000000..ff7de028
Binary files /dev/null and b/docs/images/diag_domain.png differ
diff --git a/docs/images/diag_ioc.png b/docs/images/diag_ioc.png
new file mode 100644
index 00000000..9f38cc8b
Binary files /dev/null and b/docs/images/diag_ioc.png differ
diff --git a/docs/images/diag_persistence.png b/docs/images/diag_persistence.png
new file mode 100644
index 00000000..367f3ee9
Binary files /dev/null and b/docs/images/diag_persistence.png differ
diff --git a/docs/images/diag_services.png b/docs/images/diag_services.png
new file mode 100644
index 00000000..79f4c7dc
Binary files /dev/null and b/docs/images/diag_services.png differ
diff --git a/docs/images/diag_web_api_functions.png b/docs/images/diag_web_api_functions.png
new file mode 100644
index 00000000..df7b65d7
Binary files /dev/null and b/docs/images/diag_web_api_functions.png differ
diff --git a/docs/images/domain_tests.png b/docs/images/domain_tests.png
new file mode 100644
index 00000000..065fa21f
Binary files /dev/null and b/docs/images/domain_tests.png differ
diff --git a/docs/images/notice_periods.png b/docs/images/notice_periods.png
new file mode 100644
index 00000000..f56f7d2e
Binary files /dev/null and b/docs/images/notice_periods.png differ
diff --git a/docs/images/project_status.png b/docs/images/project_status.png
new file mode 100644
index 00000000..2ba400f1
Binary files /dev/null and b/docs/images/project_status.png differ
diff --git a/docs/images/seq_sample.png b/docs/images/seq_sample.png
new file mode 100644
index 00000000..4ab90664
Binary files /dev/null and b/docs/images/seq_sample.png differ
diff --git a/docs/images/swagger.png b/docs/images/swagger.png
new file mode 100644
index 00000000..46fab243
Binary files /dev/null and b/docs/images/swagger.png differ
diff --git a/docs/images/system_design.png b/docs/images/system_design.png
new file mode 100644
index 00000000..003a8b64
Binary files /dev/null and b/docs/images/system_design.png differ
diff --git a/docs/images/webfunctions_cli.png b/docs/images/webfunctions_cli.png
new file mode 100644
index 00000000..8624666e
Binary files /dev/null and b/docs/images/webfunctions_cli.png differ
diff --git a/docs/readme.md b/docs/readme.md
index 4ef3585a..9694a792 100644
--- a/docs/readme.md
+++ b/docs/readme.md
@@ -1,12 +1,9 @@
# Copet System
## COPET - COORDENADORIA DE PESQUISA E ESTUDOS TECNOLÓGICOS
+
- Sistema de controle de projetos de iniciação científica
## Exemplo de Certificado
-- Pasta certificate
-## Execução do Docker Compose
-```
-docker-compose up -d
-```
\ No newline at end of file
+- Pasta certificate
diff --git a/docs/usecases/analyst-usecases.feature b/docs/usecases/analyst-usecases.feature
deleted file mode 100644
index db314af7..00000000
--- a/docs/usecases/analyst-usecases.feature
+++ /dev/null
@@ -1,4 +0,0 @@
-# Casos de uso do avaliador
-
-# TODO:
- # - ...
\ No newline at end of file
diff --git a/src/Adapters/Adapters.csproj b/src/Adapters/Adapters.csproj
deleted file mode 100644
index 3f4de6a2..00000000
--- a/src/Adapters/Adapters.csproj
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
- net7.0
- enable
- enable
- 0.0.1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Area/CreateAreaRequest.cs b/src/Adapters/Gateways/Area/CreateAreaRequest.cs
deleted file mode 100644
index c860057f..00000000
--- a/src/Adapters/Gateways/Area/CreateAreaRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Area;
-
-namespace Adapters.Gateways.Area;
-public class CreateAreaRequest : CreateAreaInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Area/DetailedReadAreaResponse.cs b/src/Adapters/Gateways/Area/DetailedReadAreaResponse.cs
deleted file mode 100644
index f35b5ff5..00000000
--- a/src/Adapters/Gateways/Area/DetailedReadAreaResponse.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using Adapters.Gateways.MainArea;
-using Adapters.Gateways.Base;
-
-namespace Adapters.Gateways.Area
-{
- public class DetailedReadAreaResponse : IResponse
- {
- public Guid? Id { get; set; }
- public string? Name { get; set; }
- public string? Code { get; set; }
- public DateTime? DeletedAt { get; set; }
- public virtual DetailedReadMainAreaResponse? MainArea { get; set; }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Area/ResumedReadAreaResponse.cs b/src/Adapters/Gateways/Area/ResumedReadAreaResponse.cs
deleted file mode 100644
index 7327fec1..00000000
--- a/src/Adapters/Gateways/Area/ResumedReadAreaResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Area;
-
-namespace Adapters.Gateways.Area;
-public class ResumedReadAreaResponse : ResumedReadAreaOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Area/UpdateAreaRequest.cs b/src/Adapters/Gateways/Area/UpdateAreaRequest.cs
deleted file mode 100644
index e1ecb8ed..00000000
--- a/src/Adapters/Gateways/Area/UpdateAreaRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Area;
-
-namespace Adapters.Gateways.Area;
-public class UpdateAreaRequest : UpdateAreaInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Auth/UserLoginRequest.cs b/src/Adapters/Gateways/Auth/UserLoginRequest.cs
deleted file mode 100644
index 2925b4ef..00000000
--- a/src/Adapters/Gateways/Auth/UserLoginRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Auth;
-
-namespace Adapters.Gateways.Auth;
-public class UserLoginRequest : UserLoginInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Auth/UserLoginResponse.cs b/src/Adapters/Gateways/Auth/UserLoginResponse.cs
deleted file mode 100644
index 2d1c8e22..00000000
--- a/src/Adapters/Gateways/Auth/UserLoginResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Auth;
-
-namespace Adapters.Gateways.Auth;
-public class UserLoginResponse : UserLoginOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Auth/UserResetPasswordRequest.cs b/src/Adapters/Gateways/Auth/UserResetPasswordRequest.cs
deleted file mode 100644
index 56353c5f..00000000
--- a/src/Adapters/Gateways/Auth/UserResetPasswordRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Auth;
-
-namespace Adapters.Gateways.Auth;
-public class UserResetPasswordRequest : UserResetPasswordInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Base/IRequest.cs b/src/Adapters/Gateways/Base/IRequest.cs
deleted file mode 100644
index ad64201d..00000000
--- a/src/Adapters/Gateways/Base/IRequest.cs
+++ /dev/null
@@ -1,4 +0,0 @@
-namespace Adapters.Gateways.Base
-{
- public interface IRequest { }
-}
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Base/IResponse.cs b/src/Adapters/Gateways/Base/IResponse.cs
deleted file mode 100644
index efce3e0f..00000000
--- a/src/Adapters/Gateways/Base/IResponse.cs
+++ /dev/null
@@ -1,4 +0,0 @@
-namespace Adapters.Gateways.Base
-{
- public interface IResponse { }
-}
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Campus/CreateCampusRequest.cs b/src/Adapters/Gateways/Campus/CreateCampusRequest.cs
deleted file mode 100644
index 9c3474eb..00000000
--- a/src/Adapters/Gateways/Campus/CreateCampusRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Campus;
-
-namespace Adapters.Gateways.Campus;
-public class CreateCampusRequest : CreateCampusInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Campus/DetailedReadCampusResponse.cs b/src/Adapters/Gateways/Campus/DetailedReadCampusResponse.cs
deleted file mode 100644
index 177a0c80..00000000
--- a/src/Adapters/Gateways/Campus/DetailedReadCampusResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Campus;
-
-namespace Adapters.Gateways.Campus;
-public class DetailedReadCampusResponse : DetailedReadCampusOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Campus/ResumedReadCampusResponse.cs b/src/Adapters/Gateways/Campus/ResumedReadCampusResponse.cs
deleted file mode 100644
index b2f85732..00000000
--- a/src/Adapters/Gateways/Campus/ResumedReadCampusResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Campus;
-
-namespace Adapters.Gateways.Campus;
-public class ResumedReadCampusResponse : ResumedReadCampusOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Campus/UpdateCampusRequest.cs b/src/Adapters/Gateways/Campus/UpdateCampusRequest.cs
deleted file mode 100644
index 788cff37..00000000
--- a/src/Adapters/Gateways/Campus/UpdateCampusRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Campus;
-
-namespace Adapters.Gateways.Campus;
-public class UpdateCampusRequest : UpdateCampusInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Course/CreateCourseRequest.cs b/src/Adapters/Gateways/Course/CreateCourseRequest.cs
deleted file mode 100644
index 10aa47d6..00000000
--- a/src/Adapters/Gateways/Course/CreateCourseRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Course;
-
-namespace Adapters.Gateways.Course;
-public class CreateCourseRequest : CreateCourseInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Course/DetailedReadCourseResponse.cs b/src/Adapters/Gateways/Course/DetailedReadCourseResponse.cs
deleted file mode 100644
index 8585a523..00000000
--- a/src/Adapters/Gateways/Course/DetailedReadCourseResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Course;
-
-namespace Adapters.Gateways.Course;
-public class DetailedReadCourseResponse : DetailedReadCourseOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Course/ResumedReadCourseResponse.cs b/src/Adapters/Gateways/Course/ResumedReadCourseResponse.cs
deleted file mode 100644
index a5c0a4e9..00000000
--- a/src/Adapters/Gateways/Course/ResumedReadCourseResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Course;
-
-namespace Adapters.Gateways.Course;
-public class ResumedReadCourseResponse : ResumedReadCourseOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Course/UpdateCourseRequest.cs b/src/Adapters/Gateways/Course/UpdateCourseRequest.cs
deleted file mode 100644
index 3c9b6a6a..00000000
--- a/src/Adapters/Gateways/Course/UpdateCourseRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Course;
-
-namespace Adapters.Gateways.Course;
-public class UpdateCourseRequest : UpdateCourseInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/MainArea/CreateMainAreaRequest.cs b/src/Adapters/Gateways/MainArea/CreateMainAreaRequest.cs
deleted file mode 100644
index 841bf092..00000000
--- a/src/Adapters/Gateways/MainArea/CreateMainAreaRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.MainArea;
-
-namespace Adapters.Gateways.MainArea;
-public class CreateMainAreaRequest : CreateMainAreaInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/MainArea/DetailedReadMainAreaResponse.cs b/src/Adapters/Gateways/MainArea/DetailedReadMainAreaResponse.cs
deleted file mode 100644
index 7868cda5..00000000
--- a/src/Adapters/Gateways/MainArea/DetailedReadMainAreaResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.MainArea;
-
-namespace Adapters.Gateways.MainArea;
-public class DetailedReadMainAreaResponse : DetailedMainAreaOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/MainArea/ResumedReadMainAreaResponse.cs b/src/Adapters/Gateways/MainArea/ResumedReadMainAreaResponse.cs
deleted file mode 100644
index 9136d943..00000000
--- a/src/Adapters/Gateways/MainArea/ResumedReadMainAreaResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.MainArea;
-
-namespace Adapters.Gateways.MainArea;
-public class ResumedReadMainAreaResponse : ResumedReadMainAreaOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/MainArea/UpdateMainAreaRequest.cs b/src/Adapters/Gateways/MainArea/UpdateMainAreaRequest.cs
deleted file mode 100644
index 7f0017b9..00000000
--- a/src/Adapters/Gateways/MainArea/UpdateMainAreaRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.MainArea;
-
-namespace Adapters.Gateways.MainArea;
-public class UpdateMainAreaRequest : UpdateMainAreaInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Notice/CreateNoticeRequest.cs b/src/Adapters/Gateways/Notice/CreateNoticeRequest.cs
deleted file mode 100644
index 1c605b28..00000000
--- a/src/Adapters/Gateways/Notice/CreateNoticeRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Notice;
-
-namespace Adapters.Gateways.Notice;
-public class CreateNoticeRequest : CreateNoticeInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Notice/DetailedReadNoticeResponse.cs b/src/Adapters/Gateways/Notice/DetailedReadNoticeResponse.cs
deleted file mode 100644
index 029b4335..00000000
--- a/src/Adapters/Gateways/Notice/DetailedReadNoticeResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Notice;
-
-namespace Adapters.Gateways.Notice;
-public class DetailedReadNoticeResponse : DetailedReadNoticeOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Notice/ResumedReadNoticeResponse.cs b/src/Adapters/Gateways/Notice/ResumedReadNoticeResponse.cs
deleted file mode 100644
index becd366f..00000000
--- a/src/Adapters/Gateways/Notice/ResumedReadNoticeResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Notice;
-
-namespace Adapters.Gateways.Notice;
-public class ResumedReadNoticeResponse : ResumedReadNoticeOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Notice/UpdateNoticeRequest.cs b/src/Adapters/Gateways/Notice/UpdateNoticeRequest.cs
deleted file mode 100644
index af554da6..00000000
--- a/src/Adapters/Gateways/Notice/UpdateNoticeRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Notice;
-
-namespace Adapters.Gateways.Notice;
-public class UpdateNoticeRequest : UpdateNoticeInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Professor/CreateProfessorRequest.cs b/src/Adapters/Gateways/Professor/CreateProfessorRequest.cs
deleted file mode 100644
index 89c5fa4f..00000000
--- a/src/Adapters/Gateways/Professor/CreateProfessorRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Professor;
-
-namespace Adapters.Gateways.Professor;
-public class CreateProfessorRequest : CreateProfessorInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Professor/DetailedReadProfessorResponse.cs b/src/Adapters/Gateways/Professor/DetailedReadProfessorResponse.cs
deleted file mode 100644
index cd3b1ea5..00000000
--- a/src/Adapters/Gateways/Professor/DetailedReadProfessorResponse.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using Adapters.Gateways.Base;
-using Adapters.Gateways.User;
-
-namespace Adapters.Gateways.Professor
-{
- public class DetailedReadProfessorResponse : IResponse
- {
- public Guid? Id { get; set; }
- public DateTime? DeletedAt { get; set; }
- public UserReadResponse? User { get; set; }
-
- #region Required Properties
- public string? SIAPEEnrollment { get; set; }
- public long IdentifyLattes { get; set; }
- #endregion
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Professor/ResumedReadProfessorResponse.cs b/src/Adapters/Gateways/Professor/ResumedReadProfessorResponse.cs
deleted file mode 100644
index 922a4b54..00000000
--- a/src/Adapters/Gateways/Professor/ResumedReadProfessorResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Professor;
-
-namespace Adapters.Gateways.Professor;
-public class ResumedReadProfessorResponse : ResumedReadProfessorOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Professor/UpdateProfessorRequest.cs b/src/Adapters/Gateways/Professor/UpdateProfessorRequest.cs
deleted file mode 100644
index f301356c..00000000
--- a/src/Adapters/Gateways/Professor/UpdateProfessorRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Professor;
-
-namespace Adapters.Gateways.Professor;
-public class UpdateProfessorRequest : UpdateProfessorInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/ProgramType/CreateProgramTypeRequest.cs b/src/Adapters/Gateways/ProgramType/CreateProgramTypeRequest.cs
deleted file mode 100644
index 2f999f4d..00000000
--- a/src/Adapters/Gateways/ProgramType/CreateProgramTypeRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.ProgramType;
-
-namespace Adapters.Gateways.ProgramType;
-public class CreateProgramTypeRequest : CreateProgramTypeInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/ProgramType/DetailedReadProgramTypeResponse.cs b/src/Adapters/Gateways/ProgramType/DetailedReadProgramTypeResponse.cs
deleted file mode 100644
index c79c1e27..00000000
--- a/src/Adapters/Gateways/ProgramType/DetailedReadProgramTypeResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.ProgramType;
-
-namespace Adapters.Gateways.ProgramType;
-public class DetailedReadProgramTypeResponse : DetailedReadProgramTypeOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/ProgramType/ResumedReadProgramTypeResponse.cs b/src/Adapters/Gateways/ProgramType/ResumedReadProgramTypeResponse.cs
deleted file mode 100644
index ebf1a418..00000000
--- a/src/Adapters/Gateways/ProgramType/ResumedReadProgramTypeResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.ProgramType;
-
-namespace Adapters.Gateways.ProgramType;
-public class ResumedReadProgramTypeResponse : ResumedReadProgramTypeOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/ProgramType/UpdateProgramTypeRequest.cs b/src/Adapters/Gateways/ProgramType/UpdateProgramTypeRequest.cs
deleted file mode 100644
index a7d9c8c2..00000000
--- a/src/Adapters/Gateways/ProgramType/UpdateProgramTypeRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.ProgramType;
-
-namespace Adapters.Gateways.ProgramType;
-public class UpdateProgramTypeRequest : UpdateProgramTypeInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Project/DetailedReadProjectResponse.cs b/src/Adapters/Gateways/Project/DetailedReadProjectResponse.cs
deleted file mode 100644
index e3855e0f..00000000
--- a/src/Adapters/Gateways/Project/DetailedReadProjectResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Project;
-
-namespace Adapters.Gateways.Project;
-public class DetailedReadProjectResponse : DetailedReadProjectOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Project/OpenProjectRequest.cs b/src/Adapters/Gateways/Project/OpenProjectRequest.cs
deleted file mode 100644
index 5581eb40..00000000
--- a/src/Adapters/Gateways/Project/OpenProjectRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Project;
-
-namespace Adapters.Gateways.Project;
-public class OpenProjectRequest : OpenProjectInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Project/ResumedReadProjectResponse.cs b/src/Adapters/Gateways/Project/ResumedReadProjectResponse.cs
deleted file mode 100644
index a7e56f60..00000000
--- a/src/Adapters/Gateways/Project/ResumedReadProjectResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Project;
-
-namespace Adapters.Gateways.Project;
-public class ResumedReadProjectResponse : ResumedReadProjectOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Project/UpdateProjectRequest.cs b/src/Adapters/Gateways/Project/UpdateProjectRequest.cs
deleted file mode 100644
index 2b1adb9f..00000000
--- a/src/Adapters/Gateways/Project/UpdateProjectRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Project;
-
-namespace Adapters.Gateways.Project;
-public class UpdateProjectRequest : UpdateProjectInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/ProjectEvaluation/DetailedReadProjectEvaluationResponse.cs b/src/Adapters/Gateways/ProjectEvaluation/DetailedReadProjectEvaluationResponse.cs
deleted file mode 100644
index c7a6791a..00000000
--- a/src/Adapters/Gateways/ProjectEvaluation/DetailedReadProjectEvaluationResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.ProjectEvaluation;
-
-namespace Adapters.Gateways.ProjectEvaluation;
-public class DetailedReadProjectEvaluationResponse : DetailedReadProjectEvaluationOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/ProjectEvaluation/EvaluateAppealProjectRequest.cs b/src/Adapters/Gateways/ProjectEvaluation/EvaluateAppealProjectRequest.cs
deleted file mode 100644
index 8a643003..00000000
--- a/src/Adapters/Gateways/ProjectEvaluation/EvaluateAppealProjectRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.ProjectEvaluation;
-
-namespace Adapters.Gateways.ProjectEvaluation;
-public class EvaluateAppealProjectRequest : EvaluateAppealProjectInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/ProjectEvaluation/EvaluateSubmissionProjectRequest.cs b/src/Adapters/Gateways/ProjectEvaluation/EvaluateSubmissionProjectRequest.cs
deleted file mode 100644
index ef3118c9..00000000
--- a/src/Adapters/Gateways/ProjectEvaluation/EvaluateSubmissionProjectRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.ProjectEvaluation;
-
-namespace Adapters.Gateways.ProjectEvaluation;
-public class EvaluateSubmissionProjectRequest : EvaluateSubmissionProjectInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Student/CreateStudentRequest.cs b/src/Adapters/Gateways/Student/CreateStudentRequest.cs
deleted file mode 100644
index fd4431bd..00000000
--- a/src/Adapters/Gateways/Student/CreateStudentRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Student;
-
-namespace Adapters.Gateways.Student;
-public class CreateStudentRequest : CreateStudentInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Student/DetailedReadStudentResponse.cs b/src/Adapters/Gateways/Student/DetailedReadStudentResponse.cs
deleted file mode 100644
index e4e95e6c..00000000
--- a/src/Adapters/Gateways/Student/DetailedReadStudentResponse.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using Adapters.Gateways.Base;
-using Adapters.Gateways.Campus;
-using Adapters.Gateways.Course;
-using Adapters.Gateways.User;
-
-namespace Adapters.Gateways.Student
-{
- public class DetailedReadStudentResponse : IResponse
- {
- public Guid? Id { get; set; }
- public DateTime? DeletedAt { get; set; }
- public UserReadResponse? User { get; set; }
- public DetailedReadCampusResponse? Campus { get; set; }
- public DetailedReadCourseResponse? Course { get; set; }
-
- #region Required Properties
- public DateTime BirthDate { get; set; }
- public long RG { get; set; }
- public string? IssuingAgency { get; set; }
- public DateTime DispatchDate { get; set; }
- public int Gender { get; set; }
- public int Race { get; set; }
- public string? HomeAddress { get; set; }
- public string? City { get; set; }
- public string? UF { get; set; }
- public long CEP { get; set; }
- public Guid? CampusId { get; set; }
- public Guid? CourseId { get; set; }
- public string? StartYear { get; set; }
- public Guid? TypeAssistanceId { get; set; }
- #endregion
-
- #region Optional Properties
- public int? PhoneDDD { get; set; }
- public long? Phone { get; set; }
- public int? CellPhoneDDD { get; set; }
- public long? CellPhone { get; set; }
- #endregion
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Student/ResumedReadStudentResponse.cs b/src/Adapters/Gateways/Student/ResumedReadStudentResponse.cs
deleted file mode 100644
index 7d572b4a..00000000
--- a/src/Adapters/Gateways/Student/ResumedReadStudentResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Student;
-
-namespace Adapters.Gateways.Student;
-public class ResumedReadStudentResponse : ResumedReadStudentOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/Student/UpdateStudentRequest.cs b/src/Adapters/Gateways/Student/UpdateStudentRequest.cs
deleted file mode 100644
index 65123897..00000000
--- a/src/Adapters/Gateways/Student/UpdateStudentRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.Student;
-
-namespace Adapters.Gateways.Student;
-public class UpdateStudentRequest : UpdateStudentInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/StudentDocuments/CreateStudentDocumentsRequest.cs b/src/Adapters/Gateways/StudentDocuments/CreateStudentDocumentsRequest.cs
deleted file mode 100644
index 7fe19815..00000000
--- a/src/Adapters/Gateways/StudentDocuments/CreateStudentDocumentsRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.StudentDocuments;
-
-namespace Adapters.Gateways.StudentDocuments;
-public class CreateStudentDocumentsRequest : CreateStudentDocumentsInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/StudentDocuments/DetailedReadStudentDocumentsResponse.cs b/src/Adapters/Gateways/StudentDocuments/DetailedReadStudentDocumentsResponse.cs
deleted file mode 100644
index 4403e5bb..00000000
--- a/src/Adapters/Gateways/StudentDocuments/DetailedReadStudentDocumentsResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.StudentDocuments;
-
-namespace Adapters.Gateways.StudentDocuments;
-public class DetailedReadStudentDocumentsResponse : DetailedReadStudentDocumentsOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/StudentDocuments/ResumedReadStudentDocumentsResponse.cs b/src/Adapters/Gateways/StudentDocuments/ResumedReadStudentDocumentsResponse.cs
deleted file mode 100644
index cc4b5a05..00000000
--- a/src/Adapters/Gateways/StudentDocuments/ResumedReadStudentDocumentsResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.StudentDocuments;
-
-namespace Adapters.Gateways.StudentDocuments;
-public class ResumedReadStudentDocumentsResponse : ResumedReadStudentDocumentsOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/StudentDocuments/UpdateStudentDocumentsRequest.cs b/src/Adapters/Gateways/StudentDocuments/UpdateStudentDocumentsRequest.cs
deleted file mode 100644
index 069e11cf..00000000
--- a/src/Adapters/Gateways/StudentDocuments/UpdateStudentDocumentsRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.StudentDocuments;
-
-namespace Adapters.Gateways.StudentDocuments;
-public class UpdateStudentDocumentsRequest : UpdateStudentDocumentsInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/SubArea/CreateSubAreaRequest.cs b/src/Adapters/Gateways/SubArea/CreateSubAreaRequest.cs
deleted file mode 100644
index e6e0ed67..00000000
--- a/src/Adapters/Gateways/SubArea/CreateSubAreaRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.SubArea;
-
-namespace Adapters.Gateways.SubArea;
-public class CreateSubAreaRequest : CreateSubAreaInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/SubArea/DetailedReadSubAreaResponse.cs b/src/Adapters/Gateways/SubArea/DetailedReadSubAreaResponse.cs
deleted file mode 100644
index 3bba32a0..00000000
--- a/src/Adapters/Gateways/SubArea/DetailedReadSubAreaResponse.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using Adapters.Gateways.Area;
-using Adapters.Gateways.Base;
-
-namespace Adapters.Gateways.SubArea
-{
- public class DetailedReadSubAreaResponse : IResponse
- {
- public Guid? Id { get; set; }
- public string? Name { get; set; }
- public string? Code { get; set; }
- public DateTime? DeletedAt { get; set; }
- public virtual DetailedReadAreaResponse? Area { get; set; }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Gateways/SubArea/ResumedReadSubAreaResponse.cs b/src/Adapters/Gateways/SubArea/ResumedReadSubAreaResponse.cs
deleted file mode 100644
index abc26575..00000000
--- a/src/Adapters/Gateways/SubArea/ResumedReadSubAreaResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.SubArea;
-
-namespace Adapters.Gateways.SubArea;
-public class ResumedReadSubAreaResponse : ResumedReadSubAreaOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/SubArea/UpdateSubAreaRequest.cs b/src/Adapters/Gateways/SubArea/UpdateSubAreaRequest.cs
deleted file mode 100644
index c73ffee1..00000000
--- a/src/Adapters/Gateways/SubArea/UpdateSubAreaRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.SubArea;
-
-namespace Adapters.Gateways.SubArea;
-public class UpdateSubAreaRequest : UpdateSubAreaInput, IRequest { }
diff --git a/src/Adapters/Gateways/TypeAssistance/CreateTypeAssistanceRequest.cs b/src/Adapters/Gateways/TypeAssistance/CreateTypeAssistanceRequest.cs
deleted file mode 100644
index ccb1ad37..00000000
--- a/src/Adapters/Gateways/TypeAssistance/CreateTypeAssistanceRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.TypeAssistance;
-
-namespace Adapters.Gateways.TypeAssistance;
-public class CreateTypeAssistanceRequest : CreateTypeAssistanceInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/TypeAssistance/DetailedReadTypeAssistanceResponse.cs b/src/Adapters/Gateways/TypeAssistance/DetailedReadTypeAssistanceResponse.cs
deleted file mode 100644
index 646b09a5..00000000
--- a/src/Adapters/Gateways/TypeAssistance/DetailedReadTypeAssistanceResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.TypeAssistance;
-
-namespace Adapters.Gateways.TypeAssistance;
-public class DetailedReadTypeAssistanceResponse : DetailedReadTypeAssistanceOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/TypeAssistance/ResumedReadTypeAssistanceResponse.cs b/src/Adapters/Gateways/TypeAssistance/ResumedReadTypeAssistanceResponse.cs
deleted file mode 100644
index a5302e93..00000000
--- a/src/Adapters/Gateways/TypeAssistance/ResumedReadTypeAssistanceResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.TypeAssistance;
-
-namespace Adapters.Gateways.TypeAssistance;
-public class ResumedReadTypeAssistanceResponse : ResumedReadTypeAssistanceOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/TypeAssistance/UpdateTypeAssistanceRequest.cs b/src/Adapters/Gateways/TypeAssistance/UpdateTypeAssistanceRequest.cs
deleted file mode 100644
index 404174b8..00000000
--- a/src/Adapters/Gateways/TypeAssistance/UpdateTypeAssistanceRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.TypeAssistance;
-
-namespace Adapters.Gateways.TypeAssistance;
-public class UpdateTypeAssistanceRequest : UpdateTypeAssistanceInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/User/UserReadResponse.cs b/src/Adapters/Gateways/User/UserReadResponse.cs
deleted file mode 100644
index bbf5c23c..00000000
--- a/src/Adapters/Gateways/User/UserReadResponse.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.User;
-
-namespace Adapters.Gateways.User;
-public class UserReadResponse : UserReadOutput, IResponse { }
\ No newline at end of file
diff --git a/src/Adapters/Gateways/User/UserUpdateRequest.cs b/src/Adapters/Gateways/User/UserUpdateRequest.cs
deleted file mode 100644
index d68d87b3..00000000
--- a/src/Adapters/Gateways/User/UserUpdateRequest.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using Adapters.Gateways.Base;
-using Domain.Contracts.User;
-
-namespace Adapters.Gateways.User;
-public class UserUpdateRequest : UserUpdateInput, IRequest { }
\ No newline at end of file
diff --git a/src/Adapters/Interfaces/Base/IGenericCRUDPresenterController.cs b/src/Adapters/Interfaces/Base/IGenericCRUDPresenterController.cs
deleted file mode 100644
index 55d12e7d..00000000
--- a/src/Adapters/Interfaces/Base/IGenericCRUDPresenterController.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using Adapters.Gateways.Base;
-
-namespace Adapters.Interfaces.Base
-{
- public interface IGenericCRUDPresenterController
- {
- ///
- /// Busca entidade pelo Id informado.
- /// Lança uma exceção quando a entidade não é encontrada.
- ///
- /// Id da entidade.
- /// Entidade encontrada.
- Task GetById(Guid? id);
-
- ///
- /// Busca todas as entidades ativas.
- ///
- /// Lista de entidades ativas.
- Task> GetAll(int skip, int take);
-
- ///
- /// Cria entidade conforme parâmetros fornecidos.
- ///
- /// Parâmetros de criação.
- /// Entidade criada.
- Task Create(IRequest request);
-
- ///
- /// Remove entidade através do Id informado.
- ///
- /// Id da entidade a ser removida.
- /// Entidade removida.
- Task Delete(Guid? id);
-
- ///
- /// Atualiza entidade conforme parâmetros fornecidos.
- ///
- /// Parâmetros de atualização.
- /// Entidade atualizada.
- Task Update(Guid? id, IRequest request);
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Interfaces/IAreaPresenterController.cs b/src/Adapters/Interfaces/IAreaPresenterController.cs
deleted file mode 100644
index 4696f8b2..00000000
--- a/src/Adapters/Interfaces/IAreaPresenterController.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-using Adapters.Gateways.Base;
-using Adapters.Interfaces.Base;
-
-namespace Adapters.Interfaces;
-public interface IAreaPresenterController : IGenericCRUDPresenterController
-{
- Task> GetAreasByMainArea(Guid? mainAreaId, int skip, int take);
-}
\ No newline at end of file
diff --git a/src/Adapters/Interfaces/IAuthPresenterController.cs b/src/Adapters/Interfaces/IAuthPresenterController.cs
deleted file mode 100644
index 608a8f00..00000000
--- a/src/Adapters/Interfaces/IAuthPresenterController.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using Adapters.Gateways.Auth;
-
-namespace Adapters.Interfaces;
-public interface IAuthPresenterController
-{
- Task ConfirmEmail(string? email, string? token);
- Task ForgotPassword(string? email);
- Task Login(UserLoginRequest request);
- Task ResetPassword(UserResetPasswordRequest request);
-}
\ No newline at end of file
diff --git a/src/Adapters/Interfaces/ICampusPresenterController.cs b/src/Adapters/Interfaces/ICampusPresenterController.cs
deleted file mode 100644
index e8068a91..00000000
--- a/src/Adapters/Interfaces/ICampusPresenterController.cs
+++ /dev/null
@@ -1,4 +0,0 @@
-using Adapters.Interfaces.Base;
-
-namespace Adapters.Interfaces;
-public interface ICampusPresenterController : IGenericCRUDPresenterController { }
\ No newline at end of file
diff --git a/src/Adapters/Interfaces/ICoursePresenterController.cs b/src/Adapters/Interfaces/ICoursePresenterController.cs
deleted file mode 100644
index c031fa60..00000000
--- a/src/Adapters/Interfaces/ICoursePresenterController.cs
+++ /dev/null
@@ -1,4 +0,0 @@
-using Adapters.Interfaces.Base;
-
-namespace Adapters.Interfaces;
-public interface ICoursePresenterController : IGenericCRUDPresenterController { }
\ No newline at end of file
diff --git a/src/Adapters/Interfaces/IMainAreaPresenterController.cs b/src/Adapters/Interfaces/IMainAreaPresenterController.cs
deleted file mode 100644
index fd38bcc9..00000000
--- a/src/Adapters/Interfaces/IMainAreaPresenterController.cs
+++ /dev/null
@@ -1,4 +0,0 @@
-using Adapters.Interfaces.Base;
-
-namespace Adapters.Interfaces;
-public interface IMainAreaPresenterController : IGenericCRUDPresenterController { }
\ No newline at end of file
diff --git a/src/Adapters/Interfaces/INoticePresenterController.cs b/src/Adapters/Interfaces/INoticePresenterController.cs
deleted file mode 100644
index e5a0346d..00000000
--- a/src/Adapters/Interfaces/INoticePresenterController.cs
+++ /dev/null
@@ -1,4 +0,0 @@
-using Adapters.Interfaces.Base;
-
-namespace Adapters.Interfaces;
-public interface INoticePresenterController : IGenericCRUDPresenterController { }
\ No newline at end of file
diff --git a/src/Adapters/Interfaces/IProfessorPresenterController.cs b/src/Adapters/Interfaces/IProfessorPresenterController.cs
deleted file mode 100644
index d80895f1..00000000
--- a/src/Adapters/Interfaces/IProfessorPresenterController.cs
+++ /dev/null
@@ -1,4 +0,0 @@
-using Adapters.Interfaces.Base;
-
-namespace Adapters.Interfaces;
-public interface IProfessorPresenterController : IGenericCRUDPresenterController { }
\ No newline at end of file
diff --git a/src/Adapters/Interfaces/IProgramTypePresenterController.cs b/src/Adapters/Interfaces/IProgramTypePresenterController.cs
deleted file mode 100644
index 559ac319..00000000
--- a/src/Adapters/Interfaces/IProgramTypePresenterController.cs
+++ /dev/null
@@ -1,4 +0,0 @@
-using Adapters.Interfaces.Base;
-
-namespace Adapters.Interfaces;
-public interface IProgramTypePresenterController : IGenericCRUDPresenterController { }
\ No newline at end of file
diff --git a/src/Adapters/Interfaces/IProjectEvaluationPresenterController.cs b/src/Adapters/Interfaces/IProjectEvaluationPresenterController.cs
deleted file mode 100644
index 760f3838..00000000
--- a/src/Adapters/Interfaces/IProjectEvaluationPresenterController.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using Adapters.Gateways.Project;
-using Adapters.Gateways.ProjectEvaluation;
-
-namespace Adapters.Interfaces
-{
- public interface IProjectEvaluationPresenterController
- {
- Task EvaluateAppealProject(EvaluateAppealProjectRequest request);
- Task EvaluateSubmissionProject(EvaluateSubmissionProjectRequest request);
- Task GetEvaluationByProjectId(Guid? projectId);
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Interfaces/IProjectPresenterController.cs b/src/Adapters/Interfaces/IProjectPresenterController.cs
deleted file mode 100644
index 63a737e8..00000000
--- a/src/Adapters/Interfaces/IProjectPresenterController.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using Adapters.Gateways.Project;
-
-namespace Adapters.Interfaces;
-public interface IProjectPresenterController
-{
- Task> GetClosedProjects(int skip, int take, bool onlyMyProjects = true);
- Task> GetOpenProjects(int skip, int take, bool onlyMyProjects = true);
- Task GetProjectById(Guid? id);
- Task OpenProject(OpenProjectRequest input);
- Task UpdateProject(Guid? id, UpdateProjectRequest input);
- Task CancelProject(Guid? id, string? observation);
- Task AppealProject(Guid? projectId, string? appealDescription);
- Task SubmitProject(Guid? projectId);
-}
\ No newline at end of file
diff --git a/src/Adapters/Interfaces/IStudentDocumentsPresenterController.cs b/src/Adapters/Interfaces/IStudentDocumentsPresenterController.cs
deleted file mode 100644
index 3b2eec0e..00000000
--- a/src/Adapters/Interfaces/IStudentDocumentsPresenterController.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using Adapters.Gateways.StudentDocuments;
-
-namespace Adapters.Interfaces;
-public interface IStudentDocumentsPresenterController
-{
- Task Create(CreateStudentDocumentsRequest model);
- Task Delete(Guid? id);
- Task GetByProjectId(Guid? projectId);
- Task GetByStudentId(Guid? studentId);
- Task Update(Guid? id, UpdateStudentDocumentsRequest model);
-}
\ No newline at end of file
diff --git a/src/Adapters/Interfaces/IStudentPresenterController.cs b/src/Adapters/Interfaces/IStudentPresenterController.cs
deleted file mode 100644
index 665b441a..00000000
--- a/src/Adapters/Interfaces/IStudentPresenterController.cs
+++ /dev/null
@@ -1,4 +0,0 @@
-using Adapters.Interfaces.Base;
-
-namespace Adapters.Interfaces;
-public interface IStudentPresenterController : IGenericCRUDPresenterController { }
\ No newline at end of file
diff --git a/src/Adapters/Interfaces/ISubAreaPresenterController.cs b/src/Adapters/Interfaces/ISubAreaPresenterController.cs
deleted file mode 100644
index a4379b22..00000000
--- a/src/Adapters/Interfaces/ISubAreaPresenterController.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-using Adapters.Gateways.Base;
-using Adapters.Interfaces.Base;
-
-namespace Adapters.Interfaces;
-public interface ISubAreaPresenterController : IGenericCRUDPresenterController
-{
- Task> GetSubAreasByArea(Guid? areaId, int skip, int take);
-}
diff --git a/src/Adapters/Interfaces/ITypeAssistancePresenterController.cs b/src/Adapters/Interfaces/ITypeAssistancePresenterController.cs
deleted file mode 100644
index 38b302a0..00000000
--- a/src/Adapters/Interfaces/ITypeAssistancePresenterController.cs
+++ /dev/null
@@ -1,4 +0,0 @@
-using Adapters.Interfaces.Base;
-
-namespace Adapters.Interfaces;
-public interface ITypeAssistancePresenterController : IGenericCRUDPresenterController { }
\ No newline at end of file
diff --git a/src/Adapters/Interfaces/IUserPresenterController.cs b/src/Adapters/Interfaces/IUserPresenterController.cs
deleted file mode 100644
index 96cd62e1..00000000
--- a/src/Adapters/Interfaces/IUserPresenterController.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using Adapters.Gateways.User;
-
-namespace Adapters.Interfaces
-{
- public interface IUserPresenterController
- {
- Task ActivateUser(Guid? id);
- Task DeactivateUser(Guid? id);
- Task> GetActiveUsers(int skip, int take);
- Task> GetInactiveUsers(int skip, int take);
- Task GetUserById(Guid? id);
- Task UpdateUser(UserUpdateRequest request);
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Mappings/AreaMappings.cs b/src/Adapters/Mappings/AreaMappings.cs
deleted file mode 100755
index bf389e13..00000000
--- a/src/Adapters/Mappings/AreaMappings.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-using AutoMapper;
-using Adapters.Gateways.Area;
-using Domain.Contracts.Area;
-
-namespace Adapters.Mappings
-{
- public class AreaMappings : Profile
- {
- public AreaMappings()
- {
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap()
- .ForMember(dest => dest.MainArea, opt => opt.MapFrom(src => src.MainArea))
- .ReverseMap();
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Mappings/AuthMappings.cs b/src/Adapters/Mappings/AuthMappings.cs
deleted file mode 100755
index 1bc010e1..00000000
--- a/src/Adapters/Mappings/AuthMappings.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using AutoMapper;
-using Adapters.Gateways.Auth;
-using Domain.Contracts.Auth;
-
-namespace Adapters.Mappings
-{
- public class AuthMappings : Profile
- {
- public AuthMappings()
- {
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Mappings/CampusMappings.cs b/src/Adapters/Mappings/CampusMappings.cs
deleted file mode 100755
index f073b4e6..00000000
--- a/src/Adapters/Mappings/CampusMappings.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using AutoMapper;
-using Adapters.Gateways.Campus;
-using Domain.Contracts.Campus;
-
-namespace Adapters.Mappings
-{
- public class CampusMappings : Profile
- {
- public CampusMappings()
- {
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Mappings/CourseMappings.cs b/src/Adapters/Mappings/CourseMappings.cs
deleted file mode 100755
index 00ea98e5..00000000
--- a/src/Adapters/Mappings/CourseMappings.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using AutoMapper;
-using Adapters.Gateways.Course;
-using Domain.Contracts.Course;
-
-namespace Adapters.Mappings
-{
- public class CourseMappings : Profile
- {
- public CourseMappings()
- {
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Mappings/MainAreaMappings.cs b/src/Adapters/Mappings/MainAreaMappings.cs
deleted file mode 100755
index 7460be78..00000000
--- a/src/Adapters/Mappings/MainAreaMappings.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using AutoMapper;
-using Adapters.Gateways.MainArea;
-using Domain.Contracts.MainArea;
-
-namespace Adapters.Mappings
-{
- public class MainAreaMappings : Profile
- {
- public MainAreaMappings()
- {
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Mappings/NoticeMappings.cs b/src/Adapters/Mappings/NoticeMappings.cs
deleted file mode 100755
index 27231971..00000000
--- a/src/Adapters/Mappings/NoticeMappings.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using AutoMapper;
-using Adapters.Gateways.Notice;
-using Domain.Contracts.Notice;
-
-namespace Adapters.Mappings
-{
- public class NoticeMappings : Profile
- {
- public NoticeMappings()
- {
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Mappings/ProfessorMappings.cs b/src/Adapters/Mappings/ProfessorMappings.cs
deleted file mode 100755
index 21a625b4..00000000
--- a/src/Adapters/Mappings/ProfessorMappings.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-using AutoMapper;
-using Adapters.Gateways.Professor;
-using Domain.Contracts.Professor;
-
-namespace Adapters.Mappings
-{
- public class ProfessorMappings : Profile
- {
- public ProfessorMappings()
- {
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap()
- .ForMember(dest => dest.User,
- opt => opt.MapFrom(src => src.User))
- .ReverseMap();
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Mappings/ProgramTypeMappings.cs b/src/Adapters/Mappings/ProgramTypeMappings.cs
deleted file mode 100755
index c3712dfb..00000000
--- a/src/Adapters/Mappings/ProgramTypeMappings.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using AutoMapper;
-using Adapters.Gateways.ProgramType;
-using Domain.Contracts.ProgramType;
-
-namespace Adapters.Mappings
-{
- public class ProgramTypeMappings : Profile
- {
- public ProgramTypeMappings()
- {
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Mappings/ProjectEvaluationMapping.cs b/src/Adapters/Mappings/ProjectEvaluationMapping.cs
deleted file mode 100644
index 460c9d25..00000000
--- a/src/Adapters/Mappings/ProjectEvaluationMapping.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using Adapters.Gateways.ProjectEvaluation;
-using AutoMapper;
-using Domain.Contracts.ProjectEvaluation;
-
-namespace Adapters.Mappings
-{
- public class ProjectEvaluationMapping : Profile
- {
- public ProjectEvaluationMapping()
- {
- CreateMap();
- CreateMap();
- CreateMap();
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Mappings/ProjectMappings.cs b/src/Adapters/Mappings/ProjectMappings.cs
deleted file mode 100755
index 0f5a5cd7..00000000
--- a/src/Adapters/Mappings/ProjectMappings.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using AutoMapper;
-using Adapters.Gateways.Project;
-using Domain.Contracts.Project;
-
-namespace Adapters.Mappings
-{
- public class ProjectMappings : Profile
- {
- public ProjectMappings()
- {
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Mappings/StudentDocumentsMappings.cs b/src/Adapters/Mappings/StudentDocumentsMappings.cs
deleted file mode 100755
index ac90ccd3..00000000
--- a/src/Adapters/Mappings/StudentDocumentsMappings.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using AutoMapper;
-using Adapters.Gateways.StudentDocuments;
-using Domain.Contracts.StudentDocuments;
-
-namespace Adapters.Mappings
-{
- public class StudentDocumentsMappings : Profile
- {
- public StudentDocumentsMappings()
- {
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Mappings/StudentMappings.cs b/src/Adapters/Mappings/StudentMappings.cs
deleted file mode 100755
index 6ef7296b..00000000
--- a/src/Adapters/Mappings/StudentMappings.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using AutoMapper;
-using Adapters.Gateways.Student;
-using Domain.Contracts.Student;
-
-namespace Adapters.Mappings
-{
- public class StudentMappings : Profile
- {
- public StudentMappings()
- {
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap()
- .ForMember(dest => dest.User,
- opt => opt.MapFrom(src => src.User))
- .ForMember(dest => dest.Campus,
- opt => opt.MapFrom(src => src.Campus))
- .ForMember(dest => dest.Course,
- opt => opt.MapFrom(src => src.Course))
- .ReverseMap();
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Mappings/SubAreaMappings.cs b/src/Adapters/Mappings/SubAreaMappings.cs
deleted file mode 100755
index 0abf0238..00000000
--- a/src/Adapters/Mappings/SubAreaMappings.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-using AutoMapper;
-using Adapters.Gateways.SubArea;
-using Domain.Contracts.SubArea;
-
-namespace Adapters.Mappings
-{
- public class SubAreaMappings : Profile
- {
- public SubAreaMappings()
- {
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap()
- .ForMember(dest => dest.Area, opt => opt.MapFrom(src => src.Area))
- .ForPath(dest => dest.Area!.MainArea, opt => opt.MapFrom(src => src.Area!.MainArea))
- .ReverseMap();
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Mappings/TypeAssistanceMappings.cs b/src/Adapters/Mappings/TypeAssistanceMappings.cs
deleted file mode 100755
index 5f417cf0..00000000
--- a/src/Adapters/Mappings/TypeAssistanceMappings.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using AutoMapper;
-using Adapters.Gateways.TypeAssistance;
-using Domain.Contracts.TypeAssistance;
-
-namespace Adapters.Mappings
-{
- public class TypeAssistanceMappings : Profile
- {
- public TypeAssistanceMappings()
- {
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/Mappings/UserMappings.cs b/src/Adapters/Mappings/UserMappings.cs
deleted file mode 100755
index e5e05eaf..00000000
--- a/src/Adapters/Mappings/UserMappings.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using AutoMapper;
-using Adapters.Gateways.User;
-using Domain.Contracts.User;
-
-namespace Adapters.Mappings
-{
- public class UserMappings : Profile
- {
- public UserMappings()
- {
- CreateMap().ReverseMap();
- CreateMap().ReverseMap();
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/PresenterController/AreaPresenterController.cs b/src/Adapters/PresenterController/AreaPresenterController.cs
deleted file mode 100755
index 4547775c..00000000
--- a/src/Adapters/PresenterController/AreaPresenterController.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-using Adapters.Gateways.Area;
-using Adapters.Gateways.Base;
-using Adapters.Interfaces;
-using AutoMapper;
-using Domain.Contracts.Area;
-using Domain.Interfaces.UseCases;
-
-namespace Adapters.PresenterController
-{
- public class AreaPresenterController : IAreaPresenterController
- {
- #region Global Scope
- private readonly ICreateArea _createArea;
- private readonly IUpdateArea _updateArea;
- private readonly IDeleteArea _deleteArea;
- private readonly IGetAreasByMainArea _getAreasByMainArea;
- private readonly IGetAreaById _getAreaById;
- private readonly IMapper _mapper;
-
- public AreaPresenterController(ICreateArea createArea, IUpdateArea updateArea, IDeleteArea deleteArea, IGetAreasByMainArea getAreasByMainArea, IGetAreaById getAreaById, IMapper mapper)
- {
- _createArea = createArea;
- _updateArea = updateArea;
- _deleteArea = deleteArea;
- _getAreasByMainArea = getAreasByMainArea;
- _getAreaById = getAreaById;
- _mapper = mapper;
- }
- #endregion
-
- public async Task Create(IRequest request)
- {
- var dto = request as CreateAreaRequest;
- var input = _mapper.Map(dto);
- var result = await _createArea.Execute(input);
- return _mapper.Map(result);
- }
-
- public async Task Delete(Guid? id)
- {
- var result = await _deleteArea.Execute(id);
- return _mapper.Map(result);
- }
-
- public async Task> GetAreasByMainArea(Guid? mainAreaId, int skip, int take)
- {
- var result = await _getAreasByMainArea.Execute(mainAreaId, skip, take);
- return _mapper.Map>(result);
- }
-
- public Task> GetAll(int skip, int take)
- {
- throw new NotImplementedException();
- }
-
- public async Task GetById(Guid? id)
- {
- var result = await _getAreaById.Execute(id);
- return _mapper.Map(result);
- }
-
- public async Task Update(Guid? id, IRequest request)
- {
- var dto = request as UpdateAreaRequest;
- var input = _mapper.Map(dto);
- var result = await _updateArea.Execute(id, input);
- return _mapper.Map(result);
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/PresenterController/AuthPresenterController.cs b/src/Adapters/PresenterController/AuthPresenterController.cs
deleted file mode 100755
index 95b81892..00000000
--- a/src/Adapters/PresenterController/AuthPresenterController.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using Adapters.Gateways.Auth;
-using Adapters.Interfaces;
-using AutoMapper;
-using Domain.Contracts.Auth;
-using Domain.Interfaces.UseCases;
-
-namespace Adapters.PresenterController
-{
- public class AuthPresenterController : IAuthPresenterController
- {
- #region Global Scope
- private readonly IMapper _mapper;
- private readonly IConfirmEmail _confirmUserEmail;
- private readonly IForgotPassword _forgotPassword;
- private readonly ILogin _login;
- private readonly IResetPassword _resetPassword;
-
- public AuthPresenterController(IMapper mapper, IConfirmEmail confirmUserEmail, IForgotPassword forgotPassword, ILogin login, IResetPassword resetPassword)
- {
- _mapper = mapper;
- _confirmUserEmail = confirmUserEmail;
- _forgotPassword = forgotPassword;
- _login = login;
- _resetPassword = resetPassword;
- }
- #endregion
-
- public async Task ConfirmEmail(string? email, string? token) => await _confirmUserEmail.Execute(email, token);
-
- public async Task ForgotPassword(string? email) => await _forgotPassword.Execute(email);
-
- public async Task Login(UserLoginRequest request) => _mapper
- .Map(await _login
- .Execute(_mapper
- .Map(request)));
-
- public async Task ResetPassword(UserResetPasswordRequest request) => await _resetPassword.Execute(_mapper.Map(request));
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/PresenterController/CampusPresenterController.cs b/src/Adapters/PresenterController/CampusPresenterController.cs
deleted file mode 100755
index 89e1e210..00000000
--- a/src/Adapters/PresenterController/CampusPresenterController.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-using Adapters.Gateways.Base;
-using Adapters.Gateways.Campus;
-using Adapters.Interfaces;
-using AutoMapper;
-using Domain.Contracts.Campus;
-using Domain.Interfaces.UseCases;
-
-namespace Adapters.PresenterController
-{
- public class CampusPresenterController : ICampusPresenterController
- {
- #region Global Scope
- private readonly ICreateCampus _createCampus;
- private readonly IUpdateCampus _updateCampus;
- private readonly IDeleteCampus _deleteCampus;
- private readonly IGetCampuses _getCampuses;
- private readonly IGetCampusById _getCampusById;
- private readonly IMapper _mapper;
-
- public CampusPresenterController(ICreateCampus createCampus, IUpdateCampus updateCampus, IDeleteCampus deleteCampus, IGetCampuses getCampuses, IGetCampusById getCampusById, IMapper mapper)
- {
- _createCampus = createCampus;
- _updateCampus = updateCampus;
- _deleteCampus = deleteCampus;
- _getCampuses = getCampuses;
- _getCampusById = getCampusById;
- _mapper = mapper;
- }
- #endregion
-
- public async Task Create(IRequest request)
- {
- var dto = request as CreateCampusRequest;
- var input = _mapper.Map(dto);
- var result = await _createCampus.Execute(input);
- return _mapper.Map(result);
- }
-
- public async Task Delete(Guid? id)
- {
- var result = await _deleteCampus.Execute(id);
- return _mapper.Map(result);
- }
-
- public async Task> GetAll(int skip, int take)
- {
- var result = await _getCampuses.Execute(skip, take);
- return _mapper.Map>(result);
- }
-
- public async Task GetById(Guid? id)
- {
- var result = await _getCampusById.Execute(id);
- return _mapper.Map(result);
- }
-
- public async Task Update(Guid? id, IRequest request)
- {
- var dto = request as UpdateCampusRequest;
- var input = _mapper.Map(dto);
- var result = await _updateCampus.Execute(id, input);
- return _mapper.Map(result);
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/PresenterController/CoursePresenterController.cs b/src/Adapters/PresenterController/CoursePresenterController.cs
deleted file mode 100755
index 12904a90..00000000
--- a/src/Adapters/PresenterController/CoursePresenterController.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-using Adapters.Gateways.Base;
-using Adapters.Gateways.Course;
-using Adapters.Interfaces;
-using AutoMapper;
-using Domain.Contracts.Course;
-using Domain.Interfaces.UseCases;
-
-namespace Adapters.PresenterController
-{
- public class CoursePresenterController : ICoursePresenterController
- {
- #region Global Scope
- private readonly ICreateCourse _createCourse;
- private readonly IUpdateCourse _updateCourse;
- private readonly IDeleteCourse _deleteCourse;
- private readonly IGetCourses _getCourses;
- private readonly IGetCourseById _getCourseById;
- private readonly IMapper _mapper;
-
- public CoursePresenterController(ICreateCourse createCourse, IUpdateCourse updateCourse, IDeleteCourse deleteCourse, IGetCourses getCourses, IGetCourseById getCourseById, IMapper mapper)
- {
- _createCourse = createCourse;
- _updateCourse = updateCourse;
- _deleteCourse = deleteCourse;
- _getCourses = getCourses;
- _getCourseById = getCourseById;
- _mapper = mapper;
- }
- #endregion
-
- public async Task Create(IRequest request)
- {
- var dto = request as CreateCourseRequest;
- var input = _mapper.Map(dto);
- var result = await _createCourse.Execute(input);
- return _mapper.Map(result);
- }
-
- public async Task Delete(Guid? id)
- {
- var result = await _deleteCourse.Execute(id);
- return _mapper.Map(result);
- }
-
- public async Task> GetAll(int skip, int take)
- {
- var result = await _getCourses.Execute(skip, take);
- return _mapper.Map>(result);
- }
-
- public async Task GetById(Guid? id)
- {
- var result = await _getCourseById.Execute(id);
- return _mapper.Map(result);
- }
-
- public async Task Update(Guid? id, IRequest request)
- {
- var dto = request as UpdateCourseRequest;
- var input = _mapper.Map(dto);
- var result = await _updateCourse.Execute(id, input);
- return _mapper.Map(result);
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/PresenterController/MainAreaPresenterController.cs b/src/Adapters/PresenterController/MainAreaPresenterController.cs
deleted file mode 100755
index 4864f15e..00000000
--- a/src/Adapters/PresenterController/MainAreaPresenterController.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-using Adapters.Gateways.Base;
-using Adapters.Gateways.MainArea;
-using Adapters.Interfaces;
-using AutoMapper;
-using Domain.Contracts.MainArea;
-using Domain.Interfaces.UseCases;
-
-namespace Adapters.PresenterController
-{
- public class MainAreaPresenterController : IMainAreaPresenterController
- {
- #region Global Scope
- private readonly ICreateMainArea _createMainArea;
- private readonly IUpdateMainArea _updateMainArea;
- private readonly IDeleteMainArea _deleteMainArea;
- private readonly IGetMainAreas _getMainAreas;
- private readonly IGetMainAreaById _getMainAreaById;
- private readonly IMapper _mapper;
-
- public MainAreaPresenterController(ICreateMainArea createMainArea, IUpdateMainArea updateMainArea, IDeleteMainArea deleteMainArea, IGetMainAreas getMainAreas, IGetMainAreaById getMainAreaById, IMapper mapper)
- {
- _createMainArea = createMainArea;
- _updateMainArea = updateMainArea;
- _deleteMainArea = deleteMainArea;
- _getMainAreas = getMainAreas;
- _getMainAreaById = getMainAreaById;
- _mapper = mapper;
- }
- #endregion
-
- public async Task Create(IRequest request)
- {
- var dto = request as CreateMainAreaRequest;
- var input = _mapper.Map(dto);
- var result = await _createMainArea.Execute(input);
- return _mapper.Map(result);
- }
-
- public async Task Delete(Guid? id)
- {
- var result = await _deleteMainArea.Execute(id);
- return _mapper.Map(result);
- }
-
- public async Task> GetAll(int skip, int take)
- {
- var result = await _getMainAreas.Execute(skip, take);
- return _mapper.Map>(result);
- }
-
- public async Task GetById(Guid? id)
- {
- var result = await _getMainAreaById.Execute(id);
- return _mapper.Map(result);
- }
-
- public async Task Update(Guid? id, IRequest request)
- {
- var dto = request as UpdateMainAreaRequest;
- var input = _mapper.Map(dto);
- var result = await _updateMainArea.Execute(id, input);
- return _mapper.Map(result);
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/PresenterController/NoticePresenterController.cs b/src/Adapters/PresenterController/NoticePresenterController.cs
deleted file mode 100755
index c7061713..00000000
--- a/src/Adapters/PresenterController/NoticePresenterController.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-using Adapters.Gateways.Base;
-using Adapters.Gateways.Notice;
-using Adapters.Interfaces;
-using AutoMapper;
-using Domain.Contracts.Notice;
-using Domain.Interfaces.UseCases;
-
-namespace Adapters.PresenterController
-{
- public class NoticePresenterController : INoticePresenterController
- {
- #region Global Scope
- private readonly ICreateNotice _createNotice;
- private readonly IUpdateNotice _updateNotice;
- private readonly IDeleteNotice _deleteNotice;
- private readonly IGetNotices _getNotices;
- private readonly IGetNoticeById _getNoticeById;
- private readonly IMapper _mapper;
-
- public NoticePresenterController(ICreateNotice createNotice, IUpdateNotice updateNotice, IDeleteNotice deleteNotice, IGetNotices getNotices, IGetNoticeById getNoticeById, IMapper mapper)
- {
- _createNotice = createNotice;
- _updateNotice = updateNotice;
- _deleteNotice = deleteNotice;
- _getNotices = getNotices;
- _getNoticeById = getNoticeById;
- _mapper = mapper;
- }
- #endregion
-
- public async Task Create(IRequest request)
- {
- var dto = request as CreateNoticeRequest;
- var input = _mapper.Map(dto);
- var result = await _createNotice.Execute(input);
- return _mapper.Map(result);
- }
-
- public async Task Delete(Guid? id)
- {
- var result = await _deleteNotice.Execute(id);
- return _mapper.Map(result);
- }
-
- public async Task> GetAll(int skip, int take)
- {
- var result = await _getNotices.Execute(skip, take);
- return _mapper.Map>(result);
- }
-
- public async Task GetById(Guid? id)
- {
- var result = await _getNoticeById.Execute(id);
- return _mapper.Map(result);
- }
-
- public async Task Update(Guid? id, IRequest request)
- {
- var dto = request as UpdateNoticeRequest;
- var input = _mapper.Map(dto);
- var result = await _updateNotice.Execute(id, input);
- return _mapper.Map(result);
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/PresenterController/ProfessorPresenterController.cs b/src/Adapters/PresenterController/ProfessorPresenterController.cs
deleted file mode 100755
index 5d614f7c..00000000
--- a/src/Adapters/PresenterController/ProfessorPresenterController.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-using Adapters.Gateways.Base;
-using Adapters.Gateways.Professor;
-using Adapters.Interfaces;
-using AutoMapper;
-using Domain.Contracts.Professor;
-using Domain.Interfaces.UseCases;
-
-namespace Adapters.PresenterController
-{
- public class ProfessorPresenterController : IProfessorPresenterController
- {
- #region Global Scope
- private readonly ICreateProfessor _createProfessor;
- private readonly IUpdateProfessor _updateProfessor;
- private readonly IDeleteProfessor _deleteProfessor;
- private readonly IGetProfessors _getProfessors;
- private readonly IGetProfessorById _getProfessorById;
- private readonly IMapper _mapper;
-
- public ProfessorPresenterController(ICreateProfessor createProfessor,
- IUpdateProfessor updateProfessor,
- IDeleteProfessor deleteProfessor,
- IGetProfessors getProfessors,
- IGetProfessorById getProfessorById,
- IMapper mapper)
- {
- _createProfessor = createProfessor;
- _updateProfessor = updateProfessor;
- _deleteProfessor = deleteProfessor;
- _getProfessors = getProfessors;
- _getProfessorById = getProfessorById;
- _mapper = mapper;
- }
- #endregion
-
- public async Task Create(IRequest request)
- {
- var dto = request as CreateProfessorRequest;
- var input = _mapper.Map(dto);
- var result = await _createProfessor.Execute(input);
- return _mapper.Map(result);
- }
-
- public async Task Delete(Guid? id)
- {
- var result = await _deleteProfessor.Execute(id);
- return _mapper.Map(result);
- }
-
- public async Task> GetAll(int skip, int take)
- {
- var result = await _getProfessors.Execute(skip, take);
- return _mapper.Map>(result);
- }
-
- public async Task GetById(Guid? id)
- {
- var result = await _getProfessorById.Execute(id);
- return _mapper.Map(result);
- }
-
- public async Task Update(Guid? id, IRequest request)
- {
- var dto = request as UpdateProfessorRequest;
- var input = _mapper.Map(dto);
- var result = await _updateProfessor.Execute(id, input);
- return _mapper.Map(result);
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/PresenterController/ProgramTypePresenterController.cs b/src/Adapters/PresenterController/ProgramTypePresenterController.cs
deleted file mode 100755
index 7499dbf7..00000000
--- a/src/Adapters/PresenterController/ProgramTypePresenterController.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-using Adapters.Gateways.Base;
-using Adapters.Gateways.ProgramType;
-using Adapters.Interfaces;
-using AutoMapper;
-using Domain.Contracts.ProgramType;
-using Domain.Interfaces.UseCases;
-
-namespace Adapters.PresenterController
-{
- public class ProgramTypePresenterController : IProgramTypePresenterController
- {
- #region Global Scope
- private readonly ICreateProgramType _createProgramType;
- private readonly IUpdateProgramType _updateProgramType;
- private readonly IDeleteProgramType _deleteProgramType;
- private readonly IGetProgramTypes _getProgramTypes;
- private readonly IGetProgramTypeById _getProgramTypeById;
- private readonly IMapper _mapper;
-
- public ProgramTypePresenterController(ICreateProgramType createProgramType, IUpdateProgramType updateProgramType, IDeleteProgramType deleteProgramType, IGetProgramTypes getProgramTypes, IGetProgramTypeById getProgramTypeById, IMapper mapper)
- {
- _createProgramType = createProgramType;
- _updateProgramType = updateProgramType;
- _deleteProgramType = deleteProgramType;
- _getProgramTypes = getProgramTypes;
- _getProgramTypeById = getProgramTypeById;
- _mapper = mapper;
- }
- #endregion
-
- public async Task Create(IRequest request)
- {
- var dto = request as CreateProgramTypeRequest;
- var input = _mapper.Map(dto);
- var result = await _createProgramType.Execute(input);
- return _mapper.Map(result);
- }
-
- public async Task Delete(Guid? id)
- {
- var result = await _deleteProgramType.Execute(id);
- return _mapper.Map(result);
- }
-
- public async Task> GetAll(int skip, int take)
- {
- var result = await _getProgramTypes.Execute(skip, take);
- return _mapper.Map>(result);
- }
-
- public async Task GetById(Guid? id)
- {
- var result = await _getProgramTypeById.Execute(id);
- return _mapper.Map(result);
- }
-
- public async Task Update(Guid? id, IRequest request)
- {
- var dto = request as UpdateProgramTypeRequest;
- var input = _mapper.Map(dto);
- var result = await _updateProgramType.Execute(id, input);
- return _mapper.Map(result);
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/PresenterController/ProjectEvaluationPresenterController.cs b/src/Adapters/PresenterController/ProjectEvaluationPresenterController.cs
deleted file mode 100644
index 1fabff06..00000000
--- a/src/Adapters/PresenterController/ProjectEvaluationPresenterController.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-using Adapters.Gateways.Project;
-using Adapters.Gateways.ProjectEvaluation;
-using Adapters.Interfaces;
-using AutoMapper;
-using Domain.Contracts.ProjectEvaluation;
-using Domain.Interfaces.UseCases.ProjectEvaluation;
-
-namespace Adapters.PresenterController
-{
- public class ProjectEvaluationPresenterController : IProjectEvaluationPresenterController
- {
- #region Global Scope
- private readonly IEvaluateAppealProject _evaluateAppealProject;
- private readonly IEvaluateSubmissionProject _evaluateSubmissionProject;
- private readonly IGetEvaluationByProjectId _getEvaluationByProjectId;
- private readonly IMapper _mapper;
-
- public ProjectEvaluationPresenterController(
- IEvaluateAppealProject evaluateAppealProject,
- IEvaluateSubmissionProject evaluateSubmissionProject,
- IGetEvaluationByProjectId getEvaluationByProjectId,
- IMapper mapper)
- {
- _evaluateAppealProject = evaluateAppealProject;
- _evaluateSubmissionProject = evaluateSubmissionProject;
- _getEvaluationByProjectId = getEvaluationByProjectId;
- _mapper = mapper;
- }
- #endregion
-
- public async Task EvaluateAppealProject(EvaluateAppealProjectRequest request)
- {
- var input = _mapper.Map(request);
- var output = await _evaluateAppealProject.Execute(input);
- return _mapper.Map(output);
- }
-
- public async Task EvaluateSubmissionProject(EvaluateSubmissionProjectRequest request)
- {
- var input = _mapper.Map(request);
- var output = await _evaluateSubmissionProject.Execute(input);
- return _mapper.Map(output);
- }
-
- public async Task GetEvaluationByProjectId(Guid? projectId)
- {
- var output = await _getEvaluationByProjectId.Execute(projectId);
- return _mapper.Map(output);
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/PresenterController/ProjectPresenterController.cs b/src/Adapters/PresenterController/ProjectPresenterController.cs
deleted file mode 100644
index 4bba9aff..00000000
--- a/src/Adapters/PresenterController/ProjectPresenterController.cs
+++ /dev/null
@@ -1,95 +0,0 @@
-using Adapters.Gateways.Project;
-using Adapters.Interfaces;
-using AutoMapper;
-using Domain.Contracts.Project;
-using Domain.Interfaces.UseCases.Project;
-
-namespace Adapters.PresenterController
-{
- public class ProjectPresenterController : IProjectPresenterController
- {
- #region Global Scope
- private readonly ICancelProject _cancelProject;
- private readonly IGetClosedProjects _getClosedProjects;
- private readonly IGetOpenProjects _getOpenProjects;
- private readonly IGetProjectById _getProjectById;
- private readonly IOpenProject _openProject;
- private readonly IUpdateProject _updateProject;
- private readonly IAppealProject _appealProject;
- private readonly ISubmitProject _submitProject;
- private readonly IMapper _mapper;
-
- public ProjectPresenterController(
- ICancelProject cancelProject,
- IGetClosedProjects getClosedProjects,
- IGetOpenProjects getOpenProjects,
- IGetProjectById getProjectById,
- IOpenProject openProject,
- IUpdateProject updateProject,
- IAppealProject appealProject,
- ISubmitProject submitProject,
- IMapper mapper)
- {
- _cancelProject = cancelProject;
- _getClosedProjects = getClosedProjects;
- _getOpenProjects = getOpenProjects;
- _getProjectById = getProjectById;
- _openProject = openProject;
- _updateProject = updateProject;
- _appealProject = appealProject;
- _submitProject = submitProject;
- _mapper = mapper;
- }
- #endregion
-
- public async Task AppealProject(Guid? projectId, string? appealDescription)
- {
- var output = await _appealProject.Execute(projectId, appealDescription);
- return _mapper.Map(output);
- }
-
- public async Task CancelProject(Guid? id, string? observation)
- {
- var output = await _cancelProject.Execute(id, observation);
- return _mapper.Map(output);
- }
-
- public async Task> GetClosedProjects(int skip, int take, bool onlyMyProjects = true)
- {
- var output = await _getClosedProjects.Execute(skip, take, onlyMyProjects);
- return _mapper.Map>(output);
- }
-
- public async Task> GetOpenProjects(int skip, int take, bool onlyMyProjects = true)
- {
- var output = await _getOpenProjects.Execute(skip, take, onlyMyProjects);
- return _mapper.Map>(output);
- }
-
- public async Task GetProjectById(Guid? id)
- {
- var output = await _getProjectById.Execute(id);
- return _mapper.Map(output);
- }
-
- public async Task OpenProject(OpenProjectRequest request)
- {
- var input = _mapper.Map(request);
- var output = await _openProject.Execute(input);
- return _mapper.Map(output);
- }
-
- public async Task SubmitProject(Guid? projectId)
- {
- var output = await _submitProject.Execute(projectId);
- return _mapper.Map(output);
- }
-
- public async Task UpdateProject(Guid? id, UpdateProjectRequest request)
- {
- var input = _mapper.Map(request);
- var output = await _updateProject.Execute(id, input);
- return _mapper.Map(output);
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/PresenterController/StudentDocumentsPresenterController.cs b/src/Adapters/PresenterController/StudentDocumentsPresenterController.cs
deleted file mode 100644
index 8c2631b7..00000000
--- a/src/Adapters/PresenterController/StudentDocumentsPresenterController.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-using Adapters.Gateways.StudentDocuments;
-using Adapters.Interfaces;
-using AutoMapper;
-using Domain.Contracts.StudentDocuments;
-using Domain.Interfaces.UseCases;
-
-namespace Adapters.PresenterController
-{
- public class StudentDocumentsPresenterController : IStudentDocumentsPresenterController
- {
- #region Global Scope
- private readonly ICreateStudentDocuments _createStudentDocuments;
- private readonly IUpdateStudentDocuments _updateStudentDocuments;
- private readonly IDeleteStudentDocuments _deleteStudentDocuments;
- private readonly IGetStudentDocumentsByProjectId _getStudentDocumentsByProject;
- private readonly IGetStudentDocumentsByStudentId _getStudentDocumentsByStudent;
- private readonly IMapper _mapper;
- public StudentDocumentsPresenterController(
- ICreateStudentDocuments createStudentDocuments,
- IUpdateStudentDocuments updateStudentDocuments,
- IDeleteStudentDocuments deleteStudentDocuments,
- IGetStudentDocumentsByProjectId getStudentDocumentsByProject,
- IGetStudentDocumentsByStudentId getStudentDocumentsByStudent,
- IMapper mapper)
- {
- _createStudentDocuments = createStudentDocuments;
- _updateStudentDocuments = updateStudentDocuments;
- _deleteStudentDocuments = deleteStudentDocuments;
- _getStudentDocumentsByProject = getStudentDocumentsByProject;
- _getStudentDocumentsByStudent = getStudentDocumentsByStudent;
- _mapper = mapper;
- }
- #endregion
-
- public async Task Create(CreateStudentDocumentsRequest model)
- {
- var input = _mapper.Map(model);
- var result = await _createStudentDocuments.Execute(input);
- return _mapper.Map(result);
- }
-
- public async Task Delete(Guid? id)
- {
- var result = await _deleteStudentDocuments.Execute(id);
- return _mapper.Map(result);
- }
-
- public async Task GetByProjectId(Guid? projectId)
- {
- var result = await _getStudentDocumentsByProject.Execute(projectId);
- return _mapper.Map(result);
- }
-
- public async Task GetByStudentId(Guid? studentId)
- {
- var result = await _getStudentDocumentsByStudent.Execute(studentId);
- return _mapper.Map(result);
- }
-
- public async Task Update(Guid? id, UpdateStudentDocumentsRequest model)
- {
- var input = _mapper.Map(model);
- var result = await _updateStudentDocuments.Execute(id, input);
- return _mapper.Map(result);
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/PresenterController/StudentPresenterController.cs b/src/Adapters/PresenterController/StudentPresenterController.cs
deleted file mode 100755
index e2ce0885..00000000
--- a/src/Adapters/PresenterController/StudentPresenterController.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-using Adapters.Gateways.Base;
-using Adapters.Gateways.Student;
-using Adapters.Interfaces;
-using AutoMapper;
-using Domain.Contracts.Student;
-using Domain.Interfaces.UseCases;
-
-namespace Adapters.PresenterController
-{
- public class StudentPresenterController : IStudentPresenterController
- {
- #region Global Scope
- private readonly ICreateStudent _createStudent;
- private readonly IUpdateStudent _updateStudent;
- private readonly IDeleteStudent _deleteStudent;
- private readonly IGetStudents _getStudents;
- private readonly IGetStudentById _getStudentById;
- private readonly IMapper _mapper;
-
- public StudentPresenterController(ICreateStudent createStudent, IUpdateStudent updateStudent, IDeleteStudent deleteStudent, IGetStudents getStudents, IGetStudentById getStudentById, IMapper mapper)
- {
- _createStudent = createStudent;
- _updateStudent = updateStudent;
- _deleteStudent = deleteStudent;
- _getStudents = getStudents;
- _getStudentById = getStudentById;
- _mapper = mapper;
- }
- #endregion
-
- public async Task Create(IRequest request)
- {
- var dto = request as CreateStudentRequest;
- var input = _mapper.Map(dto);
- var result = await _createStudent.Execute(input);
- return _mapper.Map(result);
- }
-
- public async Task Delete(Guid? id)
- {
- var result = await _deleteStudent.Execute(id);
- return _mapper.Map(result);
- }
-
- public async Task> GetAll(int skip, int take)
- {
- var result = await _getStudents.Execute(skip, take);
- return _mapper.Map>(result);
- }
-
- public async Task GetById(Guid? id)
- {
- var result = await _getStudentById.Execute(id);
- return _mapper.Map(result);
- }
-
- public async Task Update(Guid? id, IRequest request)
- {
- var dto = request as UpdateStudentRequest;
- var input = _mapper.Map(dto);
- var result = await _updateStudent.Execute(id, input);
- return _mapper.Map(result);
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/PresenterController/SubAreaPresenterController.cs b/src/Adapters/PresenterController/SubAreaPresenterController.cs
deleted file mode 100755
index f6d9f52f..00000000
--- a/src/Adapters/PresenterController/SubAreaPresenterController.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-using Adapters.Gateways.Base;
-using Adapters.Gateways.SubArea;
-using Adapters.Interfaces;
-using AutoMapper;
-using Domain.Contracts.SubArea;
-using Domain.Interfaces.UseCases;
-
-namespace Adapters.PresenterController
-{
- public class SubAreaPresenterController : ISubAreaPresenterController
- {
- #region Global Scope
- private readonly ICreateSubArea _createSubArea;
- private readonly IUpdateSubArea _updateSubArea;
- private readonly IDeleteSubArea _deleteSubArea;
- private readonly IGetSubAreasByArea _getSubAreasByArea;
- private readonly IGetSubAreaById _getSubAreaById;
- private readonly IMapper _mapper;
-
- public SubAreaPresenterController(ICreateSubArea createSubArea, IUpdateSubArea updateSubArea, IDeleteSubArea deleteSubArea,
- IGetSubAreasByArea getSubAreasByArea, IGetSubAreaById getSubAreaById, IMapper mapper)
- {
- _createSubArea = createSubArea;
- _updateSubArea = updateSubArea;
- _deleteSubArea = deleteSubArea;
- _getSubAreasByArea = getSubAreasByArea;
- _getSubAreaById = getSubAreaById;
- _mapper = mapper;
- }
- #endregion
-
- public async Task Create(IRequest request)
- {
- var dto = request as CreateSubAreaRequest;
- var input = _mapper.Map(dto);
- var result = await _createSubArea.Execute(input);
- return _mapper.Map(result);
- }
-
- public async Task Delete(Guid? id)
- {
- var result = await _deleteSubArea.Execute(id);
- return _mapper.Map(result);
- }
-
- public Task> GetAll(int skip, int take)
- {
- throw new NotImplementedException();
- }
-
- public async Task GetById(Guid? id)
- {
- var result = await _getSubAreaById.Execute(id);
- return _mapper.Map(result);
- }
-
- public async Task> GetSubAreasByArea(Guid? areaId, int skip, int take)
- {
- var result = await _getSubAreasByArea.Execute(areaId, skip, take);
- return _mapper.Map>(result);
- }
-
- public async Task Update(Guid? id, IRequest request)
- {
- var dto = request as UpdateSubAreaRequest;
- var input = _mapper.Map(dto);
- var result = await _updateSubArea.Execute(id, input);
- return _mapper.Map(result);
- }
- }
-}
\ No newline at end of file
diff --git a/src/Adapters/PresenterController/TypeAssistancePresenterController.cs b/src/Adapters/PresenterController/TypeAssistancePresenterController.cs
deleted file mode 100755
index a76f0ae9..00000000
--- a/src/Adapters/PresenterController/TypeAssistancePresenterController.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-using Adapters.Gateways.Base;
-using Adapters.Gateways.TypeAssistance;
-using Adapters.Interfaces;
-using AutoMapper;
-using Domain.Contracts.TypeAssistance;
-using Domain.Interfaces.UseCases;
-
-namespace Adapters.PresenterController
-{
- public class TypeAssistancePresenterController : ITypeAssistancePresenterController
- {
- #region Global Scope
- private readonly ICreateTypeAssistance _createTypeAssistance;
- private readonly IUpdateTypeAssistance _updateTypeAssistance;
- private readonly IDeleteTypeAssistance _deleteTypeAssistance;
- private readonly IGetTypeAssistances _getTypeAssistances;
- private readonly IGetTypeAssistanceById _getTypeAssistanceById;
- private readonly IMapper _mapper;
-
- public TypeAssistancePresenterController(ICreateTypeAssistance createTypeAssistance,
- IUpdateTypeAssistance updateTypeAssistance,
- IDeleteTypeAssistance deleteTypeAssistance,
- IGetTypeAssistances getTypeAssistances,
- IGetTypeAssistanceById getTypeAssistanceById,
- IMapper mapper)
- {
- _createTypeAssistance = createTypeAssistance;
- _updateTypeAssistance = updateTypeAssistance;
- _deleteTypeAssistance = deleteTypeAssistance;
- _getTypeAssistances = getTypeAssistances;
- _getTypeAssistanceById = getTypeAssistanceById;
- _mapper = mapper;
- }
- #endregion
-
- public async Task Create(IRequest request)
- {
- var dto = request as CreateTypeAssistanceRequest;
- var input = _mapper.Map(dto);
- var result = await _createTypeAssistance.Execute(input);
- return _mapper.Map(result);
- }
-
- public async Task Delete(Guid? id)
- {
- var result = await _deleteTypeAssistance.Execute(id);
- return _mapper.Map(result);
- }
-
- public async Task> GetAll(int skip, int take)
- {
- var result = await _getTypeAssistances.Execute(skip, take);
- return _mapper.Map>(result);
- }
-
- public async Task GetById(Guid? id)
- {
- var result = await _getTypeAssistanceById.Execute(id);
- return _mapper.Map(result);
- }
-
- public async Task Update(Guid? id, IRequest request)
- {
- var dto = request as UpdateTypeAssistanceRequest;
- var input = _mapper.Map