POST api/Person/Register?Mobile={Mobile}&Password={Password}&ValidateCode={ValidateCode}&DeviceToken={DeviceToken}&DeviceType={DeviceType}

【可用】匿名用户--注册,手机号

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Mobile

手机号码

string

Required

Password

密码

string

Required

ValidateCode

手机验证码 测试万能通过验证码:888888

string

Required

DeviceToken

手机设备ID

string

Required

DeviceType

手机系统类型Android/ios

string

Required

Body Parameters

None.

Response Information

Resource Description

RequestResultOfUserLoginModel
NameDescriptionTypeAdditional information
ResultCode

integer

None.

Message

string

None.

Data

UserLoginModel

None.

Response Formats

application/json, text/json

Sample:
{
  "ResultCode": 1,
  "Message": "sample string 2",
  "Data": {
    "CustID": "sample string 1",
    "CookCode": "sample string 2",
    "NickName": "sample string 3",
    "Mobile": "sample string 4",
    "Birthday": "sample string 5",
    "Age": 6,
    "Sex": "sample string 7",
    "Address": "sample string 8",
    "Motto": "sample string 9",
    "BuildingID": 10,
    "BuildingName": "sample string 11",
    "Area": "sample string 12",
    "Province": "sample string 13",
    "City": "sample string 14",
    "BuildingCityID": 15,
    "BuildingCityName": "sample string 16",
    "Avatar": "sample string 17",
    "AvatarID": 18,
    "AvatarType": 19,
    "ColorID": 20,
    "GroupID": 21,
    "GroupName": "sample string 22",
    "ColorValue": "sample string 23",
    "Hotline": "sample string 24",
    "IsCheckIn": true,
    "ContractNo": "sample string 26",
    "DecorateIcon": "sample string 27",
    "IsSteward": true,
    "SecurityStamp": "sample string 29"
  }
}

text/html

Sample:
{"ResultCode":1,"Message":"sample string 2","Data":{"CustID":"sample string 1","CookCode":"sample string 2","NickName":"sample string 3","Mobile":"sample string 4","Birthday":"sample string 5","Age":6,"Sex":"sample string 7","Address":"sample string 8","Motto":"sample string 9","BuildingID":10,"BuildingName":"sample string 11","Area":"sample string 12","Province":"sample string 13","City":"sample string 14","BuildingCityID":15,"BuildingCityName":"sample string 16","Avatar":"sample string 17","AvatarID":18,"AvatarType":19,"ColorID":20,"GroupID":21,"GroupName":"sample string 22","ColorValue":"sample string 23","Hotline":"sample string 24","IsCheckIn":true,"ContractNo":"sample string 26","DecorateIcon":"sample string 27","IsSteward":true,"SecurityStamp":"sample string 29"}}

application/xml, text/xml

Sample:
<RequestResultOfUserLoginModelLVEGsFhm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MF.Common">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/MF.WebApi.Models">
    <d2p1:Address>sample string 8</d2p1:Address>
    <d2p1:Age>6</d2p1:Age>
    <d2p1:Area>sample string 12</d2p1:Area>
    <d2p1:Avatar>sample string 17</d2p1:Avatar>
    <d2p1:AvatarID>18</d2p1:AvatarID>
    <d2p1:AvatarType>19</d2p1:AvatarType>
    <d2p1:Birthday>sample string 5</d2p1:Birthday>
    <d2p1:BuildingCityID>15</d2p1:BuildingCityID>
    <d2p1:BuildingCityName>sample string 16</d2p1:BuildingCityName>
    <d2p1:BuildingID>10</d2p1:BuildingID>
    <d2p1:BuildingName>sample string 11</d2p1:BuildingName>
    <d2p1:City>sample string 14</d2p1:City>
    <d2p1:ColorID>20</d2p1:ColorID>
    <d2p1:ColorValue>sample string 23</d2p1:ColorValue>
    <d2p1:ContractNo>sample string 26</d2p1:ContractNo>
    <d2p1:CookCode>sample string 2</d2p1:CookCode>
    <d2p1:CustID>sample string 1</d2p1:CustID>
    <d2p1:DecorateIcon>sample string 27</d2p1:DecorateIcon>
    <d2p1:GroupID>21</d2p1:GroupID>
    <d2p1:GroupName>sample string 22</d2p1:GroupName>
    <d2p1:Hotline>sample string 24</d2p1:Hotline>
    <d2p1:IsCheckIn>true</d2p1:IsCheckIn>
    <d2p1:IsSteward>true</d2p1:IsSteward>
    <d2p1:Mobile>sample string 4</d2p1:Mobile>
    <d2p1:Motto>sample string 9</d2p1:Motto>
    <d2p1:NickName>sample string 3</d2p1:NickName>
    <d2p1:Province>sample string 13</d2p1:Province>
    <d2p1:SecurityStamp>sample string 29</d2p1:SecurityStamp>
    <d2p1:Sex>sample string 7</d2p1:Sex>
  </Data>
  <Message>sample string 2</Message>
  <ResultCode>1</ResultCode>
</RequestResultOfUserLoginModelLVEGsFhm>