POST api/common/login

登录,需开启Cookie功能

默认返回json数据,若要返回xml格式数据在访问地址后加上xml=true

Request 信息

URI 参数

None.

Body 参数

参数

LoginModel
名称说明数据类型附加信息
Name

用户名

string

Required

Password

密码

string

Required

CustType

登录角色

CustType

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "Name": "sample string 1",
  "Password": "sample string 2",
  "CustType": 1,
  "Token": "sample string 3",
  "Platform": "sample string 4"
}

application/xml, text/xml

示例:
<LoginModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Common">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 4</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 3</Token>
  <CustType>Personal</CustType>
  <Name>sample string 1</Name>
  <Password>sample string 2</Password>
</LoginModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

返回结果

LoginResult
名称说明数据类型附加信息
CustName

用户名

string

None.

CustId

用户id

integer

None.

CustType

用户类型

integer

None.

ObjectName

公司名

string

None.

Photo

头像

string

None.

CityDomain

城市

string

None.

Tel

电话号码

string

None.

CityName

所属城市名

string

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "CustName": "sample string 1",
  "CustId": 2,
  "CustType": 3,
  "ObjectName": "sample string 4",
  "Photo": "sample string 5",
  "CityDomain": "sample string 6",
  "Tel": "sample string 7",
  "CityName": "sample string 8",
  "ErrorCode": 0,
  "Msg": "sample string 9"
}

application/xml, text/xml

示例:
<LoginResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Common">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">SUCCESS</ErrorCode>
  <Msg xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 9</Msg>
  <CityDomain>sample string 6</CityDomain>
  <CityName>sample string 8</CityName>
  <CustId>2</CustId>
  <CustName>sample string 1</CustName>
  <CustType>3</CustType>
  <ObjectName>sample string 4</ObjectName>
  <Photo>sample string 5</Photo>
  <Tel>sample string 7</Tel>
</LoginResult>