diff --git a/api/swagger.yaml b/api/swagger.yaml index 985169bb7d7dccf50bcdebce302ec55e7c3201cf..748153ce0a48d5bc10eb8cfcca81fcedb99851d5 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 0b37980c0ac842b92f33a25f388ec3c6c6774359..a22e98747818fbb8cffd3eb9639c876536aca5cd 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 f7afbf52d4da83360b1ce356f404ba69c61693e0..f7de99f2a0810386c2a10ee5d0e11738178a219e 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"`