Record Class CompanySignupRequest
java.lang.Object
java.lang.Record
inha.git.user.api.controller.dto.request.CompanySignupRequest
public record CompanySignupRequest(@NotEmpty(message="\uc774\uba54\uc77c\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Email String email, @NotEmpty(message="\uc774\ub984\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String name, @NotEmpty(message="\ube44\ubc00\ubc88\ud638\ub294 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String pw, @NotBlank(message="\uc18c\uc18d\uc744 \uc785\ub825\ud558\uc138\uc694.") @Size(min=1,max=12,message="\uc18c\uc18d\uc740 1\uc790\uc5d0\uc11c 12\uc790 \uc0ac\uc774\uc5ec\uc57c \ud569\ub2c8\ub2e4.") String affiliation)
extends Record
SignupRequest는 회원 가입 요청 정보를 담는 DTO 클래스.
-
Constructor Summary
ConstructorsConstructorDescriptionCompanySignupRequest
(@NotEmpty(message="\uc774\uba54\uc77c\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Email String email, @NotEmpty(message="\uc774\ub984\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String name, @NotEmpty(message="\ube44\ubc00\ubc88\ud638\ub294 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String pw, @NotBlank(message="\uc18c\uc18d\uc744 \uc785\ub825\ud558\uc138\uc694.") @Size(min=1,max=12,message="\uc18c\uc18d\uc740 1\uc790\uc5d0\uc11c 12\uc790 \uc0ac\uc774\uc5ec\uc57c \ud569\ub2c8\ub2e4.") String affiliation) Creates an instance of aCompanySignupRequest
record class. -
Method Summary
Modifier and TypeMethodDescription@NotBlank(message="\uc18c\uc18d\uc744 \uc785\ub825\ud558\uc138\uc694.") @Size(min=1,max=12,message="\uc18c\uc18d\uc740 1\uc790\uc5d0\uc11c 12\uc790 \uc0ac\uc774\uc5ec\uc57c \ud569\ub2c8\ub2e4.") String
Returns the value of theaffiliation
record component.@NotEmpty(message="\uc774\uba54\uc77c\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Email String
email()
Returns the value of theemail
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotEmpty(message="\uc774\ub984\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String
name()
Returns the value of thename
record component.@NotEmpty(message="\ube44\ubc00\ubc88\ud638\ub294 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String
pw()
Returns the value of thepw
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CompanySignupRequest
public CompanySignupRequest(@NotEmpty(message="\uc774\uba54\uc77c\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Email @NotEmpty(message="\uc774\uba54\uc77c\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Email String email, @NotEmpty(message="\uc774\ub984\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @NotEmpty(message="\uc774\ub984\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String name, @NotEmpty(message="\ube44\ubc00\ubc88\ud638\ub294 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @NotEmpty(message="\ube44\ubc00\ubc88\ud638\ub294 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String pw, @NotBlank(message="\uc18c\uc18d\uc744 \uc785\ub825\ud558\uc138\uc694.") @Size(min=1,max=12,message="\uc18c\uc18d\uc740 1\uc790\uc5d0\uc11c 12\uc790 \uc0ac\uc774\uc5ec\uc57c \ud569\ub2c8\ub2e4.") @NotBlank(message="\uc18c\uc18d\uc744 \uc785\ub825\ud558\uc138\uc694.") @Size(min=1,max=12,message="\uc18c\uc18d\uc740 1\uc790\uc5d0\uc11c 12\uc790 \uc0ac\uc774\uc5ec\uc57c \ud569\ub2c8\ub2e4.") String affiliation) Creates an instance of aCompanySignupRequest
record class.- Parameters:
email
- the value for theemail
record componentname
- the value for thename
record componentpw
- the value for thepw
record componentaffiliation
- the value for theaffiliation
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
email
@NotEmpty(message="\uc774\uba54\uc77c\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Email public @NotEmpty(message="\uc774\uba54\uc77c\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Email String email()Returns the value of theemail
record component.- Returns:
- the value of the
email
record component
-
name
@NotEmpty(message="\uc774\ub984\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") public @NotEmpty(message="\uc774\ub984\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String name()Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
pw
@NotEmpty(message="\ube44\ubc00\ubc88\ud638\ub294 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") public @NotEmpty(message="\ube44\ubc00\ubc88\ud638\ub294 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String pw()Returns the value of thepw
record component.- Returns:
- the value of the
pw
record component
-
affiliation
@NotBlank(message="\uc18c\uc18d\uc744 \uc785\ub825\ud558\uc138\uc694.") @Size(min=1, max=12, message="\uc18c\uc18d\uc740 1\uc790\uc5d0\uc11c 12\uc790 \uc0ac\uc774\uc5ec\uc57c \ud569\ub2c8\ub2e4.") public @NotBlank(message="\uc18c\uc18d\uc744 \uc785\ub825\ud558\uc138\uc694.") @Size(min=1,max=12,message="\uc18c\uc18d\uc740 1\uc790\uc5d0\uc11c 12\uc790 \uc0ac\uc774\uc5ec\uc57c \ud569\ub2c8\ub2e4.") String affiliation()Returns the value of theaffiliation
record component.- Returns:
- the value of the
affiliation
record component
-