فهرست منبع

Added Repos Count tot User API

Yoginth 7 سال پیش
والد
کامیت
3a3fd0843f
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 1 0
      models/user.go
  2. 2 1
      vendor/gitlab.com/gitote/go-gitote-client/user.go

+ 1 - 0
models/user.go

@@ -161,6 +161,7 @@ func (u *User) APIFormat() *api.User {
 		Description:  u.Description,
 		Email:        u.Email,
 		IsAdmin:      u.IsAdmin,
+		NumRepos:     u.NumRepos,
 		Created:      u.Created,
 		Updated:      u.Updated,
 		NumFollowing: u.NumFollowing,

+ 2 - 1
vendor/gitlab.com/gitote/go-gitote-client/user.go

@@ -17,11 +17,12 @@ type User struct {
 	Location     string    `json:"location"`
 	Description  string    `json:"bio"`
 	IsAdmin      bool      `json:"site_admin"`
-	AvatarUrl    string    `json:"avatar_url"`
+	NumRepos     int       `json:"repos"`
 	Created      time.Time `json:"created_at"`
 	Updated      time.Time `json:"updated_at"`
 	NumFollowing int       `json:"following"`
 	NumFollowers int       `json:"followers"`
+	AvatarUrl    string    `json:"avatar_url"`
 }
 
 // MarshalJSON implements the json.Marshaler interface for User