feat: add created_at time to links (#46)

closes #16
This commit is contained in:
dni ⚡ 2024-08-30 06:17:26 +02:00 committed by GitHub
commit e2f97f05dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 55 additions and 31 deletions

View file

@ -1,3 +1,5 @@
import datetime
import shortuuid
from fastapi import Query, Request
from lnurl import Lnurl, LnurlWithdrawResponse
@ -21,6 +23,7 @@ class CreateWithdrawData(BaseModel):
class WithdrawLink(BaseModel):
id: str
created_at: datetime.datetime
wallet: str = Query(None)
title: str = Query(None)
min_withdrawable: int = Query(0)