POST api/VisitActivity/GetCustomerList?DomainId={DomainId}&AccountId={AccountId}&PersonId={PersonId}

获取终端列表

Request Information

URI Parameters

NameDescriptionTypeAdditional information
DomainId

域Id

globally unique identifier

None.

AccountId

账户Id

globally unique identifier

None.

PersonId

人员Id

globally unique identifier

None.

Body Parameters

GetCustomerListParametertyParameter
NameDescriptionTypeAdditional information
pageIndex

integer

None.

pageSize

integer

None.

customerName

string

None.

LAT

string

None.

LNG

string

None.

CustomerTypeKey

Collection of globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "pageIndex": 1,
  "pageSize": 2,
  "customerName": "sample string 3",
  "LAT": "sample string 4",
  "LNG": "sample string 5",
  "CustomerTypeKey": [
    "d96e6b61-185c-49f7-8480-d7181e39b013",
    "aad1e3e8-3090-487d-972b-27e43b6469d9"
  ]
}

application/xml, text/xml

Sample:
<GetCustomerListParametertyParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.App.WebAPI.Areas.VisitActivity.ViewModel">
  <CustomerTypeKey xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>d96e6b61-185c-49f7-8480-d7181e39b013</d2p1:guid>
    <d2p1:guid>aad1e3e8-3090-487d-972b-27e43b6469d9</d2p1:guid>
  </CustomerTypeKey>
  <LAT>sample string 4</LAT>
  <LNG>sample string 5</LNG>
  <customerName>sample string 3</customerName>
  <pageIndex>1</pageIndex>
  <pageSize>2</pageSize>
</GetCustomerListParametertyParameter>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResultModelOfCustomersListVM
NameDescriptionTypeAdditional information
Code

ReturnCode

None.

Message

string

None.

Data

CustomersListVM

None.

Response Formats

application/json, text/json

Sample:
{
  "Code": 200,
  "Message": "sample string 1",
  "Data": {
    "Total": "sample string 1",
    "customers": [
      {
        "TID": "2d489b0d-66e0-403f-b457-fb3fb80a184a",
        "CustomerName": "sample string 2",
        "CustomerNumber": "sample string 3",
        "Contactor": "sample string 4",
        "Manager": "sample string 5",
        "ContactorTel": "sample string 6",
        "Address": "sample string 7",
        "Distance": "sample string 8",
        "CustormerImage": "sample string 9"
      },
      {
        "TID": "2d489b0d-66e0-403f-b457-fb3fb80a184a",
        "CustomerName": "sample string 2",
        "CustomerNumber": "sample string 3",
        "Contactor": "sample string 4",
        "Manager": "sample string 5",
        "ContactorTel": "sample string 6",
        "Address": "sample string 7",
        "Distance": "sample string 8",
        "CustormerImage": "sample string 9"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<ResultModelOfCustomersListVM1zGEDGu4 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.Utility">
  <Code>Success</Code>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/JT.VSFA.App.WebAPI.Areas.VisitActivity.ViewModel">
    <d2p1:Total>sample string 1</d2p1:Total>
    <d2p1:customers>
      <d2p1:CustomerVM>
        <d2p1:Address>sample string 7</d2p1:Address>
        <d2p1:Contactor>sample string 4</d2p1:Contactor>
        <d2p1:ContactorTel>sample string 6</d2p1:ContactorTel>
        <d2p1:CustomerName>sample string 2</d2p1:CustomerName>
        <d2p1:CustomerNumber>sample string 3</d2p1:CustomerNumber>
        <d2p1:CustormerImage>sample string 9</d2p1:CustormerImage>
        <d2p1:Distance>sample string 8</d2p1:Distance>
        <d2p1:Manager>sample string 5</d2p1:Manager>
        <d2p1:TID>2d489b0d-66e0-403f-b457-fb3fb80a184a</d2p1:TID>
      </d2p1:CustomerVM>
      <d2p1:CustomerVM>
        <d2p1:Address>sample string 7</d2p1:Address>
        <d2p1:Contactor>sample string 4</d2p1:Contactor>
        <d2p1:ContactorTel>sample string 6</d2p1:ContactorTel>
        <d2p1:CustomerName>sample string 2</d2p1:CustomerName>
        <d2p1:CustomerNumber>sample string 3</d2p1:CustomerNumber>
        <d2p1:CustormerImage>sample string 9</d2p1:CustormerImage>
        <d2p1:Distance>sample string 8</d2p1:Distance>
        <d2p1:Manager>sample string 5</d2p1:Manager>
        <d2p1:TID>2d489b0d-66e0-403f-b457-fb3fb80a184a</d2p1:TID>
      </d2p1:CustomerVM>
    </d2p1:customers>
  </Data>
  <Message>sample string 1</Message>
</ResultModelOfCustomersListVM1zGEDGu4>