-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from unb-mds/feature-#68/api-architecture
Feature #68/api architecture
- Loading branch information
Showing
31 changed files
with
159 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
api/src/controllers/rankingController.ts → ...adapters/controllers/rankingController.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { EnrollmentInput } from '../../application/services/enrollmentServices'; | ||
|
||
export type EnrollmentRepositoryOutput = { | ||
ano: number; | ||
raca: string; | ||
rede: string; | ||
etapa: string; | ||
matricula: number; | ||
municipio: string; | ||
}; | ||
|
||
export abstract class EnrollmentRepository { | ||
abstract fetch(input: EnrollmentInput): Promise<EnrollmentRepositoryOutput[]>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { IndicatorInput } from '../../application/services/indicatorServices'; | ||
|
||
export type IndicatorRepositoryOutput = { | ||
ano: number; | ||
rede: string; | ||
etapa: string; | ||
taxa_de_aprovacao: number; | ||
taxa_de_reprovacao: number; | ||
taxa_de_abandono: number; | ||
municipio: string; | ||
}; | ||
|
||
export abstract class IndicatorRepository { | ||
abstract fetch(input: IndicatorInput): Promise<IndicatorRepositoryOutput[]>; | ||
} |
3 changes: 1 addition & 2 deletions
3
api/src/repositories/rankingRepository.ts → ...dapters/repositories/rankingRepository.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 16 additions & 16 deletions
32
api/src/services/matriculasService.spec.ts → ...cation/services/enrollmentService.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 19 additions & 16 deletions
35
api/src/services/indicadoresService.spec.ts → ...ication/services/indicatorService.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.