Skip to content

Commit 79245e2

Browse files
committed
refactor: updated body messages in all controllers
1 parent 7ff14e6 commit 79245e2

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/main/java/com/joaov1ct0r/restful_api_users_java/modules/auth/controllers/SignInController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public ResponseEntity<Object> handle(
8888

8989
ResponseDTO responseDTO = this.responseMapper.toDTO(
9090
200,
91-
"Usuário com id: " + String.valueOf(user.getId()) + "autenticado com sucesso!",
91+
"User authenticated with success",
9292
user
9393
);
9494

src/main/java/com/joaov1ct0r/restful_api_users_java/modules/auth/controllers/SignOutController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public ResponseEntity<Object> handle(
5555

5656
ResponseDTO responseDTO = this.responseMapper.toDTO(
5757
200,
58-
"Sign out realizado com sucesso",
58+
"Sign out success",
5959
null
6060
);
6161

src/main/java/com/joaov1ct0r/restful_api_users_java/modules/users/controllers/CreateUserController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public ResponseEntity<Object> handle(@Valid @RequestBody CreateUserDTO user) thr
4646

4747
ResponseDTO response = this.responseMapper.toDTO(
4848
201,
49-
"Usuário criado com sucesso!",
49+
"User created with success",
5050
createdUser
5151
);
5252

src/main/java/com/joaov1ct0r/restful_api_users_java/modules/users/controllers/DeleteUserController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public ResponseEntity<Object> handle(
5353

5454
ResponseDTO response = this.responseMapper.toDTO(
5555
204,
56-
"Usuário deletado com sucesso!",
56+
"User deleted with success",
5757
deletedUser
5858
);
5959

src/main/java/com/joaov1ct0r/restful_api_users_java/modules/users/controllers/FindAllUsersController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public ResponseEntity<Object> handle(
8080

8181
ResponsePagDTO response = this.responseMapper.toPagDTO(
8282
200,
83-
"Usuário com id: " + userId + " Buscou todos os usuários com sucesso!",
83+
"User(s) found with success",
8484
users,
8585
query.getPage() - 1,
8686
query.getPage() + 1,

src/main/java/com/joaov1ct0r/restful_api_users_java/modules/users/controllers/UpdateUserController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public ResponseEntity<Object> handle(
5454

5555
ResponseDTO response = this.responseMapper.toDTO(
5656
204,
57-
"Usuário atualizado com sucesso!",
57+
"User updated with success",
5858
updatedUser
5959
);
6060

0 commit comments

Comments
 (0)