Skip to content

created matchService#28

Merged
codeNilson merged 0 commit into
mainfrom
feature/create-matchService
Jul 1, 2025
Merged

created matchService#28
codeNilson merged 0 commit into
mainfrom
feature/create-matchService

Conversation

@EricNasciment

Copy link
Copy Markdown
Collaborator

Fix #12

@EricNasciment
EricNasciment requested a review from codeNilson June 20, 2025 14:03
@EricNasciment EricNasciment self-assigned this Jun 20, 2025
@EricNasciment EricNasciment added the enhancement New feature or request label Jun 20, 2025
Comment thread src/main/java/io/github/codenilson/lavava2025/services/MatchService.java Outdated
@@ -10,6 +10,8 @@
@Data
public class MatchCreateDTO {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creio que deveria ser obrigatório passar o mapa que a partida aconteceu/acontecerá. Adicionando essa anotação (funciona somente em String), só será aceito a requisição que passar um valor para map. O que acha?

Suggested change
@NotBlank

@codeNilson codeNilson Jun 20, 2025

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Esqueci de adicionar. Pode adicionar como argumento (message = "Map is required"), para aparecer no retorno em caso de erro.

public MatchService(MatchRepository matchRepository) {
this.matchRepository = matchRepository;

matchMapper = null;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Não entendi o null. Porquê?

Comment thread src/main/java/io/github/codenilson/lavava2025/entities/mappers/MatchMapper.java Outdated
@codeNilson
codeNilson self-requested a review July 1, 2025 13:07
@codeNilson
codeNilson merged commit f6ce854 into main Jul 1, 2025
@codeNilson
codeNilson deleted the feature/create-matchService branch July 1, 2025 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Refatorar o controlador de Match

2 participants