简要描述:

项目列表查询接口

请求域名:

  • http://xx.com

请求路由:

GET/&route=plugin.project-flow.frontend.project.list

请求参数说明:

参数名 类型 是否必需 说明
kwd string 项目标题关键词

返回示例:

正确时返回:

json
{
    "result": 1,
    "msg": "获取成功",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 1,
                "uniacid": 1,
                "title": "阿大的",
                "images": [
                    "images/1/2025/12/750700addfd5cd6c3779b69cfdc02d98.jpeg",
                    "images/1/2025/10/3b01f5bf9402e147ff8b9bf03a519424.jpg"
                ],
                "description": "asdadad",
                "document": "http://www.shop777.com/static/upload/files/1/2025/12/1e7c843856023f9dbb4737a16fbb9a41.docx",
                "content": "<p>adasdadasda</p>",
                "is_show": 1,
                "status": 0,
                "created_at": "2025-12-31 10:46:46",
                "updated_at": "2025-12-31 11:24:31"
            }
        ],
        "first_page_url": "http://www.shop777.com/addons/yun_shop/api.php?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://www.shop777.com/addons/yun_shop/api.php?page=1",
        "links": [
            {
                "url": null,
                "label": "&laquo; 上一页",
                "active": false
            },
            {
                "url": "http://www.shop777.com/addons/yun_shop/api.php?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "下一页 &raquo;",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "http://www.shop777.com/addons/yun_shop/api.php",
        "per_page": 10,
        "prev_page_url": null,
        "to": 1,
        "total": 1
    },
}

返回参数说明:

data对象参数说明:

参数名 类型 说明
current_page int 当前页码
data array 项目列表数据
first_page_url string 第一页链接
from int 当前页第一条数据的序号
last_page int 最后一页页码
last_page_url string 最后一页链接
links array 分页链接数组
next_page_url string 下一页链接
path string 基础路径
per_page int 每页显示数量
prev_page_url string 上一页链接
to int 当前页最后一条数据的序号
total int 总数据条数

data.data 项目对象参数说明:

参数名 类型 说明
id int 项目ID
uniacid int 应用ID
title string 项目标题
images array 项目图片数组
description string 项目描述
document string 项目文档链接
content string 项目详情(HTML格式)
is_show int 是否显示:1是 0否
status int 项目状态
created_at string 创建时间
updated_at string 更新时间