Refactor MyExtension to DCA Admin: Update extension name and description in config.json, remove legacy MyExtension CRUD operations and related API endpoints, and adjust router tags. Clean up unused files and methods to streamline the codebase for DCA administration functionality.
Refactor DCA Admin page endpoints: Update description, remove unused CRUD operations and API endpoints related to MyExtension, and streamline the code for improved clarity and functionality. Remove QR Code dialog from MyExtension index.html: streamline the UI by eliminating unused dialog components, enhancing code clarity and maintainability.
This commit is contained in:
parent
edca91579c
commit
75dd03b15a
13 changed files with 32 additions and 971 deletions
25
models.py
25
models.py
|
|
@ -207,28 +207,3 @@ class UpdateLamassuConfigData(BaseModel):
|
|||
ssh_private_key: Optional[str] = None
|
||||
|
||||
|
||||
# Legacy models (keep for backward compatibility during transition)
|
||||
class CreateMyExtensionData(BaseModel):
|
||||
id: Optional[str] = ""
|
||||
name: str
|
||||
lnurlpayamount: int
|
||||
lnurlwithdrawamount: int
|
||||
wallet: str
|
||||
total: int = 0
|
||||
|
||||
|
||||
class MyExtension(BaseModel):
|
||||
id: str
|
||||
name: str
|
||||
lnurlpayamount: int
|
||||
lnurlwithdrawamount: int
|
||||
wallet: str
|
||||
total: int
|
||||
lnurlpay: Optional[str] = ""
|
||||
lnurlwithdraw: Optional[str] = ""
|
||||
|
||||
|
||||
class CreatePayment(BaseModel):
|
||||
myextension_id: str
|
||||
amount: int
|
||||
memo: str
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue