POST api/Login/ServantLogin

Request Information

URI Parameters

None.

Body Parameters

BaseReqOfServantLoginReq
NameDescriptionTypeAdditional information
Req

ServantLoginReq

None.

Method

string

Required

ClientType

ClientType

Required

ClientVersion

string

Required

ClientDeviceVersion

string

Required

ClientDeviceNo

string

Required

ClientOSVersion

string

None.

Timestamp

date

Required

Token

string

None.

Sign

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Req": {
    "PhoneNumber": "sample string 1",
    "Password": "sample string 2",
    "ValidCode": "sample string 3",
    "AccountName": "sample string 4",
    "OnlineState": 0
  },
  "Method": "sample string 1",
  "ClientType": 0,
  "ClientVersion": "sample string 2",
  "ClientDeviceVersion": "sample string 3",
  "ClientDeviceNo": "sample string 4",
  "ClientOSVersion": "sample string 5",
  "Timestamp": "2022-06-25 09:02:15:609",
  "Token": "sample string 7",
  "Sign": "sample string 8"
}

application/xml, text/xml

Sample:
<BaseReqOfServantLoginReqWtHIWBcz xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YJY.Common.Soa.Models">
  <ClientDeviceNo>sample string 4</ClientDeviceNo>
  <ClientDeviceVersion>sample string 3</ClientDeviceVersion>
  <ClientOSVersion>sample string 5</ClientOSVersion>
  <ClientType>Unknown</ClientType>
  <ClientVersion>sample string 2</ClientVersion>
  <Method>sample string 1</Method>
  <Sign>sample string 8</Sign>
  <Timestamp>2022-06-25T09:02:15.6090178+08:00</Timestamp>
  <Token>sample string 7</Token>
  <Req xmlns:d2p1="http://schemas.datacontract.org/2004/07/YJY.Auth.Model.Req">
    <d2p1:AccountName>sample string 4</d2p1:AccountName>
    <d2p1:OnlineState>Invisible</d2p1:OnlineState>
    <d2p1:Password>sample string 2</d2p1:Password>
    <d2p1:PhoneNumber>sample string 1</d2p1:PhoneNumber>
    <d2p1:ValidCode>sample string 3</d2p1:ValidCode>
  </Req>
</BaseReqOfServantLoginReqWtHIWBcz>

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 'BaseReq`1'.

Response Information

Resource Description

BaseRspOfServantLoginRsp
NameDescriptionTypeAdditional information
Rsp

ServantLoginRsp

None.

Method

string

Required

Code

integer

Required

CodeStr

string

Required

CodeMsg

string

Required

ExtMsg

string

None.

ReqId

string

Required

Response Formats

application/json, text/json

Sample:
{
  "Rsp": {
    "AccountId": 1,
    "Token": "sample string 2",
    "CoverPic": "sample string 3",
    "FullName": "sample string 4",
    "IsShowWeChatQR": true,
    "ChannelCode": "sample string 6",
    "CAUserId": "sample string 7",
    "DocJobNumber": "sample string 8",
    "IdCard": "sample string 9",
    "PhoneNumber": "sample string 10",
    "HospitalCode": "sample string 11"
  },
  "Method": "sample string 1",
  "Code": 2,
  "CodeStr": "sample string 3",
  "CodeMsg": "sample string 4",
  "ExtMsg": "sample string 5",
  "ReqId": "sample string 6"
}

application/xml, text/xml

Sample:
<BaseRspOfServantLoginRspD9So2QqZ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YJY.Common.Soa.Models">
  <Code>2</Code>
  <CodeMsg>sample string 4</CodeMsg>
  <CodeStr>sample string 3</CodeStr>
  <ExtMsg>sample string 5</ExtMsg>
  <Method>sample string 1</Method>
  <ReqId>sample string 6</ReqId>
  <Rsp xmlns:d2p1="http://schemas.datacontract.org/2004/07/YJY.Auth.Model.Rsp">
    <d2p1:AccountId>1</d2p1:AccountId>
    <d2p1:CAUserId>sample string 7</d2p1:CAUserId>
    <d2p1:ChannelCode>sample string 6</d2p1:ChannelCode>
    <d2p1:CoverPic>sample string 3</d2p1:CoverPic>
    <d2p1:DocJobNumber>sample string 8</d2p1:DocJobNumber>
    <d2p1:FullName>sample string 4</d2p1:FullName>
    <d2p1:HospitalCode>sample string 11</d2p1:HospitalCode>
    <d2p1:IdCard>sample string 9</d2p1:IdCard>
    <d2p1:IsShowWeChatQR>true</d2p1:IsShowWeChatQR>
    <d2p1:PhoneNumber>sample string 10</d2p1:PhoneNumber>
    <d2p1:Token>sample string 2</d2p1:Token>
  </Rsp>
</BaseRspOfServantLoginRspD9So2QqZ>