mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-09-29 16:21:32 +00:00
var
This commit is contained in:
parent
97e08512a6
commit
701dd188fc
|
@ -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
|
12
appmanage/api/model/running_info.py
Normal file
12
appmanage/api/model/running_info.py
Normal 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
|
6
appmanage/api/model/status_reason.py
Normal file
6
appmanage/api/model/status_reason.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
from pydantic import BaseModel
|
||||||
|
|
||||||
|
class StatusReason(BaseModel):
|
||||||
|
Code: str
|
||||||
|
Message: str
|
||||||
|
Detail: str
|
Loading…
Reference in a new issue