-
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.
- Loading branch information
Showing
5 changed files
with
34 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.posomo.saltit; | ||
|
||
import io.swagger.v3.oas.models.OpenAPI; | ||
import io.swagger.v3.oas.models.info.Info; | ||
import org.springdoc.core.GroupedOpenApi; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
public class ApiDocConfig { | ||
@Bean | ||
public GroupedOpenApi publicApi() { | ||
return GroupedOpenApi.builder() | ||
.group("v1-definition") | ||
.pathsToMatch("/**") | ||
.build(); | ||
} | ||
@Bean | ||
public OpenAPI springShopOpenAPI() { | ||
return new OpenAPI() | ||
.info(new Info().title("Saltit Restaurant OPEN API") | ||
.description(" 프로젝트 API 명세서입니다.") | ||
.version("v0.0.1")); | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
src/main/java/com/posomo/saltit/domain/restaurant/entity/manyToOne/RestaurantBreakTime.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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package com.posomo.saltit.domain.restaurant.entity.manyToOne; | ||
|
||
import jakarta.persistence.DiscriminatorColumn; | ||
import jakarta.persistence.DiscriminatorValue; | ||
import jakarta.persistence.Entity; | ||
|
||
@Entity | ||
@DiscriminatorColumn(name = "BREAK") | ||
@DiscriminatorValue("BREAK") | ||
public class RestaurantBreakTime extends RestaurantTime{ | ||
} |
4 changes: 2 additions & 2 deletions
4
...in/java/com/posomo/saltit/domain/restaurant/entity/manyToOne/RestaurantLastOrderTime.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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package com.posomo.saltit.domain.restaurant.entity.manyToOne; | ||
|
||
|
||
import jakarta.persistence.DiscriminatorColumn; | ||
import jakarta.persistence.DiscriminatorValue; | ||
import jakarta.persistence.Entity; | ||
|
||
@Entity | ||
@DiscriminatorColumn(name = "LAST_ORDER") | ||
@DiscriminatorValue("LAST_ORDER") | ||
public class RestaurantLastOrderTime extends RestaurantTime{ | ||
} |
4 changes: 2 additions & 2 deletions
4
src/main/java/com/posomo/saltit/domain/restaurant/entity/manyToOne/RestaurantOpenTime.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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package com.posomo.saltit.domain.restaurant.entity.manyToOne; | ||
|
||
import jakarta.persistence.DiscriminatorColumn; | ||
import jakarta.persistence.DiscriminatorValue; | ||
import jakarta.persistence.Entity; | ||
|
||
@Entity | ||
@DiscriminatorColumn(name = "OPEN") | ||
@DiscriminatorValue("OPEN") | ||
public class RestaurantOpenTime extends RestaurantTime{ | ||
} |