Skip to content

Commit

Permalink
fix: customer related errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeongh00 committed Aug 4, 2024
1 parent bbaff36 commit 7df5566
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
import com.likelion.coremodule.user.domain.User;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@RequiredArgsConstructor
@Transactional
public class CustomerSaveUseCase {

private final VisitListQueryService visitListQueryService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public ApplicationResponse<List<TotalOrder>> getTotalOrder(
}

// 접수하는 API (정후)
@PostMapping("/{storeId}/{orderId}")
@PostMapping("/{storeId}/{orderId}/preparing")
@ApiResponses(
value = {
@ApiResponse(
Expand All @@ -66,24 +66,24 @@ public ApplicationResponse<String> changeToPreparing(
}

// 준비 완료 시키는 API (정후)
@PostMapping("/{storeId}/{orderId}")
@PostMapping("/{storeId}/{orderId}/prepared")
@ApiResponses(
value = {
@ApiResponse(
responseCode = "200",
description = "주문 접숙하기",
description = "주문 준비 완료",
useReturnTypeSchema = true
)
}
)
@Operation(summary = "주문 접수 API", description = "주문 접수 API 입니다.")
@Operation(summary = "주문 준비 완료 API", description = "주문 준비 완료 API 입니다.")
public ApplicationResponse<String> changeToPrepared(
@PathVariable Long storeId,
@PathVariable Long orderId
) {

customerSaveUseCase.changeToPrepared(storeId, orderId);
return ApplicationResponse.ok("주문을 접수했습니다.");
return ApplicationResponse.ok("주문을 준비 완료했습니다.");
}

// 메뉴 추가 API (소연)
Expand Down

0 comments on commit 7df5566

Please sign in to comment.