This repository has been archived on 2018-02-23. You can view files and clone it, but cannot push or open issues or pull requests.
|
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
|
|
} |