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

Issue: 네트워크 통신 #35

Open
55 of 58 tasks
jungseok-corine opened this issue Oct 29, 2024 · 0 comments
Open
55 of 58 tasks

Issue: 네트워크 통신 #35

jungseok-corine opened this issue Oct 29, 2024 · 0 comments

Comments

@jungseok-corine
Copy link
Member

jungseok-corine commented Oct 29, 2024

friend-request

  • 친구 요청 받은 리스트 조회
  • 친구 요청
  • 친구 요청 수락
  • 친구 요청한 리스트 조회
  • 친구 요청 거절
  • 친구 요청 취소

coordinate

  • 사용자 위치 정보 조회
  • 사용자 위치 정보 생성

schedule

  • 일정 상세 조회
  • 일정 수정
  • 일정 생성
  • 일정 초대 수락
  • 월별 일정 조회
  • 일정 리스트 조회
  • 일정 초대 조회
  • 일정 D-Day 조회
  • 해당 날짜 일정 조회
  • 일정 거절
  • 일정 삭제(일정 초대자인 경우)
  • 일정 삭제(일정 생성자인 경우)

member

  • 이름 변경
  • 프로필 사진 변경
  • 회원가입
  • TokenReissue
  • sns 회원가입
  • 비밀번호 재설정
  • 로그아웃
  • 로그인
  • 회원 연동
  • 인증코드 검증
  • 비밀번호 재설정 인증코드
  • 인증 메일 전송
  • 회원 검색
  • 회원 상세 정보
  • 이메일 중복 체크(어떤 로그인 타입인지 포함)
  • 회원 탈퇴

admin

  • 홈 화면 공지사항 사진
  • POST
  • DELETE

feed

  • 피드 수정
  • 피드 생성
  • 피드 삭제
  • 피드 리스트 조회
  • 피드 상세 조회

hide-feed

  • 피드 숨김 조회
  • 피드 숨김
  • 피드 숨김 복원

location

  • 위치 즐겨찾기 조회
  • 위치 즐겨찾기 수정
  • 위치 즐겨찾기 생성
  • 위치 즐겨찾기 삭제

book-mark

  • 피드 책갈피 조회
  • 피드 책갈피 추가
  • 피드 책갈피 복원

friend

  • 친구 즐찾 추가
  • 친구 즐찾 제거
  • 친구 리스트 조회
  • 친구 삭제
jungseok-corine added a commit that referenced this issue Oct 29, 2024
jungseok-corine added a commit that referenced this issue Oct 31, 2024
1. 서버 통신 코드 구현
jungseok-corine added a commit that referenced this issue Oct 31, 2024
feat(#38, #35): 마이페이지/피드 책갈피
jungseok-corine added a commit that referenced this issue Nov 8, 2024
1. postFeed 코드 수정 (멀티파트폼 데이터 형식 수정)
jungseok-corine added a commit that referenced this issue Nov 11, 2024
feat(#35): getScheduleUseCase 추가
jungseok-corine added a commit that referenced this issue Nov 12, 2024
jungseok-corine added a commit that referenced this issue Nov 12, 2024
jungseok-corine added a commit that referenced this issue Nov 16, 2024
feat(#35, #48): member API 수정, 추가 (완료)
jungseok-corine added a commit that referenced this issue Nov 16, 2024
feat(#47, #35): feedRepository, UseCase 구현 완료
jungseok-corine added a commit that referenced this issue Nov 16, 2024
feat(#35, #51): HideFeed 서버통신 구현 완료
jungseok-corine added a commit that referenced this issue Jan 5, 2025
feat(#35): putProfileImage API 성공시 UserDefaultsManager의 profileImageURL값 변경
jungseok-corine added a commit that referenced this issue Jan 13, 2025
feat(#35): postTokenReissue API 구현 feat(#35): deleteMemberAPI 성공시 모든 UserDefaults데이터 삭제 추가
jungseok-corine added a commit that referenced this issue Jan 20, 2025
1. getDailyScheduleUseCase 추가

protocol GetDailyScheduleUseCase {
    func execute(date: String, completion: @escaping (Result<[GetScheduleByDateResponse], Error>) -> Void)
}

class GetDailyScheduleUseCaseImpl: GetDailyScheduleUseCase {
    private let scheduleRepository: ScheduleRepositoryProtocol

    init(scheduleRepository: ScheduleRepositoryProtocol) {
        self.scheduleRepository = scheduleRepository
    }

    func execute(date: String, completion: @escaping (Result<[GetScheduleByDateResponse], Error>) -> Void) {
        scheduleRepository.getDailySchedule(date: date) { result in
            switch result {
            case .success(let response):
                completion(.success(response.data))
            case .failure(let error):
                completion(.failure(error))
            }
        }
    }
}

2. scheduleService, scheduleRepository 수정 ( memberSeq는 scheduleService에서 userDefaultsmanager에서 memberSeq를 불러와서 처리하면 공통된 memberSeq를 불러오는 작업일 경우 여러번 불러올 필요 없어짐)
jungseok-corine added a commit that referenced this issue Jan 20, 2025
1. getDailyScheduleUseCase 추가

protocol GetDailyScheduleUseCase {
    func execute(date: String, completion: @escaping (Result<[GetScheduleByDateResponse], Error>) -> Void)
}

class GetDailyScheduleUseCaseImpl: GetDailyScheduleUseCase {
    private let scheduleRepository: ScheduleRepositoryProtocol

    init(scheduleRepository: ScheduleRepositoryProtocol) {
        self.scheduleRepository = scheduleRepository
    }

    func execute(date: String, completion: @escaping (Result<[GetScheduleByDateResponse], Error>) -> Void) {
        scheduleRepository.getDailySchedule(date: date) { result in
            switch result {
            case .success(let response):
                completion(.success(response.data))
            case .failure(let error):
                completion(.failure(error))
            }
        }
    }
}

2. scheduleService, scheduleRepository 수정 ( memberSeq는 scheduleService에서 userDefaultsmanager에서 memberSeq를 불러와서 처리하면 공통된 memberSeq를 불러오는 작업일 경우 여러번 불러올 필요 없어짐)
jungseok-corine added a commit that referenced this issue Jan 20, 2025
feat(#99, #35): getDailySchedule API 수정
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant