passport_thrift_client 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/passport_thrift_client.rb +384 -0
- data/lib/remote_login_service.rb +203 -0
- data/lib/remote_passport_constants.rb +13 -0
- data/lib/remote_passport_service.rb +632 -0
- data/lib/remote_passport_types.rb +557 -0
- data/lib/remote_stat_user_track_service.rb +244 -0
- data/lib/remote_thirdparty_sync_set_service.rb +588 -0
- data/lib/remote_user_profile_service.rb +878 -0
- metadata +50 -0
@@ -0,0 +1,878 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.1)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'remote_passport_types'
|
9
|
+
|
10
|
+
module Passport
|
11
|
+
module Thrift
|
12
|
+
module RemoteUserProfileService
|
13
|
+
class Client
|
14
|
+
include ::Thrift::Client
|
15
|
+
|
16
|
+
def save(profile)
|
17
|
+
send_save(profile)
|
18
|
+
recv_save()
|
19
|
+
end
|
20
|
+
|
21
|
+
def send_save(profile)
|
22
|
+
send_message('save', Save_args, :profile => profile)
|
23
|
+
end
|
24
|
+
|
25
|
+
def recv_save()
|
26
|
+
result = receive_message(Save_result)
|
27
|
+
raise result.ex unless result.ex.nil?
|
28
|
+
return
|
29
|
+
end
|
30
|
+
|
31
|
+
def modifyPassword(uid, oldPwd, newPwd, confirmPwd)
|
32
|
+
send_modifyPassword(uid, oldPwd, newPwd, confirmPwd)
|
33
|
+
recv_modifyPassword()
|
34
|
+
end
|
35
|
+
|
36
|
+
def send_modifyPassword(uid, oldPwd, newPwd, confirmPwd)
|
37
|
+
send_message('modifyPassword', ModifyPassword_args, :uid => uid, :oldPwd => oldPwd, :newPwd => newPwd, :confirmPwd => confirmPwd)
|
38
|
+
end
|
39
|
+
|
40
|
+
def recv_modifyPassword()
|
41
|
+
result = receive_message(ModifyPassword_result)
|
42
|
+
raise result.ex unless result.ex.nil?
|
43
|
+
return
|
44
|
+
end
|
45
|
+
|
46
|
+
def setPassword(uid, newPwd, confirmPwd)
|
47
|
+
send_setPassword(uid, newPwd, confirmPwd)
|
48
|
+
recv_setPassword()
|
49
|
+
end
|
50
|
+
|
51
|
+
def send_setPassword(uid, newPwd, confirmPwd)
|
52
|
+
send_message('setPassword', SetPassword_args, :uid => uid, :newPwd => newPwd, :confirmPwd => confirmPwd)
|
53
|
+
end
|
54
|
+
|
55
|
+
def recv_setPassword()
|
56
|
+
result = receive_message(SetPassword_result)
|
57
|
+
raise result.ex unless result.ex.nil?
|
58
|
+
return
|
59
|
+
end
|
60
|
+
|
61
|
+
def getProfileByUid(uid)
|
62
|
+
send_getProfileByUid(uid)
|
63
|
+
return recv_getProfileByUid()
|
64
|
+
end
|
65
|
+
|
66
|
+
def send_getProfileByUid(uid)
|
67
|
+
send_message('getProfileByUid', GetProfileByUid_args, :uid => uid)
|
68
|
+
end
|
69
|
+
|
70
|
+
def recv_getProfileByUid()
|
71
|
+
result = receive_message(GetProfileByUid_result)
|
72
|
+
return result.success unless result.success.nil?
|
73
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getProfileByUid failed: unknown result')
|
74
|
+
end
|
75
|
+
|
76
|
+
def getProfileByUids(uids)
|
77
|
+
send_getProfileByUids(uids)
|
78
|
+
return recv_getProfileByUids()
|
79
|
+
end
|
80
|
+
|
81
|
+
def send_getProfileByUids(uids)
|
82
|
+
send_message('getProfileByUids', GetProfileByUids_args, :uids => uids)
|
83
|
+
end
|
84
|
+
|
85
|
+
def recv_getProfileByUids()
|
86
|
+
result = receive_message(GetProfileByUids_result)
|
87
|
+
return result.success unless result.success.nil?
|
88
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getProfileByUids failed: unknown result')
|
89
|
+
end
|
90
|
+
|
91
|
+
def getNicknameByUid(uid)
|
92
|
+
send_getNicknameByUid(uid)
|
93
|
+
return recv_getNicknameByUid()
|
94
|
+
end
|
95
|
+
|
96
|
+
def send_getNicknameByUid(uid)
|
97
|
+
send_message('getNicknameByUid', GetNicknameByUid_args, :uid => uid)
|
98
|
+
end
|
99
|
+
|
100
|
+
def recv_getNicknameByUid()
|
101
|
+
result = receive_message(GetNicknameByUid_result)
|
102
|
+
return result.success unless result.success.nil?
|
103
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNicknameByUid failed: unknown result')
|
104
|
+
end
|
105
|
+
|
106
|
+
def getMultiNickNameByUids(uidList)
|
107
|
+
send_getMultiNickNameByUids(uidList)
|
108
|
+
return recv_getMultiNickNameByUids()
|
109
|
+
end
|
110
|
+
|
111
|
+
def send_getMultiNickNameByUids(uidList)
|
112
|
+
send_message('getMultiNickNameByUids', GetMultiNickNameByUids_args, :uidList => uidList)
|
113
|
+
end
|
114
|
+
|
115
|
+
def recv_getMultiNickNameByUids()
|
116
|
+
result = receive_message(GetMultiNickNameByUids_result)
|
117
|
+
return result.success unless result.success.nil?
|
118
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getMultiNickNameByUids failed: unknown result')
|
119
|
+
end
|
120
|
+
|
121
|
+
def queryUserBasicInfo(uid)
|
122
|
+
send_queryUserBasicInfo(uid)
|
123
|
+
return recv_queryUserBasicInfo()
|
124
|
+
end
|
125
|
+
|
126
|
+
def send_queryUserBasicInfo(uid)
|
127
|
+
send_message('queryUserBasicInfo', QueryUserBasicInfo_args, :uid => uid)
|
128
|
+
end
|
129
|
+
|
130
|
+
def recv_queryUserBasicInfo()
|
131
|
+
result = receive_message(QueryUserBasicInfo_result)
|
132
|
+
return result.success unless result.success.nil?
|
133
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'queryUserBasicInfo failed: unknown result')
|
134
|
+
end
|
135
|
+
|
136
|
+
def getMultiUserBasicInfos(uids)
|
137
|
+
send_getMultiUserBasicInfos(uids)
|
138
|
+
return recv_getMultiUserBasicInfos()
|
139
|
+
end
|
140
|
+
|
141
|
+
def send_getMultiUserBasicInfos(uids)
|
142
|
+
send_message('getMultiUserBasicInfos', GetMultiUserBasicInfos_args, :uids => uids)
|
143
|
+
end
|
144
|
+
|
145
|
+
def recv_getMultiUserBasicInfos()
|
146
|
+
result = receive_message(GetMultiUserBasicInfos_result)
|
147
|
+
return result.success unless result.success.nil?
|
148
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getMultiUserBasicInfos failed: unknown result')
|
149
|
+
end
|
150
|
+
|
151
|
+
def getProfileByNickname(nickname)
|
152
|
+
send_getProfileByNickname(nickname)
|
153
|
+
return recv_getProfileByNickname()
|
154
|
+
end
|
155
|
+
|
156
|
+
def send_getProfileByNickname(nickname)
|
157
|
+
send_message('getProfileByNickname', GetProfileByNickname_args, :nickname => nickname)
|
158
|
+
end
|
159
|
+
|
160
|
+
def recv_getProfileByNickname()
|
161
|
+
result = receive_message(GetProfileByNickname_result)
|
162
|
+
return result.success unless result.success.nil?
|
163
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getProfileByNickname failed: unknown result')
|
164
|
+
end
|
165
|
+
|
166
|
+
def checkNickname(oldNickname, nickname)
|
167
|
+
send_checkNickname(oldNickname, nickname)
|
168
|
+
recv_checkNickname()
|
169
|
+
end
|
170
|
+
|
171
|
+
def send_checkNickname(oldNickname, nickname)
|
172
|
+
send_message('checkNickname', CheckNickname_args, :oldNickname => oldNickname, :nickname => nickname)
|
173
|
+
end
|
174
|
+
|
175
|
+
def recv_checkNickname()
|
176
|
+
result = receive_message(CheckNickname_result)
|
177
|
+
raise result.ex unless result.ex.nil?
|
178
|
+
return
|
179
|
+
end
|
180
|
+
|
181
|
+
def checkNicknameFormat(nickname)
|
182
|
+
send_checkNicknameFormat(nickname)
|
183
|
+
recv_checkNicknameFormat()
|
184
|
+
end
|
185
|
+
|
186
|
+
def send_checkNicknameFormat(nickname)
|
187
|
+
send_message('checkNicknameFormat', CheckNicknameFormat_args, :nickname => nickname)
|
188
|
+
end
|
189
|
+
|
190
|
+
def recv_checkNicknameFormat()
|
191
|
+
result = receive_message(CheckNicknameFormat_result)
|
192
|
+
raise result.ex unless result.ex.nil?
|
193
|
+
return
|
194
|
+
end
|
195
|
+
|
196
|
+
def checkNicknameDuplicate(oldNickname, nickname)
|
197
|
+
send_checkNicknameDuplicate(oldNickname, nickname)
|
198
|
+
recv_checkNicknameDuplicate()
|
199
|
+
end
|
200
|
+
|
201
|
+
def send_checkNicknameDuplicate(oldNickname, nickname)
|
202
|
+
send_message('checkNicknameDuplicate', CheckNicknameDuplicate_args, :oldNickname => oldNickname, :nickname => nickname)
|
203
|
+
end
|
204
|
+
|
205
|
+
def recv_checkNicknameDuplicate()
|
206
|
+
result = receive_message(CheckNicknameDuplicate_result)
|
207
|
+
raise result.ex unless result.ex.nil?
|
208
|
+
return
|
209
|
+
end
|
210
|
+
|
211
|
+
def getProfielByEmail(email)
|
212
|
+
send_getProfielByEmail(email)
|
213
|
+
return recv_getProfielByEmail()
|
214
|
+
end
|
215
|
+
|
216
|
+
def send_getProfielByEmail(email)
|
217
|
+
send_message('getProfielByEmail', GetProfielByEmail_args, :email => email)
|
218
|
+
end
|
219
|
+
|
220
|
+
def recv_getProfielByEmail()
|
221
|
+
result = receive_message(GetProfielByEmail_result)
|
222
|
+
return result.success unless result.success.nil?
|
223
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getProfielByEmail failed: unknown result')
|
224
|
+
end
|
225
|
+
|
226
|
+
def getVerifiedUid(pageId, pageSize)
|
227
|
+
send_getVerifiedUid(pageId, pageSize)
|
228
|
+
return recv_getVerifiedUid()
|
229
|
+
end
|
230
|
+
|
231
|
+
def send_getVerifiedUid(pageId, pageSize)
|
232
|
+
send_message('getVerifiedUid', GetVerifiedUid_args, :pageId => pageId, :pageSize => pageSize)
|
233
|
+
end
|
234
|
+
|
235
|
+
def recv_getVerifiedUid()
|
236
|
+
result = receive_message(GetVerifiedUid_result)
|
237
|
+
return result.success unless result.success.nil?
|
238
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getVerifiedUid failed: unknown result')
|
239
|
+
end
|
240
|
+
|
241
|
+
end
|
242
|
+
|
243
|
+
class Processor
|
244
|
+
include ::Thrift::Processor
|
245
|
+
|
246
|
+
def process_save(seqid, iprot, oprot)
|
247
|
+
args = read_args(iprot, Save_args)
|
248
|
+
result = Save_result.new()
|
249
|
+
begin
|
250
|
+
@handler.save(args.profile)
|
251
|
+
rescue ::Passport::Thrift::ProfileException => ex
|
252
|
+
result.ex = ex
|
253
|
+
end
|
254
|
+
write_result(result, oprot, 'save', seqid)
|
255
|
+
end
|
256
|
+
|
257
|
+
def process_modifyPassword(seqid, iprot, oprot)
|
258
|
+
args = read_args(iprot, ModifyPassword_args)
|
259
|
+
result = ModifyPassword_result.new()
|
260
|
+
begin
|
261
|
+
@handler.modifyPassword(args.uid, args.oldPwd, args.newPwd, args.confirmPwd)
|
262
|
+
rescue ::Passport::Thrift::ProfileException => ex
|
263
|
+
result.ex = ex
|
264
|
+
end
|
265
|
+
write_result(result, oprot, 'modifyPassword', seqid)
|
266
|
+
end
|
267
|
+
|
268
|
+
def process_setPassword(seqid, iprot, oprot)
|
269
|
+
args = read_args(iprot, SetPassword_args)
|
270
|
+
result = SetPassword_result.new()
|
271
|
+
begin
|
272
|
+
@handler.setPassword(args.uid, args.newPwd, args.confirmPwd)
|
273
|
+
rescue ::Passport::Thrift::ProfileException => ex
|
274
|
+
result.ex = ex
|
275
|
+
end
|
276
|
+
write_result(result, oprot, 'setPassword', seqid)
|
277
|
+
end
|
278
|
+
|
279
|
+
def process_getProfileByUid(seqid, iprot, oprot)
|
280
|
+
args = read_args(iprot, GetProfileByUid_args)
|
281
|
+
result = GetProfileByUid_result.new()
|
282
|
+
result.success = @handler.getProfileByUid(args.uid)
|
283
|
+
write_result(result, oprot, 'getProfileByUid', seqid)
|
284
|
+
end
|
285
|
+
|
286
|
+
def process_getProfileByUids(seqid, iprot, oprot)
|
287
|
+
args = read_args(iprot, GetProfileByUids_args)
|
288
|
+
result = GetProfileByUids_result.new()
|
289
|
+
result.success = @handler.getProfileByUids(args.uids)
|
290
|
+
write_result(result, oprot, 'getProfileByUids', seqid)
|
291
|
+
end
|
292
|
+
|
293
|
+
def process_getNicknameByUid(seqid, iprot, oprot)
|
294
|
+
args = read_args(iprot, GetNicknameByUid_args)
|
295
|
+
result = GetNicknameByUid_result.new()
|
296
|
+
result.success = @handler.getNicknameByUid(args.uid)
|
297
|
+
write_result(result, oprot, 'getNicknameByUid', seqid)
|
298
|
+
end
|
299
|
+
|
300
|
+
def process_getMultiNickNameByUids(seqid, iprot, oprot)
|
301
|
+
args = read_args(iprot, GetMultiNickNameByUids_args)
|
302
|
+
result = GetMultiNickNameByUids_result.new()
|
303
|
+
result.success = @handler.getMultiNickNameByUids(args.uidList)
|
304
|
+
write_result(result, oprot, 'getMultiNickNameByUids', seqid)
|
305
|
+
end
|
306
|
+
|
307
|
+
def process_queryUserBasicInfo(seqid, iprot, oprot)
|
308
|
+
args = read_args(iprot, QueryUserBasicInfo_args)
|
309
|
+
result = QueryUserBasicInfo_result.new()
|
310
|
+
result.success = @handler.queryUserBasicInfo(args.uid)
|
311
|
+
write_result(result, oprot, 'queryUserBasicInfo', seqid)
|
312
|
+
end
|
313
|
+
|
314
|
+
def process_getMultiUserBasicInfos(seqid, iprot, oprot)
|
315
|
+
args = read_args(iprot, GetMultiUserBasicInfos_args)
|
316
|
+
result = GetMultiUserBasicInfos_result.new()
|
317
|
+
result.success = @handler.getMultiUserBasicInfos(args.uids)
|
318
|
+
write_result(result, oprot, 'getMultiUserBasicInfos', seqid)
|
319
|
+
end
|
320
|
+
|
321
|
+
def process_getProfileByNickname(seqid, iprot, oprot)
|
322
|
+
args = read_args(iprot, GetProfileByNickname_args)
|
323
|
+
result = GetProfileByNickname_result.new()
|
324
|
+
result.success = @handler.getProfileByNickname(args.nickname)
|
325
|
+
write_result(result, oprot, 'getProfileByNickname', seqid)
|
326
|
+
end
|
327
|
+
|
328
|
+
def process_checkNickname(seqid, iprot, oprot)
|
329
|
+
args = read_args(iprot, CheckNickname_args)
|
330
|
+
result = CheckNickname_result.new()
|
331
|
+
begin
|
332
|
+
@handler.checkNickname(args.oldNickname, args.nickname)
|
333
|
+
rescue ::Passport::Thrift::ProfileException => ex
|
334
|
+
result.ex = ex
|
335
|
+
end
|
336
|
+
write_result(result, oprot, 'checkNickname', seqid)
|
337
|
+
end
|
338
|
+
|
339
|
+
def process_checkNicknameFormat(seqid, iprot, oprot)
|
340
|
+
args = read_args(iprot, CheckNicknameFormat_args)
|
341
|
+
result = CheckNicknameFormat_result.new()
|
342
|
+
begin
|
343
|
+
@handler.checkNicknameFormat(args.nickname)
|
344
|
+
rescue ::Passport::Thrift::ProfileException => ex
|
345
|
+
result.ex = ex
|
346
|
+
end
|
347
|
+
write_result(result, oprot, 'checkNicknameFormat', seqid)
|
348
|
+
end
|
349
|
+
|
350
|
+
def process_checkNicknameDuplicate(seqid, iprot, oprot)
|
351
|
+
args = read_args(iprot, CheckNicknameDuplicate_args)
|
352
|
+
result = CheckNicknameDuplicate_result.new()
|
353
|
+
begin
|
354
|
+
@handler.checkNicknameDuplicate(args.oldNickname, args.nickname)
|
355
|
+
rescue ::Passport::Thrift::ProfileException => ex
|
356
|
+
result.ex = ex
|
357
|
+
end
|
358
|
+
write_result(result, oprot, 'checkNicknameDuplicate', seqid)
|
359
|
+
end
|
360
|
+
|
361
|
+
def process_getProfielByEmail(seqid, iprot, oprot)
|
362
|
+
args = read_args(iprot, GetProfielByEmail_args)
|
363
|
+
result = GetProfielByEmail_result.new()
|
364
|
+
result.success = @handler.getProfielByEmail(args.email)
|
365
|
+
write_result(result, oprot, 'getProfielByEmail', seqid)
|
366
|
+
end
|
367
|
+
|
368
|
+
def process_getVerifiedUid(seqid, iprot, oprot)
|
369
|
+
args = read_args(iprot, GetVerifiedUid_args)
|
370
|
+
result = GetVerifiedUid_result.new()
|
371
|
+
result.success = @handler.getVerifiedUid(args.pageId, args.pageSize)
|
372
|
+
write_result(result, oprot, 'getVerifiedUid', seqid)
|
373
|
+
end
|
374
|
+
|
375
|
+
end
|
376
|
+
|
377
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
378
|
+
|
379
|
+
class Save_args
|
380
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
381
|
+
PROFILE = 1
|
382
|
+
|
383
|
+
FIELDS = {
|
384
|
+
PROFILE => {:type => ::Thrift::Types::STRUCT, :name => 'profile', :class => ::Passport::Thrift::Profile}
|
385
|
+
}
|
386
|
+
|
387
|
+
def struct_fields; FIELDS; end
|
388
|
+
|
389
|
+
def validate
|
390
|
+
end
|
391
|
+
|
392
|
+
::Thrift::Struct.generate_accessors self
|
393
|
+
end
|
394
|
+
|
395
|
+
class Save_result
|
396
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
397
|
+
EX = 1
|
398
|
+
|
399
|
+
FIELDS = {
|
400
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Passport::Thrift::ProfileException}
|
401
|
+
}
|
402
|
+
|
403
|
+
def struct_fields; FIELDS; end
|
404
|
+
|
405
|
+
def validate
|
406
|
+
end
|
407
|
+
|
408
|
+
::Thrift::Struct.generate_accessors self
|
409
|
+
end
|
410
|
+
|
411
|
+
class ModifyPassword_args
|
412
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
413
|
+
UID = 1
|
414
|
+
OLDPWD = 2
|
415
|
+
NEWPWD = 3
|
416
|
+
CONFIRMPWD = 4
|
417
|
+
|
418
|
+
FIELDS = {
|
419
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
|
420
|
+
OLDPWD => {:type => ::Thrift::Types::STRING, :name => 'oldPwd'},
|
421
|
+
NEWPWD => {:type => ::Thrift::Types::STRING, :name => 'newPwd'},
|
422
|
+
CONFIRMPWD => {:type => ::Thrift::Types::STRING, :name => 'confirmPwd'}
|
423
|
+
}
|
424
|
+
|
425
|
+
def struct_fields; FIELDS; end
|
426
|
+
|
427
|
+
def validate
|
428
|
+
end
|
429
|
+
|
430
|
+
::Thrift::Struct.generate_accessors self
|
431
|
+
end
|
432
|
+
|
433
|
+
class ModifyPassword_result
|
434
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
435
|
+
EX = 1
|
436
|
+
|
437
|
+
FIELDS = {
|
438
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Passport::Thrift::ProfileException}
|
439
|
+
}
|
440
|
+
|
441
|
+
def struct_fields; FIELDS; end
|
442
|
+
|
443
|
+
def validate
|
444
|
+
end
|
445
|
+
|
446
|
+
::Thrift::Struct.generate_accessors self
|
447
|
+
end
|
448
|
+
|
449
|
+
class SetPassword_args
|
450
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
451
|
+
UID = 1
|
452
|
+
NEWPWD = 2
|
453
|
+
CONFIRMPWD = 3
|
454
|
+
|
455
|
+
FIELDS = {
|
456
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
|
457
|
+
NEWPWD => {:type => ::Thrift::Types::STRING, :name => 'newPwd'},
|
458
|
+
CONFIRMPWD => {:type => ::Thrift::Types::STRING, :name => 'confirmPwd'}
|
459
|
+
}
|
460
|
+
|
461
|
+
def struct_fields; FIELDS; end
|
462
|
+
|
463
|
+
def validate
|
464
|
+
end
|
465
|
+
|
466
|
+
::Thrift::Struct.generate_accessors self
|
467
|
+
end
|
468
|
+
|
469
|
+
class SetPassword_result
|
470
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
471
|
+
EX = 1
|
472
|
+
|
473
|
+
FIELDS = {
|
474
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Passport::Thrift::ProfileException}
|
475
|
+
}
|
476
|
+
|
477
|
+
def struct_fields; FIELDS; end
|
478
|
+
|
479
|
+
def validate
|
480
|
+
end
|
481
|
+
|
482
|
+
::Thrift::Struct.generate_accessors self
|
483
|
+
end
|
484
|
+
|
485
|
+
class GetProfileByUid_args
|
486
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
487
|
+
UID = 1
|
488
|
+
|
489
|
+
FIELDS = {
|
490
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'}
|
491
|
+
}
|
492
|
+
|
493
|
+
def struct_fields; FIELDS; end
|
494
|
+
|
495
|
+
def validate
|
496
|
+
end
|
497
|
+
|
498
|
+
::Thrift::Struct.generate_accessors self
|
499
|
+
end
|
500
|
+
|
501
|
+
class GetProfileByUid_result
|
502
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
503
|
+
SUCCESS = 0
|
504
|
+
|
505
|
+
FIELDS = {
|
506
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Passport::Thrift::Profile}
|
507
|
+
}
|
508
|
+
|
509
|
+
def struct_fields; FIELDS; end
|
510
|
+
|
511
|
+
def validate
|
512
|
+
end
|
513
|
+
|
514
|
+
::Thrift::Struct.generate_accessors self
|
515
|
+
end
|
516
|
+
|
517
|
+
class GetProfileByUids_args
|
518
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
519
|
+
UIDS = 1
|
520
|
+
|
521
|
+
FIELDS = {
|
522
|
+
UIDS => {:type => ::Thrift::Types::LIST, :name => 'uids', :element => {:type => ::Thrift::Types::I64}}
|
523
|
+
}
|
524
|
+
|
525
|
+
def struct_fields; FIELDS; end
|
526
|
+
|
527
|
+
def validate
|
528
|
+
end
|
529
|
+
|
530
|
+
::Thrift::Struct.generate_accessors self
|
531
|
+
end
|
532
|
+
|
533
|
+
class GetProfileByUids_result
|
534
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
535
|
+
SUCCESS = 0
|
536
|
+
|
537
|
+
FIELDS = {
|
538
|
+
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::I64}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Passport::Thrift::Profile}}
|
539
|
+
}
|
540
|
+
|
541
|
+
def struct_fields; FIELDS; end
|
542
|
+
|
543
|
+
def validate
|
544
|
+
end
|
545
|
+
|
546
|
+
::Thrift::Struct.generate_accessors self
|
547
|
+
end
|
548
|
+
|
549
|
+
class GetNicknameByUid_args
|
550
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
551
|
+
UID = 1
|
552
|
+
|
553
|
+
FIELDS = {
|
554
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'}
|
555
|
+
}
|
556
|
+
|
557
|
+
def struct_fields; FIELDS; end
|
558
|
+
|
559
|
+
def validate
|
560
|
+
end
|
561
|
+
|
562
|
+
::Thrift::Struct.generate_accessors self
|
563
|
+
end
|
564
|
+
|
565
|
+
class GetNicknameByUid_result
|
566
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
567
|
+
SUCCESS = 0
|
568
|
+
|
569
|
+
FIELDS = {
|
570
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
|
571
|
+
}
|
572
|
+
|
573
|
+
def struct_fields; FIELDS; end
|
574
|
+
|
575
|
+
def validate
|
576
|
+
end
|
577
|
+
|
578
|
+
::Thrift::Struct.generate_accessors self
|
579
|
+
end
|
580
|
+
|
581
|
+
class GetMultiNickNameByUids_args
|
582
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
583
|
+
UIDLIST = 1
|
584
|
+
|
585
|
+
FIELDS = {
|
586
|
+
UIDLIST => {:type => ::Thrift::Types::LIST, :name => 'uidList', :element => {:type => ::Thrift::Types::I64}}
|
587
|
+
}
|
588
|
+
|
589
|
+
def struct_fields; FIELDS; end
|
590
|
+
|
591
|
+
def validate
|
592
|
+
end
|
593
|
+
|
594
|
+
::Thrift::Struct.generate_accessors self
|
595
|
+
end
|
596
|
+
|
597
|
+
class GetMultiNickNameByUids_result
|
598
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
599
|
+
SUCCESS = 0
|
600
|
+
|
601
|
+
FIELDS = {
|
602
|
+
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::I64}, :value => {:type => ::Thrift::Types::STRING}}
|
603
|
+
}
|
604
|
+
|
605
|
+
def struct_fields; FIELDS; end
|
606
|
+
|
607
|
+
def validate
|
608
|
+
end
|
609
|
+
|
610
|
+
::Thrift::Struct.generate_accessors self
|
611
|
+
end
|
612
|
+
|
613
|
+
class QueryUserBasicInfo_args
|
614
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
615
|
+
UID = 1
|
616
|
+
|
617
|
+
FIELDS = {
|
618
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'}
|
619
|
+
}
|
620
|
+
|
621
|
+
def struct_fields; FIELDS; end
|
622
|
+
|
623
|
+
def validate
|
624
|
+
end
|
625
|
+
|
626
|
+
::Thrift::Struct.generate_accessors self
|
627
|
+
end
|
628
|
+
|
629
|
+
class QueryUserBasicInfo_result
|
630
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
631
|
+
SUCCESS = 0
|
632
|
+
|
633
|
+
FIELDS = {
|
634
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Passport::Thrift::UserBasicInfo}
|
635
|
+
}
|
636
|
+
|
637
|
+
def struct_fields; FIELDS; end
|
638
|
+
|
639
|
+
def validate
|
640
|
+
end
|
641
|
+
|
642
|
+
::Thrift::Struct.generate_accessors self
|
643
|
+
end
|
644
|
+
|
645
|
+
class GetMultiUserBasicInfos_args
|
646
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
647
|
+
UIDS = 1
|
648
|
+
|
649
|
+
FIELDS = {
|
650
|
+
UIDS => {:type => ::Thrift::Types::LIST, :name => 'uids', :element => {:type => ::Thrift::Types::I64}}
|
651
|
+
}
|
652
|
+
|
653
|
+
def struct_fields; FIELDS; end
|
654
|
+
|
655
|
+
def validate
|
656
|
+
end
|
657
|
+
|
658
|
+
::Thrift::Struct.generate_accessors self
|
659
|
+
end
|
660
|
+
|
661
|
+
class GetMultiUserBasicInfos_result
|
662
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
663
|
+
SUCCESS = 0
|
664
|
+
|
665
|
+
FIELDS = {
|
666
|
+
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::I64}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Passport::Thrift::UserBasicInfo}}
|
667
|
+
}
|
668
|
+
|
669
|
+
def struct_fields; FIELDS; end
|
670
|
+
|
671
|
+
def validate
|
672
|
+
end
|
673
|
+
|
674
|
+
::Thrift::Struct.generate_accessors self
|
675
|
+
end
|
676
|
+
|
677
|
+
class GetProfileByNickname_args
|
678
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
679
|
+
NICKNAME = 1
|
680
|
+
|
681
|
+
FIELDS = {
|
682
|
+
NICKNAME => {:type => ::Thrift::Types::STRING, :name => 'nickname'}
|
683
|
+
}
|
684
|
+
|
685
|
+
def struct_fields; FIELDS; end
|
686
|
+
|
687
|
+
def validate
|
688
|
+
end
|
689
|
+
|
690
|
+
::Thrift::Struct.generate_accessors self
|
691
|
+
end
|
692
|
+
|
693
|
+
class GetProfileByNickname_result
|
694
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
695
|
+
SUCCESS = 0
|
696
|
+
|
697
|
+
FIELDS = {
|
698
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Passport::Thrift::Profile}}
|
699
|
+
}
|
700
|
+
|
701
|
+
def struct_fields; FIELDS; end
|
702
|
+
|
703
|
+
def validate
|
704
|
+
end
|
705
|
+
|
706
|
+
::Thrift::Struct.generate_accessors self
|
707
|
+
end
|
708
|
+
|
709
|
+
class CheckNickname_args
|
710
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
711
|
+
OLDNICKNAME = 1
|
712
|
+
NICKNAME = 2
|
713
|
+
|
714
|
+
FIELDS = {
|
715
|
+
OLDNICKNAME => {:type => ::Thrift::Types::STRING, :name => 'oldNickname'},
|
716
|
+
NICKNAME => {:type => ::Thrift::Types::STRING, :name => 'nickname'}
|
717
|
+
}
|
718
|
+
|
719
|
+
def struct_fields; FIELDS; end
|
720
|
+
|
721
|
+
def validate
|
722
|
+
end
|
723
|
+
|
724
|
+
::Thrift::Struct.generate_accessors self
|
725
|
+
end
|
726
|
+
|
727
|
+
class CheckNickname_result
|
728
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
729
|
+
EX = 1
|
730
|
+
|
731
|
+
FIELDS = {
|
732
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Passport::Thrift::ProfileException}
|
733
|
+
}
|
734
|
+
|
735
|
+
def struct_fields; FIELDS; end
|
736
|
+
|
737
|
+
def validate
|
738
|
+
end
|
739
|
+
|
740
|
+
::Thrift::Struct.generate_accessors self
|
741
|
+
end
|
742
|
+
|
743
|
+
class CheckNicknameFormat_args
|
744
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
745
|
+
NICKNAME = 1
|
746
|
+
|
747
|
+
FIELDS = {
|
748
|
+
NICKNAME => {:type => ::Thrift::Types::STRING, :name => 'nickname'}
|
749
|
+
}
|
750
|
+
|
751
|
+
def struct_fields; FIELDS; end
|
752
|
+
|
753
|
+
def validate
|
754
|
+
end
|
755
|
+
|
756
|
+
::Thrift::Struct.generate_accessors self
|
757
|
+
end
|
758
|
+
|
759
|
+
class CheckNicknameFormat_result
|
760
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
761
|
+
EX = 1
|
762
|
+
|
763
|
+
FIELDS = {
|
764
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Passport::Thrift::ProfileException}
|
765
|
+
}
|
766
|
+
|
767
|
+
def struct_fields; FIELDS; end
|
768
|
+
|
769
|
+
def validate
|
770
|
+
end
|
771
|
+
|
772
|
+
::Thrift::Struct.generate_accessors self
|
773
|
+
end
|
774
|
+
|
775
|
+
class CheckNicknameDuplicate_args
|
776
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
777
|
+
OLDNICKNAME = 1
|
778
|
+
NICKNAME = 2
|
779
|
+
|
780
|
+
FIELDS = {
|
781
|
+
OLDNICKNAME => {:type => ::Thrift::Types::STRING, :name => 'oldNickname'},
|
782
|
+
NICKNAME => {:type => ::Thrift::Types::STRING, :name => 'nickname'}
|
783
|
+
}
|
784
|
+
|
785
|
+
def struct_fields; FIELDS; end
|
786
|
+
|
787
|
+
def validate
|
788
|
+
end
|
789
|
+
|
790
|
+
::Thrift::Struct.generate_accessors self
|
791
|
+
end
|
792
|
+
|
793
|
+
class CheckNicknameDuplicate_result
|
794
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
795
|
+
EX = 1
|
796
|
+
|
797
|
+
FIELDS = {
|
798
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Passport::Thrift::ProfileException}
|
799
|
+
}
|
800
|
+
|
801
|
+
def struct_fields; FIELDS; end
|
802
|
+
|
803
|
+
def validate
|
804
|
+
end
|
805
|
+
|
806
|
+
::Thrift::Struct.generate_accessors self
|
807
|
+
end
|
808
|
+
|
809
|
+
class GetProfielByEmail_args
|
810
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
811
|
+
EMAIL = 1
|
812
|
+
|
813
|
+
FIELDS = {
|
814
|
+
EMAIL => {:type => ::Thrift::Types::STRING, :name => 'email'}
|
815
|
+
}
|
816
|
+
|
817
|
+
def struct_fields; FIELDS; end
|
818
|
+
|
819
|
+
def validate
|
820
|
+
end
|
821
|
+
|
822
|
+
::Thrift::Struct.generate_accessors self
|
823
|
+
end
|
824
|
+
|
825
|
+
class GetProfielByEmail_result
|
826
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
827
|
+
SUCCESS = 0
|
828
|
+
|
829
|
+
FIELDS = {
|
830
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Passport::Thrift::Profile}
|
831
|
+
}
|
832
|
+
|
833
|
+
def struct_fields; FIELDS; end
|
834
|
+
|
835
|
+
def validate
|
836
|
+
end
|
837
|
+
|
838
|
+
::Thrift::Struct.generate_accessors self
|
839
|
+
end
|
840
|
+
|
841
|
+
class GetVerifiedUid_args
|
842
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
843
|
+
PAGEID = 1
|
844
|
+
PAGESIZE = 2
|
845
|
+
|
846
|
+
FIELDS = {
|
847
|
+
PAGEID => {:type => ::Thrift::Types::I32, :name => 'pageId'},
|
848
|
+
PAGESIZE => {:type => ::Thrift::Types::I32, :name => 'pageSize'}
|
849
|
+
}
|
850
|
+
|
851
|
+
def struct_fields; FIELDS; end
|
852
|
+
|
853
|
+
def validate
|
854
|
+
end
|
855
|
+
|
856
|
+
::Thrift::Struct.generate_accessors self
|
857
|
+
end
|
858
|
+
|
859
|
+
class GetVerifiedUid_result
|
860
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
861
|
+
SUCCESS = 0
|
862
|
+
|
863
|
+
FIELDS = {
|
864
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Passport::Thrift::PageUid}
|
865
|
+
}
|
866
|
+
|
867
|
+
def struct_fields; FIELDS; end
|
868
|
+
|
869
|
+
def validate
|
870
|
+
end
|
871
|
+
|
872
|
+
::Thrift::Struct.generate_accessors self
|
873
|
+
end
|
874
|
+
|
875
|
+
end
|
876
|
+
|
877
|
+
end
|
878
|
+
end
|