分页查询商品信息API_V1

测试API URL POST http://qa.higo-express.cn/wms/api/v1/queryGoods.do
正式API URL POST http://oms.higo-express.cn/wms/api/v1/queryGoods.do

调用方式:模拟表单提交,json,userKey,userValue参数,其中 json参数的值为标准JSON格式的字符串,注意转义json相关字符,具体字段含义参考字段要求

输入参数

   json:"分页信息",
   userKey: "MRYX-TEST",
   userValue: "MRYX123456"

参数说明

参数名 是否必须 描述 示例
userKey 授权用户名 userKey
userValue 授权密码 123456

json参数示例

{
 "pager":{
        "currentPage":1,
        "pageSize": 10
    } 
}

json参数字段说明

字段 中文描述 类型 长度 是否必填 示例值
pager 分页 Object N 如果不传pager对象 默认为currentPage = 1,pageSize= 10 (currentPage :当前页,pageSize(每页记录数)

API返回示例

{
  "data": [
    {
      "goodsid": 6960,
      "goodsno": "000000000010000200",
      "goodsname": "北方牧源原发酵奶昔蓝莓味78g/支",
      "type": "SHUCAI",
      "model": "H40",
      "material": "塑料",
      "makedate":"2017-05-31",
      "perioddate": 5,
      "unit": "EA",
      "owerid": 131,
      "price": 23.5,
      "weight": 10,
      "volumn": 10,
      "length": 8,
      "width": 6,
      "hight": 4,
      "rfno": "1515156487",
      "createdate": "2016-10-31 10:20:15",
      "updatedate": "2016-10-31 10:20:15",
      "createTimestamp": 1495686136000,
      "updateTimestamp": 1495686136000,
      "temperatureType": 1
    },
    {
      "goodsid": 6902,
      "goodsno": "000000000000324727",
      "goodsname": "好丽友热带水果味口香糖101g/瓶",
      "type": "SHUIGUO",
      "model": "EA",
      "material": null,
      "makedate": "2017-05-31",
      "perioddate": 40,
      "unit": "EA",
      "owerid": 131,
      "price": 11.5,
      "weight": 11,
      "volumn": 11,
      "length": 11,
      "width": 11,
      "hight": 11,
      "rfno": "7989844654"
      "createdate": "2017-05-11 14:34:05",
      "updatedate": "2017-06-13 11:55:22",
      "createTimestamp": 1494484445000,
      "updateTimestamp": 1497326122000,
      "temperatureType": 1
    },
    ...
  ],
  "list": [],
  "code": "success",
  "msg": "",
  "pager": {
  "pageSize": 20,
  "totoalResults": 72,
  "currentPage": 1,
  "totalPages": 4,
  "offset": 0,
  "limit": 20
  },
  "fail": false
}

返回结果字段说明

| 字段 | 中文描述 | 类型 |示例值
|------ |-------------------------------------------------------------------- |
| data | 货主信息 | Object | null
| list | 保留字段,可以忽略 | List |null |
| code | 成功,失败标志,failed/success | Enum枚举 | success
| msg | 错误说明 | String| 查询数据有误 |
| fail | 标识成功失败| Boolean | false
| goodsid| 商品id | Integer| 123
| goodsno| 商品编号 |String | 111011
| goodsname| 商品名称 |String | 西红柿 |
| type| 货物大类 (http://www.jianshu.com/p/fc66ce6ded08 ) |String|SHUCAI |
| model | 规格型号 |String|10公斤左右/箱
| material| 材质 |String | |
| makedate| 生产日期 |DATE |2015-01-20
| perioddate | 保质期| Integer|30
| unit| 单位 |String |斤
| owerid| 货主编号 |Integer | 130
| price| 价格 | decimal |26.50
| weight| 单重 | decimal | ..
| volumn| 体积 | decimal |..
| length| 长 |decimal |..
| hight| 高 |decimal |.. |
| rfno| 产品条码 |String | 00012133333
| createDate| 创建日期| Date |2016-10-31 10:20:15
| updateDate| 创建日期| Date |2016-10-31 10:20:15
| createTimestamp| 创建日期时间戳| Long|1495686136000
| updateTimestamp| 修改日期时间戳| Long|1495686136000
| temperatureType| 温区类型 (http://www.jianshu.com/p/e6a2bb0c739c )| Enum枚举| 2

你可能感兴趣的:(分页查询商品信息API_V1)