Skip to content

Commit

Permalink
add more types
Browse files Browse the repository at this point in the history
  • Loading branch information
Nota30 committed Apr 24, 2023
1 parent f817c66 commit 35372a6
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 4 deletions.
Empty file added go.sum
Empty file.
44 changes: 40 additions & 4 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,46 @@ package genshin
type User struct {
Retcode int `json:"retcode"`
Message string `json:"message"`
Data struct {
Info info `json:"role"`
Characters []character `json:"avatars"`
} `json:"data"`
Data data `json:"data"`
}

type data struct {
Info info `json:"role"`
Characters []character `json:"avatars"`
Stats stats `json:"stats"`
Exploration []exploration `json:"world_explorations"`
}

type exploration struct {
Name string `json:"name"`
Reputation int `json:"level"`
Explored int `json:"exploration_percentage"`
Icon string `json:"icon"`
Offerings []offering `json:"offerings"`
}

type offering struct {
Name string `json:"name"`
Level int `json:"level"`
Icon string `json:"icon"`
}

type stats struct {
ActiveDays int `json:"active_day_number"`
Achievements int `json:"achievement_number"`
Anemoculus int `json:"anemoculus_number"`
Geoculus int `json:"geoculus_number"`
Electroculus int `json:"electroculus_number"`
Dendroculus int `json:"dendroculus_number"`
Characters int `json:"avatar_number"`
Waypoints int `json:"way_point_number"`
Domains int `json:"domain_number"`
SpiralAbyss string `json:"spiral_abyss"`
PreciousChests int `json:"precious_chest_number"`
LuxuriousChests int `json:"luxurious_chest_number"`
ExquisiteChests int `json:"exquisite_chest_number"`
CommonChests int `json:"common_chest_number"`
MagicChests int `json:"magic_chest_number"`
}

type info struct {
Expand Down

0 comments on commit 35372a6

Please sign in to comment.