🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# 新增分类信息 ----------------------------- 此接口用来新增分类信息 接口: /open/waimai/goods/addorupdate_category_info 参数: | 参数 | 名称 | | --- | --- | | app_id | 开发者ID | | timestamp | 请求时间戳 | | access_token | 授权访问的access_token | | name | 分类名称 | | description | 分类描述 | | sort | 分类排序 数字越小越靠前 | | status | 分类状态 1=上架 2=下架 | 响应: | 参数 | 名称 | | --- | --- | | head | 状态信息 | | body | 响应信息 | head字段说明: | 参数 | 名称 | | --- | --- | | code | 状态码 200=成功 | | msg | 状态说明 | body字段说明: | 参数 | 名称 | | --- | --- | | id | 分类id | | name | 分类名称 | | description | 分类描述 | | sort | 分类排序 数字越小越靠前 | | status | 分类状态 1=上架 2=下架 | | created_at | 创建时间 | | updated_at | 更新时间 | 响应示例: ~~~ { "head":{ "code":200, "msg":"success" }, "body":{ "id":"9246", "name":"API测试分类一", "description":"API测试分类描述", "sort":"1", "status":"1", "created_at":"2018-05-04 15:00:34", "updated_at":"2018-05-04 15:01:53" } } ~~~ **测试一下** ```bash curl -d "timestamp=1522660262&app_id=10001999&access_token=11d38e2d0122096d2d41c82c0978ac48962cade6&name=API测试分类一&description=API测试分类描述&sort=1&status=1" http://apib7d.wboll.com/open/waimai/goods/addorupdate_category_info ```