mirror of
https://github.com/usual2970/certimate.git
synced 2025-10-05 14:04:54 +00:00
fix: #313
This commit is contained in:
4
internal/pkg/vendors/dogecloud-sdk/client.go
vendored
4
internal/pkg/vendors/dogecloud-sdk/client.go
vendored
@@ -58,7 +58,7 @@ func (c *Client) UploadCdnCert(note, cert, private string) (*UploadCdnCertRespon
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
func (c *Client) BindCdnCertWithDomain(certId string, domain string) (*BindCdnCertResponse, error) {
|
||||
func (c *Client) BindCdnCertWithDomain(certId int64, domain string) (*BindCdnCertResponse, error) {
|
||||
req := &BindCdnCertRequest{
|
||||
CertId: certId,
|
||||
Domain: &domain,
|
||||
@@ -92,7 +92,7 @@ func (c *Client) BindCdnCertWithDomain(certId string, domain string) (*BindCdnCe
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
func (c *Client) BindCdnCertWithDomainId(certId string, domainId int32) (*BindCdnCertResponse, error) {
|
||||
func (c *Client) BindCdnCertWithDomainId(certId int64, domainId int64) (*BindCdnCertResponse, error) {
|
||||
req := &BindCdnCertRequest{
|
||||
CertId: certId,
|
||||
DomainId: &domainId,
|
||||
|
6
internal/pkg/vendors/dogecloud-sdk/models.go
vendored
6
internal/pkg/vendors/dogecloud-sdk/models.go
vendored
@@ -12,7 +12,7 @@ type UploadCdnCertRequest struct {
|
||||
}
|
||||
|
||||
type UploadCdnCertResponseData struct {
|
||||
Id string `json:"id"`
|
||||
Id int64 `json:"id"`
|
||||
}
|
||||
|
||||
type UploadCdnCertResponse struct {
|
||||
@@ -21,8 +21,8 @@ type UploadCdnCertResponse struct {
|
||||
}
|
||||
|
||||
type BindCdnCertRequest struct {
|
||||
CertId string `json:"id"`
|
||||
DomainId *int32 `json:"did,omitempty"`
|
||||
CertId int64 `json:"id"`
|
||||
DomainId *int64 `json:"did,omitempty"`
|
||||
Domain *string `json:"domain,omitempty"`
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user