UNPKG

@wjya/ngx-webapp-icpc.group.pms

Version:

angular webapp : icpc.group.pms

158 lines 6.8 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var core_1 = require("@angular/core"); var ngx_webapp_fx_1 = require("@wjya/ngx-webapp-fx"); var API_URL = { // 注册 sendVerificationCode: 'api/_public/account/send_verification_code', accountStep: 'api/_public/_my/community-group-account', communityGroupAccountRegister: 'api/_public/community-group-account/register', bindOfficalAuthUrl: 'api/_my/community-group-account/offical_auth_url', bindTinyAppAuthUrl: 'api/_my/community-group-account/tiny_app_auth_url', completeRegisterStep: 'api/_my/community-group-account/complete_register_step', configWxpayMch: 'api/_my/community-group-account/config_wxpay_mch', communityGroupAccountCommunities: 'api/_my/community-group-account/communities', communityGroupAccountImportTemplate: 'api/_my/community-group-account/import-template', communityGroupAccountImportRooms: 'api/_my/community-group-account/import-rooms', generateFileStorages: 'api/generate-file-storages', personalResetPassword: 'api/_public/account/reset_password', companyResetPassword: 'api/_public/office-account/reset_password', partnerAccountRegister: 'api/_public/partner-account/register', myPartner: 'api/_public/_my/partner' }; var DataSourceHelper = /** @class */ (function () { function DataSourceHelper(dataSourceService, configService) { this.dataSourceService = dataSourceService; this.configService = configService; } Object.defineProperty(DataSourceHelper.prototype, "baseUrl", { get: function () { var url = this.configService.get('serviceBaseUrls.PMS'); return url ? url : '/pms/'; }, enumerable: true, configurable: true }); DataSourceHelper.prototype.getDataSource = function (apiUrl) { return this.dataSourceService.getDataSource(this.baseUrl + apiUrl); }; Object.defineProperty(DataSourceHelper.prototype, "sendVerificationCode", { // 以下返回接口对应的DataSource对象 get: // 以下返回接口对应的DataSource对象 function () { return this.dataSourceService.getDataSource('/uaa/' + API_URL.sendVerificationCode); }, enumerable: true, configurable: true }); Object.defineProperty(DataSourceHelper.prototype, "accountStep", { get: function () { return this.dataSourceService.getDataSource('/uaa/' + API_URL.accountStep); }, enumerable: true, configurable: true }); Object.defineProperty(DataSourceHelper.prototype, "communityGroupAccountRegister", { get: function () { return this.dataSourceService.getDataSource('/uaa/' + API_URL.communityGroupAccountRegister); }, enumerable: true, configurable: true }); Object.defineProperty(DataSourceHelper.prototype, "bindOfficalAuthUrl", { get: function () { return this.dataSourceService.getDataSource('/uaa/' + API_URL.bindOfficalAuthUrl); }, enumerable: true, configurable: true }); Object.defineProperty(DataSourceHelper.prototype, "bindTinyAppAuthUrl", { get: function () { return this.dataSourceService.getDataSource('/uaa/' + API_URL.bindTinyAppAuthUrl); }, enumerable: true, configurable: true }); Object.defineProperty(DataSourceHelper.prototype, "completeRegisterStep", { get: function () { return this.dataSourceService.getDataSource('/uaa/' + API_URL.completeRegisterStep); }, enumerable: true, configurable: true }); Object.defineProperty(DataSourceHelper.prototype, "configWxpayMch", { get: function () { return this.dataSourceService.getDataSource('/uaa/' + API_URL.configWxpayMch); }, enumerable: true, configurable: true }); Object.defineProperty(DataSourceHelper.prototype, "communityGroupAccountCommunities", { get: function () { return this.dataSourceService.getDataSource('/uaa/' + API_URL.communityGroupAccountCommunities); }, enumerable: true, configurable: true }); Object.defineProperty(DataSourceHelper.prototype, "communityGroupAccountImportTemplate", { get: function () { return this.dataSourceService.getDataSource('/base/' + API_URL.communityGroupAccountImportTemplate); }, enumerable: true, configurable: true }); Object.defineProperty(DataSourceHelper.prototype, "communityGroupAccountImportRooms", { get: function () { return this.dataSourceService.getDataSource('/base/' + API_URL.communityGroupAccountImportRooms); }, enumerable: true, configurable: true }); Object.defineProperty(DataSourceHelper.prototype, "generateFileStorages", { get: function () { return this.dataSourceService.getDataSource('/base/' + API_URL.generateFileStorages); }, enumerable: true, configurable: true }); Object.defineProperty(DataSourceHelper.prototype, "personalResetPassword", { get: function () { return this.dataSourceService.getDataSource('/uaa/' + API_URL.personalResetPassword); }, enumerable: true, configurable: true }); Object.defineProperty(DataSourceHelper.prototype, "companyResetPassword", { get: function () { return this.dataSourceService.getDataSource('/uaa/' + API_URL.companyResetPassword); }, enumerable: true, configurable: true }); Object.defineProperty(DataSourceHelper.prototype, "partnerAccountRegister", { get: function () { return this.dataSourceService.getDataSource('/uaa/' + API_URL.partnerAccountRegister); }, enumerable: true, configurable: true }); Object.defineProperty(DataSourceHelper.prototype, "myPartner", { get: function () { return this.dataSourceService.getDataSource('/oms/' + API_URL.myPartner); }, enumerable: true, configurable: true }); DataSourceHelper.decorators = [ { type: core_1.Injectable }, ]; /** @nocollapse */ DataSourceHelper.ctorParameters = function () { return [ { type: ngx_webapp_fx_1.DataSourceService, }, { type: ngx_webapp_fx_1.CoreConfigService, }, ]; }; return DataSourceHelper; }()); exports.DataSourceHelper = DataSourceHelper; //# sourceMappingURL=data-source.helper.js.map