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

[Week6] 6주차 필수 과제 #14

Open
wants to merge 26 commits into
base: develop
Choose a base branch
from
Open

[Week6] 6주차 필수 과제 #14

wants to merge 26 commits into from

Conversation

hyeeum
Copy link
Contributor

@hyeeum hyeeum commented Dec 6, 2024

Related issue 🛠

Work Description ✏️

  • 레이어 분리
  • 유즈케이스 적용

Screenshot 📸

  • 이전화면과 동일합니다 :)

Uncompleted Tasks 😅

  • 유저의 정보(User)를 datastore 이용하기
  • Log -> Timber

To Reviewers 📢

기존의 service datasource repository 를 하나로 통합해서 사용했는데 이번 주차에서는 각각 분리해보았습니다 :)
뭐했다고 벌써 6주차 과제 마감일일까요
뭐했다고 벌써 다음 세미나가 7주차 세미나일까요...
후엥

@hyeeum hyeeum self-assigned this Dec 6, 2024
Copy link

@HAJIEUN02 HAJIEUN02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

유즈케이스도 쓰고 멋찌다!! 혜음멋있다!!

Copy link
Contributor

@1971123-seongmin 1971123-seongmin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UseCase 적용하시느라 정말 고생많으셨어요 ^^

import org.sopt.and.data.datasource.AuthDataSource
import org.sopt.and.data.datasource.MyDataSource
import org.sopt.and.data.datasourceimpl.AuthDataSourceImpl
import org.sopt.and.data.datasourceimpl.MyDataSourceImpl
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
internal abstract class DataSourceModule {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여기에 internal을 붙이시는 이유가 따로 있나요??

Copy link

@kamja0510 kamja0510 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

애초에 clean architecture 잘해놓으셔서 큰 변화가 없으시네요
이번 과제하는데 코드 도움 많이 받았습니다!

import org.sopt.and.data.dto.response.ResponseSignInDto
import org.sopt.and.data.dto.response.ResponseSignUpDto

interface WavveDataSource {
interface AuthDataSource {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

datasource를 이렇게 유형별로 나누는게 좋은 방법이군요!

import javax.inject.Inject

@HiltViewModel
class MyViewModel @Inject constructor(
private val wavveRepository: WavveRepository
private val getHobbyUseCase : MyUseCase

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

viewmodel이 repository 의존성을 가지는것과 usecase를 가지는 것과 어떻게 다른가요??

Copy link
Contributor

@jihyunniiii jihyunniiii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다 ~

@@ -1,4 +1,4 @@
package org.sopt.and.component
package org.sopt.and.core.component
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

core 패키지에는 보통 어떤 친구들을 넣어놓으시는지 궁금해요!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] 6주차 필수 과제
6 participants