finish work
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package model
|
||||
|
||||
type ErrInfo struct {
|
||||
Cause string `json:"cause"`
|
||||
Message string `json:"message"`
|
||||
Response int `json:"response"`
|
||||
}
|
||||
@@ -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"`
|
||||
}
|
||||
|
||||
@@ -11,3 +11,7 @@ type Volume struct {
|
||||
Name string `json:"name"`
|
||||
Scope string `json:"scope"`
|
||||
}
|
||||
type CreateVolume struct {
|
||||
Name string
|
||||
Type string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user