服務器狀態

This commit is contained in:
2023-05-21 08:08:46 +08:00
parent e946608376
commit 05ae37d6e2
6 changed files with 57 additions and 5 deletions

View File

@@ -11,6 +11,7 @@ type Server struct {
Type string `json:"type"` // (訓練|推理)
IP string `json:"ip"`
Port int `json:"port"`
Status string `json:"status"` // (異常|初始化|就緒|工作中|關閉中)
Username string `json:"username"`
Password string `json:"password"`
CreatedAt time.Time `json:"created_at" gorm:"autoCreateTime"`