文 档 中 心 / Document Center
搜索 管理中心
壹川接口文档V3
获取文章列表
更新时间:2018-04-11 17:26:14   更新人员:叶洋   文档状态:完成 #57    测试接口
摘要
获取文章列表
  1. 接口基本信息
    接口名称:获取文章数据列表
    请求方法:GET
    接口地址:item
    登录验证:否
  2. 请求参数
    参数名 参数 数据类型 是否必须 示例值 说明
    page 分页 int
    row 每页数量 int
  3. 响应数据参数
    参数名 参数 数据类型 示例值 说明
    id 序号 int link_id
    click 点击量 int 浏览量
    cid 分类id int
    mid 模型id int
    update_time 更新时间 int
    create_time 创建时间 int
    sort 排序 int
    is_home 是否置顶 int 0 不置顶 1 置顶
    uid 作者 int 发布者
    pid 上级id int
    price 价格 float
    stock 库存 int
    praise 赞的数量 int
    comments 评论数量 int
    collect 收藏的数量 int
    color 颜色 string
    title 标题 string
    imgpic 背景 string
    imgpiclist 图片列表 string
    attachment 附件 string
    format 规格 string
    keywords 关键字 string
    description 描述简介 string
    account 帐号 string 手机、银行、微信、支付宝
    cover 推荐 string
    address 详细地址 string
    shopcartimg 购物车图片 string
    link 链接 string
    praiselist 点赞的用户列表 string
    collectlist 收藏的用户列表 string
    content 详情 string
  4. 请求示例
    请求例子:
     
    apirq('item', {
        data: {}
    }) 
    
    返回数据结果:
     
    {
        "code": 0,
        "msg": "ok",
        "time": "1523438524",
        "data": {
            "page": 1,
            "row": 15,
            "count": 15,
            "total_count": 18,
            "total_page": 2,
            "lists": [
                {
                    "id": 1,
                    "click": 0,
                    "cid": 4,
                    "mid": 20,
                    "update_time": "2016-09-05 17:39:48",
                    "create_time": "2016-09-05 17:39:48",
                    "sort": 10,
                    "is_home": 0,
                    "status": 1,
                    "uid": null,
                    "pid": null,
                    "price": 0,
                    "stock": 1,
                    "praise": 0,
                    "comments": 0,
                    "collect": 0,
                    "color": "",
                    "title": "组织机构是做什么用的?如何操作?",
                    "imgpic": null,
                    "imgpiclist": null,
                    "attachment": null,
                    "format": null,
                    "keywords": null,
                    "description": null,
                    "account": null,
                    "cover": null,
                    "address": null,
                    "shopcartimg": null,
                    "link": "",
                    "praiselist": null,
                    "collectlist": null,
                    "content": "

    \r\n\t组织机构是平台添加加盟公司的入口,录入机构以后,代表着该公司已经是平台的加盟会员企业!\r\n

    \r\n

    \r\n\t只有平台帐户可以添加组织机构,而非平台帐户不能查看以及操作组织机构!\r\n

    " }, { "id": 2, "click": 0, "cid": 4, "mid": 20, "update_time": "2016-09-19 12:12:56", "create_time": "2016-09-19 12:12:56", "sort": 1, "is_home": 0, "status": 1, "uid": null, "pid": null, "price": 0, "stock": 1, "praise": 0, "comments": 0, "collect": 0, "color": "", "title": "机构成员的作用?", "imgpic": null, "imgpiclist": null, "attachment": null, "format": null, "keywords": null, "description": null, "account": null, "cover": null, "address": null, "shopcartimg": null, "link": "", "praiselist": null, "collectlist": null, "content": "机构成员主要是针对机构内的网点以及网点员工进行管理,并且针对机构内部的业务进行一些机制处理;" }, // .......... ] } }
本书创建于 2018-03-30 12:03:13 ?如有疑问,请联系技术人员