Skip to content

Commit

Permalink
v1.2.1 (#591)
Browse files Browse the repository at this point in the history
* 알림 기능 추가(#483)

* [feat] FCM 연결 로직 추가(#483)

* [feat] Alarm 테이블 및 Update API 추가

* [feat] Mypage 조회시 알림 정보 추가

* [feat] Alarm Update API에 Validation 추가

* [feat] Alarm API RestDoc 문서에 추가

* 기존 유저 Alarm 정보 추가 기능 설정 (#526)

* 일반 로그인 로직 제거 (#525)

* [chore] metricsConfig 삭제(#507) (#529)

* [refactor] 감정어 통계 로직 변경 (#531)

* [refactor] 감정어 통계 로직 오타 수정(#532) (#533)

* [fix] setAllowCredentials false 설정 (#535)

* 회원가입/로그인 분산락 적용 (#537)

* [feat] 회원가입/로그인에 Lettuce 분산락 적용

* [feat] 인증 트랜잭션 범위 축소 - 프록시 내부 호출 관련 작업

* [refactor] AuthService 에서 @transactional 제거

* [refactor] 락 획득을 위한 @lockname 설정 파라미터 변경 (#539)

- 이메일 기반 락 생성

* [Search] 검색 기능 수정 (#541)

* [refactor] 검색 기능 수정

* [refactor] 일기 content,회고 answer 조건에 맞게 파싱

* [refactor] 검색시 Diary response 간략화

* [Search] 검색 문장 파싱시 '... ' 추가

* [feat] 후원자 인증 기능 (#545)

* [feat] 엔티티 생성(#540)

* [feat] 후원자 기능 구현(#540)

* [feat] 예외처리(#540)

* [feat] 검색 response에 type 추가 (#547)

* [refactor] LogRepository save 메서드에서 REQUIRES_NEW 제거 (#549)

* [Docs] 검색 API 문서 수정 (#552)

* [docs] 검색 API 문서 수정

* 후원자 등록시 Redis 분산락으로 동시성 처리 (#553)

* [feat] Lock name에 method name 추가

* [feat] 후원자 등록시 분산락으로 동시성 처리

* [feat] 후원자 인증 기능 문서 작성(#555)

* [Search] 사용자 식별값 추가 (#557)

* [feat] 일기, 회고 조회시 사용자 식별값 추가

* [refactor] 검색 관련 문자열 파싱 수정

* [refactor] 검색 관련 문자열 파싱 - 문장 잘림 수정 (#559)

* [refactor] 감정어 로직 변경(#562)

* [refactor] 감정어 정렬 고정(#564)

* [refactor] 반복문 수정(#566)

* [refactor] @transactional 제거(#567)

* [refactor] 감정어 반복해서 나오는 문제 해결 (#568)

* [refactor] @transactional 제거(#563)

* [refactor] 감정어 반복해서 나오는 문제 수정(#563)

* [refactor] 조건문 추가(#569)

* [refactor] 검색시 회고 질문 번호 순서 기준으로 변경 (#571)

* [refactor] 회고 조회 API (#573)

* [refactor] 회고 주차 추가(#574)

* [feat] 회고 답변 예외처리 (#575)

* [refactor] 회고 주차 추가(#572)

* [feat] 회고 답변 예외처리

* 검색 API 분리 (#577)

* [feat] 검색 API 분리

* [test] 검색 TC 수정

* 서비스 사용일수 로직 수정 (#579)

* 지표 추출 후 엑셀 다운로드 기능 (#581)

* [feat] dau 지표 엑셀 추출(#580)

* [feat] wau 지표 엑셀 추출(#580)

* [feat] 일간 가입자 수엑셀 추출(#580)

* [feat] 유저별 회고 진행한 횟수 엑셀 추출(#580)

* [refactor] 회고 조회 API 통합과 관련된 로직들 수정 (#582)

* [refactor] 회고탭 API 응답에 retrospectId 추가

* [refactor] 일반 회고 조회, 검색 시 회고 조회 API 통합

* [refactor] 회고수정, 삭제 API 수정

* [refactor] 문서 변경, 관련 수정할 지점 수정

* [refactor] readOnly True 제거

* 회고 조회 ver2 (#584)

* [refactor] 하위 호환성을 위해 V2 패키지 생성, 통합 API 해당 패키지로 이동

* [feat] retrospect v2 API 문서 작성(#583)

* [refactor] 기존 코드로 롤백(#583)

* [refactor] 테스트 코드 기존 코드로 롤백(#583)

* [refactor] API 문서 반영(#583)

* [refactor] ReadOnly 제거(#583)

* 후원자 기능 로직 추가 (#587)

* [feat] 후원자 여부 필드 추가

* [test] 테스트 코드 반영(#586)

* [teat] API 문서 반영(#586)

* [feat] 마이페이지 유저 정보에 후원물품 필드 추가, API 문서 반영(#586)

* 감정어 개수 제한 수정 (#589)

3개 고정 -> 1 ~ 3개

---------

Co-authored-by: imdh <[email protected]>
  • Loading branch information
isprogrammingfun and jjddhh authored Feb 2, 2024
1 parent 64aa853 commit cf13a0b
Show file tree
Hide file tree
Showing 18 changed files with 132 additions and 48 deletions.
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

0 comments on commit cf13a0b

Please sign in to comment.