MenuRemoteRepository

메뉴 정보를 관리하는 Repository

Functions

Link copied to clipboard
@DELETE(value = "/store/{storeId}/menu/{menuId}")
abstract fun deleteMenu(@Path(value = "storeId") storeId: Long, @Path(value = "menuId") menuId: Long, @Header(value = "Authorization") token: String = UserLocalRepository.token!!): Call<Unit>

메뉴 삭제

Link copied to clipboard
@GET(value = "/store/{storeId}/menu")
abstract fun getMenuList(@Path(value = "storeId") storeId: Long): Call<MutableList<MenuResponseDto>>

특정 가게 메뉴 목록 조회

Link copied to clipboard
@PATCH(value = "/store/{storeId}/menu/{menuId}")
abstract fun modifyMenu(@Path(value = "storeId") storeId: Long, @Path(value = "menuId") menuId: Long, @Body menuRequestDto: MenuRequestDto, @Header(value = "Authorization") token: String = UserLocalRepository.token!!): Call<MenuResponseDto>

메뉴 수정

Link copied to clipboard
@POST(value = "/store/{storeId}/menu")
abstract fun registerMenu(@Path(value = "storeId") storeId: Long, @Body menuRequestDto: MenuRequestDto, @Header(value = "Authorization") token: String = UserLocalRepository.token!!): Call<MenuResponseDto>

메뉴 등록