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 aProfessorSignupRequestrecord 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 thedepartmentIdListrecord component.@NotEmpty(message="\uc774\uba54\uc77c\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @Email Stringemail()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotEmpty(message="\uc774\ub984\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") Stringname()Returns the value of thenamerecord component.@NotEmpty(message="\ube44\ubc00\ubc88\ud638\ub294 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") Stringpw()Returns the value of thepwrecord component.final StringtoString()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.") StringReturns the value of theuserNumberrecord 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 aProfessorSignupRequestrecord class.- Parameters:
email- the value for theemailrecord componentname- the value for thenamerecord componentpw- the value for thepwrecord componentuserNumber- the value for theuserNumberrecord componentdepartmentIdList- the value for thedepartmentIdListrecord 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 theemailrecord component.- Returns:
- the value of the
emailrecord 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 thenamerecord component.- Returns:
- the value of the
namerecord 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 thepwrecord component.- Returns:
- the value of the
pwrecord 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 theuserNumberrecord component.- Returns:
- the value of the
userNumberrecord 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 thedepartmentIdListrecord component.- Returns:
- the value of the
departmentIdListrecord component
-