Skip to content

Commit

Permalink
Feature #247: post menu domain
Browse files Browse the repository at this point in the history
  • Loading branch information
0se0 committed Nov 6, 2024
1 parent 4140b38 commit 4caf176
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.hankki.domain.storedetail.entity

data class StoreDetailMenuAddRequestEntity(
val name: String,
val price: Int
)
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -29,5 +30,10 @@ interface StoreDetailRepository {

suspend fun putUpdateMenu(storeId: Long, menuId: Long, request: MenuUpdateRequestEntity): Result<Unit>

suspend fun postMenus(
storeId: Long,
menus: List<StoreDetailMenuAddRequestEntity>
): Result<Unit>

suspend fun deleteMenuItem(storeId: Long, menuId: Long): Result<Unit>
}

0 comments on commit 4caf176

Please sign in to comment.