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
@@ -0,0 +1,13 @@
package com.wafflestudio.csereal.core.council.api.v2

import com.wafflestudio.csereal.core.council.service.CouncilService
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("/api/v2/council")
class CouncilController(
private val councilService: CouncilService
) {
// ...
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.wafflestudio.csereal.core.council.database

import com.wafflestudio.csereal.common.config.BaseTimeEntity
import jakarta.persistence.Entity

@Entity(name = "council")
class CouncilEntity(
// ...
) : BaseTimeEntity() {
// ...
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.wafflestudio.csereal.core.council.database

import org.springframework.data.jpa.repository.JpaRepository

interface CouncilRepository : JpaRepository<CouncilEntity, Long> {
// ...
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.wafflestudio.csereal.core.council.dto

import java.time.LocalDateTime

data class CouncilDto(
val id: Long,
val createdAt: LocalDateTime?,
val modifiedAt: LocalDateTime?
// ...
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.wafflestudio.csereal.core.council.service

import com.wafflestudio.csereal.core.council.database.CouncilRepository
import org.springframework.stereotype.Service

@Service
class CouncilService(
private val councilRepository: CouncilRepository
) {
// ...
}
Loading