-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpayload.go
117 lines (102 loc) · 2.82 KB
/
payload.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
package acnh
type code string
func (c code) Error() string {
return "nso api error: " + string(c)
}
type Land struct {
DisplayID int `json:"displayId"`
ID string `json:"id"`
Name string `json:"name"`
}
type User struct {
ID string `json:"id"`
Image string `json:"image"`
Land Land `json:"land"`
Name string `json:"name"`
}
type UsersResponse struct {
Users []User `json:"users"`
Code code `json:"code"`
}
type AuthTokenRequest struct {
UserID string `json:"userId"`
}
type AuthTokenResponse struct {
ExpireAt int `json:"expireAt"`
Token string `json:"token"`
Code code `json:"code"`
}
type MBirth struct {
Day int `json:"day"`
Month int `json:"month"`
}
type MTimeStamp struct {
Day int `json:"day"`
Month int `json:"month"`
Year int `json:"year"`
}
type UserProfileResponse struct {
ContentID string `json:"contentId"`
CreatedAt int `json:"createdAt"`
Digest string `json:"digest"`
LandName string `json:"landName"`
MBirth MBirth `json:"mBirth"`
MComment string `json:"mComment"`
MHandleName string `json:"mHandleName"`
MIsLandMaster bool `json:"mIsLandMaster"`
MJpeg string `json:"mJpeg"`
MLanguage string `json:"mLanguage"`
MMyDesignAuthorID string `json:"mMyDesignAuthorId"`
MPNm string `json:"mPNm"`
MTimeStamp MTimeStamp `json:"mTimeStamp"`
MVer int `json:"mVer"`
Code code `json:"code"`
}
type MFruit struct {
ID int `json:"id"`
Name string `json:"name"`
}
type MNormalNpc struct {
BirthDay int `json:"birthDay"`
BirthMonth int `json:"birthMonth"`
Image string `json:"image"`
Name string `json:"name"`
}
type MVillager struct {
MJpeg string `json:"mJpeg"`
MPNm string `json:"mPNm"`
UserID string `json:"userId"`
}
type LandProfileResponse struct {
MFruit MFruit `json:"mFruit"`
MLanguage string `json:"mLanguage"`
MNormalNpc []MNormalNpc `json:"mNormalNpc"`
MVNm string `json:"mVNm"`
MVRuby int `json:"mVRuby"`
MVer int `json:"mVer"`
MVillager []MVillager `json:"mVillager"`
Code code `json:"code"`
}
type Friend struct {
Image string `json:"image"`
Land Land `json:"land"`
Name string `json:"name"`
UserID string `json:"userId"`
}
type FriendsResponse struct {
Friends []Friend `json:"friends"`
Code code `json:"code"`
}
type PresenceFriendsResponse struct {
Presences []Friend `json:"presences"`
Code code `json:"code"`
}
type SendMessageRequest struct {
Body string `json:"body"`
Type string `json:"type"`
UserID string `json:"userId"`
}
type SendMessageResponse struct {
Status string `json:"status"`
Code code `json:"code"`
}