简要描述:

  • 修改门店商品分类接口

请求域名:

  • http://xx.com

请求URL:

POST/plugin.store-cashier.frontend.store.goods-category.edit-category

APP端请求URL:

POST/plugin.store-cashier.frontend.app.store.goods-category.editCategory

参数:

参数名 是否必须 类型 说明
store_id int 门店ID APP端 不需要此参数
id int 分类ID
name string 分类名称
thumb string 分类图片
is_home int 是否推荐: 0否,1是
enabled int 是否开启: 0否,1是

返回示例:

正确时返回:

  {
    "result": 1,
    "data": {},
    "msg":分类修改成功,
  }

错误时返回:

  {
    "result": 0,
    "data": {},
    "msg":输入参数有误,
  }
  {
    "result": 0,
    "data": {},
    "msg":分类名称已存在,
  }

返回参数说明:

参数名 类型 说明

备注:

  • 更多返回错误代码请看首页的错误代码描述