10 lines
254 B
Kotlin
10 lines
254 B
Kotlin
|
package net.cismon.urlshortener.service
|
||
|
|
||
|
import net.cismon.urlshortener.dao.AuthDao
|
||
|
import org.springframework.stereotype.Service
|
||
|
|
||
|
@Service
|
||
|
class AuthService(val authDao: AuthDao) {
|
||
|
|
||
|
fun getTokenById(id: Long): String? = authDao.findById(id)?.token
|
||
|
}
|