{"remainingRequest":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/api/categoryApi.js","dependencies":[{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/api/categoryApi.js","mtime":1701742078513},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/babel.config.js","mtime":1701742078504},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js","mtime":456789000000}],"contextDependencies":[],"result":["// +----------------------------------------------------------------------\n// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]\n// +----------------------------------------------------------------------\n// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.\n// +----------------------------------------------------------------------\n// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权\n// +----------------------------------------------------------------------\n// | Author: CRMEB Team <admin@crmeb.com>\n// +----------------------------------------------------------------------\n\nimport request from '@/utils/request';\n\n/**\n * 新增分类\n * @param pram\n */\nexport function addCategroy(pram) {\n  var data = {\n    extra: pram.extra,\n    name: pram.name,\n    pid: pram.pid,\n    sort: pram.sort,\n    status: pram.status,\n    type: pram.type,\n    url: pram.url,\n    owner: pram.owner\n  };\n  return request({\n    url: '/admin/merchant/category/save',\n    method: 'POST',\n    data: data\n  });\n}\n\n/**\n * 分类详情\n * @param pram\n */\nexport function infoCategroy(pram) {\n  return request({\n    url: \"/admin/merchant/category/info/\".concat(pram.id),\n    method: 'GET'\n  });\n}\n\n/**\n * 删除分类\n * @param pram\n */\nexport function deleteCategroy(pram) {\n  return request({\n    url: \"/admin/merchant/category/delete/\".concat(pram.id),\n    method: 'post'\n  });\n}\n\n/**\n * 分类列表\n * @param pram\n */\nexport function listCategroy(pram) {\n  var data = {\n    limit: pram.limit,\n    name: pram.name,\n    page: pram.page,\n    pid: pram.pid,\n    status: pram.status,\n    type: pram.type\n  };\n  return request({\n    url: '/admin/category/list',\n    method: 'GET',\n    params: data\n  });\n}\n\n/**\n * 分类数据tree数据\n * @param pram\n */\nexport function treeCategroy(pram) {\n  var data = {\n    type: pram.type,\n    status: pram.status,\n    name: pram.name,\n    owner: pram.owner\n  };\n  return request({\n    url: '/admin/merchant/category/list/tree',\n    method: 'GET',\n    params: data\n  });\n}\n\n/**\n * 更新分类\n * @param pram\n */\nexport function updateCategroy(pram) {\n  var data = {\n    extra: pram.extra,\n    name: pram.name,\n    pid: pram.pid,\n    sort: pram.sort,\n    status: pram.status,\n    type: pram.type,\n    url: pram.url,\n    id: pram.id,\n    owner: pram.owner\n  };\n  return request({\n    url: \"/admin/merchant/category/update/\".concat(pram.id),\n    method: 'POST',\n    params: data\n  });\n}\n\n/**\n * 根据id集合查询对应分类列表\n * @param pram\n */\nexport function categroyByIds(pram) {\n  var data = {\n    ids: pram.ids\n  };\n  return request({\n    url: '/admin/merchant/category/list/ids',\n    method: 'GET',\n    params: data\n  });\n}\n\n/**\n * 修改 显示关闭状态\n * @param pram\n */\nexport function categroyUpdateStatus(id) {\n  return request({\n    url: \"/admin/merchant/category/updateStatus/\".concat(id),\n    method: 'GET'\n  });\n}\n\n/**\n * 文章详情\n * @param pram\n */\nexport function articleInfoApi(params) {\n  return request({\n    url: \"/admin/article/info\",\n    method: 'GET',\n    params: params\n  });\n}",null]}