查询商铺仓库列表
该接口用于查询商铺的仓库信息,支持分页查询,并可筛选特定仓库(通过 shId 排除)。  
http://ip:port/app/shopHouse.queryShopHouse  
GET
| 参数名称 | 必填 | 类型 | 描述 | 
|---|---|---|---|
| Authorization | 是 | String | 用户认证token,通过登录接口获取 | 
| app-id | 是 | String | 应用ID,由系统分配 | 
| transaction-id | 是 | String | 请求流水号,格式:1000000000+YYYYMMDDhhmmss+6位序列 | 
| sign | 是 | String | 签名 | 
| req-time | 是 | String | 请求时间,格式:YYYYMMDDhhmmss | 
| 参数名称 | 必填 | 类型 | 描述 | 
|---|---|---|---|
| shopId | 是 | String | 商铺ID | 
| page | 否 | Integer | 当前页码(默认1) | 
| row | 否 | Integer | 每页记录数(默认10) | 
| shId | 否 | String | 仓库ID(用于排除当前仓库) | 
| flag | 否 | String | 特殊标记(1 表示启用筛选逻辑) | 
{
  "code": 0,
  "msg": "成功",
  "data": {
    "totalPage": 1,
    "total": 5,
    "records": [
      {
        "shId": "仓库ID",
        "shopId": "商铺ID",
        "houseName": "仓库名称",
        "address": "仓库地址",
        "contact": "联系人",
        "phone": "联系电话"
      }
    ]
  }
}
curl -X GET \
  'http://ip:port/app/shopHouse.queryShopHouse?shopId=123456&page=1&row=10' \
  -H 'Authorization: Bearer xxxxxx' \
  -H 'app-id: mall' \
  -H 'transaction-id: 100000000020231001120000000001' \
  -H 'sign: xxxxxx' \
  -H 'req-time: 20231001120000'
curl -X GET \
  'http://ip:port/app/shopHouse.queryShopHouse?shopId=123456&shId=789&flag=1' \
  -H 'Authorization: Bearer xxxxxx' \
  -H 'app-id: mall' \
  -H 'transaction-id: 100000000020231001120000000002' \
  -H 'sign: xxxxxx' \
  -H 'req-time: 20231001120000'
{
  "code": 0,
  "msg": "成功",
  "data": {
    "totalPage": 2,
    "total": 15,
    "records": [
      {
        "shId": "001",
        "shopId": "123456",
        "houseName": "主仓库",
        "address": "北京市朝阳区",
        "contact": "张三",
        "phone": "13800138000"
      },
      {
        "shId": "002",
        "shopId": "123456",
        "houseName": "备用仓库",
        "address": "北京市海淀区",
        "contact": "李四",
        "phone": "13900139000"
      }
    ]
  }
}
{
  "code": 400,
  "msg": "参数 shopId 不能为空",
  "data": null
}
flag=1 时,会排除 shId 指定的仓库。  ShopHouseDto 对象,并调用 IShopHouseInnerServiceSMO 进行查询。| 字段名 | 类型 | 描述 | 
|---|---|---|
| shId | String | 仓库ID | 
| shopId | String | 所属商铺ID | 
| houseName | String | 仓库名称 | 
| address | String | 仓库地址 | 
| contact | String | 联系人 | 
| phone | String | 联系电话 | 
这份文档符合 RESTful API 规范,涵盖了请求、响应、示例及业务逻辑说明,可直接用于开发对接。