-
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
14 changed files
with
385 additions
and
335 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
11 changes: 11 additions & 0 deletions
11
src/main/kotlin/com/wafflestudio/csereal/core/about/api/req/CreateClubReq.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,11 @@ | ||
package com.wafflestudio.csereal.core.about.api.req | ||
|
||
data class CreateClubReq( | ||
val ko: ClubDto, | ||
val en: ClubDto | ||
) | ||
|
||
data class ClubDto( | ||
val name: String, | ||
val description: String | ||
) |
7 changes: 7 additions & 0 deletions
7
src/main/kotlin/com/wafflestudio/csereal/core/about/api/req/CreateCompanyReq.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,7 @@ | ||
package com.wafflestudio.csereal.core.about.api.req | ||
|
||
data class CreateCompanyReq( | ||
val name: String, | ||
val url: String?, | ||
val year: Int | ||
) |
12 changes: 12 additions & 0 deletions
12
src/main/kotlin/com/wafflestudio/csereal/core/about/api/req/CreateFacReq.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,12 @@ | ||
package com.wafflestudio.csereal.core.about.api.req | ||
|
||
data class CreateFacReq( | ||
val ko: FacDto, | ||
val en: FacDto | ||
) | ||
|
||
data class FacDto( | ||
val name: String, | ||
val description: String, | ||
val locations: MutableList<String> | ||
) |
11 changes: 11 additions & 0 deletions
11
src/main/kotlin/com/wafflestudio/csereal/core/about/api/req/UpdateAboutReq.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,11 @@ | ||
package com.wafflestudio.csereal.core.about.api.req | ||
|
||
data class UpdateAboutReq( | ||
val ko: BasicAbout, | ||
val en: BasicAbout | ||
) | ||
|
||
data class BasicAbout( | ||
val description: String, | ||
val deleteIds: List<Long> | ||
) |
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/com/wafflestudio/csereal/core/about/api/req/UpdateDescriptionReq.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,6 @@ | ||
package com.wafflestudio.csereal.core.about.api.req | ||
|
||
data class UpdateDescriptionReq( | ||
val koDescription: String, | ||
val enDescription: 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
15 changes: 15 additions & 0 deletions
15
src/main/kotlin/com/wafflestudio/csereal/core/about/database/AboutLanguageEntity.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,15 @@ | ||
package com.wafflestudio.csereal.core.about.database | ||
|
||
import com.wafflestudio.csereal.common.config.BaseTimeEntity | ||
import jakarta.persistence.* | ||
|
||
@Entity(name = "about_language") | ||
class AboutLanguageEntity( | ||
@OneToOne(fetch = FetchType.LAZY, cascade = [CascadeType.ALL], orphanRemoval = true) | ||
@JoinColumn(name = "korean_id") | ||
val koAbout: AboutEntity, | ||
|
||
@OneToOne(fetch = FetchType.LAZY, cascade = [CascadeType.ALL], orphanRemoval = true) | ||
@JoinColumn(name = "english_id") | ||
val enAbout: AboutEntity | ||
) : BaseTimeEntity() |
8 changes: 8 additions & 0 deletions
8
src/main/kotlin/com/wafflestudio/csereal/core/about/database/AboutLanguageRepository.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,8 @@ | ||
package com.wafflestudio.csereal.core.about.database | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository | ||
|
||
interface AboutLanguageRepository : JpaRepository<AboutLanguageEntity, Long> { | ||
fun findByKoAbout(koAboutEntity: AboutEntity): AboutLanguageEntity? | ||
fun findByEnAbout(enAboutEntity: AboutEntity): AboutLanguageEntity? | ||
} |
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
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.