根据游标分页查询产品信息列表
企业可通过此接口根据游标分页查询产品信息列表
请求方式: POST(HTTPS)
请求地址: https://open.wshoto.com/openapi/product/library/page_query_product_library_info_list
Query参数:
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | str | 调用接口凭证 |
Body参数:
{
"cursor": "0",
"product_type_id": 62,
"product_category_id_list": [
"test_847fe39f487d"
],
"keyword": "test_63875a763a27",
"creator_user_id_list": [
"test_8274fb90b78c"
],
"creator_dept_id_list": [
45
],
"product_status": 28,
"choose_level": 78,
"tag_ids": [
"test_048b7695892d"
],
"current_index": 62,
"page_size": 0
}
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
cursor | string | 是 | 最大分页游标数,最大长度:32.首次查询第一页数据传入:0.下一页查询传入上一页查询结果的最大游标值 |
product_type_id | long | 是 | 产品类型ID |
product_category_id_list | string[] | 否 | 产品分类ID集合,集合最大长度:10 |
keyword | string | 否 | 产品名称或者产品编号 |
creator_user_id_list | string[] | 否 | 创建员工ID集合,集合最大长度:20 |
creator_dept_id_list | string[] | 否 | 创建部门ID集合,集合最大长度:5 |
product_status | int | 否 | 上架状态,-1-全部,0-待上架,1-已上架,2-已下架,3-已过期 |
choose_level | int | 否 | 是否精选,0-全部 1-非精选 2-精选 |
tag_ids | string[] | 否 | 标签ID集合,集合最大长度为:20 |
current_index | long | 否 | 当前页,默认值:1 |
page_size | long | 否 | 每页大小,默认值:20,最大值:100 |
返回值:
{
"code": 0,
"msg": "请求成功",
"data": {
"total": 1,
"records": [
{
"product_library_id": 78,
"product_type_id": 3,
"product_category_id": 62,
"name": "test_de4d51db4541",
"product_code": "test_674fcd0ae2bc",
"choose_level": 49,
"product_url": "test_6ec6aef0f526",
"product_status": 54,
"start_time": 66,
"end_time": 25,
"valid_time": 98,
"invalid_time": 8,
"creator": "test_04cfc60b57f9",
"create_time": 3,
"content_url": "test_a0484ef64650",
"max_cursor": "test_7f5490821a06"
}
]
},
"sub_code": "00000"
}
参数说明:
参数 | 类型 | 说明 |
---|---|---|
code | int | 返回码 |
msg | string | 对返回码的文本描述内容 |
data | object | 分页对象 |
total | long | 总数 |
records | object[] | 业务对象 |
product_library_id | long | 产品id |
product_type_id | long | 产品类型ID |
product_category_id | long | 产品分类ID |
name | string | 产品名称 |
product_code | string | 产品编号 |
choose_level | int | 是否精选,1-非精选 2-精选 |
product_url | string | 产品链接 |
publish_status | int | 有效期状态,0-长期有效,2-自定义有效时间 |
start_time | long | 有效时间-开始,格式:时间戳,精度:秒 |
end_time | long | 有效时间-结束,格式:时间戳,精度:秒 |
valid_time | long | 上架时间,格式:时间戳,精度:秒 |
invalid_time | long | 下架时间,格式:时间戳,精度:秒 |
creator | string | 创建员工id |
create_time | long | 创建时间,格式:时间戳,精度:秒 |
content_url | string | 产品详情地址 |
max_cursor | string | 最大游标值 |
sub_code | string | 业务异常返回码 |