-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from dev-hooon/dev
feat : main 브랜치 merge
- Loading branch information
Showing
163 changed files
with
9,635 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle | ||
|
||
name: CI Backend | ||
|
||
on: | ||
push: | ||
branches: [ "main", "dev" ] | ||
pull_request: | ||
branches: [ "main", "dev" ] | ||
|
||
permissions: | ||
contents: read | ||
checks: write | ||
pull-requests: write | ||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
services: | ||
redis: | ||
image: redis:latest | ||
ports: | ||
- "6379:6379" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
# 자바 버전 설정 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
# 빌드 시 캐시 적용 | ||
- name: Gradle Caching | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
# gradle 권한 부여 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x ./gradlew | ||
shell: bash | ||
|
||
# 빌드 | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
|
||
# 테스트 결과 PR 코멘트에 등록 | ||
- name: Register the test results as PR comments | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
if: always() | ||
with: | ||
files: '**/build/test-results/test/TEST-*.xml' | ||
|
||
# 테스트 실패시 코드 라인에 대한 체크 추가 | ||
- name: If test fail, add check comment on failed code line | ||
uses: mikepenz/action-junit-report@v3 | ||
if: always() | ||
with: | ||
report_paths: '**/build/test-results/test/TEST-*.html' |
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 |
---|---|---|
|
@@ -36,4 +36,5 @@ out/ | |
### VS Code ### | ||
.vscode/ | ||
application.yaml | ||
.DS_Store | ||
.DS_Store | ||
src/main/generated/** |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
[[reservation-create]] | ||
=== 예약 선점 API | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/member-reservation-controller-docs-test/pre-occupy/http-request.adoc[] | ||
include::{snippets}/member-reservation-controller-docs-test/pre-occupy/request-fields.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/member-reservation-controller-docs-test/pre-occupy/http-response.adoc[] | ||
include::{snippets}/member-reservation-controller-docs-test/pre-occupy/response-fields.adoc[] | ||
|
||
=== 가게 예약 API | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/member-reservation-controller-docs-test/register/http-request.adoc[] | ||
include::{snippets}/member-reservation-controller-docs-test/register/request-fields.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/member-reservation-controller-docs-test/register/http-response.adoc[] | ||
include::{snippets}/member-reservation-controller-docs-test/register/response-fields.adoc[] | ||
|
||
=== 예약 전체 조회 API | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/member-reservation-controller-docs-test/get-all/http-request.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/member-reservation-controller-docs-test/get-all/http-response.adoc[] | ||
include::{snippets}/member-reservation-controller-docs-test/get-all/response-fields.adoc[] | ||
|
||
=== 예약 수정 API | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/member-reservation-controller-docs-test/modify/http-request.adoc[] | ||
include::{snippets}/member-reservation-controller-docs-test/modify/request-fields.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/member-reservation-controller-docs-test/modify/http-response.adoc[] | ||
include::{snippets}/member-reservation-controller-docs-test/modify/response-fields.adoc[] | ||
|
||
=== 예약 삭제 API | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/member-reservation-controller-docs-test/cancel/http-request.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/member-reservation-controller-docs-test/cancel/http-response.adoc[] | ||
include::{snippets}/member-reservation-controller-docs-test/cancel/response-fields.adoc[] | ||
|
||
=== 예약 노쇼, 취소 처리 API | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/owner-reservation-controller-docs-test/noshow-and-cancel/http-request.adoc[] | ||
include::{snippets}/owner-reservation-controller-docs-test/noshow-and-cancel/request-fields.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/owner-reservation-controller-docs-test/noshow-and-cancel/http-response.adoc[] | ||
|
||
=== 예약 정보 전체 조회 API | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/owner-reservation-controller-docs-test/get-all-reservation/http-request.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/owner-reservation-controller-docs-test/get-all-reservation/http-response.adoc[] | ||
include::{snippets}/owner-reservation-controller-docs-test/get-all-reservation/response-fields.adoc[] |
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,78 @@ | ||
[[waiting-create]] | ||
=== 웨이팅 등록 API | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/member-waiting-controller-docs-test/create-waiting/http-request.adoc[] | ||
include::{snippets}/member-waiting-controller-docs-test/create-waiting/request-fields.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/member-waiting-controller-docs-test/create-waiting/http-response.adoc[] | ||
include::{snippets}/member-waiting-controller-docs-test/create-waiting/response-fields.adoc[] | ||
|
||
=== 회원 진행 중인 웨이팅 조회 API | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/member-waiting-controller-docs-test/get-waiting/http-request.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/member-waiting-controller-docs-test/get-waiting/http-response.adoc[] | ||
include::{snippets}/member-waiting-controller-docs-test/get-waiting/response-fields.adoc[] | ||
|
||
=== 회원 웨이팅 이력 조회 API | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/member-waiting-controller-docs-test/get-member-waiting-history/http-request.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/member-waiting-controller-docs-test/get-member-waiting-history/http-response.adoc[] | ||
include::{snippets}/member-waiting-controller-docs-test/get-member-waiting-history/response-fields.adoc[] | ||
|
||
=== 웨이팅 지연 API | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/member-waiting-controller-docs-test/postpone-waiting/http-request.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/member-waiting-controller-docs-test/postpone-waiting/http-response.adoc[] | ||
include::{snippets}/member-waiting-controller-docs-test/postpone-waiting/response-fields.adoc[] | ||
|
||
=== 웨이팅 취소 API | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/member-waiting-controller-docs-test/cancel-waiting/http-request.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/member-waiting-controller-docs-test/cancel-waiting/http-response.adoc[] | ||
include::{snippets}/member-waiting-controller-docs-test/cancel-waiting/response-fields.adoc[] | ||
|
||
=== 웨이팅 입장 API | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/owner-waiting-controller-docs-test/entry-waiting/http-request.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/owner-waiting-controller-docs-test/entry-waiting/http-response.adoc[] | ||
include::{snippets}/owner-waiting-controller-docs-test/entry-waiting/response-fields.adoc[] | ||
|
||
=== 가게 웨이팅 조회 API | ||
|
||
==== HTTP Request | ||
|
||
include::{snippets}/owner-waiting-controller-docs-test/get-shop-all-waiting/http-request.adoc[] | ||
|
||
==== HTTP Response | ||
|
||
include::{snippets}/owner-waiting-controller-docs-test/get-shop-all-waiting/http-response.adoc[] | ||
include::{snippets}/owner-waiting-controller-docs-test/get-shop-all-waiting/response-fields.adoc[] |
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,19 @@ | ||
ifndef::snippets[] | ||
:snippets: ../../build/generated-snippets | ||
endif::[] | ||
= Catch Table REST API 문서 | ||
:doctype: book | ||
:icons: font | ||
:source-highlighter: highlightjs | ||
:toc: left | ||
:toclevels: 2 | ||
:sectlinks: | ||
|
||
[[CatchTable-API]] | ||
== Waiting API | ||
|
||
include::api/waiting/waiting.adoc[] | ||
|
||
== Reservation API | ||
|
||
include::api/reservation/reservation.adoc[] |
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
22 changes: 22 additions & 0 deletions
22
src/main/java/com/prgrms/catchtable/common/BaseEntity.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,22 @@ | ||
package com.prgrms.catchtable.common; | ||
|
||
import jakarta.persistence.EntityListeners; | ||
import jakarta.persistence.MappedSuperclass; | ||
import java.time.LocalDateTime; | ||
import lombok.Getter; | ||
import org.springframework.data.annotation.CreatedDate; | ||
import org.springframework.data.annotation.LastModifiedDate; | ||
import org.springframework.data.jpa.domain.support.AuditingEntityListener; | ||
|
||
@Getter | ||
@MappedSuperclass | ||
@EntityListeners(AuditingEntityListener.class) | ||
public abstract class BaseEntity { | ||
|
||
@CreatedDate | ||
private LocalDateTime createdAt; | ||
|
||
@LastModifiedDate | ||
private LocalDateTime updatedAt; | ||
|
||
} |
Oops, something went wrong.