文 档 中 心 / Document Center
搜索 管理中心
壹川接口文档V3
删除指定的文章
更新时间:2018-04-11 18:12:12   更新人员:叶洋   文档状态:完成 #60    测试接口
摘要
删除指定的文章
  1. 接口基本信息
    接口名称:删除一个文章数据信息
    请求方法:DELETE
    接口地址:item/:id
    登录验证:是
  2. 路由参数
    参数名 参数 数据类型 是否必须 示例值 说明
    id 文章ID 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/:id', {
        method: "delete",
        data: {
            "id": 26
        },
        urlparams: [
            "id"
        ]
    }) 
    
    返回数据结果:
     
    {
        "code": 0,
        "msg": "删除成功!",
        "time": "1523441458",
        "data": {
            "id": 26,
            "click": 0,
            "cid": 33,
            "mid": 0,
            "update_time": "2018-04-11 18:03:23",
            "create_time": "2018-04-11 17:38:50",
            "sort": 0,
            "is_home": 0,
            "status": 1,
            "uid": null,
            "pid": null,
            "price": 0,
            "stock": 1,
            "praise": 0,
            "comments": 0,
            "collect": 0,
            "color": "",
            "title": "测aa试a文2342章",
            "imgpic": null,
            "imgpiclist": null,
            "attachment": null,
            "format": null,
            "keywords": "关键",
            "description": null,
            "account": null,
            "cover": null,
            "address": null,
            "shopcartimg": null,
            "link": "",
            "praiselist": null,
            "collectlist": null,
            "content": "一堆的asdf内容df哟"
        }
    } 
    
本书创建于 2018-03-30 12:03:13 ?如有疑问,请联系技术人员