fix build

pull/21/head
Yasuhiro Matsumoto 2017-04-17 12:39:41 +09:00
parent 26bc85fb24
commit 664f8f8fdf
1 changed files with 4 additions and 4 deletions

View File

@ -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