summaryrefslogtreecommitdiff
path: root/ATRI/plugins/console/backend/models.py
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2023-03-10 01:12:02 +0800
committerKyomotoi <[email protected]>2023-03-10 01:12:02 +0800
commit7c79376f40e1a23b2bc82b8b89957b6f42a73b14 (patch)
tree0077f2f1e079573ed7d66c2bcadf873d3460a182 /ATRI/plugins/console/backend/models.py
parent33178079549121d60a9703ad6bf584aa71f5481b (diff)
downloadATRI-7c79376f40e1a23b2bc82b8b89957b6f42a73b14.tar.gz
ATRI-7c79376f40e1a23b2bc82b8b89957b6f42a73b14.tar.bz2
ATRI-7c79376f40e1a23b2bc82b8b89957b6f42a73b14.zip
♻️ 重构 console, 使之代码可读性提高
Diffstat (limited to 'ATRI/plugins/console/backend/models.py')
-rw-r--r--ATRI/plugins/console/backend/models.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/ATRI/plugins/console/backend/models.py b/ATRI/plugins/console/backend/models.py
new file mode 100644
index 0000000..e7aeb54
--- /dev/null
+++ b/ATRI/plugins/console/backend/models.py
@@ -0,0 +1,15 @@
+from pydantic import BaseModel
+
+
+class Response(BaseModel):
+ status: int
+ detail: str
+ data: dict
+
+
+class StatusInfo(BaseModel):
+ platform: dict
+ cpu: dict
+ mem: dict
+ disk: dict
+ net: dict