mirror of
https://github.com/usual2970/certimate.git
synced 2025-08-22 01:01:46 +00:00
.github
.vscode
docker
internal
app
applicant
certificate
deployer
domain
notify
pkg
core
logging
utils
vendors
1panel-sdk
azure-sdk
baishan-sdk
btpanel-sdk
cachefly-sdk
cdnfly-sdk
cmcc-sdk
dnsla-sdk
dogecloud-sdk
edgio-sdk
gcore-sdk
gname-sdk
api.go
client.go
models.go
huaweicloud-sdk
qiniu-sdk
safeline-sdk
ucloud-sdk
volcengine-sdk
repository
rest
scheduler
statistics
workflow
migrations
ui
.dockerignore
.editorconfig
.gitignore
.goreleaser.yml
CHANGELOG.md
CONTRIBUTING.md
CONTRIBUTING_EN.md
Dockerfile
LICENSE.md
Makefile
README.md
README_EN.md
go.mod
go.sum
main.go
nixpacks.toml
usage.gif
38 lines
1.1 KiB
Go
38 lines
1.1 KiB
Go
package gnamesdk
|
|
|
|
func (c *Client) AddDomainResolution(req *AddDomainResolutionRequest) (*AddDomainResolutionResponse, error) {
|
|
result := AddDomainResolutionResponse{}
|
|
err := c.sendRequestWithResult("/api/resolution/add", req, &result)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &result, nil
|
|
}
|
|
|
|
func (c *Client) ModifyDomainResolution(req *ModifyDomainResolutionRequest) (*ModifyDomainResolutionResponse, error) {
|
|
resp := ModifyDomainResolutionResponse{}
|
|
err := c.sendRequestWithResult("/api/resolution/edit", req, &resp)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &resp, nil
|
|
}
|
|
|
|
func (c *Client) DeleteDomainResolution(req *DeleteDomainResolutionRequest) (*DeleteDomainResolutionResponse, error) {
|
|
resp := DeleteDomainResolutionResponse{}
|
|
err := c.sendRequestWithResult("/api/resolution/delete", req, &resp)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &resp, nil
|
|
}
|
|
|
|
func (c *Client) ListDomainResolution(req *ListDomainResolutionRequest) (*ListDomainResolutionResponse, error) {
|
|
resp := ListDomainResolutionResponse{}
|
|
err := c.sendRequestWithResult("/api/resolution/list", req, &resp)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &resp, nil
|
|
}
|