1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-06-14 23:45:03 +02:00

Add UserService to handle JIRA User endpoints

This commit is contained in:
Guilherme Rezende
2016-10-31 10:24:30 -02:00
parent 5899a43d6a
commit c969fb4ee0
4 changed files with 133 additions and 12 deletions

View File

@ -29,6 +29,7 @@ type Client struct {
Project *ProjectService
Board *BoardService
Sprint *SprintService
User *UserService
}
// NewClient returns a new JIRA API client.
@ -57,6 +58,7 @@ func NewClient(httpClient *http.Client, baseURL string) (*Client, error) {
c.Project = &ProjectService{client: c}
c.Board = &BoardService{client: c}
c.Sprint = &SprintService{client: c}
c.User = &UserService{client: c}
return c, nil
}