Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.2.1 #591

Merged
merged 37 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
6a27735
알림 기능 추가(#483)
jjddhh May 24, 2023
1f4e1dd
기존 유저 Alarm 정보 추가 기능 설정 (#526)
jjddhh May 24, 2023
c8a51a3
일반 로그인 로직 제거 (#525)
jjddhh May 24, 2023
b44f0fb
[chore] metricsConfig 삭제(#507) (#529)
isprogrammingfun May 25, 2023
fdbacc1
[refactor] 감정어 통계 로직 변경 (#531)
isprogrammingfun May 29, 2023
f587711
[refactor] 감정어 통계 로직 오타 수정(#532) (#533)
isprogrammingfun May 29, 2023
f147c77
[fix] setAllowCredentials false 설정 (#535)
jjddhh Jun 4, 2023
d1aa847
회원가입/로그인 분산락 적용 (#537)
jjddhh Jun 17, 2023
b8c25ab
[refactor] 락 획득을 위한 @LockName 설정 파라미터 변경 (#539)
jjddhh Jun 18, 2023
df1e882
[Search] 검색 기능 수정 (#541)
jjddhh Jun 20, 2023
18c0021
[Search] 검색 문장 파싱시 '... ' 추가
jjddhh Jun 21, 2023
6d445ce
[feat] 후원자 인증 기능 (#545)
isprogrammingfun Jun 25, 2023
f5736a0
[feat] 검색 response에 type 추가 (#547)
jjddhh Jun 27, 2023
8dd8549
[refactor] LogRepository save 메서드에서 REQUIRES_NEW 제거 (#549)
jjddhh Jun 27, 2023
8f19eca
[Docs] 검색 API 문서 수정 (#552)
jjddhh Jun 27, 2023
5d98cd7
후원자 등록시 Redis 분산락으로 동시성 처리 (#553)
jjddhh Jun 27, 2023
38f3f53
[feat] 후원자 인증 기능 문서 작성(#555)
isprogrammingfun Jun 27, 2023
33c371e
[Search] 사용자 식별값 추가 (#557)
jjddhh Jun 27, 2023
7a53cd1
[refactor] 검색 관련 문자열 파싱 - 문장 잘림 수정 (#559)
jjddhh Jun 27, 2023
5b79c43
[refactor] 감정어 로직 변경(#562)
isprogrammingfun Jun 27, 2023
358d8ab
[refactor] 감정어 정렬 고정(#564)
isprogrammingfun Jun 27, 2023
cb2fd8e
[refactor] 반복문 수정(#566)
isprogrammingfun Jun 27, 2023
e22ce2e
[refactor] @Transactional 제거(#567)
isprogrammingfun Jun 27, 2023
54c9929
[refactor] 감정어 반복해서 나오는 문제 해결 (#568)
isprogrammingfun Jun 28, 2023
e470108
[refactor] 조건문 추가(#569)
isprogrammingfun Jun 28, 2023
77389a9
[refactor] 검색시 회고 질문 번호 순서 기준으로 변경 (#571)
jjddhh Jun 28, 2023
b916720
[refactor] 회고 조회 API (#573)
isprogrammingfun Jun 29, 2023
378c44e
[refactor] 회고 주차 추가(#574)
isprogrammingfun Jul 4, 2023
6b7eeea
[feat] 회고 답변 예외처리 (#575)
isprogrammingfun Jul 4, 2023
454360e
검색 API 분리 (#577)
jjddhh Jul 9, 2023
4dda078
서비스 사용일수 로직 수정 (#579)
jjddhh Jul 17, 2023
04eee76
지표 추출 후 엑셀 다운로드 기능 (#581)
isprogrammingfun Aug 4, 2023
028f8c7
[refactor] 회고 조회 API 통합과 관련된 로직들 수정 (#582)
isprogrammingfun Aug 13, 2023
d36d858
회고 조회 ver2 (#584)
isprogrammingfun Aug 22, 2023
682c3e1
후원자 기능 로직 추가 (#587)
isprogrammingfun Aug 31, 2023
145e02a
감정어 개수 제한 수정 (#589)
jjddhh Sep 12, 2023
d3954e9
Merge branch 'main' into develop
isprogrammingfun Feb 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,19 @@ public class LoginInfo {

private Boolean onBoardingCompleted;

private Boolean isSponsor;

public LoginInfo(String nickname, Token token) {
this.nickname = nickname;
this.token = token.getToken();
this.refreshToken = token.getRefreshToken();
}

public LoginInfo(String nickname, Token token, Boolean onBoardingCompleted) {
public LoginInfo(String nickname, Token token, Boolean onBoardingCompleted, Boolean isSponsor) {
this.nickname = nickname;
this.token = token.getToken();
this.refreshToken = token.getRefreshToken();
this.onBoardingCompleted = onBoardingCompleted;
this.isSponsor = isSponsor;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public LoginInfo commonAuth(String accessToken, String providerInfo) {
// Redis에 Refresh Token 저장
tokenUtil.storeRefreshToken(authenticatedMember.getSocialId(), token);

return new LoginInfo(authenticatedMember.getNickname(), token, authenticatedMember.getRole().equals(Member.Role.USER));
return new LoginInfo(authenticatedMember.getNickname(), token, authenticatedMember.getRole().equals(Member.Role.USER), authenticatedMember.getGoods() != null);
}

@Counted("auth.api.count")
Expand All @@ -92,7 +92,7 @@ public LoginInfo appleAuth(String identityToken, String providerInfo) {
// Redis에 Refresh Token 저장
tokenUtil.storeRefreshToken(authenticatedMember.getSocialId(), token);

return new LoginInfo(authenticatedMember.getNickname(), token, authenticatedMember.getRole().equals(Member.Role.USER));
return new LoginInfo(authenticatedMember.getNickname(), token, authenticatedMember.getRole().equals(Member.Role.USER), authenticatedMember.getGoods() != null);
}

@Counted("auth.api.count")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class KeywordDto {
private String keyword;

@Valid
@Size(min = 3, max = 3, message ="emotion 의 개수는 3개여야 합니다.")
@Size(min = 1, max = 3, message ="emotion 의 개수는 3개여야 합니다.")
private List<KeywordEmotionDto> keywordEmotions;

public KeywordDto(Keyword keyword) {
Expand All @@ -31,4 +31,4 @@ public KeywordDto(Keyword keyword) {
.map(ke -> new KeywordEmotionDto(ke.getEmotion().getEmotion()))
.collect(Collectors.toList());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import lombok.NoArgsConstructor;

import java.time.DayOfWeek;
import java.util.Optional;

@Builder
@AllArgsConstructor
Expand All @@ -28,6 +29,8 @@ public class RespGetUserDto {

private String retrospectAlarmTime;

private String goods;

public static RespGetUserDto createRespGetUserDto(Member member) {
Alarm alarm = member.getAlarm();
return RespGetUserDto.builder()
Expand All @@ -38,6 +41,7 @@ public static RespGetUserDto createRespGetUserDto(Member member) {
.diaryAlarmTime(alarm.getDiaryTime())
.retrospectAlarmActive(alarm.getRetrospectActive())
.retrospectAlarmTime(alarm.getRetrospectTime())
.goods(member.getGoods() != null ? member.getGoods() : null)
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public class MypageService {
private final FeedbackRepository feedbackRepository;

@Counted("mypage.api.count")
@Transactional(readOnly = true)
public RespGetUserDto getUser(String socialId) {
// socialId 로 유저 조회
Member member = findMember(socialId);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/docs/Alarm-API.html
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ <h4 id="Alarm-회고-알림-변경_response_fields">Response fields</h4>
<div id="footer">
<div id="footer-text">
Version 0.0.1-SNAPSHOT<br>
Last updated 2023-08-22 12:37:52 +0900
Last updated 2023-08-31 17:15:38 +0900
</div>
</div>
</body>
Expand Down
42 changes: 33 additions & 9 deletions src/main/resources/static/docs/Auth-API.html
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ <h4 id="Auth-Naver-소셜-로그인_http_response">HTTP response</h4>
<div class="content">
<pre class="highlight nowrap"><code class="language-http" data-lang="http">HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 272
Content-Length: 297

{
"isSuccess" : true,
Expand All @@ -500,7 +500,8 @@ <h4 id="Auth-Naver-소셜-로그인_http_response">HTTP response</h4>
"nickname" : "유저 닉네임",
"token" : "SERVER_ACCESS_TOKEN",
"refreshToken" : "SERVER_REFRESH_TOKEN",
"onBoardingCompleted" : true
"onBoardingCompleted" : true,
"isSponsor" : true
}
}</code></pre>
</div>
Expand Down Expand Up @@ -557,6 +558,11 @@ <h4 id="Auth-Naver-소셜-로그인_response_fields">Response fields</h4>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Boolean</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">온보딩 여부 확인</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>result.isSponsor</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Boolean</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">후원자 여부 확인 true : 후원자, false : 후원자 아님</p></td>
</tr>
</tbody>
</table>
</div>
Expand Down Expand Up @@ -609,7 +615,7 @@ <h4 id="Auth-Kakao-소셜-로그인_http_response">HTTP response</h4>
<div class="content">
<pre class="highlight nowrap"><code class="language-http" data-lang="http">HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 272
Content-Length: 297

{
"isSuccess" : true,
Expand All @@ -619,7 +625,8 @@ <h4 id="Auth-Kakao-소셜-로그인_http_response">HTTP response</h4>
"nickname" : "유저 닉네임",
"token" : "SERVER_ACCESS_TOKEN",
"refreshToken" : "SERVER_REFRESH_TOKEN",
"onBoardingCompleted" : true
"onBoardingCompleted" : true,
"isSponsor" : true
}
}</code></pre>
</div>
Expand Down Expand Up @@ -676,6 +683,11 @@ <h4 id="Auth-Kakao-소셜-로그인_response_fields">Response fields</h4>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Boolean</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">온보딩 여부 확인</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>result.isSponsor</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Boolean</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">후원자 여부 확인 true : 후원자, false : 후원자 아님</p></td>
</tr>
</tbody>
</table>
</div>
Expand Down Expand Up @@ -728,7 +740,7 @@ <h4 id="Auth-Google-소셜-로그인_http_response">HTTP response</h4>
<div class="content">
<pre class="highlight nowrap"><code class="language-http" data-lang="http">HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 272
Content-Length: 297

{
"isSuccess" : true,
Expand All @@ -738,7 +750,8 @@ <h4 id="Auth-Google-소셜-로그인_http_response">HTTP response</h4>
"nickname" : "유저 닉네임",
"token" : "SERVER_ACCESS_TOKEN",
"refreshToken" : "SERVER_REFRESH_TOKEN",
"onBoardingCompleted" : true
"onBoardingCompleted" : true,
"isSponsor" : true
}
}</code></pre>
</div>
Expand Down Expand Up @@ -795,6 +808,11 @@ <h4 id="Auth-Google-소셜-로그인_response_fields">Response fields</h4>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Boolean</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">온보딩 여부 확인</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>result.isSponsor</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Boolean</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">후원자 여부 확인 true : 후원자, false : 후원자 아님</p></td>
</tr>
</tbody>
</table>
</div>
Expand Down Expand Up @@ -847,7 +865,7 @@ <h4 id="Auth-Apple-소셜-로그인_http_response">HTTP response</h4>
<div class="content">
<pre class="highlight nowrap"><code class="language-http" data-lang="http">HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 272
Content-Length: 297

{
"isSuccess" : true,
Expand All @@ -857,7 +875,8 @@ <h4 id="Auth-Apple-소셜-로그인_http_response">HTTP response</h4>
"nickname" : "유저 닉네임",
"token" : "SERVER_ACCESS_TOKEN",
"refreshToken" : "SERVER_REFRESH_TOKEN",
"onBoardingCompleted" : true
"onBoardingCompleted" : true,
"isSponsor" : true
}
}</code></pre>
</div>
Expand Down Expand Up @@ -914,6 +933,11 @@ <h4 id="Auth-Apple-소셜-로그인_response_fields">Response fields</h4>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Boolean</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">온보딩 여부 확인</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>result.isSponsor</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Boolean</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">후원자 여부 확인 true : 후원자, false : 후원자 아님</p></td>
</tr>
</tbody>
</table>
</div>
Expand Down Expand Up @@ -1029,7 +1053,7 @@ <h4 id="Auth-토큰-재발급_response_fields">Response fields</h4>
<div id="footer">
<div id="footer-text">
Version 0.0.1-SNAPSHOT<br>
Last updated 2023-08-22 12:37:52 +0900
Last updated 2023-08-31 17:15:38 +0900
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/docs/Diary-API.html
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,7 @@ <h4 id="Diary-감정어-조회_response_fields">Response fields</h4>
<div id="footer">
<div id="footer-text">
Version 0.0.1-SNAPSHOT<br>
Last updated 2023-08-22 12:37:52 +0900
Last updated 2023-08-31 17:15:38 +0900
</div>
</div>
</body>
Expand Down
12 changes: 9 additions & 3 deletions src/main/resources/static/docs/MyPage-API.html
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ <h4 id="MyPage-마이페이지-탭_http_response">HTTP response</h4>
<div class="content">
<pre class="highlight nowrap"><code class="language-http" data-lang="http">HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 366
Content-Length: 386

{
"isSuccess" : true,
Expand All @@ -495,7 +495,8 @@ <h4 id="MyPage-마이페이지-탭_http_response">HTTP response</h4>
"diaryAlarmActive" : true,
"diaryAlarmTime" : "20:00",
"retrospectAlarmActive" : true,
"retrospectAlarmTime" : "20:00"
"retrospectAlarmTime" : "20:00",
"goods" : "A"
}
}</code></pre>
</div>
Expand Down Expand Up @@ -567,6 +568,11 @@ <h4 id="MyPage-마이페이지-탭_response_fields">Response fields</h4>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>String</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">회고 알림 시간</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>result.goods</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>String</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">후원 세트 이름</p></td>
</tr>
</tbody>
</table>
</div>
Expand Down Expand Up @@ -1275,7 +1281,7 @@ <h4 id="MyPage-회원탈퇴_response_fields">Response fields</h4>
<div id="footer">
<div id="footer-text">
Version 0.0.1-SNAPSHOT<br>
Last updated 2023-08-22 12:37:52 +0900
Last updated 2023-08-31 17:15:38 +0900
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/docs/OnBoarding-API.html
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ <h4 id="OnBoarding-온보딩-회고일-변경_response_fields">Response fields</
<div id="footer">
<div id="footer-text">
Version 0.0.1-SNAPSHOT<br>
Last updated 2023-08-22 12:37:52 +0900
Last updated 2023-08-31 17:15:38 +0900
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/docs/Overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ <h3 id="Overview-Retrospect-status-codes">Retrospect Status Codes</h3>
<div id="footer">
<div id="footer-text">
Version 0.0.1-SNAPSHOT<br>
Last updated 2023-08-22 12:37:52 +0900
Last updated 2023-08-31 17:15:38 +0900
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/docs/Retrospect-API-V2.html
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ <h4 id="Retrospect-회고-삭제-v2_response_fields">Response fields</h4>
<div id="footer">
<div id="footer-text">
Version 0.0.1-SNAPSHOT<br>
Last updated 2023-08-22 14:33:46 +0900
Last updated 2023-08-31 17:15:38 +0900
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/docs/Retrospect-API.html
Original file line number Diff line number Diff line change
Expand Up @@ -2017,7 +2017,7 @@ <h4 id="Retrospect-회고-삭제_response_fields">Response fields</h4>
<div id="footer">
<div id="footer-text">
Version 0.0.1-SNAPSHOT<br>
Last updated 2023-07-23 20:17:33 +0900
Last updated 2023-08-31 17:15:38 +0900
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/docs/Search-API.html
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ <h4 id="_search_회고_검색_response_fields">Response fields</h4>
<div id="footer">
<div id="footer-text">
Version 0.0.1-SNAPSHOT<br>
Last updated 2023-08-22 12:37:52 +0900
Last updated 2023-08-31 17:15:38 +0900
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/docs/Sponsor-API.html
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ <h4 id="Sponsor-후원자_response_fields">Response fields</h4>
<div id="footer">
<div id="footer-text">
Version 0.0.1-SNAPSHOT<br>
Last updated 2023-08-22 12:37:52 +0900
Last updated 2023-08-31 17:15:38 +0900
</div>
</div>
</body>
Expand Down
Loading
Loading