-
-
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.
feat: usuario: get and update imagem perfil and imagem capa
- Loading branch information
Showing
13 changed files
with
424 additions
and
59 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
luna-backend/src/application/business/(spec)/ambientes/bloco/IBlocoModel.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
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
...d/src/application/business/autenticacao/usuario/dtos/usuario-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 USUARIO_GET_IMAGEM_CAPA = createDtoOperationOptions({ | ||
description: 'Obtêm a imagem de capa do usuário.', | ||
|
||
gql: null, | ||
|
||
swagger: { | ||
returnType: { | ||
schema: { | ||
type: 'string', | ||
format: 'binary', | ||
}, | ||
}, | ||
|
||
params: [ | ||
{ | ||
name: 'id', | ||
description: 'ID do bloco.', | ||
validationContract: ValidationContractUuid, | ||
}, | ||
], | ||
}, | ||
}); | ||
|
||
// ====================================================== |
28 changes: 28 additions & 0 deletions
28
...src/application/business/autenticacao/usuario/dtos/usuario-get-imagem-perfil.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 USUARIO_GET_IMAGEM_PERFIL = createDtoOperationOptions({ | ||
description: 'Obtêm a imagem de perfil do usuário.', | ||
|
||
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
Oops, something went wrong.