POST api/ClientUser/user/send_otp

[已完成] 发送短信验证码

Request Information

URI Parameters

None.

Body Parameters

SendOTPRequest
NameDescriptionTypeAdditional information
type

验证码类型,可选值:Register, Login, ResetPassword, Withdraw

string

Required

mobile

用户手机号

string

Required

referrerCode

推荐码

string

Required

Request Formats

application/json, text/json

Sample:
{
  "type": "sample string 1",
  "mobile": "sample string 2",
  "referrerCode": "sample string 3"
}

Response Information

Resource Description

返回验证码发送结果

SendOTPResponse
NameDescriptionTypeAdditional information
code

1 为成功,其他为失败

integer

None.

msg

请求描述

string

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "msg": "sample string 2"
}