POST api/Backstage/getLogin

登录

Request Information

URI Parameters

None.

Body Parameters

Login_request
NameDescriptionTypeAdditional information
Account

string

None.

PassWord

string

None.

Type

type 1 后台 2前台/小程序

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Account": "sample string 1",
  "PassWord": "sample string 2",
  "Type": 3
}

application/xml, text/xml

Sample:
<Login_request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Models.Request">
  <Account>sample string 1</Account>
  <PassWord>sample string 2</PassWord>
  <Type>3</Type>
</Login_request>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Login_request'.

Response Information

Resource Description

登录

Result
NameDescriptionTypeAdditional information
code

错误代码

integer

None.

success

是否成功

boolean

None.

data

返回数据

Object

None.

msg

返回信息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "success": true,
  "data": {},
  "msg": "sample string 4"
}

application/xml, text/xml

Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Models.BaseEntity">
  <code>1</code>
  <data />
  <msg>sample string 4</msg>
  <success>true</success>
</Result>