GET api/Login/LoginIn

用于客户端进行登录

Request Information

Parameters

NameDescriptionAdditional information
data
data is JSON
             
            data
            {
                string UserID
                string Password
                string ServerName
                string DBName
                string DBUserName
                string DBPassword
                string LoginFrom,   //客户端来源 BI OA PDA
                bool IsEncryption,  //是否加密
                string DecryptKey,  //客户端加密32位秘钥
            }

Define this parameter in the request URI.

Response Information

返回值 is JSON { bool Logined (是否登录成功), ... string Password (不可用), string Ticket (服务端返回的凭据), string ErrorMsg (登录失败时返回的错误信息) }

Response body formats

application/json, text/json

Sample:
{
  "Logined": true,
  "UserID": "sample string 2",
  "UserNo": "sample string 3",
  "UserName": "sample string 4",
  "LedFormId": "sample string 5",
  "UserType": "sample string 6",
  "Password": "sample string 7",
  "Ticket": "sample string 8",
  "TicketTimeOut": 9,
  "IsSimpleMPS": true,
  "errorCode": 11,
  "errorMsg": "sample string 12",
  "ErrorMsg": "sample string 13",
  "ErrorCode": 14
}

application/xml, text/xml

Sample:
<UserModal xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/WfSoft.Core">14</ErrorCode>
  <ErrorMsg xmlns="http://schemas.datacontract.org/2004/07/WfSoft.Core">sample string 13</ErrorMsg>
  <errorCode xmlns="http://schemas.datacontract.org/2004/07/WfSoft.Core">11</errorCode>
  <errorMsg xmlns="http://schemas.datacontract.org/2004/07/WfSoft.Core">sample string 12</errorMsg>
  <IsSimpleMPS>true</IsSimpleMPS>
  <LedFormId>sample string 5</LedFormId>
  <Logined>true</Logined>
  <Password>sample string 7</Password>
  <Ticket>sample string 8</Ticket>
  <TicketTimeOut>9</TicketTimeOut>
  <UserID>sample string 2</UserID>
  <UserName>sample string 4</UserName>
  <UserNo>sample string 3</UserNo>
  <UserType>sample string 6</UserType>
</UserModal>