Add IP ban type
This commit is contained in:
parent
96cba129f2
commit
0c17329ada
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user