quickfix
This commit is contained in:
parent
2b0281857a
commit
dd1dea90c1
5 changed files with 14 additions and 11 deletions
|
|
@ -1,12 +1,16 @@
|
|||
# Description: Pydantic data models dictate what is passed between frontend and backend.
|
||||
|
||||
from typing import Optional
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class CreateMyExtensionData(BaseModel):
|
||||
id: Optional[str] = ""
|
||||
name: str
|
||||
lnurlpayamount: int
|
||||
lnurlwithdrawamount: int
|
||||
wallet: str
|
||||
total: int = 0
|
||||
|
||||
|
||||
|
|
@ -17,8 +21,8 @@ class MyExtension(BaseModel):
|
|||
lnurlwithdrawamount: int
|
||||
wallet: str
|
||||
total: int
|
||||
lnurlpay: str = ""
|
||||
lnurlwithdraw: str = ""
|
||||
lnurlpay: Optional[str] = ""
|
||||
lnurlwithdraw: Optional[str] = ""
|
||||
|
||||
|
||||
class CreatePayment(BaseModel):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue