feat: backend support for ratpanel
This commit is contained in:
15
internal/pkg/sdk3rd/ratpanel/api.go
Normal file
15
internal/pkg/sdk3rd/ratpanel/api.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package btpanelsdk
|
||||
|
||||
import "net/http"
|
||||
|
||||
func (c *Client) SettingCert(req *SettingCertRequest) (*SettingCertResponse, error) {
|
||||
resp := &SettingCertResponse{}
|
||||
err := c.sendRequestWithResult(http.MethodPost, "/setting/cert", req, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *Client) WebsiteCert(req *SiteCertRequest) (*SiteCertResponse, error) {
|
||||
resp := &SiteCertResponse{}
|
||||
err := c.sendRequestWithResult(http.MethodPost, "/website/cert", req, resp)
|
||||
return resp, err
|
||||
}
|
||||
Reference in New Issue
Block a user