Skip to content

Commit

Permalink
hotfix: Member에 isAgreeWithEventInfo 추가 - 이벤트, 광고성 정보 안내 수신 여부
Browse files Browse the repository at this point in the history
  • Loading branch information
great-park committed Aug 1, 2023
1 parent 24e1b1e commit d32f1a6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public class CommonUserData {
@Size(max = 1000)
protected String introduction;

@NotNull
protected boolean isAgreeWithEventInfo;

@NotNull
protected List<String> tagList;
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public class Member extends BaseEntity {
@Column(nullable = false)
private String introduction;

@Column
private boolean isAgreeWithEventInfo;

@OneToOne(mappedBy = "member", cascade = CascadeType.ALL)
private Junior junior;

Expand Down Expand Up @@ -70,6 +73,7 @@ public static Member from(CommonUserData request) {
.deviceToken(request.getDeviceToken())
.profileImageUrl(request.getProfileImageUrl())
.introduction(request.getIntroduction())
.isAgreeWithEventInfo(request.isAgreeWithEventInfo())
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public void setUp(@Autowired WebApplicationContext webApplicationContext, RestDo
.deviceToken("Test_DeviceToken")
.profileImageUrl("http://test.ProfileImageUrl.com/img.png")
.introduction("Test Introduction")
.isAgreeWithEventInfo(true)
.tagList(Arrays.asList("JAVA", "Python", "JavaScript"))
.educationalHistory("대학생")
.realName("홍길동")
Expand Down Expand Up @@ -136,6 +137,7 @@ void juniorSignup() throws Exception {
tableRow("deviceToken", "String", "디바이스 토큰"),
tableRow("profileImageUrl", "String", "프로필 이미지 URL"),
tableRow("introduction", "String", "나의 한줄 소개, 최대 500자, 클라이언트에서 trim()처리하여 보낸다"),
tableRow("agreeWithEventInfo", "boolean", "이벤트, 광고성 정보 안내 수신 여부"),
tableRow("tagList", "List<String>", "태그 리스트, 텍스트의 리스트로 전달한다. 1개 이상이어야 한다. 선택가능한 태그 외의 문자열이 전달될 경우 400에러 반환"),
tableRow("educationalHistory", "String", "학력"),
tableRow("realName", "String", "실명")
Expand All @@ -161,6 +163,7 @@ void juniorSignup() throws Exception {
fieldWithPath("nickName").type(JsonFieldType.STRING).description("닉네임"),
fieldWithPath("deviceToken").type(JsonFieldType.STRING).description("디바이스 토큰"),
fieldWithPath("profileImageUrl").type(JsonFieldType.STRING).description("프로필 이미지 URL"),
fieldWithPath("agreeWithEventInfo").type(JsonFieldType.BOOLEAN).description("이벤트, 광고성 정보 안내 수신 여부"),
fieldWithPath("introduction").type(JsonFieldType.STRING).description("나의 한줄 소개"),
fieldWithPath("tagList").type(JsonFieldType.ARRAY).description("태그 리스트"),
fieldWithPath("educationalHistory").type(JsonFieldType.STRING).description("학력"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public void setUp(@Autowired WebApplicationContext webApplicationContext, RestDo
.deviceToken("Test_DeviceToken")
.profileImageUrl("http://test.ProfileImageUrl.com/img.png")
.introduction("Test Introduction")
.isAgreeWithEventInfo(true)
.tagList(Arrays.asList("JAVA", "Python", "JavaScript"))
.companyInfo("(주)TestCompany")
.careerPeriod(36)
Expand Down Expand Up @@ -140,6 +141,7 @@ void seniorSignup() throws Exception {
tableRow("deviceToken", "String", "디바이스 토큰"),
tableRow("profileImageUrl", "String", "프로필 이미지 URL"),
tableRow("introduction", "String", "나의 한줄 소개, 최대 500자, 클라이언트에서 trim()처리하여 보낸다"),
tableRow("agreeWithEventInfo", "boolean", "이벤트, 광고성 정보 안내 수신 여부"),
tableRow("tagList", "List<String>", "태그 리스트, 텍스트의 리스트로 전달한다. 1개 이상이어야 한다. 선택가능한 태그 외의 문자열이 전달될 경우 400에러 반환"),
tableRow("companyInfo", "String", "회사 정보, 법인명에 해당하는 이름"),
tableRow("careerPeriod", "Integer", "경력 기간, 개월 단위로 입력, 1 이상의 정수, 12개월 이상이어야 한다."),
Expand Down Expand Up @@ -176,6 +178,7 @@ void seniorSignup() throws Exception {
fieldWithPath("nickName").type(JsonFieldType.STRING).description("닉네임"),
fieldWithPath("deviceToken").type(JsonFieldType.STRING).description("디바이스 토큰"),
fieldWithPath("profileImageUrl").type(JsonFieldType.STRING).description("프로필 이미지 URL"),
fieldWithPath("agreeWithEventInfo").type(JsonFieldType.BOOLEAN).description("이벤트, 광고성 정보 안내 수신 여부"),
fieldWithPath("introduction").type(JsonFieldType.STRING).description("자기소개"),
fieldWithPath("tagList").type(JsonFieldType.ARRAY).description("태그 리스트"),
fieldWithPath("companyInfo").type(JsonFieldType.STRING).description("회사 정보"),
Expand Down

0 comments on commit d32f1a6

Please sign in to comment.