POST api/User/ChangeUserPassword

找回密码

Request Information

URI Parameters

None.

Body Parameters

changePasswordPost
NameDescriptionTypeAdditional information
tel

string

None.

code

string

None.

password

string

None.

Request Formats

application/json, text/json

Sample:
{
  "tel": "sample string 1",
  "code": "sample string 2",
  "password": "sample string 3"
}

application/xml, text/xml

Sample:
<changePasswordPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers">
  <code>sample string 2</code>
  <password>sample string 3</password>
  <tel>sample string 1</tel>
</changePasswordPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseResult
NameDescriptionTypeAdditional information
code

状态码,200成功,300错误,400缺少参数,500没有权限,301数据不存在...

integer

None.

msg

成功或者错误的说明,例如:登录成功,token过期...

string

None.

Response Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<BaseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
  <code>1</code>
  <msg>sample string 2</msg>
</BaseResult>