Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.study.core
package com.doki

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.study.core
package com.doki

import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.GetMapping
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.study.core.global
package com.doki.global

import jakarta.persistence.Column
import jakarta.persistence.EntityListeners
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.study.core.global.config
package com.doki.global.config

import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.study.core.global.config
package com.doki.global.config

import org.jasypt.encryption.StringEncryptor
import org.jasypt.encryption.pbe.PooledPBEStringEncryptor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.study.core.global.config
package com.doki.global.config

import org.springframework.context.annotation.Configuration
import org.springframework.data.jpa.repository.config.EnableJpaAuditing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.study.core.global.config
package com.doki.global.config

import com.querydsl.jpa.impl.JPAQueryFactory
import jakarta.persistence.EntityManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.study.core.global.config;
package com.doki.global.config;

import com.study.core.auth.oauth.CustomOAuth2UserService
import com.study.core.auth.oauth.OAuth2SuccessHandler
import com.study.core.global.security.JwtFilter
import com.study.core.global.security.JwtProvider
import com.doki.user.auth.oauth.CustomOAuth2UserService
import com.doki.user.auth.oauth.OAuth2SuccessHandler
import com.doki.global.security.JwtFilter
import com.doki.global.security.JwtProvider
import org.springframework.boot.autoconfigure.security.servlet.PathRequest
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.study.core.global.config
package com.doki.global.config

import io.netty.channel.ChannelOption
import org.springframework.context.annotation.Bean
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.study.core.global.config
package com.doki.global.config

import com.study.core.global.resolver.LoginUserArgumentResolver
import com.doki.global.resolver.LoginUserArgumentResolver
import org.springframework.context.annotation.Configuration
import org.springframework.web.method.support.HandlerMethodArgumentResolver
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.study.core.global.exceptions
package com.doki.global.exceptions

open class CustomException(
private val customExceptionType: CustomExceptionType,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.study.core.global.exceptions
package com.doki.global.exceptions

/**
* errorCode: front-end 에서 식별할 수 있는 고유 에러 코드 (ex: ALREADY_EXISTS_CATEGORY - error enum.name 이용)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.study.core.global.exceptions
package com.doki.global.exceptions

data class ExceptionResponse(
val name: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// src/main/kotlin/com/study/core/global/exceptions/GlobalExceptionAdvice.kt
package com.study.core.global.exceptions
package com.doki.global.exceptions

import com.fasterxml.jackson.databind.JsonMappingException
import jakarta.servlet.http.HttpServletRequest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.study.core.global.exceptions.auth
package com.doki.global.exceptions.auth

import com.study.core.global.exceptions.CustomExceptionType
import com.doki.global.exceptions.CustomExceptionType

enum class AuthExceptionType(
override val errorCode: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.study.core.global.resolver
package com.doki.global.resolver

@Target(AnnotationTarget.VALUE_PARAMETER)
@Retention(AnnotationRetention.RUNTIME)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.study.core.global.resolver
package com.doki.global.resolver

import com.study.core.global.exceptions.CustomException
import com.study.core.global.exceptions.auth.AuthExceptionType
import com.doki.global.exceptions.CustomException
import com.doki.global.exceptions.auth.AuthExceptionType
import org.springframework.core.MethodParameter
import org.springframework.security.core.context.SecurityContextHolder
import org.springframework.stereotype.Component
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.study.core.global.security
package com.doki.global.security

import jakarta.servlet.FilterChain
import jakarta.servlet.http.HttpServletRequest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.study.core.global.security
package com.doki.global.security

import com.study.core.auth.infrastructure.dto.response.TokenResponse
import com.study.core.global.enums.UserRole
import com.doki.user.auth.infrastructure.dto.response.TokenResponse
import com.doki.user.domain.vo.UserRole
import io.jsonwebtoken.*
import io.jsonwebtoken.io.Decoders
import io.jsonwebtoken.security.Keys
Expand All @@ -20,7 +20,7 @@ import java.util.Date
class JwtProvider(
@Value("\${jwt.secret}")
private val secretKey: String,
@Value("\${jwt.log-token:false}")
@Value("\${jwt.log-token:true}")
private val logToken: Boolean
){

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.study.core.image.application
package com.doki.image.application

import com.study.core.image.application.event.ImageCreateEvent
import com.study.core.image.application.event.ImageDeleteEvent
import com.study.core.image.domain.domainservice.ImageStorage
import com.study.core.image.domain.Image
import com.study.core.image.domain.ImageRepository
import com.doki.image.application.event.ImageCreateEvent
import com.doki.image.application.event.ImageDeleteEvent
import com.doki.image.domain.domainservice.ImageStorage
import com.doki.image.domain.Image
import com.doki.image.domain.ImageRepository
import org.springframework.context.event.EventListener
import org.springframework.scheduling.annotation.Async
import org.springframework.stereotype.Component
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.study.core.image.application
package com.doki.image.application

import com.study.core.image.application.event.ImageCreateEvent
import com.study.core.image.application.event.ImageDeleteEvent
import com.study.core.image.domain.vo.ImageAggregateType
import com.doki.image.application.event.ImageCreateEvent
import com.doki.image.application.event.ImageDeleteEvent
import com.doki.image.domain.vo.ImageAggregateType
import org.springframework.context.ApplicationEventPublisher
import org.springframework.stereotype.Component

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.study.core.image.application.event
package com.doki.image.application.event

import com.study.core.image.domain.vo.ImageAggregateType
import com.doki.image.domain.vo.ImageAggregateType

data class ImageCreateEvent(
val aggregateType: ImageAggregateType,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.doki.image.application.event

import com.doki.image.domain.vo.ImageAggregateType

data class ImageDeleteEvent(
val aggregateType: ImageAggregateType,
val aggregateId: Long,
)
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.study.core.image.domain
package com.doki.image.domain

import com.study.core.image.domain.domainservice.ImageStorage
import com.study.core.global.BaseEntity
import com.study.core.image.domain.vo.ImageAggregateType
import com.doki.image.domain.domainservice.ImageStorage
import com.doki.global.BaseEntity
import com.doki.image.domain.vo.ImageAggregateType
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.EnumType
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.study.core.image.domain
package com.doki.image.domain

import com.study.core.image.domain.vo.ImageAggregateType
import com.doki.image.domain.vo.ImageAggregateType

interface ImageRepository {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.study.core.image.domain.domainservice
package com.doki.image.domain.domainservice

interface ImageStorage {
fun store(uniqueFilename: String, content: ByteArray): StoredImage
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.study.core.image.domain.vo
package com.doki.image.domain.vo

enum class ImageAggregateType {
PACKAGE,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.study.core.image.infrastructure.persistence
package com.doki.image.infrastructure.persistence

import com.study.core.image.domain.Image
import com.study.core.image.domain.vo.ImageAggregateType
import com.doki.image.domain.Image
import com.doki.image.domain.vo.ImageAggregateType
import org.springframework.data.jpa.repository.JpaRepository

interface ImageJpaRepository : JpaRepository<Image, Long> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.study.core.image.infrastructure.persistence
package com.doki.image.infrastructure.persistence

import com.study.core.image.domain.Image
import com.study.core.image.domain.vo.ImageAggregateType
import com.study.core.image.domain.ImageRepository
import com.doki.image.domain.Image
import com.doki.image.domain.vo.ImageAggregateType
import com.doki.image.domain.ImageRepository
import org.springframework.stereotype.Repository

@Repository
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.study.core.image.infrastructure.storage
package com.doki.image.infrastructure.storage

import com.study.core.image.domain.domainservice.ImageStorage
import com.study.core.image.domain.domainservice.StoredImage
import com.doki.image.domain.domainservice.ImageStorage
import com.doki.image.domain.domainservice.StoredImage
import org.springframework.beans.factory.annotation.Value
import org.springframework.context.annotation.Primary
import org.springframework.context.annotation.Profile
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.study.core.image.infrastructure.storage
package com.doki.image.infrastructure.storage

import com.study.core.image.domain.domainservice.ImageStorage
import com.study.core.image.domain.domainservice.StoredImage
import com.doki.image.domain.domainservice.ImageStorage
import com.doki.image.domain.domainservice.StoredImage
import org.springframework.context.annotation.Primary
import org.springframework.context.annotation.Profile
import org.springframework.stereotype.Component
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.study.core.productpackage.application
package com.doki.productpackage.application

import com.study.core.product.domain.Product
import com.study.core.product.domain.ProductRepository
import com.study.core.productpackage.application.dto.CreatePackageCommand
import com.study.core.productpackage.domain.Package
import com.study.core.productpackage.infrastructure.PackageCommandRepository
import com.doki.productpackage.product.domain.Product
import com.doki.productpackage.product.domain.ProductRepository
import com.doki.productpackage.application.dto.CreatePackageCommand
import com.doki.productpackage.domain.Package
import com.doki.productpackage.infrastructure.PackageCommandRepository
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.study.core.productpackage.application
package com.doki.productpackage.application

import com.study.core.productpackage.domain.PackageRepository
import com.study.core.productpackage.domain.dto.PackagePagingQueryResponse
import com.study.core.productpackage.domain.dto.PackageSpecificResponse
import com.doki.productpackage.domain.PackageRepository
import com.doki.productpackage.domain.dto.PackagePagingQueryResponse
import com.doki.productpackage.domain.dto.PackageSpecificResponse
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.study.core.productpackage.application.dto
package com.doki.productpackage.application.dto

import java.time.LocalDate

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.study.core.productpackage.domain
package com.doki.productpackage.domain

import com.study.core.global.BaseEntity
import com.study.core.product.domain.Product
import com.study.core.reservation.domain.ReservationSlot
import com.doki.global.BaseEntity
import com.doki.productpackage.product.domain.Product
import com.doki.productpackage.reservation.domain.ReservationSlot
import jakarta.persistence.CascadeType
import jakarta.persistence.Column
import jakarta.persistence.Entity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package com.study.core.productpackage.domain
package com.doki.productpackage.domain

import com.study.core.global.BaseEntity
import com.study.core.product.domain.Product
import jakarta.persistence.Column
import com.doki.global.BaseEntity
import com.doki.productpackage.product.domain.Product
import jakarta.persistence.Entity
import jakarta.persistence.FetchType
import jakarta.persistence.GeneratedValue
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.study.core.productpackage.domain
package com.doki.productpackage.domain

import com.study.core.productpackage.domain.dto.PackagePagingQueryResponse
import com.study.core.productpackage.domain.dto.PackageSpecificResponse
import com.doki.productpackage.domain.dto.PackagePagingQueryResponse
import com.doki.productpackage.domain.dto.PackageSpecificResponse

interface PackageRepository {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.study.core.productpackage.domain
package com.doki.productpackage.domain

import com.study.core.global.BaseEntity
import com.doki.global.BaseEntity
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.FetchType
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.study.core.productpackage.domain.dto
package com.doki.productpackage.domain.dto

data class PackagePagingQueryResponse(
val id: Long,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.study.core.productpackage.domain.dto
package com.doki.productpackage.domain.dto

data class PackageSpecificResponse(
val id: Long,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.study.core.productpackage.infrastructure
package com.doki.productpackage.infrastructure

import com.study.core.productpackage.domain.Package
import com.doki.productpackage.domain.Package
import org.springframework.data.repository.findByIdOrNull
import org.springframework.stereotype.Repository

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.study.core.productpackage.infrastructure
package com.doki.productpackage.infrastructure

import com.study.core.productpackage.domain.Package
import com.doki.productpackage.domain.Package
import org.springframework.data.jpa.repository.JpaRepository

interface PackageJpaRepository : JpaRepository<Package, Long>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.study.core.productpackage.infrastructure
package com.doki.productpackage.infrastructure

import com.study.core.productpackage.domain.dto.PackagePagingQueryResponse
import com.study.core.productpackage.domain.dto.PackageSpecificResponse
import com.doki.productpackage.domain.dto.PackagePagingQueryResponse
import com.doki.productpackage.domain.dto.PackageSpecificResponse
import org.springframework.stereotype.Repository

@Repository
Expand Down
Loading