16 lines
463 B
Kotlin
16 lines
463 B
Kotlin
package space.luminic.finance.repos
|
|
|
|
import org.springframework.stereotype.Repository
|
|
import space.luminic.finance.models.User
|
|
|
|
@Repository
|
|
interface UserRepo {
|
|
fun findAll(): List<User>
|
|
fun findById(id: Int): User?
|
|
fun findByUsername(username: String): User?
|
|
fun findParticipantsBySpace(spaceId: Int): Set<User>
|
|
fun findByTgId(tgId: Long): User?
|
|
fun create(user: User): User
|
|
fun update(user: User): User
|
|
fun deleteById(id: Long)
|
|
} |