add action items menu
This commit is contained in:
parent
4b92d2e7c4
commit
4266bfbfc2
5 changed files with 172 additions and 20 deletions
24
internal/porkbun/models.go
Normal file
24
internal/porkbun/models.go
Normal 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"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue