From 74cb8fc904f3a353cdb3fcf7193cc3a02bd219f5 Mon Sep 17 00:00:00 2001 From: edisonxiang Date: Thu, 26 Sep 2019 16:47:02 +0800 Subject: [PATCH] change project.int32 field --- api/swagger.yaml | 9 ++++++--- docs/Project.md | 6 +++--- gitee/model_project.go | 6 +++--- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/api/swagger.yaml b/api/swagger.yaml index 985169b..748153c 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -14403,11 +14403,14 @@ definitions: language: type: "string" forks_count: - type: "string" + type: "integer" + format: "int32" stargazers_count: - type: "string" + type: "integer" + format: "int32" watchers_count: - type: "string" + type: "integer" + format: "int32" default_branch: type: "string" open_issues_count: diff --git a/docs/Project.md b/docs/Project.md index 0b37980..a22e987 100644 --- a/docs/Project.md +++ b/docs/Project.md @@ -39,9 +39,9 @@ Name | Type | Description | Notes **Recommend** | **bool** | | [optional] [default to null] **Homepage** | **string** | | [optional] [default to null] **Language** | **string** | | [optional] [default to null] -**ForksCount** | **string** | | [optional] [default to null] -**StargazersCount** | **string** | | [optional] [default to null] -**WatchersCount** | **string** | | [optional] [default to null] +**ForksCount** | **int32** | | [optional] [default to null] +**StargazersCount** | **int32** | | [optional] [default to null] +**WatchersCount** | **int32** | | [optional] [default to null] **DefaultBranch** | **string** | | [optional] [default to null] **OpenIssuesCount** | **int32** | | [optional] [default to null] **HasIssues** | **bool** | | [optional] [default to null] diff --git a/gitee/model_project.go b/gitee/model_project.go index f7afbf5..f7de99f 100644 --- a/gitee/model_project.go +++ b/gitee/model_project.go @@ -47,9 +47,9 @@ type Project struct { Recommend bool `json:"recommend,omitempty"` Homepage string `json:"homepage,omitempty"` Language string `json:"language,omitempty"` - ForksCount string `json:"forks_count,omitempty"` - StargazersCount string `json:"stargazers_count,omitempty"` - WatchersCount string `json:"watchers_count,omitempty"` + ForksCount int32 `json:"forks_count,omitempty"` + StargazersCount int32 `json:"stargazers_count,omitempty"` + WatchersCount int32 `json:"watchers_count,omitempty"` DefaultBranch string `json:"default_branch,omitempty"` OpenIssuesCount int32 `json:"open_issues_count,omitempty"` HasIssues bool `json:"has_issues,omitempty"` -- GitLab