Record Class ProfessorSignupRequest
java.lang.Object
java.lang.Record
inha.git.user.api.controller.dto.request.ProfessorSignupRequest
public record ProfessorSignupRequest(@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, @NotEmpty(message="\uc0ac\ubc88 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=6,max=6,message="\uc0ac\ubc88\uc740 6\uc790\ub9ac \uc22b\uc790\uc5ec\uc57c \ud569\ub2c8\ub2e4.") String userNumber, @NotNull(message="\ud559\uacfc \ubaa9\ub85d\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=1,message="\ucd5c\uc18c \ud55c \uac1c\uc758 \ud559\uacfc\ub97c \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") List<Integer> departmentIdList)
extends Record
SignupRequest는 회원 가입 요청 정보를 담는 DTO 클래스.
-
Constructor Summary
ConstructorsConstructorDescriptionProfessorSignupRequest
(@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, @NotEmpty(message="\uc0ac\ubc88 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=6,max=6,message="\uc0ac\ubc88\uc740 6\uc790\ub9ac \uc22b\uc790\uc5ec\uc57c \ud569\ub2c8\ub2e4.") String userNumber, @NotNull(message="\ud559\uacfc \ubaa9\ub85d\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=1,message="\ucd5c\uc18c \ud55c \uac1c\uc758 \ud559\uacfc\ub97c \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") List<Integer> departmentIdList) Creates an instance of aProfessorSignupRequest
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull(message="\ud559\uacfc \ubaa9\ub85d\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=1,message="\ucd5c\uc18c \ud55c \uac1c\uc758 \ud559\uacfc\ub97c \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") List<Integer>
Returns the value of thedepartmentIdList
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.@NotEmpty(message="\uc0ac\ubc88 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=6,max=6,message="\uc0ac\ubc88\uc740 6\uc790\ub9ac \uc22b\uc790\uc5ec\uc57c \ud569\ub2c8\ub2e4.") String
Returns the value of theuserNumber
record component.
-
Constructor Details
-
ProfessorSignupRequest
public ProfessorSignupRequest(@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, @NotEmpty(message="\uc0ac\ubc88 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=6,max=6,message="\uc0ac\ubc88\uc740 6\uc790\ub9ac \uc22b\uc790\uc5ec\uc57c \ud569\ub2c8\ub2e4.") @NotEmpty(message="\uc0ac\ubc88 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=6,max=6,message="\uc0ac\ubc88\uc740 6\uc790\ub9ac \uc22b\uc790\uc5ec\uc57c \ud569\ub2c8\ub2e4.") String userNumber, @NotNull(message="\ud559\uacfc \ubaa9\ub85d\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=1,message="\ucd5c\uc18c \ud55c \uac1c\uc758 \ud559\uacfc\ub97c \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") @NotNull(message="\ud559\uacfc \ubaa9\ub85d\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=1,message="\ucd5c\uc18c \ud55c \uac1c\uc758 \ud559\uacfc\ub97c \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") List<Integer> departmentIdList) Creates an instance of aProfessorSignupRequest
record class.- Parameters:
email
- the value for theemail
record componentname
- the value for thename
record componentpw
- the value for thepw
record componentuserNumber
- the value for theuserNumber
record componentdepartmentIdList
- the value for thedepartmentIdList
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
-
userNumber
@NotEmpty(message="\uc0ac\ubc88 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=6, max=6, message="\uc0ac\ubc88\uc740 6\uc790\ub9ac \uc22b\uc790\uc5ec\uc57c \ud569\ub2c8\ub2e4.") public @NotEmpty(message="\uc0ac\ubc88 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=6,max=6,message="\uc0ac\ubc88\uc740 6\uc790\ub9ac \uc22b\uc790\uc5ec\uc57c \ud569\ub2c8\ub2e4.") String userNumber()Returns the value of theuserNumber
record component.- Returns:
- the value of the
userNumber
record component
-
departmentIdList
@NotNull(message="\ud559\uacfc \ubaa9\ub85d\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=1, message="\ucd5c\uc18c \ud55c \uac1c\uc758 \ud559\uacfc\ub97c \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") public @NotNull(message="\ud559\uacfc \ubaa9\ub85d\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Size(min=1,message="\ucd5c\uc18c \ud55c \uac1c\uc758 \ud559\uacfc\ub97c \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") List<Integer> departmentIdList()Returns the value of thedepartmentIdList
record component.- Returns:
- the value of the
departmentIdList
record component
-