Commit 954568c5 authored by Praneet Loke's avatar Praneet Loke Committed by Sander van Harmelen

Fix for issue #516. (#517)

* Fix #516.

* Order the fields of GroupMember to match the GitLab docs.
parent 4f8d66b4
......@@ -19,7 +19,6 @@ package gitlab
import (
"fmt"
"net/url"
"time"
)
// GroupMembersService handles communication with the group members
......@@ -36,12 +35,12 @@ type GroupMembersService struct {
type GroupMember struct {
ID int `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
Name string `json:"name"`
State string `json:"state"`
CreatedAt *time.Time `json:"created_at"`
AccessLevel AccessLevelValue `json:"access_level"`
AvatarURL string `json:"avatar_url"`
WebURL string `json:"web_url"`
ExpiresAt *ISOTime `json:"expires_at"`
AccessLevel AccessLevelValue `json:"access_level"`
}
// ListGroupMembersOptions represents the available ListGroupMembers() and
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment