Skip to content

Commit

Permalink
Merge pull request #284 from School-of-Company/feature/#283_delete_pa…
Browse files Browse the repository at this point in the history
…tch_lecture

🔀 :: (#283) Delete Feature Patch Lecture
  • Loading branch information
Chaejongin12 authored Aug 29, 2024
2 parents 48a29ff + e0e78bb commit 22ce988
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import java.util.UUID
interface LectureRepository {
fun getLectureList(page: Int, size: Int, type: String?): Flow<LectureListEntity>
fun getDetailLecture(id: UUID): Flow<DetailLectureEntity>
// fun patchLecture(id: UUID, body: OpenLectureParam): Flow<Unit>
fun lectureApplication(id: UUID): Flow<Unit>
fun lectureApplicationCancel(id: UUID): Flow<Unit>
fun getLectureSignUpHistory(studentId: UUID): Flow<GetLectureSignUpHistoryEntity>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package com.msg.data.repository.lecture

import com.msg.data.mapper.lecture.toEntity
// import com.msg.data.mapper.lecture.toRequest
import com.msg.model.entity.lecture.DetailLectureEntity
import com.msg.model.entity.lecture.DownloadExcelFileEntity
import com.msg.model.entity.lecture.GetLectureSignUpHistoryEntity
import com.msg.model.entity.lecture.GetTakingLectureStudentListEntity
import com.msg.model.entity.lecture.LectureListEntity
// import com.msg.model.param.lecture.OpenLectureParam
import com.msg.network.datasource.lecture.LectureDataSource
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.transform
Expand Down Expand Up @@ -39,13 +37,6 @@ class LectureRepositoryImpl @Inject constructor(
}
}

// override fun patchLecture(id: UUID, body: OpenLectureParam): Flow<Unit> {
// return lectureDataSource.patchLecture(
// id = id,
// body = body.toRequest()
// )
// }

override fun lectureApplication(id: UUID): Flow<Unit> {
return lectureDataSource.lectureApplication(
id = id
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
package com.msg.network.datasource.lecture

import com.msg.network.response.lecture.*
// import com.msg.network.request.lecture.OpenLectureRequest
import kotlinx.coroutines.flow.Flow
import java.util.UUID

interface LectureDataSource {
fun getLectureList(page: Int, size: Int, type: String?): Flow<LectureListResponse>
fun getDetailLecture(id: UUID): Flow<DetailLectureResponse>
// fun patchLecture(id: UUID, body: OpenLectureRequest): Flow<Unit>
fun lectureApplication(id: UUID): Flow<Unit>
fun lectureApplicationCancel(id: UUID): Flow<Unit>
fun getLectureSignUpHistory(studentId: UUID): Flow<GetLectureSignUpHistoryResponse>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.msg.network.datasource.lecture

import com.msg.network.response.lecture.*
import com.msg.network.api.LectureAPI
// import com.msg.network.request.lecture.OpenLectureRequest
import com.msg.network.util.makeRequest
import kotlinx.coroutines.flow.Flow
import java.util.UUID
Expand All @@ -17,9 +16,6 @@ class LectureDataSourceImpl @Inject constructor(
override fun getDetailLecture(id: UUID): Flow<DetailLectureResponse> =
makeRequest { lectureAPI.getDetailLecture(id) }

// override fun patchLecture(id: UUID, body: OpenLectureRequest): Flow<Unit> =
// makeRequest { lectureAPI.patchLecture(id = id, body = body) }

override fun lectureApplication(id: UUID): Flow<Unit> =
makeRequest { lectureAPI.lectureApplication(id) }

Expand Down

0 comments on commit 22ce988

Please sign in to comment.