Class: IndexeaClient::AccountApi

Inherits:
Object
  • Object
show all
Defined in:
lib/indexea_client/api/account_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ AccountApi

Returns a new instance of AccountApi.



16
17
18
# File 'lib/indexea_client/api/account_api.rb', line 16

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



14
15
16
# File 'lib/indexea_client/api/account_api.rb', line 14

def api_client
  @api_client
end

Instance Method Details

#account_bulletin(opts = {}) ⇒ Bulletin

获取系统公告 获取系统公告

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



23
24
25
26
# File 'lib/indexea_client/api/account_api.rb', line 23

def (opts = {})
  data, _status_code, _headers = (opts)
  data
end

#account_bulletin_with_http_info(opts = {}) ⇒ Array<(Bulletin, Integer, Hash)>

获取系统公告 获取系统公告

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Bulletin, Integer, Hash)>)

    Bulletin data, response status code and response headers



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
# File 'lib/indexea_client/api/account_api.rb', line 32

def (opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: AccountApi.account_bulletin ...'
  end
  # resource path
  local_var_path = '/accounts/bulletin'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Bulletin' 

  auth_names = opts[:auth_names] || ['TokenAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: AccountApi#account_bulletin\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#account_delete(opts = {}) ⇒ BOOLEAN

注销账号

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :pwd (String)
  • :vcode (String)

Returns:

  • (BOOLEAN)


74
75
76
77
# File 'lib/indexea_client/api/account_api.rb', line 74

def (opts = {})
  data, _status_code, _headers = (opts)
  data
end

#account_delete_openid(type, openid, opts = {}) ⇒ BOOLEAN

解绑三方账号

Parameters:

  • type

    三方账号类型

  • openid

    三方账号唯一标识

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (BOOLEAN)


130
131
132
133
# File 'lib/indexea_client/api/account_api.rb', line 130

def (type, openid, opts = {})
  data, _status_code, _headers = (type, openid, opts)
  data
end

#account_delete_openid_with_http_info(type, openid, opts = {}) ⇒ Array<(BOOLEAN, Integer, Hash)>

解绑三方账号

Parameters:

  • type

    三方账号类型

  • openid

    三方账号唯一标识

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(BOOLEAN, Integer, Hash)>)

    BOOLEAN data, response status code and response headers



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
# File 'lib/indexea_client/api/account_api.rb', line 140

def (type, openid, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: AccountApi.account_delete_openid ...'
  end
  # verify the required parameter 'type' is set
  if @api_client.config.client_side_validation && type.nil?
    fail ArgumentError, "Missing the required parameter 'type' when calling AccountApi.account_delete_openid"
  end
  # verify the required parameter 'openid' is set
  if @api_client.config.client_side_validation && openid.nil?
    fail ArgumentError, "Missing the required parameter 'openid' when calling AccountApi.account_delete_openid"
  end
  # resource path
  local_var_path = '/account/openid'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'type'] = type
  query_params[:'openid'] = openid

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'BOOLEAN' 

  auth_names = opts[:auth_names] || ['TokenAuth']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: AccountApi#account_delete_openid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#account_delete_with_http_info(opts = {}) ⇒ Array<(BOOLEAN, Integer, Hash)>

注销账号

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :pwd (String)
  • :vcode (String)

Returns:

  • (Array<(BOOLEAN, Integer, Hash)>)

    BOOLEAN data, response status code and response headers



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
# File 'lib/indexea_client/api/account_api.rb', line 84

def (opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: AccountApi.account_delete ...'
  end
  # resource path
  local_var_path = '/account/profile'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = opts[:form_params] || {}
  form_params['pwd'] = opts[:'pwd'] if !opts[:'pwd'].nil?
  form_params['vcode'] = opts[:'vcode'] if !opts[:'vcode'].nil?

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'BOOLEAN' 

  auth_names = opts[:auth_names] || ['TokenAuth']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: AccountApi#account_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#account_openid(opts = {}) ⇒ Array<OpenidBean>

获取绑定的所有三方账号

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



190
191
192
193
# File 'lib/indexea_client/api/account_api.rb', line 190

def (opts = {})
  data, _status_code, _headers = (opts)
  data
end

#account_openid_with_http_info(opts = {}) ⇒ Array<(Array<OpenidBean>, Integer, Hash)>

获取绑定的所有三方账号

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<OpenidBean>, Integer, Hash)>)

    Array<OpenidBean> data, response status code and response headers



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
227
228
229
230
231
232
233
234
# File 'lib/indexea_client/api/account_api.rb', line 198

def (opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: AccountApi.account_openid ...'
  end
  # resource path
  local_var_path = '/account/openid'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Array<OpenidBean>' 

  auth_names = opts[:auth_names] || ['TokenAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: AccountApi#account_openid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#account_passwd(password, new_password, opts = {}) ⇒ BOOLEAN

修改账号密码

Parameters:

  • password
  • new_password
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (BOOLEAN)


240
241
242
243
# File 'lib/indexea_client/api/account_api.rb', line 240

def (password, new_password, opts = {})
  data, _status_code, _headers = (password, new_password, opts)
  data
end

#account_passwd_with_http_info(password, new_password, opts = {}) ⇒ Array<(BOOLEAN, Integer, Hash)>

修改账号密码

Parameters:

  • password
  • new_password
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(BOOLEAN, Integer, Hash)>)

    BOOLEAN data, response status code and response headers



250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
# File 'lib/indexea_client/api/account_api.rb', line 250

def (password, new_password, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: AccountApi.account_passwd ...'
  end
  # verify the required parameter 'password' is set
  if @api_client.config.client_side_validation && password.nil?
    fail ArgumentError, "Missing the required parameter 'password' when calling AccountApi.account_passwd"
  end
  # verify the required parameter 'new_password' is set
  if @api_client.config.client_side_validation && new_password.nil?
    fail ArgumentError, "Missing the required parameter 'new_password' when calling AccountApi.account_passwd"
  end
  # resource path
  local_var_path = '/account/passwd'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = opts[:form_params] || {}
  form_params['password'] = password
  form_params['newPassword'] = new_password

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'BOOLEAN' 

  auth_names = opts[:auth_names] || ['TokenAuth']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: AccountApi#account_passwd\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#account_portrait(portrait, opts = {}) ⇒ AccountBean

修改账号头像

Parameters:

  • portrait
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



303
304
305
306
# File 'lib/indexea_client/api/account_api.rb', line 303

def (portrait, opts = {})
  data, _status_code, _headers = (portrait, opts)
  data
end

#account_portrait_with_http_info(portrait, opts = {}) ⇒ Array<(AccountBean, Integer, Hash)>

修改账号头像

Parameters:

  • portrait
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(AccountBean, Integer, Hash)>)

    AccountBean data, response status code and response headers



312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
# File 'lib/indexea_client/api/account_api.rb', line 312

def (portrait, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: AccountApi.account_portrait ...'
  end
  # verify the required parameter 'portrait' is set
  if @api_client.config.client_side_validation && portrait.nil?
    fail ArgumentError, "Missing the required parameter 'portrait' when calling AccountApi.account_portrait"
  end
  # resource path
  local_var_path = '/account/portrait'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])

  # form parameters
  form_params = opts[:form_params] || {}
  form_params['portrait'] = portrait

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'AccountBean' 

  auth_names = opts[:auth_names] || ['TokenAuth']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: AccountApi#account_portrait\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#account_profile(opts = {}) ⇒ AccountBean

获取登录账号信息

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :account (String)

    获取指定账号信息,如果不指定,则返回当前登录账号

Returns:



360
361
362
363
# File 'lib/indexea_client/api/account_api.rb', line 360

def (opts = {})
  data, _status_code, _headers = (opts)
  data
end

#account_profile_with_http_info(opts = {}) ⇒ Array<(AccountBean, Integer, Hash)>

获取登录账号信息

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :account (String)

    获取指定账号信息,如果不指定,则返回当前登录账号

Returns:

  • (Array<(AccountBean, Integer, Hash)>)

    AccountBean data, response status code and response headers



369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
# File 'lib/indexea_client/api/account_api.rb', line 369

def (opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: AccountApi.account_profile ...'
  end
  # resource path
  local_var_path = '/account/profile'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'account'] = opts[:'account'] if !opts[:'account'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'AccountBean' 

  auth_names = opts[:auth_names] || ['TokenAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: AccountApi#account_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#account_reset_pwd(opts = {}) ⇒ BOOLEAN

重置账号密码

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :account (String)
  • :verify_code (String)
  • :pwd (String)

Returns:

  • (BOOLEAN)


413
414
415
416
# File 'lib/indexea_client/api/account_api.rb', line 413

def (opts = {})
  data, _status_code, _headers = (opts)
  data
end

#account_reset_pwd_with_http_info(opts = {}) ⇒ Array<(BOOLEAN, Integer, Hash)>

重置账号密码

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :account (String)
  • :verify_code (String)
  • :pwd (String)

Returns:

  • (Array<(BOOLEAN, Integer, Hash)>)

    BOOLEAN data, response status code and response headers



424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
# File 'lib/indexea_client/api/account_api.rb', line 424

def (opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: AccountApi.account_reset_pwd ...'
  end
  # resource path
  local_var_path = '/account/reset-pwd'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = opts[:form_params] || {}
  form_params['account'] = opts[:'account'] if !opts[:'account'].nil?
  form_params['verifyCode'] = opts[:'verify_code'] if !opts[:'verify_code'].nil?
  form_params['pwd'] = opts[:'pwd'] if !opts[:'pwd'].nil?

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'BOOLEAN' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: AccountApi#account_reset_pwd\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#account_send_verify_code(account, purpose, opts = {}) ⇒ BOOLEAN

发送账号验证码

Parameters:

  • account

    账号

  • purpose

    验证码的用途

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (BOOLEAN)


471
472
473
474
# File 'lib/indexea_client/api/account_api.rb', line 471

def (, purpose, opts = {})
  data, _status_code, _headers = (, purpose, opts)
  data
end

#account_send_verify_code_with_http_info(account, purpose, opts = {}) ⇒ Array<(BOOLEAN, Integer, Hash)>

发送账号验证码

Parameters:

  • account

    账号

  • purpose

    验证码的用途

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(BOOLEAN, Integer, Hash)>)

    BOOLEAN data, response status code and response headers



481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
# File 'lib/indexea_client/api/account_api.rb', line 481

def (, purpose, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: AccountApi.account_send_verify_code ...'
  end
  # verify the required parameter 'account' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'account' when calling AccountApi.account_send_verify_code"
  end
  # verify the required parameter 'purpose' is set
  if @api_client.config.client_side_validation && purpose.nil?
    fail ArgumentError, "Missing the required parameter 'purpose' when calling AccountApi.account_send_verify_code"
  end
  # resource path
  local_var_path = '/account/send-verify-code'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'account'] = 
  query_params[:'purpose'] = purpose

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'BOOLEAN' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: AccountApi#account_send_verify_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#account_signin(account, pwd, keep_login, opts = {}) ⇒ AccountBean

登录系统

Parameters:

  • account
  • pwd
  • keep_login
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



534
535
536
537
# File 'lib/indexea_client/api/account_api.rb', line 534

def (, pwd, , opts = {})
  data, _status_code, _headers = (, pwd, , opts)
  data
end

#account_signin_with_http_info(account, pwd, keep_login, opts = {}) ⇒ Array<(AccountBean, Integer, Hash)>

登录系统

Parameters:

  • account
  • pwd
  • keep_login
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(AccountBean, Integer, Hash)>)

    AccountBean data, response status code and response headers



545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
# File 'lib/indexea_client/api/account_api.rb', line 545

def (, pwd, , opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: AccountApi.account_signin ...'
  end
  # verify the required parameter 'account' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'account' when calling AccountApi.account_signin"
  end
  # verify the required parameter 'pwd' is set
  if @api_client.config.client_side_validation && pwd.nil?
    fail ArgumentError, "Missing the required parameter 'pwd' when calling AccountApi.account_signin"
  end
  # verify the required parameter 'keep_login' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'keep_login' when calling AccountApi.account_signin"
  end
  # resource path
  local_var_path = '/account/signin'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = opts[:form_params] || {}
  form_params['account'] = 
  form_params['pwd'] = pwd
  form_params['keep_login'] = 

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'AccountBean' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: AccountApi#account_signin\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#account_signout(opts = {}) ⇒ nil

退出登录状态

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


602
603
604
605
# File 'lib/indexea_client/api/account_api.rb', line 602

def (opts = {})
  (opts)
  nil
end

#account_signout_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

退出登录状态

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
# File 'lib/indexea_client/api/account_api.rb', line 610

def (opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: AccountApi.account_signout ...'
  end
  # resource path
  local_var_path = '/account/sign-out'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] 

  auth_names = opts[:auth_names] || ['TokenAuth']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: AccountApi#account_signout\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#account_signup(opts = {}) ⇒ AccountBean

注册新账号

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :account (String)
  • :pwd (String)
  • :name (String)
  • :activate_code (String)

Returns:



652
653
654
655
# File 'lib/indexea_client/api/account_api.rb', line 652

def (opts = {})
  data, _status_code, _headers = (opts)
  data
end

#account_signup_with_http_info(opts = {}) ⇒ Array<(AccountBean, Integer, Hash)>

注册新账号

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :account (String)
  • :pwd (String)
  • :name (String)
  • :activate_code (String)

Returns:

  • (Array<(AccountBean, Integer, Hash)>)

    AccountBean data, response status code and response headers



664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
# File 'lib/indexea_client/api/account_api.rb', line 664

def (opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: AccountApi.account_signup ...'
  end
  # resource path
  local_var_path = '/account/signup'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = opts[:form_params] || {}
  form_params['account'] = opts[:'account'] if !opts[:'account'].nil?
  form_params['pwd'] = opts[:'pwd'] if !opts[:'pwd'].nil?
  form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
  form_params['activate_code'] = opts[:'activate_code'] if !opts[:'activate_code'].nil?

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'AccountBean' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: AccountApi#account_signup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#account_update(body, opts = {}) ⇒ AccountBean

修改账号资料

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



711
712
713
714
# File 'lib/indexea_client/api/account_api.rb', line 711

def (body, opts = {})
  data, _status_code, _headers = (body, opts)
  data
end

#account_update_settings(key, type, value, vcode, opts = {}) ⇒ BOOLEAN

修改账号设置

Parameters:

  • key
  • type
  • value
  • vcode
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (BOOLEAN)


770
771
772
773
# File 'lib/indexea_client/api/account_api.rb', line 770

def (key, type, value, vcode, opts = {})
  data, _status_code, _headers = (key, type, value, vcode, opts)
  data
end

#account_update_settings_with_http_info(key, type, value, vcode, opts = {}) ⇒ Array<(BOOLEAN, Integer, Hash)>

修改账号设置

Parameters:

  • key
  • type
  • value
  • vcode
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(BOOLEAN, Integer, Hash)>)

    BOOLEAN data, response status code and response headers



782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
# File 'lib/indexea_client/api/account_api.rb', line 782

def (key, type, value, vcode, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: AccountApi.account_update_settings ...'
  end
  # verify the required parameter 'key' is set
  if @api_client.config.client_side_validation && key.nil?
    fail ArgumentError, "Missing the required parameter 'key' when calling AccountApi.account_update_settings"
  end
  # verify the required parameter 'type' is set
  if @api_client.config.client_side_validation && type.nil?
    fail ArgumentError, "Missing the required parameter 'type' when calling AccountApi.account_update_settings"
  end
  # verify enum value
  if @api_client.config.client_side_validation && !['int', 'bool', 'string'].include?(type)
    fail ArgumentError, "invalid value for 'type', must be one of int, bool, string"
  end
  # verify the required parameter 'value' is set
  if @api_client.config.client_side_validation && value.nil?
    fail ArgumentError, "Missing the required parameter 'value' when calling AccountApi.account_update_settings"
  end
  # verify the required parameter 'vcode' is set
  if @api_client.config.client_side_validation && vcode.nil?
    fail ArgumentError, "Missing the required parameter 'vcode' when calling AccountApi.account_update_settings"
  end
  # resource path
  local_var_path = '/account/settings'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = opts[:form_params] || {}
  form_params['key'] = key
  form_params['type'] = type
  form_params['value'] = value
  form_params['vcode'] = vcode

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'BOOLEAN' 

  auth_names = opts[:auth_names] || ['TokenAuth']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: AccountApi#account_update_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#account_update_with_http_info(body, opts = {}) ⇒ Array<(AccountBean, Integer, Hash)>

修改账号资料

Parameters:

  • body
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(AccountBean, Integer, Hash)>)

    AccountBean data, response status code and response headers



720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
# File 'lib/indexea_client/api/account_api.rb', line 720

def (body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: AccountApi.account_update ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling AccountApi.account_update"
  end
  # resource path
  local_var_path = '/account/profile'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(body) 

  return_type = opts[:return_type] || 'AccountBean' 

  auth_names = opts[:auth_names] || ['TokenAuth']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: AccountApi#account_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end