github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/dns/v2/associate/results.go (about) 1 package associate 2 3 import "github.com/chnsz/golangsdk" 4 5 type AssociateResult struct { 6 commonResult 7 } 8 9 type DisAssociateResult struct { 10 commonResult 11 } 12 13 type commonResult struct { 14 golangsdk.Result 15 } 16 17 type ResponseRouter struct { 18 RouterID string `json:"router_id"` 19 RouterRegion string `json:"router_region"` 20 Status string `json:"status"` 21 } 22 23 func (r commonResult) Extract() (*ResponseRouter, error) { 24 var s *ResponseRouter 25 err := r.ExtractInto(&s) 26 return s, err 27 }