[F] Fix compile

This commit is contained in:
Azalea 2025-10-25 04:58:41 +08:00
parent 7553c6a863
commit 45e14e21f1

View File

@ -16,20 +16,13 @@ import kotlin.jvm.optionals.getOrNull
@Service
class CardService(val cardRepo: CardRepository)
{
/**
* Find a card by External ID
* @param extId External ID
* @return Optional of a Card
*/
fun getCardByExtId(extId: String): Optional<Card> = cardRepo.findByExtId(extId.toLong())
/**
* Find a card by External ID
*
* @param extId External ID
* @return Optional of a Card
*/
fun getCardByExtId(extId: Long?): Optional<Card> = cardRepo.findByExtId(extId)
fun getCardByExtId(extId: Long): Optional<Card> = cardRepo.findByExtId(extId)
/**
* Register a new card with access code