This commit is contained in:
stSolo
2023-01-23 15:39:41 +03:00
parent ef0dac9b3a
commit 7ddd8c5fbe
39 changed files with 869 additions and 301 deletions

View File

@@ -12,12 +12,18 @@ type DeviceMigrateRequest struct {
// ID of external network
// Required: true
NetID uint64 `url:"net_id"`
// Target stack ID to migrate to
StackID uint64 `url:"stackId"`
}
func (erq DeviceMigrateRequest) validate() error {
if erq.NetID == 0 {
return errors.New("validation-error: field NetID must be set")
}
if erq.StackID == 0 {
return errors.New("validation-error: field StackID must be set")
}
return nil
}

View File

@@ -127,6 +127,9 @@ type RecordExtNet struct {
// CheckIPs
CheckIPs []string `json:"checkIPs"`
// CheckIps
CheckIps []string `json:"checkIps"`
// List DNS
DNS []string `json:"dns"`