mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-25 07:07:48 +01:00
21 lines
364 B
Python
21 lines
364 B
Python
from pydantic.main import BaseModel
|
|
from pydantic import BaseModel
|
|
from fastapi import FastAPI, Request
|
|
from typing import List
|
|
|
|
|
|
class Target(BaseModel):
|
|
wallet: str
|
|
source: str
|
|
percent: int
|
|
alias: str
|
|
|
|
|
|
class TargetPutList(BaseModel):
|
|
wallet: str
|
|
aliat: str
|
|
percent: int
|
|
|
|
|
|
class TargetPut(BaseModel):
|
|
targets: List[TargetPutList]
|