POST api/User/CheckVaildateCodeByUser

判断用户是否存在与验证码是否正确

Request Information

Body Parameters

CheckVaildateModel
NameDescriptionTypeAdditional information
Type

1:注册 2:找回密码 3: 修改密码

integer

None.

LoginName

登录名

string

None.

SMSCode

短信验证码

string

None.

Language

语言

string

None.

AppId

AppId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Type": 1,
  "LoginName": "sample string 2",
  "SMSCode": "sample string 3",
  "Language": "sample string 4",
  "AppId": "sample string 5"
}

application/xml, text/xml

Sample:
<CheckVaildateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 5</AppId>
  <Language>sample string 4</Language>
  <LoginName>sample string 2</LoginName>
  <SMSCode>sample string 3</SMSCode>
  <Type>1</Type>
</CheckVaildateModel>

Response Information

Resource Description

State状态码说明:
0. 注册成功
1001. 用户名已被注册
1003. 用户名不能为空
3701. 验证码已过期
3700. 验证码错误

RegisterResult
NameDescriptionTypeAdditional information
Message

注册返回消息

string

None.

AccessToken

访问Token

string

None.

User

注册用户的信息

UserLoginInfo

None.

ThirdParty

第三方登录信息

Object

None.

State

状态码

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "AccessToken": "sample string 2",
  "User": {
    "UserId": 1,
    "Username": "sample string 2",
    "LoginName": "sample string 3",
    "Timezone": "sample string 4",
    "Avatar": "sample string 5",
    "Email": "sample string 6",
    "DeviceCount": 7,
    "CodeUrl": "sample string 8",
    "UserType": 9,
    "SubUsersCount": 10,
    "Calorie": 11,
    "Steps": 12,
    "CellPhone": 13
  },
  "ThirdParty": {},
  "State": 4
}

application/xml, text/xml

Sample:
<RegisterResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>4</State>
  <AccessToken>sample string 2</AccessToken>
  <Message>sample string 1</Message>
  <ThirdParty />
  <User xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:Avatar>sample string 5</d2p1:Avatar>
    <d2p1:Calorie>11</d2p1:Calorie>
    <d2p1:CellPhone>13</d2p1:CellPhone>
    <d2p1:CodeUrl>sample string 8</d2p1:CodeUrl>
    <d2p1:DeviceCount>7</d2p1:DeviceCount>
    <d2p1:Email>sample string 6</d2p1:Email>
    <d2p1:LoginName>sample string 3</d2p1:LoginName>
    <d2p1:Steps>12</d2p1:Steps>
    <d2p1:SubUsersCount>10</d2p1:SubUsersCount>
    <d2p1:Timezone>sample string 4</d2p1:Timezone>
    <d2p1:UserId>1</d2p1:UserId>
    <d2p1:UserType>9</d2p1:UserType>
    <d2p1:Username>sample string 2</d2p1:Username>
  </User>
</RegisterResult>