Add IP ban type

This commit is contained in:
Wim Brand 2021-05-25 11:31:30 +02:00
parent 96cba129f2
commit 0c17329ada

View File

@ -48,6 +48,13 @@ type AdminAbuseReport struct {
EMail string `json:"email"`
}
type AdminIPBan struct {
Address string `json:"address"`
BanTime time.Time `json:"ban_time"`
ExpireTime time.Time `json:"expire_time"`
Reason string `json:"reason"`
}
// AdminGetGlobals returns the global API settings
func (p *PixelAPI) AdminGetGlobals() (resp []AdminGlobal, err error) {
return resp, p.jsonRequest("GET", "admin/globals", &resp)