-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
12 changed files
with
290 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
...-auth/src/main/java/com/inhabas/api/auth/domain/oauth2/member/dto/ExecutiveMemberDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package com.inhabas.api.auth.domain.oauth2.member.dto; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
import javax.validation.constraints.NotNull; | ||
import javax.validation.constraints.Positive; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import com.inhabas.api.auth.domain.oauth2.member.domain.valueObject.Role; | ||
import org.hibernate.validator.constraints.Length; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class ExecutiveMemberDto { | ||
|
||
@NotBlank | ||
@Length(max = 50) | ||
private String name; | ||
|
||
@NotNull @Positive private Long memberId; | ||
|
||
@NotNull private String studentId; | ||
|
||
@NotBlank private Role role; | ||
|
||
@NotNull private Integer generation; | ||
|
||
@NotBlank | ||
@Length(max = 50) | ||
private String major; | ||
|
||
private String picture; | ||
|
||
@Builder | ||
public ExecutiveMemberDto( | ||
String name, | ||
Long memberId, | ||
String studentId, | ||
Role role, | ||
Integer generation, | ||
String major, | ||
String picture) { | ||
this.name = name; | ||
this.memberId = memberId; | ||
this.studentId = studentId; | ||
this.role = role; | ||
this.generation = generation; | ||
this.major = major; | ||
this.picture = picture; | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
module-auth/src/main/java/com/inhabas/api/auth/domain/oauth2/member/dto/HallOfFameDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
package com.inhabas.api.auth.domain.oauth2.member.dto; | ||
|
||
import javax.validation.constraints.Email; | ||
import javax.validation.constraints.NotBlank; | ||
import javax.validation.constraints.NotNull; | ||
import javax.validation.constraints.Pattern; | ||
import javax.validation.constraints.Positive; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import org.hibernate.validator.constraints.Length; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class HallOfFameDto { | ||
|
||
@NotBlank | ||
@Length(max = 50) | ||
private String name; | ||
|
||
@NotNull @Positive private Long memberId; | ||
|
||
@NotNull private String studentId; | ||
|
||
@NotNull private Integer generation; | ||
|
||
@NotBlank | ||
@Length(max = 50) | ||
private String major; | ||
|
||
private String picture; | ||
|
||
@NotNull private String intro; | ||
|
||
@NotNull @Email private String email; | ||
|
||
@Pattern(regexp = "^(010)-\\d{4}-\\d{4}$") | ||
@Schema(example = "010-0101-0101") | ||
private String phoneNumber; | ||
|
||
@Builder | ||
public HallOfFameDto( | ||
String name, | ||
Long memberId, | ||
String studentId, | ||
Integer generation, | ||
String major, | ||
String picture, | ||
String intro, | ||
String email, | ||
String phoneNumber) { | ||
this.name = name; | ||
this.memberId = memberId; | ||
this.studentId = studentId; | ||
this.generation = generation; | ||
this.major = major; | ||
this.picture = picture; | ||
this.intro = intro; | ||
this.email = email; | ||
this.phoneNumber = phoneNumber; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.