"use strict";
const common_vendor = require("../../../../common/vendor.js");
require("../../../../config/globalData.js");
const doPost = async (url, data, options) => {
  data.ChannelId = "smallpro";
  let resp = common_vendor.handle.promistHandleNew(await common_vendor.request.doPost(url, data, options));
  return common_vendor.handle.catchPromiseNew(resp, () => resp, options);
};
const ArticleDetail = async (saveData, options = {}) => {
  return doPost(
    `${common_vendor.BASE_URL}wsgw/article/mgr/ArticleDetail/callApiJSON.do`,
    saveData,
    options
  );
};
const LikeArticle = async (saveData, options = {}) => {
  return doPost(
    `${common_vendor.BASE_URL}wsgw/article/mgr/Like/callApiJSON.do`,
    saveData,
    options
  );
};
const ShareArticle = async (saveData, options = {}) => {
  return doPost(
    `${common_vendor.BASE_URL}wsgw/article/mgr/Share/callApiJSON.do`,
    saveData,
    options
  );
};
exports.ArticleDetail = ArticleDetail;
exports.LikeArticle = LikeArticle;
exports.ShareArticle = ShareArticle;
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/pagesAdmin/article/service/article/index.js.map
