文 档 中 心 / Document Center
搜索 管理中心
壹川接口文档V3
修改指定的文章分类的启用状态
更新时间:2018-04-11 18:15:34   更新人员:叶洋   文档状态:完成 #56    测试接口
摘要
修改指定的文章分类的启用状态
  1. 接口基本信息
    接口名称:修改指定文章分类的启用状态
    请求方法:PUT
    接口地址:category/:id/status_:newstatus
    登录验证:是
  2. 路由参数
    参数名 参数 数据类型 是否必须 示例值 说明
    id 配置id int
    newstatus 新状态 string 新状态,可选值:off/on 。off为关,on为开
  3. 响应数据参数
    参数名 参数 数据类型 示例值 说明
    id int
    update_time 更新时间 int
    create_time 创建时间 int
    sort 排序 int
    pid 上级分类id int
    mid 模型id int
    status 是否禁用 int 0 禁用 1 启用
    is_home 是否推荐 int
    alias 分类别名 string
    cover 封面图片 string
    imgpic 分类图片 string
    title 分类名称 string
    remark 备注描述 string
    full_tree string
    full_title string
  4. 请求示例
    请求例子:
     
    apirq('category/:id/update_', {
        method: "put",
        data: {
            "id": 25,
            "newstatus": "off"
        },
        urlparams: [
            "id",
            "newstatus"
        ]
    }) 
    
    返回数据结果:
     
    {
        "code": 0,
        "msg": "禁用资源成功!",
        "time": "1523437631",
        "data": {
            "id": 25,
            "update_time": "2018-04-11 17:07:11",
            "create_time": "2017-04-18 13:33:03",
            "sort": 14,
            "pid": 0,
            "mid": 23,
            "status": 0,
            "is_home": 0,
            "alias": "baoxianxieyi",
            "cover": "",
            "imgpic": "",
            "title": "保险协议",
            "remark": "保险协议",
            "full_tree": "",
            "full_title": "保险协议"
        }
    } 
    
本书创建于 2018-03-30 12:03:13 ?如有疑问,请联系技术人员