-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathfileds.go
226 lines (202 loc) · 7.8 KB
/
fileds.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
/**
* Author: Tony.Shao([email protected])
* Date: 13-03-06
* Version: 0.02
* modify by violetgo
*/
package weigo
type Status struct {
Id int64 `json:"id"`
Mid string `json:"mid"`
Idstr string `json:"idstr"`
Text string `json:"text"`
Source string `json:"source"`
Favorited bool `json:"favorited"`
Truncated bool `json:"truncated"`
In_reply_to_status_id string `json:"in_reply_to_status_id"` //暂未支持
In_reply_to_user_id string `json:"in_reply_to_user_id"` //暂未支持
In_reply_to_screen_name string `json:"in_reply_to_screen_name"` //暂未支持
Thumbnail_pic string `json:"thumbnail_pic"`
Bmiddle_pic string `json:"bmiddle_pic"`
Original_pic string `json:"original_pic"`
Geo interface{} `json:"geo"` //{"type": "Point","coordinates": [21.231153,110.418708]}
User *User `json:"user,omitempty"`
Retweeted_status *Status `json:"retweeted_status,omitempty"`
Reposts_count int64 `json:"reposts_count"`
Comments_count int64 `json:"comments_count"`
Attitudes_count int64 `json:"attitudes_count"`
Mlevel int64 `json:"mlevel"` //暂未支持
Visible interface{} `json:"visible"` //{"type": 0,"list_id": 0}
Created_at string `json:"created_at"`
}
type User struct {
Id int64 `json:"id"`
Idstr string `json:"idstr"`
Screen_name string `json:"screen_name"`
Name string `json:"name"`
Province string `json:"province"`
City string `json:"city"`
Location string `json:"location"`
Description string `json:"description"`
Url string `json:"url"`
Profile_image_url string `json:"profile_image_url"`
Profile_url string `json:"profile_url"`
Domain string `json:"domain"`
Weihao string `json:"weihao"`
Gender string `json:"gender"`
Followers_count int64 `json:"followers_count"`
Friends_count int64 `json:"friends_count"`
Statuses_count int64 `json:"statuses_count"`
Favourites_count int64 `json:"favourites_count"`
Created_at string `json:"created_at"`
Following bool `json:"following"`
Allow_all_act_msg bool `json:"allow_all_act_msg"`
Geo_enabled bool `json:"geo_enabled"`
Verified bool `json:"verified"`
Verified_type int64 `json:"verified_type"`
Remark string `json:"remark"`
Status *Status `json:"status,omitempty"`
Allow_all_comment bool `json:"allow_all_comment"`
Avatar_large string `json:"avatar_large"`
Verified_reason string `json:"verified_reason"`
Follow_me bool `json:"follow_me"`
Online_status int64 `json:"online_status"`
Bi_followers_count int64 `json:"bi_followers_count"`
Lang string `json:"lang"`
Star int64 `json:"star"`
Mbtype int64 `json:"mbtype"`
Mbrank int64 `json:"mbrank"`
Block_word int64 `json:"block_word"`
}
//UserTimeline, HomeTimeline...
type Statuses struct {
Statuses *[]Status `json:"statuses"`
Hasvisible bool `json:"hasvisible"`
Previous_cursor int64 `json:"previous_cursor"`
Next_cursor int64 `json:"next_cursor"`
Total_number int64 `json:"total_number"`
Marks []interface{} `json:"marks,omitempty"`
}
type Reposts struct {
Reposts *[]Status `json:"reposts"`
Hasvisible bool `json:"hasvisible"`
Previous_cursor int64 `json:"previous_cursor"`
Next_cursor int64 `json:"next_cursor"`
Total_number int64 `json:"total_number"`
Marks []interface{} `json:"marks,omitempty"`
}
type Comments struct {
Comments *[]Comment `json:"comments,omitempty"`
Hasvisible bool `json:"hasvisible"`
Previous_cursor int64 `json:"previous_cursor"`
Next_cursor int64 `json:"next_cursor"`
Total_number int64 `json:"total_number"`
Marks []interface{} `json:"marks,omitempty"`
}
type UserCounts struct {
Id int64 `json:"id"`
Followers_count int64 `json:"followers_count"`
Friends_count int64 `json:"friends_count"`
Statuses_count int64 `json:"statuses_count"`
Private_friends_count int64 `json:"private_friends_count,omitempty"`
}
type Comment struct {
Created_at string `json:"created_at"`
Id int64 `json:"id"`
Text string `json:"text"`
Source string `json:"source"`
User *User `json:"user,omitempty"`
Mid string `json:"mid"`
Idstr string `json:"idstr"`
Status *Status `json:"status,omitempty"`
Reply_comment *Comment `json:"reply_comment,omitempty"`
}
type UserRank struct {
Uid int64 `json:"uid"`
Rank int64 `json:"rank"`
}
//friends_timeline_ids, repost_timeline_ids
type TimelineIDs struct {
Statuses []string `json:"statuses"`
Hasvisible bool `json:"hasvisible"`
Previous_cursor int64 `json:"previous_cursor"`
Next_cursor int64 `json:"next_cursor"`
Total_number int64 `json:"total_number"`
Marks []interface{} `json:"marks,omitempty"`
}
type StatusCount struct {
Id int64 `json:"id"`
Comments int64 `json:"comments"`
Reposts int64 `json:"reposts"`
Attitudes int64 `json:"attitudes,omitempty"`
}
type Friendships struct {
Users *[]User `json:"users"`
Previous_cursor int64 `json:"previous_cursor,omitempty"`
Next_cursor int64 `json:"next_cursor,omitempty"`
Total_number int64 `json:"total_number,omitempty"`
}
type FriendsIDS struct {
Ids *[]int64 `json:"ids"`
Previous_cursor int64 `json:"previous_cursor,omitempty"`
Next_cursor int64 `json:"next_cursor,omitempty"`
Total_number int64 `json:"total_number,omitempty"`
}
type Config struct {
Comment int64 `json:"comment"`
Geo int64 `json:"geo"`
Message int64 `json:"message"`
Realname int64 `json:"realname"`
Badge int64 `json:"badge"`
Mobile int64 `json:"mobile"`
Webim int64 `json:"webim"`
}
type LimitStatus struct {
Ip_limit int64 `json:"ip_limit"`
Limit_time_unit string `json:"limit_time_unit"`
Remaining_ip_hits int64 `json:"remaining_ip_hits"`
Remaining_user_hits int64 `json:"remaining_user_hits"`
Reset_time string `json:"reset_time"`
Reset_time_in_seconds int64 `json:"reset_time_in_seconds"`
User_limit int64 `json:"user_limit"`
}
type UserID struct {
Uid int64 `json:"uid"`
}
type Email struct {
Email string `json:"email"`
}
type School struct {
Id int64 `json:"id"`
Name string `json:"name"`
}
type Tags struct {
Tags []map[string]interface{} `json:"tags"`
Id int64 `json:"id"`
}
type Favorite struct {
Status *Status `json:"status"`
Tags *Tags `json:"tags"`
Favorited_time string `json:"favorited_time"`
}
type Favorites struct {
Favorites *[]Favorite `json:"favorites"`
Total_number int64 `json:"total_number"`
}
type FavoriteID struct {
StatusID int64 `json:"status"`
Tags *Tags `json:"tags"`
Favorited_time string `json:"favorited_time"`
}
type FavoritesID struct {
Favorites *[]FavoriteID `json:"favorites"`
Total_number int64 `json:"total_number"`
}
type Topic struct {
Statuses *[]Status `json:"statuses"`
Total_number int64 `json:"total_number"`
}
type SuggestionsUser struct {
Users *[]User `json:"users"`
Total_number int64 `json:"total_number"`
}