fix build
This commit is contained in:
parent
26bc85fb24
commit
664f8f8fdf
|
@ -11,14 +11,14 @@ type Report struct {
|
||||||
ActionTaken bool `json:"action_taken"`
|
ActionTaken bool `json:"action_taken"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetReport return report of the current user.
|
// GetReports return report of the current user.
|
||||||
func (c *Client) GetReport(ctx context.Context) (*Report, error) {
|
func (c *Client) GetReports(ctx context.Context) ([]*Report, error) {
|
||||||
var reports Report
|
var reports []*Report
|
||||||
err := c.doAPI(ctx, http.MethodGet, "/api/v1/reports", nil, &reports)
|
err := c.doAPI(ctx, http.MethodGet, "/api/v1/reports", nil, &reports)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return &reports, nil
|
return reports, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Report reports the report
|
// Report reports the report
|
||||||
|
|
Loading…
Reference in New Issue
Block a user