mirror of
https://github.com/woodchen-ink/certimate.git
synced 2025-07-18 17:31:55 +08:00
fix: #544
This commit is contained in:
parent
0545945697
commit
892256c0b9
18
internal/pkg/vendors/baishan-sdk/models.go
vendored
18
internal/pkg/vendors/baishan-sdk/models.go
vendored
@ -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,10 +63,10 @@ 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"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DomainConfig struct {
|
type DomainConfig struct {
|
||||||
@ -72,8 +74,8 @@ 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"`
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user