13 lines
405 B
Kotlin
13 lines
405 B
Kotlin
package space.luminic.finance.repos
|
|
|
|
import org.springframework.stereotype.Repository
|
|
import space.luminic.finance.models.Space
|
|
|
|
@Repository
|
|
interface SpaceRepo {
|
|
fun findSpacesAvailableForUser(userId: Int): List<Space>
|
|
fun findSpaceById(id: Int, userId: Int): Space?
|
|
fun create(space: Space, createdById: Int): Int
|
|
fun update(space: Space, updatedById: Int): Int
|
|
fun delete(id: Int)
|
|
} |