feat: support replacing old certificate on deployment to baishan cdn

This commit is contained in:
Fu Diwei
2025-03-27 14:12:42 +08:00
parent a8be2a77cf
commit f302c7fb74
6 changed files with 109 additions and 65 deletions

View File

@@ -27,9 +27,10 @@ func (r *baseResponse) GetMessage() string {
}
type CreateCertificateRequest struct {
Certificate string `json:"certificate"`
Key string `json:"key"`
Name string `json:"name"`
CertificateId *string `json:"cert_id,omitempty"`
Certificate string `json:"certificate"`
Key string `json:"key"`
Name string `json:"name"`
}
type CreateCertificateResponse struct {