POST api/DeviceBaseInfo/GetRelativeInfo

获取设备佩戴对象(人员)亲属信息

Request Information

Body Parameters

GetPersonModel
NameDescriptionTypeAdditional information
DeviceId

设备 id

integer

None.

UserId

用户 id

integer

None.

Token

登录后获取到的 Token

string

None.

Language

语言选项

string

None.

AppId

APP应用标识

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DeviceId": 1,
  "UserId": 2,
  "Token": "sample string 3",
  "Language": "sample string 4",
  "AppId": "sample string 5"
}

application/xml, text/xml

Sample:
<GetPersonModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 5</AppId>
  <Language>sample string 4</Language>
  <Token>sample string 3</Token>
  <DeviceId>1</DeviceId>
  <UserId>2</UserId>
</GetPersonModel>

Response Information

Resource Description

0. 表示成功
1100. 表示设备不存在

GetRelativeInfoResult
NameDescriptionTypeAdditional information
relativeInfoList

亲属信息

Collection of RelativeInfo

None.

State

状态码

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "relativeInfoList": [
    {
      "Id": 1,
      "RelativeName": "sample string 2",
      "RelativeType": "sample string 3",
      "RelativeNumber": "sample string 4"
    },
    {
      "Id": 1,
      "RelativeName": "sample string 2",
      "RelativeType": "sample string 3",
      "RelativeNumber": "sample string 4"
    }
  ],
  "State": 1
}

application/xml, text/xml

Sample:
<GetRelativeInfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <relativeInfoList xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:RelativeInfo>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:RelativeName>sample string 2</d2p1:RelativeName>
      <d2p1:RelativeNumber>sample string 4</d2p1:RelativeNumber>
      <d2p1:RelativeType>sample string 3</d2p1:RelativeType>
    </d2p1:RelativeInfo>
    <d2p1:RelativeInfo>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:RelativeName>sample string 2</d2p1:RelativeName>
      <d2p1:RelativeNumber>sample string 4</d2p1:RelativeNumber>
      <d2p1:RelativeType>sample string 3</d2p1:RelativeType>
    </d2p1:RelativeInfo>
  </relativeInfoList>
</GetRelativeInfoResult>