diff options
author | Kyomotoi <[email protected]> | 2023-03-10 01:12:02 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2023-03-10 01:12:02 +0800 |
commit | 7c79376f40e1a23b2bc82b8b89957b6f42a73b14 (patch) | |
tree | 0077f2f1e079573ed7d66c2bcadf873d3460a182 /ATRI/plugins/console/backend/models.py | |
parent | 33178079549121d60a9703ad6bf584aa71f5481b (diff) | |
download | ATRI-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.py | 15 |
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 |