Skip to content

Commit 892256c

Browse files
committed
1 parent 0545945 commit 892256c

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

internal/pkg/vendors/baishan-sdk/models.go

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package baishansdk
22

3+
import "encoding/json"
4+
35
type BaseResponse interface {
46
GetCode() int32
57
GetMessage() string
@@ -61,19 +63,19 @@ type SetDomainConfigResponse struct {
6163
}
6264

6365
type DomainCertificate struct {
64-
CertId int64 `json:"cert_id"`
65-
Name string `json:"name"`
66-
CertStartTime string `json:"cert_start_time"`
67-
CertExpireTime string `json:"cert_expire_time"`
66+
CertId json.Number `json:"cert_id"`
67+
Name string `json:"name"`
68+
CertStartTime string `json:"cert_start_time"`
69+
CertExpireTime string `json:"cert_expire_time"`
6870
}
6971

7072
type DomainConfig struct {
7173
Https *DomainConfigHttps `json:"https"`
7274
}
7375

7476
type DomainConfigHttps struct {
75-
CertId int64 `json:"cert_id"`
76-
ForceHttps *string `json:"force_https,omitempty"`
77-
EnableHttp2 *string `json:"http2,omitempty"`
78-
EnableOcsp *string `json:"ocsp,omitempty"`
77+
CertId json.Number `json:"cert_id"`
78+
ForceHttps *string `json:"force_https,omitempty"`
79+
EnableHttp2 *string `json:"http2,omitempty"`
80+
EnableOcsp *string `json:"ocsp,omitempty"`
7981
}

0 commit comments

Comments
 (0)