POST api/Shop/GetNearbyShopList

获取附近店铺

Request Information

URI Parameters

None.

Body Parameters

NearbyShopReq
NameDescriptionTypeAdditional information
pageIndex

页索引

integer

None.

pageSize

页编码

integer

None.

latitude

纬度

string

None.

longitude

经度

string

None.

kilometers

附近多少公里的商家,不能大于10,单位为KM

decimal number

None.

category

商家分类,不指定可以传0

integer

None.

clock

integer

None.

AccessKey

(必填)基础token,RSA公钥加密(填充模式:RSA_PKCS1_OAEP_PADDING)>base64

string

None.

SysTarget

(必填)终端设备,WXMiniProgram=4,WX=1,ANDROID=2,IOS=3

integer

None.

UserToken

用户token-在指定拉取用户信息时需要提供

string

None.

Timestamp

(必填)时间戳,数据格式:yyyyMMddHHmmss

string

None.

Sign

(必填)签名。步骤:1、将所有不为空字段的入参key转成大写(不含Sign)以字典序拼凑成URL键值对 2、将key=AccessKey(未RSA加密)加入到第1步拼成的字符串末尾进行MD5加密并转大写,即可得到签名

string

None.

Request Formats

application/json, text/json

Sample:
{
  "pageIndex": 1,
  "pageSize": 2,
  "latitude": "sample string 3",
  "longitude": "sample string 4",
  "kilometers": 5.1,
  "category": 1,
  "clock": 1,
  "AccessKey": "sample string 6",
  "SysTarget": 7,
  "UserToken": "sample string 8",
  "Timestamp": "sample string 9",
  "Sign": "sample string 10"
}

application/xml, text/xml

Sample:
<NearbyShopReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OpenApi.Models.Req">
  <AccessKey xmlns="http://schemas.datacontract.org/2004/07/OpenApi.Models">sample string 6</AccessKey>
  <Sign xmlns="http://schemas.datacontract.org/2004/07/OpenApi.Models">sample string 10</Sign>
  <SysTarget xmlns="http://schemas.datacontract.org/2004/07/OpenApi.Models">7</SysTarget>
  <Timestamp xmlns="http://schemas.datacontract.org/2004/07/OpenApi.Models">sample string 9</Timestamp>
  <UserToken xmlns="http://schemas.datacontract.org/2004/07/OpenApi.Models">sample string 8</UserToken>
  <category>1</category>
  <clock>1</clock>
  <kilometers>5.1</kilometers>
  <latitude>sample string 3</latitude>
  <longitude>sample string 4</longitude>
  <pageIndex>1</pageIndex>
  <pageSize>2</pageSize>
</NearbyShopReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PageDataOfListOfIndexHotShopDTO
NameDescriptionTypeAdditional information
RecordTotal

integer

None.

PageSize

integer

None.

PageIndex

integer

None.

PageTotal

integer

None.

ListData

Collection of IndexHotShopDTO

None.

Ext1

decimal number

None.

Ext2

decimal number

None.

Ext3

decimal number

None.

Ext4

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "RecordTotal": 1,
  "PageSize": 2,
  "PageIndex": 3,
  "PageTotal": 4,
  "ListData": [
    {
      "ID": 1,
      "ShopName": "sample string 2",
      "Image": "sample string 3",
      "INT": 4.1,
      "Url": "sample string 5",
      "Lines": "sample string 6",
      "Distance": 1.1,
      "Address": "sample string 7",
      "ShopTel": "sample string 8",
      "Longitude": "sample string 9",
      "Latitude": "sample string 10",
      "LonLat": "sample string 11",
      "ClockLine": 12.0,
      "ClockStatus": 13,
      "HasCK": 14,
      "ids": "1",
      "desc": "sample string 15"
    },
    {
      "ID": 1,
      "ShopName": "sample string 2",
      "Image": "sample string 3",
      "INT": 4.1,
      "Url": "sample string 5",
      "Lines": "sample string 6",
      "Distance": 1.1,
      "Address": "sample string 7",
      "ShopTel": "sample string 8",
      "Longitude": "sample string 9",
      "Latitude": "sample string 10",
      "LonLat": "sample string 11",
      "ClockLine": 12.0,
      "ClockStatus": 13,
      "HasCK": 14,
      "ids": "1",
      "desc": "sample string 15"
    }
  ],
  "Ext1": 5.0,
  "Ext2": 6.0,
  "Ext3": 7.0,
  "Ext4": 8.0
}

application/xml, text/xml

Sample:
<PageDataOfArrayOfIndexHotShopDTOkLhutqbd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopMallBusiness.DTOModel">
  <Ext1>5</Ext1>
  <Ext2>6</Ext2>
  <Ext3>7</Ext3>
  <Ext4>8</Ext4>
  <ListData xmlns:d2p1="http://schemas.datacontract.org/2004/07/OpenApi.Models.DTO">
    <d2p1:IndexHotShopDTO>
      <d2p1:Address>sample string 7</d2p1:Address>
      <d2p1:ClockLine>12</d2p1:ClockLine>
      <d2p1:ClockStatus>13</d2p1:ClockStatus>
      <d2p1:Distance>1.1</d2p1:Distance>
      <d2p1:HasCK>14</d2p1:HasCK>
      <d2p1:ID>1</d2p1:ID>
      <d2p1:INT>4.1</d2p1:INT>
      <d2p1:Image>sample string 3</d2p1:Image>
      <d2p1:Latitude>sample string 10</d2p1:Latitude>
      <d2p1:Lines>sample string 6</d2p1:Lines>
      <d2p1:LonLat>sample string 11</d2p1:LonLat>
      <d2p1:Longitude>sample string 9</d2p1:Longitude>
      <d2p1:ShopName>sample string 2</d2p1:ShopName>
      <d2p1:ShopTel>sample string 8</d2p1:ShopTel>
      <d2p1:Url>sample string 5</d2p1:Url>
      <d2p1:desc>sample string 15</d2p1:desc>
    </d2p1:IndexHotShopDTO>
    <d2p1:IndexHotShopDTO>
      <d2p1:Address>sample string 7</d2p1:Address>
      <d2p1:ClockLine>12</d2p1:ClockLine>
      <d2p1:ClockStatus>13</d2p1:ClockStatus>
      <d2p1:Distance>1.1</d2p1:Distance>
      <d2p1:HasCK>14</d2p1:HasCK>
      <d2p1:ID>1</d2p1:ID>
      <d2p1:INT>4.1</d2p1:INT>
      <d2p1:Image>sample string 3</d2p1:Image>
      <d2p1:Latitude>sample string 10</d2p1:Latitude>
      <d2p1:Lines>sample string 6</d2p1:Lines>
      <d2p1:LonLat>sample string 11</d2p1:LonLat>
      <d2p1:Longitude>sample string 9</d2p1:Longitude>
      <d2p1:ShopName>sample string 2</d2p1:ShopName>
      <d2p1:ShopTel>sample string 8</d2p1:ShopTel>
      <d2p1:Url>sample string 5</d2p1:Url>
      <d2p1:desc>sample string 15</d2p1:desc>
    </d2p1:IndexHotShopDTO>
  </ListData>
  <PageIndex>3</PageIndex>
  <PageSize>2</PageSize>
  <PageTotal>4</PageTotal>
  <RecordTotal>1</RecordTotal>
</PageDataOfArrayOfIndexHotShopDTOkLhutqbd>