Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
JuseungL committed Jul 31, 2024
1 parent c7b5d47 commit 3bbf73f
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI/CD with Git Actions & Docker Hub

# 워크플로우 트리거: 브랜치에 대한 push 이벤트 발생 시 실행
# 워크플로우 트리거: 브랜치에 대한 push 이벤트 발생 시 실행.
on:
push:
branches:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.w3c.dom.Text;

@Entity
@Getter
Expand Down
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();
// }


/**
* 구매 내역 조회
*/
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package lion6.DrinkGuide.api.record.domain;
package lion6.DrinkGuide.api.purchase.domain;

import jakarta.persistence.*;
import lion6.DrinkGuide.api.member.domain.Member;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package lion6.DrinkGuide.api.purchase.dto.request;

public record PurchaseRecordCreateRequestDto(

) {
}
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 {
}

This file was deleted.

0 comments on commit 3bbf73f

Please sign in to comment.