32 lines
657 B
Go
32 lines
657 B
Go
package dns
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/denverdino/aliyungo/common"
|
|
)
|
|
|
|
type DeleteDomainArgs struct {
|
|
DomainName string
|
|
}
|
|
|
|
type DeleteDomainResponse struct {
|
|
common.Response
|
|
DomainName string
|
|
}
|
|
|
|
// DeleteDomain
|
|
//
|
|
// You can read doc at https://help.aliyun.com/document_detail/29750.html?spm=5176.doc29766.6.593.eELaZ7
|
|
func (client *Client) DeleteDomain(args *DeleteDomainArgs) (response *DeleteDomainResponse, err error) {
|
|
action := "DeleteDomain"
|
|
response = &DeleteDomainResponse{}
|
|
err = client.Invoke(action, args, response)
|
|
if err == nil {
|
|
return response, nil
|
|
} else {
|
|
log.Printf("%s error, %v", action, err)
|
|
return response, err
|
|
}
|
|
}
|