fix build

This commit is contained in:
Yasuhiro Matsumoto 2017-04-17 12:39:41 +09:00
parent 26bc85fb24
commit 664f8f8fdf

View File

@ -11,14 +11,14 @@ type Report struct {
ActionTaken bool `json:"action_taken"`
}
// GetReport return report of the current user.
func (c *Client) GetReport(ctx context.Context) (*Report, error) {
var reports Report
// GetReports return report of the current user.
func (c *Client) GetReports(ctx context.Context) ([]*Report, error) {
var reports []*Report
err := c.doAPI(ctx, http.MethodGet, "/api/v1/reports", nil, &reports)
if err != nil {
return nil, err
}
return &reports, nil
return reports, nil
}
// Report reports the report