-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [etc] logger 추가 및 Exception logging 추가 (#71) * [etc] CODEOWNERS 수정 (#72) * Spring boot version 3.1.2 -> 3.1.6 (#73) * [refactor]cursor 기반 page 타입 변경 (#74) * [refactor] Swagger UI 라이브러리 변경: Spring REST docs -> Springdoc (#75) * Swagger UI 라이브러리 변경 - Spring REST docs -> Springdoc * 컨트롤러 인터페이스 분리 * Update src/main/resources/static/swagger-ui/openapi3.yaml Co-authored-by: 유도진 <[email protected]> * build.gradle 의존성 제거 * 인터페이스 이름 변경: ApiPresentation 추가 * 커버리지 체크 제외할 리스트 수정 * postfix 수정 * postfix 수정 * postfix 수정 * postfix 수정 * postfix수정 * REST doc 관련 의존성 및 파일 삭제 * 변경 사항 반영 * 리뷰 반영해서 수정 * 초깃값 동작 체크 --------- Co-authored-by: 유도진 <[email protected]> * [etc] version 수정 (#77) --------- Co-authored-by: 유도진 <[email protected]> Co-authored-by: YOON <[email protected]> Co-authored-by: Gopistol <[email protected]>
- Loading branch information
1 parent
16098ac
commit 75571fb
Showing
57 changed files
with
518 additions
and
824 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 +1 @@ | ||
* @dojinyou @k-kbk | ||
* @dojinyou @k-kbk @Gopistol @0702Yoon |
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
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,5 @@ | ||
package com.mjucow.eatda.common | ||
|
||
import org.slf4j.LoggerFactory | ||
|
||
inline fun <reified T> T.logger() = LoggerFactory.getLogger(T::class.java)!! |
13 changes: 0 additions & 13 deletions
13
src/main/kotlin/com/mjucow/eatda/common/config/StaticRoutingConfiguration.kt
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
src/main/kotlin/com/mjucow/eatda/common/config/SwaggerConfig.kt
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,20 @@ | ||
package com.mjucow.eatda.common.config | ||
|
||
import io.swagger.v3.oas.models.Components | ||
import io.swagger.v3.oas.models.OpenAPI | ||
import io.swagger.v3.oas.models.info.Info | ||
import org.springframework.context.annotation.Bean | ||
import org.springframework.context.annotation.Configuration | ||
|
||
@Configuration | ||
class SwaggerConfig { | ||
@Bean | ||
fun swaggerApi(): OpenAPI = OpenAPI() | ||
.components(Components()) | ||
.info( | ||
Info() | ||
.title("Eatda API Documentation") | ||
.description("Eatda(잇다) 서비스의 API 명세서입니다.") | ||
.version("0.1.7") | ||
) | ||
} |
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 com.mjucow.eatda.common.dto | ||
|
||
class CursorPage<T>( | ||
val contents: List<T>, | ||
val hasNext: Boolean, | ||
val nextCursor: String?, | ||
) |
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 |
---|---|---|
@@ -1,10 +1,20 @@ | ||
package com.mjucow.eatda.common.vo | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
import jakarta.persistence.Column | ||
import jakarta.persistence.Embeddable | ||
|
||
@Embeddable | ||
@Schema( | ||
name = "Point", | ||
description = "Represents a geographical point with latitude and longitude", | ||
example = """{"latitude": 37.5802219, "longitude": 126.9226047}""" | ||
) | ||
data class Point( | ||
@Column(name = "location_latitude") val latitude: Double, | ||
@Column(name = "location_longitude") val longitude: Double, | ||
|
||
@Column(name = "location_latitude") | ||
val latitude: Double, | ||
|
||
@Column(name = "location_longitude") | ||
val longitude: Double, | ||
) |
4 changes: 4 additions & 0 deletions
4
src/main/kotlin/com/mjucow/eatda/domain/banner/service/command/dto/CreateBannerCommand.kt
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,13 @@ | ||
package com.mjucow.eatda.domain.banner.service.command.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
import java.time.Instant | ||
|
||
data class CreateBannerCommand( | ||
@Schema(name = "link", example = "https://career.programmers.co.kr/competitions/3353") | ||
val link: String, | ||
@Schema(name = "imageAddress", example = "banner/232D8241-C6A9-4AD9-B0EA-56F6DD24BADF.png") | ||
val imageAddress: String, | ||
@Schema(name = "expiredAt", example = "2023-11-21T14:11:34.639184Z") | ||
val expiredAt: Instant? = null, | ||
) |
4 changes: 4 additions & 0 deletions
4
src/main/kotlin/com/mjucow/eatda/domain/banner/service/command/dto/UpdateBannerCommand.kt
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,13 @@ | ||
package com.mjucow.eatda.domain.banner.service.command.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
import java.time.Instant | ||
|
||
data class UpdateBannerCommand( | ||
@Schema(name = "link", example = "https://career.programmers.co.kr/competitions/3353") | ||
val link: String, | ||
@Schema(name = "imageAddress", example = "banner/232D8241-C6A9-4AD9-B0EA-56F6DD24BADF.png") | ||
val imageAddress: String, | ||
@Schema(name = "expiredAt", example = "2023-11-21T14:11:34.639184Z") | ||
val expiredAt: Instant?, | ||
) |
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/com/mjucow/eatda/domain/banner/service/query/dto/BannerDto.kt
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
4 changes: 4 additions & 0 deletions
4
src/main/kotlin/com/mjucow/eatda/domain/notice/service/command/dto/UpdateNoticeCommand.kt
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,6 +1,10 @@ | ||
package com.mjucow.eatda.domain.notice.service.command.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
data class UpdateNoticeCommand( | ||
@Schema(name = "title", example = "newTitle") | ||
val title: String, | ||
@Schema(name = "content", example = "newContent") | ||
val content: String, | ||
) |
5 changes: 5 additions & 0 deletions
5
src/main/kotlin/com/mjucow/eatda/domain/notice/service/query/dto/NoticeDto.kt
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
7 changes: 6 additions & 1 deletion
7
src/main/kotlin/com/mjucow/eatda/domain/store/service/command/dto/CreateCommand.kt
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,3 +1,8 @@ | ||
package com.mjucow.eatda.domain.store.service.command.dto | ||
|
||
data class CreateCommand(val name: String) | ||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
data class CreateCommand( | ||
@Schema(description = "생성할 카테고리 이름", example = "validName") | ||
val name: String, | ||
) |
5 changes: 5 additions & 0 deletions
5
src/main/kotlin/com/mjucow/eatda/domain/store/service/command/dto/MenuCreateCommand.kt
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,7 +1,12 @@ | ||
package com.mjucow.eatda.domain.store.service.command.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
data class MenuCreateCommand( | ||
@Schema(name = "name", example = "고추바사삭") | ||
val name: String, | ||
@Schema(name = "price", example = "20000") | ||
val price: Int, | ||
@Schema(name = "imageAddress", example = "null") | ||
val imageAddress: String? = null, | ||
) |
5 changes: 5 additions & 0 deletions
5
src/main/kotlin/com/mjucow/eatda/domain/store/service/command/dto/MenuUpdateCommand.kt
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,7 +1,12 @@ | ||
package com.mjucow.eatda.domain.store.service.command.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
data class MenuUpdateCommand( | ||
@Schema(name = "name", example = "뿌링클") | ||
val name: String, | ||
@Schema(name = "price", example = "18000") | ||
val price: Int, | ||
@Schema(name = "imageAddress", example = "null") | ||
val imageAddress: String? = null, | ||
) |
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
7 changes: 6 additions & 1 deletion
7
src/main/kotlin/com/mjucow/eatda/domain/store/service/command/dto/UpdateNameCommand.kt
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,3 +1,8 @@ | ||
package com.mjucow.eatda.domain.store.service.command.dto | ||
|
||
data class UpdateNameCommand(val name: String) | ||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
data class UpdateNameCommand( | ||
@Schema(name = "name", description = "수정할 카테고리 이름", example = "newName") | ||
val name: String, | ||
) |
5 changes: 5 additions & 0 deletions
5
src/main/kotlin/com/mjucow/eatda/domain/store/service/query/MenuDto.kt
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
Oops, something went wrong.