-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
55 additions
and
22 deletions.
There are no files selected for viewing
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
40 changes: 40 additions & 0 deletions
40
src/main/java/lion6/DrinkGuide/api/purchase/controller/PurchaseRecordController.java
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package lion6.DrinkGuide.api.purchase.controller; | ||
|
||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import lion6.DrinkGuide.api.purchase.domain.PurchaseRecord; | ||
import lion6.DrinkGuide.api.purchase.service.PurchaseRecordCommandService; | ||
import lion6.DrinkGuide.common.response.ApiResponse; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.RequestBody; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import java.security.Principal; | ||
|
||
@RestController | ||
@RequestMapping("/api/v1/records") | ||
@RequiredArgsConstructor | ||
@Tag(name="구매 데이터 수집 컨트롤러",description = "스캔 기능을 통해 구매한 상품을 기록하고 관리하는 컨트롤러입니다.") | ||
public class PurchaseRecordController { | ||
private final PurchaseRecordCommandService purchaseRecordCommandService; | ||
/** | ||
* 구매 내역 저장 | ||
*/ | ||
// @PostMapping | ||
// @Operation(summary = "구매 내역 저장", description = "구매한 상품 기록을 저장합니다.") | ||
// public ResponseEntity<ApiResponse<Object>> createPurchaseRecord( | ||
// Principal principal, | ||
// @RequestBody PurchaseRecordCreateRequestDto purchaseRecordCreateRequestDto | ||
// ) { | ||
// | ||
// return ApiResponse.success(); | ||
// } | ||
|
||
|
||
/** | ||
* 구매 내역 조회 | ||
*/ | ||
} |
2 changes: 1 addition & 1 deletion
2
...ide/api/record/domain/PurchaseRecord.java → ...e/api/purchase/domain/PurchaseRecord.java
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
6 changes: 6 additions & 0 deletions
6
src/main/java/lion6/DrinkGuide/api/purchase/dto/request/PurchaseRecordCreateRequestDto.java
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package lion6.DrinkGuide.api.purchase.dto.request; | ||
|
||
public record PurchaseRecordCreateRequestDto( | ||
|
||
) { | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/lion6/DrinkGuide/api/purchase/service/PurchaseRecordCommandService.java
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package lion6.DrinkGuide.api.purchase.service; | ||
|
||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class PurchaseRecordCommandService { | ||
} |
19 changes: 0 additions & 19 deletions
19
src/main/java/lion6/DrinkGuide/api/record/controller/PurchaseRecordController.java
This file was deleted.
Oops, something went wrong.