add action items menu

This commit is contained in:
juancwu 2026-01-21 21:27:08 +00:00
commit 4266bfbfc2
5 changed files with 172 additions and 20 deletions

View file

@ -0,0 +1,24 @@
package porkbun
// BaseRequest contains the authentication fields required for most Porkbun API calls.
type BaseRequest struct {
APIKey string `json:"apikey"`
SecretAPIKey string `json:"secretapikey"`
}
// BaseResponse contains the common fields returned by the Porkbun API.
type BaseResponse struct {
Status string `json:"status"`
Message string `json:"message,omitempty"`
}
// PingRequest is used to verify credentials.
type PingRequest struct {
BaseRequest
}
// PingResponse is the response from the ping endpoint.
type PingResponse struct {
BaseResponse
YourIP string `json:"yourIp"`
}