(function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.session'); serviceNamespace.getCurrentLoginInformations = function(ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/session/GetCurrentLoginInformations', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.user'); serviceNamespace.getRoles = function(ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/user/GetRoles', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; serviceNamespace.changePassword = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/user/ChangePassword', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.get = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/user/Get', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getAll = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/user/GetAll', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.create = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/user/Create', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.update = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/user/Update', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace['delete'] = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/user/Delete', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.setting'); serviceNamespace.saveSettings = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/setting/SaveSettings', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.role'); serviceNamespace.getAllPermissions = function(ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/role/GetAllPermissions', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; serviceNamespace.get = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/role/Get', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getAll = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/role/GetAll', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.create = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/role/Create', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.update = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/role/Update', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace['delete'] = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/role/Delete', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.tenant'); serviceNamespace.get = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/tenant/Get', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getAll = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/tenant/GetAll', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.create = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/tenant/Create', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.update = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/tenant/Update', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace['delete'] = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/tenant/Delete', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.configuration'); serviceNamespace.changeUiTheme = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/configuration/ChangeUiTheme', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.account'); serviceNamespace.isTenantAvailable = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/account/IsTenantAvailable', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.register = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/account/Register', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.friendLink'); serviceNamespace.getEditDto = function(id, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/friendLink/GetEditDto' + abp.utils.buildQueryString([{ name: 'id', value: id }]) + '', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; serviceNamespace.save = function(dto, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/friendLink/Save', type: 'POST', data: JSON.stringify(dto) }, ajaxParams)); }; serviceNamespace.getAll = function(ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/friendLink/GetAll', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; serviceNamespace.getDataTablesResult = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/friendLink/GetDataTablesResult', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace['delete'] = function(ids, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/friendLink/Delete', type: 'POST', data: JSON.stringify(ids) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.feedback'); serviceNamespace.getEditDto = function(id, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/feedback/GetEditDto' + abp.utils.buildQueryString([{ name: 'id', value: id }]) + '', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; serviceNamespace.getDataTablesResult = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/feedback/GetDataTablesResult', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.save = function(dto, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/feedback/Save', type: 'POST', data: JSON.stringify(dto) }, ajaxParams)); }; serviceNamespace['delete'] = function(ids, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/feedback/Delete', type: 'POST', data: JSON.stringify(ids) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.category'); serviceNamespace.get = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/category/Get', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getAll = function(ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/category/GetAll', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; serviceNamespace.getListByParentId = function(parentId, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/category/GetListByParentId' + abp.utils.buildQueryString([{ name: 'parentId', value: parentId }]) + '', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; serviceNamespace.getFrontEndListByParentId = function(parentId, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/category/GetFrontEndListByParentId' + abp.utils.buildQueryString([{ name: 'parentId', value: parentId }]) + '', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; serviceNamespace.getTreeList = function(prefix, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/category/GetTreeList' + abp.utils.buildQueryString([{ name: 'prefix', value: prefix }]) + '', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; serviceNamespace.edit = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/category/Edit', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace['delete'] = function(id, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/category/Delete' + abp.utils.buildQueryString([{ name: 'id', value: id }]) + '', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; serviceNamespace.batchDelete = function(ids, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/category/BatchDelete', type: 'POST', data: JSON.stringify(ids) }, ajaxParams)); }; serviceNamespace.getChildrenIds = function(parentId, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/category/GetChildrenIds' + abp.utils.buildQueryString([{ name: 'parentId', value: parentId }]) + '', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.article'); serviceNamespace.save = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/article/Save', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.get = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/article/Get', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace['delete'] = function(ids, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/article/Delete', type: 'POST', data: JSON.stringify(ids) }, ajaxParams)); }; serviceNamespace.getPagedData = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/article/GetPagedData', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getDataTablesResult = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/article/GetDataTablesResult', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getHomeProducts = function(ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/article/GetHomeProducts', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; serviceNamespace.getHomeFactories = function(ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/article/GetHomeFactories', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; serviceNamespace.getHomeNews = function(ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/article/GetHomeNews', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; serviceNamespace.getHomeAboutUs = function(ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/article/GetHomeAboutUs', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; serviceNamespace.getPagedNews = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/article/GetPagedNews', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getPagedProducts = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/article/GetPagedProducts', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getPagedFactories = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/article/GetPagedFactories', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getPagedCertificates = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/article/GetPagedCertificates', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getPagedTeam = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/article/GetPagedTeam', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getArticleDetail = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/article/GetArticleDetail', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; })();