lnbits-legend/lnbits/extensions/splitpayments/models.py

22 lines
364 B
Python
Raw Normal View History

2021-10-18 12:34:45 +01:00
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]