-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* del: CastPlayService 삭제 * fix: 캐스트 수정 API 반환값 변경 - Cast 엔티티 대신 "수정되었습니다" 문자열 * update: CastService와 CastSearchService 병합 * del: CastSearchService 삭제 * fix: CastController 테스트 메소드 삭제 * fix: Book mark service 수정 * fix: saveCast 이름 수정, 본인 캐스트 검색 안되게 수정, 본인 캐스트 추천 안되게 수정, 캐스트 담아오기 수정 * fix: cast playlist service 수정 * del: stream-test 디렉토리 삭제 * update: FileService와 StreamService 통합 * del: StreamService 삭제 * move: VoiceCode 패키지 변경 - ~/cast/enums 에서 ~/enums로 변경 * fix: subCategory 엔티티 수정, MemberPreferRequestDTO 수정, setMember 수정 * fix: playlist 양방향 매핑 추가, DTO 분리, Tag 설정 * "fix: encoder 수정" * fix: MemberRepository에 @repository 추가 * "fix: 회원가입 비밀번호 길이 수정" * fix: SecurityConfig 허용된 url에 swagger-ui.html 추가 * fix: SecurityConfig 모든 url 일시 허용 -> 배포할 떄 삭제!! * fix: 키워드 받아오기 기능 수정, 플레이리스트 불러오기 이미지 나오게 수정 * fix: MemberService UserService 통합, 기타 기능 추가 * fix: SentenceService::add에서 cast.sentence도 등록하도록 변경 * refact: getObjectApiResponse 메소드명 변경 - handleCastCreation * refact: CastController에서 ApiResponse로 감싸도록 변경 * refact: CastController에서 ApiResponse로 감싸도록 변경 - CastService에서 ApiResponse로 감싸서 반환하던 메소드 -> 전부 DTO만 반환하도록 변경햇어유 * add: TypeMismatchException 핸들러 추가 pathVariable 등을 Long으로 받겠다 해놓고 String을 입력하면 뜨는 에러입니다 이 익센션에 대한 핸들러가 없어서 일반적인 ApiResponse 외의 형식으로 출력되고 있었는데 수정함 * fix: parsing 구분 문구 추가 * cast service 파일 구조 변환 및 중복 코드 제거 * refact: 파일 구조 변환 및 중복 코드 제거 * fix: 플레이리스트 삭제 - 플리 내 캐스트도 삭제되도록 수정 * fix: 파싱 중복 제거 및 글자 수 제한 * fix: 스크립트 입력 받을 떄 strip() 추가 * refact: CastService 구조 개선 * refact: ProfileSetting 리팩토링 * refact: playlist api refact * refact: bookmark refact * fix: tts 문자열 길이 관련 bug fixing * fix: 스트리밍 api 수정 * fix: CastService::save, update에서 Cast 반환하도록 변경 * fix: CastHomeDTO에 imagePath 필드 추가 * "fix: 로그인 수정 중" * "fix: 로그인 수정" * fix: tts 구분자 남기기 * refact: 캐스트 재생 API 쪽 메서드명 변경 - streamCast -> findCast - fetchCast -> findCast --------- Co-authored-by: yuuddin <[email protected]> Co-authored-by: YamYamee <[email protected]> Co-authored-by: KimChaeWon12 <[email protected]> Co-authored-by: younheejae <[email protected]>
- Loading branch information
1 parent
7bdb833
commit 85ac091
Showing
78 changed files
with
1,049 additions
and
1,099 deletions.
There are no files selected for viewing
15 changes: 0 additions & 15 deletions
15
src/main/java/com/umc/owncast/common/config/EncoderConfig.java
This file was deleted.
Oops, something went wrong.
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
20 changes: 11 additions & 9 deletions
20
src/main/java/com/umc/owncast/domain/bookmark/controller/BookmarkController.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 |
---|---|---|
@@ -1,56 +1,58 @@ | ||
package com.umc.owncast.domain.bookmark.controller; | ||
|
||
|
||
import com.umc.owncast.common.response.ApiResponse; | ||
import com.umc.owncast.domain.bookmark.dto.BookMarkDTO; | ||
import com.umc.owncast.domain.bookmark.service.BookMarkServiceImpl; | ||
import com.umc.owncast.domain.bookmark.dto.BookmarkResultDTO; | ||
import com.umc.owncast.domain.bookmark.dto.BookmarkSaveResultDTO; | ||
import com.umc.owncast.domain.bookmark.service.BookmarkService; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import lombok.RequiredArgsConstructor; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.web.bind.annotation.*; | ||
|
||
import java.util.List; | ||
|
||
@Tag(name = "북마크 API", description = "북마크 관련 API입니다") | ||
@Slf4j | ||
@RequiredArgsConstructor | ||
@RequestMapping("/api") | ||
@RestController | ||
public class BookmarkController { | ||
|
||
private final BookMarkServiceImpl bookmarkService; | ||
private final BookmarkService bookmarkService; | ||
|
||
@CrossOrigin | ||
@Operation(summary = "북마크된 문장 불러오기") | ||
@GetMapping("/study/{playlistId}") | ||
public ApiResponse<List<BookMarkDTO.BookMarkResultDTO>> getBookmarks(@PathVariable("playlistId") Long playlistId) { | ||
public ApiResponse<List<BookmarkResultDTO>> getBookmarks(@PathVariable("playlistId") Long playlistId) { | ||
return ApiResponse.onSuccess(bookmarkService.getBookmarks(playlistId)); | ||
} | ||
|
||
@CrossOrigin | ||
@Operation(summary = "내가 저장한 캐스트의 북마크된 문장 불러오기") | ||
@GetMapping("/study/mycast") | ||
public ApiResponse<List<BookMarkDTO.BookMarkResultDTO>> getMyCastBookmarks() { | ||
public ApiResponse<List<BookmarkResultDTO>> getMyCastBookmarks() { | ||
return ApiResponse.onSuccess(bookmarkService.getMyCastBookmarks()); | ||
} | ||
|
||
@CrossOrigin | ||
@Operation(summary = "내가 저장한 남의 캐스트의 북마크된 문장 불러오기") | ||
@GetMapping("/study/savedcast") | ||
public ApiResponse<List<BookMarkDTO.BookMarkResultDTO>> getSavedBookmarks() { | ||
public ApiResponse<List<BookmarkResultDTO>> getSavedBookmarks() { | ||
return ApiResponse.onSuccess(bookmarkService.getSavedBookmarks()); | ||
} | ||
|
||
@CrossOrigin | ||
@Operation(summary = "문장 북마크 하기") | ||
@PostMapping("/bookmark") | ||
public ApiResponse<BookMarkDTO.BookMarkSaveResultDTO> saveBookmark(@RequestParam("sentenceId") Long sentenceId) { | ||
public ApiResponse<BookmarkSaveResultDTO> saveBookmark(@RequestParam("sentenceId") Long sentenceId) { | ||
return ApiResponse.onSuccess(bookmarkService.saveBookmark(sentenceId)); | ||
} | ||
|
||
@CrossOrigin | ||
@Operation(summary = "문장 북마크 취소하기") | ||
@DeleteMapping("/bookmark") | ||
public ApiResponse<BookMarkDTO.BookMarkSaveResultDTO> deleteBookmark(@RequestParam("sentenceId") Long sentenceId) { | ||
public ApiResponse<BookmarkSaveResultDTO> deleteBookmark(@RequestParam("sentenceId") Long sentenceId) { | ||
return ApiResponse.onSuccess(bookmarkService.deleteBookmark(sentenceId)); | ||
} | ||
} |
22 changes: 0 additions & 22 deletions
22
src/main/java/com/umc/owncast/domain/bookmark/dto/BookMarkDTO.java
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
src/main/java/com/umc/owncast/domain/bookmark/dto/BookmarkResultDTO.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,12 @@ | ||
package com.umc.owncast.domain.bookmark.dto; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Builder | ||
@Getter | ||
public class BookmarkResultDTO { | ||
Long castId; | ||
String originalSentence; | ||
String translatedSentence; | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/umc/owncast/domain/bookmark/dto/BookmarkSaveResultDTO.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,10 @@ | ||
package com.umc.owncast.domain.bookmark.dto; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Builder | ||
@Getter | ||
public class BookmarkSaveResultDTO { | ||
Long bookmarkId; | ||
} |
Oops, something went wrong.