File tree 1 file changed +10
-8
lines changed
internal/pkg/vendors/baishan-sdk
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
package baishansdk
2
2
3
+ import "encoding/json"
4
+
3
5
type BaseResponse interface {
4
6
GetCode () int32
5
7
GetMessage () string
@@ -61,19 +63,19 @@ type SetDomainConfigResponse struct {
61
63
}
62
64
63
65
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"`
68
70
}
69
71
70
72
type DomainConfig struct {
71
73
Https * DomainConfigHttps `json:"https"`
72
74
}
73
75
74
76
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"`
79
81
}
You can’t perform that action at this time.
0 commit comments