UNPKG

@choerodon/master

Version:
51 lines (44 loc) 1.99 kB
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } import axios from "../../../../../components/axios"; import MasterApis from "../apis"; var MasterServices = /*#__PURE__*/function () { function MasterServices() { _classCallCheck(this, MasterServices); } _createClass(MasterServices, null, [{ key: "axiosGetGuide", value: function axiosGetGuide(_ref) { var menuId = _ref.menuId, orgId = _ref.orgId, proId = _ref.proId, tab_code = _ref.tab_code; return axios.get(MasterApis.getGuideUrl(menuId, orgId, proId, tab_code)); } }, { key: "axiosGetCheckUserCount", value: function axiosGetCheckUserCount(tenantId) { return axios.get(MasterApis.getCheckUserCountUrl(tenantId)); } }, { key: "axiosGetCheckOwner", value: function axiosGetCheckOwner(tenantId) { return axios.get(MasterApis.getCheckOwnerUrl(tenantId)); } }, { key: "axiosDeleteCleanMember", value: function axiosDeleteCleanMember(tenantId, userIds) { return axios["delete"](MasterApis.getCleanMemberUrl(tenantId), { data: userIds }); } }, { key: "axiosGetHelpDoc", value: function axiosGetHelpDoc(props) { return axios.get(MasterApis.getHelpDocUrl(props)); } }]); return MasterServices; }(); export { MasterServices as default };