refactor(User): refactorización al inglés

parent 1feb7b9a
package com.example.apprecetas.domain.entity; package com.example.apprecetas.user.domain.entity;
import lombok.*; import lombok.*;
...@@ -8,8 +8,8 @@ import lombok.*; ...@@ -8,8 +8,8 @@ import lombok.*;
public class User { public class User {
private Long id; private Long id;
private String nombre; private String name;
private String apellidos; private String surname;
private String email; private String email;
private String password; private String password;
......
package com.example.apprecetas.infrastructure.controller.dto; package com.example.apprecetas.user.infrastructure.controller.dto;
import jakarta.validation.constraints.Email; import jakarta.validation.constraints.*;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
...@@ -13,15 +11,15 @@ import lombok.NoArgsConstructor; ...@@ -13,15 +11,15 @@ import lombok.NoArgsConstructor;
public class UserInputDto { public class UserInputDto {
@Size(min = 2, max = 20, message = "El nombre debe tener entre 6 y 20 caracteres") @Size(min = 2, max = 20, message = "El nombre debe tener entre 6 y 20 caracteres")
private String nombre; private String name;
@Size(min = 6, max = 20, message = "Los apellidos deben tener entre 6 y 20 caracteres") @Size(min = 6, max = 20, message = "Los apellidos deben tener entre 6 y 20 caracteres")
private String apellidos; private String surname;
@Email(message = "El email debe tener formato de correo electrónico") @Email(message = "El email debe tener formato de correo electrónico")
private String email; private String email;
@Min(value = 8, message = "La contraseña debe tener al menos 8 caracteres") @Size(min = 8, message = "La contraseña debe tener al menos 8 caracteres")
private String password; private String password;
} }
package com.example.apprecetas.infrastructure.controller.dto; package com.example.apprecetas.user.infrastructure.controller.dto;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
...@@ -10,8 +10,8 @@ import lombok.NoArgsConstructor; ...@@ -10,8 +10,8 @@ import lombok.NoArgsConstructor;
public class UserOutputDto { public class UserOutputDto {
private Long id; private Long id;
private String nombre; private String name;
private String apellidos; private String surname;
private String email; private String email;
private String password; private String password;
......
package com.example.apprecetas.infrastructure.repository.jpa; package com.example.apprecetas.user.infrastructure.repository.jpa;
import jakarta.persistence.*; import jakarta.persistence.*;
import lombok.Getter; import lombok.Getter;
...@@ -16,10 +16,10 @@ public class UserJpa { ...@@ -16,10 +16,10 @@ public class UserJpa {
private Long id; private Long id;
@Column(name = "nombre") @Column(name = "nombre")
private String nombre; private String name;
@Column(name = "apellidos") @Column(name = "apellidos")
private String apellidos; private String surname;
@Column(name = "email") @Column(name = "email")
private String email; private String email;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment