This commit is contained in:
Fu Diwei 2025-03-24 11:25:02 +08:00
parent 0545945697
commit 892256c0b9

View File

@ -1,5 +1,7 @@
package baishansdk package baishansdk
import "encoding/json"
type BaseResponse interface { type BaseResponse interface {
GetCode() int32 GetCode() int32
GetMessage() string GetMessage() string
@ -61,7 +63,7 @@ type SetDomainConfigResponse struct {
} }
type DomainCertificate struct { type DomainCertificate struct {
CertId int64 `json:"cert_id"` CertId json.Number `json:"cert_id"`
Name string `json:"name"` Name string `json:"name"`
CertStartTime string `json:"cert_start_time"` CertStartTime string `json:"cert_start_time"`
CertExpireTime string `json:"cert_expire_time"` CertExpireTime string `json:"cert_expire_time"`
@ -72,7 +74,7 @@ type DomainConfig struct {
} }
type DomainConfigHttps struct { type DomainConfigHttps struct {
CertId int64 `json:"cert_id"` CertId json.Number `json:"cert_id"`
ForceHttps *string `json:"force_https,omitempty"` ForceHttps *string `json:"force_https,omitempty"`
EnableHttp2 *string `json:"http2,omitempty"` EnableHttp2 *string `json:"http2,omitempty"`
EnableOcsp *string `json:"ocsp,omitempty"` EnableOcsp *string `json:"ocsp,omitempty"`