finish work

This commit is contained in:
2025-04-18 17:40:44 +08:00
parent cc8e04a41f
commit 16e779a450
25 changed files with 483 additions and 651 deletions
+7
View File
@@ -0,0 +1,7 @@
package model
type ErrInfo struct {
Cause string `json:"cause"`
Message string `json:"message"`
Response int `json:"response"`
}
+11
View File
@@ -62,3 +62,14 @@ type NetConnect struct {
Ip string `json:"ip"`
Mac string `json:"mac"`
}
type ConnectRequest struct {
Mac string `json:"mac"`
Ip string `json:"ip"`
Alias string `json:"alias"`
Id string `json:"id"`
}
type CreateNetworkRequest struct {
Name string `json:"name"`
EnableDns bool `json:"enable_dns"`
Subnet string `json:"subnet"`
}
+4
View File
@@ -11,3 +11,7 @@ type Volume struct {
Name string `json:"name"`
Scope string `json:"scope"`
}
type CreateVolume struct {
Name string
Type string
}