-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Null 295 api docs refactor and pagination (#28)
* refactor: controller변경 * refactor: api doc 변경 * feat: dto 생성 및 수정 * chore: 디렉토리명 변경 * refactor: 서비스 코드 수정1 * chore: model 생성 및 수정 * chore: inner dto 수정 * refactor: 메모 추가, 태그 추가 리팩터링 * refactor: 단일/복수 메모 추가 및 리팩터링 * chore: tag추가 차단 * chore: AI 명칭 변경 * chore: 오류 수정 * refactor: 메모 검색, 업데이트 수정 * chore: 오류 해결 * chore: ai 서버 오류 해결 * refactor: ai 엔드포인트 변경 반영 * chore: 메모에 태그 추가 기능 삭제 * chore: 메모에 연결된 태그 찾는 메소드 추가 * chore: 줄넘김 제거 * chore: 폴더명 변경 * feat: 페이지네이션 구현 * fix: 루트 태그 api제거 * chore: 사용안하는 import문, class 삭제 * fix: ai api 수정 * chore: 임시 유저 아이디 추가 * feat: 회원가입시 루트태그 생성 기능 추가 * refactor: id를 UUID형식으로 변경 * refactor: builder형식 대신 생성자 사용 * chore: UUID 변경 전체 적용 * chore: ai code review 환경값 수정 * fix: 피드백 반영1 * fix: 메모 추가 오류 수정 * Origin/null 311 divide user db (#29) * feat: 토큰에 유저id 추가 * feat: controller에 userId 매개변수 추가 * feat: user별로 데이터 접근 분리 * fix: ai코드리뷰 제한 * fix: ai 코드리뷰 수정 * fix: ai 코드리뷰 수정2 * fix: ai 코드리뷰 수정3 * fix: ai 코드리뷰 수정4 * fix: ai코드리뷰 reopen시에만 적용 * fix: 메모 추가 오류 수정 * refactor: api doc 수정 * chore: 클래스명 변경 * chore: user api 수정 * fix: 오류 해결
- Loading branch information
1 parent
efebb4c
commit ba5f8c7
Showing
87 changed files
with
1,536 additions
and
1,174 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
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
34 changes: 34 additions & 0 deletions
34
src/main/java/com/example/oatnote/event/listener/CreateRootTagListener.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,34 @@ | ||
package com.example.oatnote.event.listener; | ||
|
||
import java.util.ArrayList; | ||
|
||
import org.springframework.context.event.EventListener; | ||
import org.springframework.stereotype.Component; | ||
|
||
import com.example.oatnote.event.model.UserRegisteredEvent; | ||
import com.example.oatnote.memoTag.service.tag.TagService; | ||
import com.example.oatnote.memoTag.service.tag.model.Tag; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
|
||
@Component | ||
@RequiredArgsConstructor | ||
public class CreateRootTagListener { | ||
|
||
private final TagService tagService; | ||
|
||
@EventListener | ||
public void handleUserRegisteredEvent(UserRegisteredEvent event) { | ||
createDummyTagsForNewUser(event.userId()); | ||
} | ||
|
||
private void createDummyTagsForNewUser(String userId) { | ||
Tag rootTag = new Tag( | ||
userId, | ||
"@", | ||
userId, | ||
new ArrayList<>() | ||
); | ||
tagService.saveTag(rootTag); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/example/oatnote/event/model/UserRegisteredEvent.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,7 @@ | ||
package com.example.oatnote.event.model; | ||
|
||
public record UserRegisteredEvent( | ||
String userId | ||
) { | ||
|
||
} |
138 changes: 0 additions & 138 deletions
138
src/main/java/com/example/oatnote/memo/MemoTagController.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.