mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-12 23:49:51 +00:00
49 lines
878 B
Go
49 lines
878 B
Go
package btpanelsdk
|
|
|
|
type BaseResponse interface {
|
|
GetStatus() *bool
|
|
GetMsg() *string
|
|
}
|
|
|
|
type baseResponse struct {
|
|
Status *bool `json:"status,omitempty"`
|
|
Msg *string `json:"msg,omitempty"`
|
|
}
|
|
|
|
func (r *baseResponse) GetStatus() *bool {
|
|
return r.Status
|
|
}
|
|
|
|
func (r *baseResponse) GetMsg() *string {
|
|
return r.Msg
|
|
}
|
|
|
|
type ConfigSavePanelSSLRequest struct {
|
|
PrivateKey string `json:"privateKey"`
|
|
Certificate string `json:"certPem"`
|
|
}
|
|
|
|
type ConfigSavePanelSSLResponse struct {
|
|
baseResponse
|
|
}
|
|
|
|
type SiteSetSSLRequest struct {
|
|
Type string `json:"type"`
|
|
SiteName string `json:"siteName"`
|
|
PrivateKey string `json:"key"`
|
|
Certificate string `json:"csr"`
|
|
}
|
|
|
|
type SiteSetSSLResponse struct {
|
|
baseResponse
|
|
}
|
|
|
|
type SystemServiceAdminRequest struct {
|
|
Name string `json:"name"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type SystemServiceAdminResponse struct {
|
|
baseResponse
|
|
}
|