api.js 1.08 KB
module.exports = {
  getArticleClassify: '/admin/articleApi/classify/list',
  setArticleClassify: '/admin/articleApi/classify',

  getArticleList: '/admin/articleApi/article/list',
  setArticleList: '/admin/articleApi/article',
  getArticleDetail: '/admin/articleApi/article',
  setArticle: '/admin/articleApi/article/save',

  getArticleDashboard: '/admin/articleApi/stat/dashboard',
  getArticleViewRank: '/admin/articleApi/stat/viewRank',
  exportArticleViewRank: '/admin/articleApi/stat/viewRank/export',
  getArticleClassifyRank: '/admin/articleApi/stat/classifyRank',
  exportArticleClassifyRank: '/admin/articleApi/stat/classifyRank/export',

  getArticleKeywordList: '/admin/articleApi/keyword/list',
  setArticleKeywordList: '/admin/articleApi/keyword',
  getArticleKeywordStat: '/admin/articleApi/keyword/stat',

  upload: "/common/upload",

  exportTable: exportTable,
}

function exportTable(params) {
  let url = 'https://api.k.wxpai.cn/awp/plugins/export/' + params.func + '?id=' + params.appId + '&key=' + params.appKey + '&val=' + params.data;
  console.log("url:", url);
  window.open(url)
}