feat: add baota panel deployer

This commit is contained in:
Fu Diwei
2025-02-10 23:56:01 +08:00
parent 6673871db2
commit 81fe230be4
22 changed files with 591 additions and 5 deletions

26
internal/pkg/vendors/btpanel-sdk/api.go vendored Normal file
View File

@@ -0,0 +1,26 @@
package btpanelsdk
type BaseResponse interface {
GetStatus() *bool
GetMsg() *string
}
type SetSiteSSLRequest struct {
Type string `json:"type"`
SiteName string `json:"siteName"`
Key string `json:"key"`
Csr string `json:"csr"`
}
type SetSiteSSLResponse struct {
Status *bool `json:"status,omitempty"`
Msg *string `json:"msg,omitempty"`
}
func (r *SetSiteSSLResponse) GetStatus() *bool {
return r.Status
}
func (r *SetSiteSSLResponse) GetMsg() *string {
return r.Msg
}