POST api/customer/reg
注册,返回成功后,前端再根据手机号调用用户信息
Request Information
URI Parameters
None.
Body Parameters
ValidateWithPhoneModel| Name | Description | Type | Additional information |
|---|---|---|---|
| MobileNo |
手机号 |
string |
Required |
| Code |
用户输入的手机验证码 |
string |
Required |
| SessionKey |
获取手机验证码时返回的SessionKey,获取一次手机验证码,会话Key就会更新,就需要使用新的会话Key,Key不是一直使用同一个的 |
string |
Required |
| ShopId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"MobileNo": "sample string 1",
"Code": "sample string 2",
"SessionKey": "sample string 3",
"ShopId": 4
}
application/xml, text/xml
Sample:
<ValidateWithPhoneModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infrastructure.Caching"> <Code>sample string 2</Code> <MobileNo>sample string 1</MobileNo> <SessionKey>sample string 3</SessionKey> <ShopId>4</ShopId> </ValidateWithPhoneModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseBase| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode |
错误码,默认为成功:SUCCESS |
string |
None. |
| errmsg |
错误信息,默认为:成功 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"errcode": "sample string 1",
"errmsg": "sample string 2"
}
application/xml, text/xml
Sample:
<ResponseBase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infrastructure.WebApi"> <errcode>sample string 1</errcode> <errmsg>sample string 2</errmsg> </ResponseBase>