mirror of
https://github.com/trafficlunar/api.git
synced 2026-06-27 22:24:08 +00:00
feat: split project name into owner and name
This commit is contained in:
parent
26ed84f50b
commit
45816ac7a8
2 changed files with 7 additions and 1 deletions
|
|
@ -1,6 +1,10 @@
|
|||
package model
|
||||
|
||||
type GitHubAPI struct {
|
||||
Owner struct {
|
||||
Login string `json:"login"`
|
||||
} `json:"owner"`
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
Stars int `json:"stargazers_count"`
|
||||
Language string `json:"language"`
|
||||
|
|
@ -8,6 +12,7 @@ type GitHubAPI struct {
|
|||
}
|
||||
|
||||
type GitHubData struct {
|
||||
Owner string `json:"owner"`
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
Stars int `json:"stars"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue