mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-10 19:57:26 +08:00
[F] Fix compile
This commit is contained in:
@@ -16,20 +16,13 @@ import kotlin.jvm.optionals.getOrNull
|
|||||||
@Service
|
@Service
|
||||||
class CardService(val cardRepo: CardRepository)
|
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
|
* Find a card by External ID
|
||||||
*
|
*
|
||||||
* @param extId External ID
|
* @param extId External ID
|
||||||
* @return Optional of a Card
|
* @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
|
* Register a new card with access code
|
||||||
|
|||||||
Reference in New Issue
Block a user