This commit is contained in:
qiaofeng1227 2023-04-14 03:13:52 +00:00
parent 97e08512a6
commit 701dd188fc
3 changed files with 23 additions and 9 deletions

View file

@ -1,17 +1,13 @@
from pydantic import BaseModel from pydantic import BaseModel
from running_info import RunningInfo
from status_reason import StatusReason
class App(BaseModel): class App(BaseModel):
app_id: str app_id: str
name: str app_name: str
customer_name: str customer_name: str
trade_mark: str trade_mark: str
status_code: int
status: str status: str
port: int
volume: str
url: str
image_url: str
admin_url: str
user_name: str
password: str
official_app: bool official_app: bool
running_info: RunningInfo
status_reason: StatusReason

View file

@ -0,0 +1,12 @@
from pydantic import BaseModel
class RunningInfo(BaseModel):
port: int
compose_file: str
url: str
image_url: str
admin_url: str
user_name: str
password: str
default_domain: str
set_domain: str

View file

@ -0,0 +1,6 @@
from pydantic import BaseModel
class StatusReason(BaseModel):
Code: str
Message: str
Detail: str