Skip to content

Commit

Permalink
♻️ :: GetLectureListUseCase invoke 함수 QueryString 인자값 추가
Browse files Browse the repository at this point in the history
:: GetLectureListUseCase invoke 함수 QueryString 인자값 추가
  • Loading branch information
Chaejongin12 committed Dec 6, 2023
1 parent ce5ce7b commit cd5c5b4
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package com.msg.domain.lecture

import com.msg.data.repository.lecture.LectureRepository
import com.msg.model.remote.enumdatatype.ApproveStatus
import com.msg.model.remote.enumdatatype.LectureType
import javax.inject.Inject

class GetLectureListUseCase @Inject constructor(
private val lectureRepository: LectureRepository
) {
suspend operator fun invoke() = runCatching {
lectureRepository.getLectureList()
suspend operator fun invoke(page: Int, size: Int, status: ApproveStatus, type: LectureType) = runCatching {
lectureRepository.getLectureList(page = page, size = size, status = status, type = type)
}
}

0 comments on commit cd5c5b4

Please sign in to comment.