-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
197 additions
and
30 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
...plication/business/(spec)/ambientes/bloco/(dtos)/bloco-find-one/IBlocoFindOneResultDto.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import { IImagemFindOneResultDto } from '../../../../base/imagem/operations'; | ||
import { ICampusFindOneResultDto } from '../../../campus'; | ||
import { IBlocoModel } from '../../IBlocoModel'; | ||
|
||
export interface IBlocoFindOneResultDto extends Pick<IBlocoModel, 'id' | 'nome' | 'codigo'> { | ||
campus: ICampusFindOneResultDto; | ||
imagemCapa: IImagemFindOneResultDto | null; | ||
} |
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
21 changes: 21 additions & 0 deletions
21
luna-backend/src/application/business/(spec)/base/imagem-arquivo/IImagemArquivoModel.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import * as Dto from 'application/business/(spec)'; | ||
|
||
export interface IImagemArquivoModel extends Dto.IObjectUuid { | ||
id: string; | ||
|
||
// | ||
|
||
largura: number; | ||
altura: number; | ||
formato: string; | ||
mimeType: string; | ||
|
||
imagem: Dto.IImagemModel; | ||
arquivo: Dto.IArquivoModel; | ||
|
||
// | ||
|
||
dateCreated: Dto.IEntityDate; | ||
// dateUpdated: Dto.IEntityDate; | ||
// dateDeleted: null | Dto.IEntityDate; | ||
} |
1 change: 1 addition & 0 deletions
1
luna-backend/src/application/business/(spec)/base/imagem-arquivo/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './IImagemArquivoModel'; |
8 changes: 8 additions & 0 deletions
8
.../base/imagem-arquivo/operations/imagem-arquivo-find-one/IImagemArquivoFindOneResultDto.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import * as Dto from 'application/business/(spec)'; | ||
import { IArquivoFindOneResultDto } from '../../../arquivo/operations'; | ||
import { IImagemArquivoModel } from '../../IImagemArquivoModel'; | ||
|
||
export interface IImagemArquivoFindOneResultDto extends Pick<IImagemArquivoModel, 'id' | 'largura' | 'altura' | 'formato' | 'mimeType'> { | ||
imagem: Dto.IObjectUuid; | ||
arquivo: IArquivoFindOneResultDto; | ||
} |
1 change: 1 addition & 0 deletions
1
...plication/business/(spec)/base/imagem-arquivo/operations/imagem-arquivo-find-one/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './IImagemArquivoFindOneResultDto'; |
1 change: 1 addition & 0 deletions
1
luna-backend/src/application/business/(spec)/base/imagem-arquivo/operations/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './imagem-arquivo-find-one'; |
17 changes: 17 additions & 0 deletions
17
luna-backend/src/application/business/(spec)/base/imagem/IImagemModel.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import * as Dto from 'application/business/(spec)'; | ||
import { IImagemArquivoModel } from '../imagem-arquivo'; | ||
|
||
export interface IImagemModel extends Dto.IObjectUuid, Dto.IDatedObject { | ||
id: string; | ||
|
||
// | ||
|
||
descricao: string | null; | ||
imagemArquivo: IImagemArquivoModel[]; | ||
|
||
// | ||
|
||
dateCreated: Dto.IEntityDate; | ||
dateUpdated: Dto.IEntityDate; | ||
dateDeleted: null | Dto.IEntityDate; | ||
} |
1 change: 1 addition & 0 deletions
1
luna-backend/src/application/business/(spec)/base/imagem/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './IImagemModel'; |
6 changes: 6 additions & 0 deletions
6
...ication/business/(spec)/base/imagem/operations/imagem-find-one/IImagemFindOneResultDto.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { IImagemArquivoFindOneResultDto } from '../../../imagem-arquivo/operations'; | ||
import { IImagemModel } from '../../IImagemModel'; | ||
|
||
export interface IImagemFindOneResultDto extends Pick<IImagemModel, 'id' | 'descricao'> { | ||
imagemArquivo: Omit<IImagemArquivoFindOneResultDto, 'imagem'>[]; | ||
} |
1 change: 1 addition & 0 deletions
1
luna-backend/src/application/business/(spec)/base/imagem/operations/imagem-find-one/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './IImagemFindOneResultDto'; |
1 change: 1 addition & 0 deletions
1
luna-backend/src/application/business/(spec)/base/imagem/operations/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './imagem-find-one'; |
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
export * from './arquivo'; | ||
export * from './imagem'; | ||
export * from './imagem-arquivo'; |
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
28 changes: 28 additions & 0 deletions
28
...-backend/src/application/business/ambientes/bloco/dtos/bloco-get-imagem-capa.operation.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { ValidationContractUuid, createDtoOperationOptions } from '../../../../../infrastructure'; | ||
|
||
// ====================================================== | ||
|
||
export const BLOCO_GET_IMAGEM_CAPA = createDtoOperationOptions({ | ||
description: 'Realiza a consulta a um bloco por ID.', | ||
|
||
gql: null, | ||
|
||
swagger: { | ||
returnType: { | ||
schema: { | ||
type: 'string', | ||
format: 'binary', | ||
}, | ||
}, | ||
|
||
params: [ | ||
{ | ||
name: 'id', | ||
description: 'ID do bloco.', | ||
validationContract: ValidationContractUuid, | ||
}, | ||
], | ||
}, | ||
}); | ||
|
||
// ====================================================== |
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.