-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#91 약 관심 추가/목록/삭제/확인 로직 데이터 영역 부분 작업 완
- Loading branch information
Showing
3 changed files
with
53 additions
and
12 deletions.
There are no files selected for viewing
12 changes: 11 additions & 1 deletion
12
...m/android/mediproject/core/data/remote/interestedmedicine/InterestedMedicineRepository.kt
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 |
---|---|---|
@@ -1,9 +1,19 @@ | ||
package com.android.mediproject.core.data.remote.interestedmedicine | ||
|
||
|
||
import com.android.mediproject.core.model.medicine.InterestedMedicine.AddInterestedMedicineResponse | ||
import com.android.mediproject.core.model.medicine.InterestedMedicine.DeleteInterestedMedicineResponse | ||
import com.android.mediproject.core.model.medicine.InterestedMedicine.InterestedMedicineListResponse | ||
import com.android.mediproject.core.model.medicine.InterestedMedicine.IsInterestedMedicineResponse | ||
import com.android.mediproject.core.model.requestparameters.AddInterestedMedicineParameter | ||
import kotlinx.coroutines.flow.Flow | ||
|
||
interface InterestedMedicineRepository { | ||
suspend fun getInterestedMedicineList() : Flow<Result<List<InterestedMedicineListResponse.Medicine>>> | ||
suspend fun getInterestedMedicineList(): Flow<Result<List<InterestedMedicineListResponse.Medicine>>> | ||
|
||
fun addInterestedMedicine(addInterestedMedicineParameter: AddInterestedMedicineParameter): Flow<Result<AddInterestedMedicineResponse>> | ||
|
||
fun deleteInterestedMedicine(medicineId: Long): Flow<Result<DeleteInterestedMedicineResponse>> | ||
|
||
fun isInterestedMedicine(itemSeq: Long): Flow<Result<IsInterestedMedicineResponse>> | ||
} |
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