From 4caf1762369197c961604f9a4bec72604b155597 Mon Sep 17 00:00:00 2001 From: 0se0 <030ggong@gmail.com> Date: Wed, 6 Nov 2024 23:03:12 +0900 Subject: [PATCH] Feature #247: post menu domain --- .../storedetail/entity/StoreDetailMenuAddRequestEntity.kt | 6 ++++++ .../domain/storedetail/repository/StoreDetailRepository.kt | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 domain/storedetail/src/main/java/com/hankki/domain/storedetail/entity/StoreDetailMenuAddRequestEntity.kt diff --git a/domain/storedetail/src/main/java/com/hankki/domain/storedetail/entity/StoreDetailMenuAddRequestEntity.kt b/domain/storedetail/src/main/java/com/hankki/domain/storedetail/entity/StoreDetailMenuAddRequestEntity.kt new file mode 100644 index 00000000..a94f7a0c --- /dev/null +++ b/domain/storedetail/src/main/java/com/hankki/domain/storedetail/entity/StoreDetailMenuAddRequestEntity.kt @@ -0,0 +1,6 @@ +package com.hankki.domain.storedetail.entity + +data class StoreDetailMenuAddRequestEntity( + val name: String, + val price: Int +) \ No newline at end of file diff --git a/domain/storedetail/src/main/java/com/hankki/domain/storedetail/repository/StoreDetailRepository.kt b/domain/storedetail/src/main/java/com/hankki/domain/storedetail/repository/StoreDetailRepository.kt index d77e8795..fa1e0070 100644 --- a/domain/storedetail/src/main/java/com/hankki/domain/storedetail/repository/StoreDetailRepository.kt +++ b/domain/storedetail/src/main/java/com/hankki/domain/storedetail/repository/StoreDetailRepository.kt @@ -3,6 +3,7 @@ package com.hankki.domain.storedetail.repository import com.hankki.domain.storedetail.entity.JogboResponseEntity import com.hankki.domain.storedetail.entity.MenuUpdateRequestEntity import com.hankki.domain.storedetail.entity.StoreDetailHeartsResponseEntity +import com.hankki.domain.storedetail.entity.StoreDetailMenuAddRequestEntity import com.hankki.domain.storedetail.entity.StoreDetailNicknameEntity import com.hankki.domain.storedetail.entity.StoreDetailResponseEntity @@ -29,5 +30,10 @@ interface StoreDetailRepository { suspend fun putUpdateMenu(storeId: Long, menuId: Long, request: MenuUpdateRequestEntity): Result + suspend fun postMenus( + storeId: Long, + menus: List + ): Result + suspend fun deleteMenuItem(storeId: Long, menuId: Long): Result }