-
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.
♻️#294: 마이페이지 UseCase 리펙토링 및 기존 UseCase 네이밍 및 파일구조 정리
- Loading branch information
Showing
46 changed files
with
381 additions
and
70 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
24 changes: 24 additions & 0 deletions
24
...tDrop/StreetDrop/Domain/UseCase/FetchingMyDropList/DefaultFetchingMyDropListUseCase.swift
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,24 @@ | ||
// | ||
// DefaultFetchingMyDropListUseCase.swift | ||
// StreetDrop | ||
// | ||
// Created by thoonk on 7/16/24. | ||
// | ||
|
||
import Foundation | ||
|
||
import RxSwift | ||
|
||
final class DefaultFetchingMyDropListUseCase { | ||
private let repository: MyPageRepository | ||
|
||
init(repository: MyPageRepository = DefaultMyPageRepository()) { | ||
self.repository = repository | ||
} | ||
} | ||
|
||
extension DefaultFetchingMyDropListUseCase: FetchingMyDropListUseCase { | ||
func fetchMyDropList() -> Single<TotalMyMusics> { | ||
return repository.fetchMyDropList() | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
StreetDrop/StreetDrop/Domain/UseCase/FetchingMyDropList/FetchingMyDropListUseCase.swift
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,14 @@ | ||
// | ||
// FetchingMyDropListUseCase.swift | ||
// StreetDrop | ||
// | ||
// Created by thoonk on 7/16/24. | ||
// | ||
|
||
import Foundation | ||
|
||
import RxSwift | ||
|
||
protocol FetchingMyDropListUseCase { | ||
func fetchMyDropList() -> Single<TotalMyMusics> | ||
} |
File renamed without changes.
File renamed without changes.
28 changes: 28 additions & 0 deletions
28
StreetDrop/StreetDrop/Domain/UseCase/FetchingMyLevel/DefaultFetchingMyLevelUseCase.swift
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,28 @@ | ||
// | ||
// DefaultFetchingMyLevelUseCase.swift | ||
// StreetDrop | ||
// | ||
// Created by thoonk on 7/16/24. | ||
// | ||
|
||
import Foundation | ||
|
||
import RxSwift | ||
|
||
final class DefaultFetchingMyLevelUseCase { | ||
private let repository: MyPageRepository | ||
|
||
init(repository: MyPageRepository = DefaultMyPageRepository()) { | ||
self.repository = repository | ||
} | ||
} | ||
|
||
extension DefaultFetchingMyLevelUseCase: FetchingMyLevelUseCase { | ||
func fetchMyLevel() -> Single<MyLevel> { | ||
return repository.fetchMyLevel() | ||
} | ||
|
||
func fetchMyLevelProgress() -> Single<MyLevelProgress> { | ||
return repository.fetchMyLevelProgress() | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
StreetDrop/StreetDrop/Domain/UseCase/FetchingMyLevel/FetchingMyLevelUseCase.swift
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,15 @@ | ||
// | ||
// FetchingMyLevelUseCase.swift | ||
// StreetDrop | ||
// | ||
// Created by thoonk on 7/16/24. | ||
// | ||
|
||
import Foundation | ||
|
||
import RxSwift | ||
|
||
protocol FetchingMyLevelUseCase { | ||
func fetchMyLevel() -> Single<MyLevel> | ||
func fetchMyLevelProgress() -> Single<MyLevelProgress> | ||
} |
24 changes: 24 additions & 0 deletions
24
...tDrop/StreetDrop/Domain/UseCase/FetchingMyLikeList/DefaultFetchingMyLikeListUseCase.swift
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,24 @@ | ||
// | ||
// DefaultFetchingMyLikeListUseCase.swift | ||
// StreetDrop | ||
// | ||
// Created by thoonk on 7/16/24. | ||
// | ||
|
||
import Foundation | ||
|
||
import RxSwift | ||
|
||
final class DefaultFetchingMyLikeListUseCase { | ||
private let repository: MyPageRepository | ||
|
||
init(repository: MyPageRepository = DefaultMyPageRepository()) { | ||
self.repository = repository | ||
} | ||
} | ||
|
||
extension DefaultFetchingMyLikeListUseCase: FetchingMyLikeListUseCase { | ||
func fetchMyLikeList() -> Single<TotalMyMusics> { | ||
return repository.fetchMyLikeList() | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
StreetDrop/StreetDrop/Domain/UseCase/FetchingMyLikeList/FetchingMyLikeListUseCase.swift
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,14 @@ | ||
// | ||
// FetchingMyLikeListUseCase.swift | ||
// StreetDrop | ||
// | ||
// Created by thoonk on 7/16/24. | ||
// | ||
|
||
import Foundation | ||
|
||
import RxSwift | ||
|
||
protocol FetchingMyLikeListUseCase { | ||
func fetchMyLikeList() -> Single<TotalMyMusics> | ||
} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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