-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
66 lines (59 loc) · 1.75 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package genshin
type User struct {
Retcode int `json:"retcode"`
Message string `json:"message"`
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 {
AvatarUrl string `json:"AvatarUrl"`
Nickname string `json:"nickname"`
Region string `json:"region"`
Level int `json:"level"`
}
type character struct {
Id int `json:"id"`
Image string `json:"image"`
Name string `json:"name"`
Element string `json:"element"`
FriendLevel int `json:"fetter"`
Level int `json:"level"`
Rarity int `json:"rarity"`
Constellation int `json:"actived_constellation_num"`
CardImage string `json:"card_image"`
InTeam bool `json:"is_chosen"`
}