(function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.front.contentFrontEnd'); serviceNamespace.getContentAsync = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/front/contentFrontEnd/GetContentAsync', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getContentByIdAsync = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/front/contentFrontEnd/GetContentByIdAsync', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getContentListByPagedAsync = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/front/contentFrontEnd/GetContentListByPagedAsync', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getContentNewListByPagedAsync = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/front/contentFrontEnd/GetContentNewListByPagedAsync', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getRecommendContentAsync = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/front/contentFrontEnd/GetRecommendContentAsync', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getRecommendNewContentAsync = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/front/contentFrontEnd/GetRecommendNewContentAsync', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getRecommendReadContentAsync = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/front/contentFrontEnd/GetRecommendReadContentAsync', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getSearchContentAsync = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/front/contentFrontEnd/GetSearchContentAsync', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.updateNewsHitAsync = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/front/contentFrontEnd/UpdateNewsHitAsync', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getFirstContentAsync = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/front/contentFrontEnd/GetFirstContentAsync', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getPreAndNextContentAsync = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/front/contentFrontEnd/GetPreAndNextContentAsync', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getTopNewContentAsync = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/front/contentFrontEnd/GetTopNewContentAsync', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getTopNewContentIsPicurlAsync = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/front/contentFrontEnd/GetTopNewContentIsPicurlAsync', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getClassifyContentAsync = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/front/contentFrontEnd/GetClassifyContentAsync', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; if(typeof define === 'function' && define.amd){ define(function (require, exports, module) { return { 'getContentAsync' : serviceNamespace.getContentAsync, 'getContentByIdAsync' : serviceNamespace.getContentByIdAsync, 'getContentListByPagedAsync' : serviceNamespace.getContentListByPagedAsync, 'getContentNewListByPagedAsync' : serviceNamespace.getContentNewListByPagedAsync, 'getRecommendContentAsync' : serviceNamespace.getRecommendContentAsync, 'getRecommendNewContentAsync' : serviceNamespace.getRecommendNewContentAsync, 'getRecommendReadContentAsync' : serviceNamespace.getRecommendReadContentAsync, 'getSearchContentAsync' : serviceNamespace.getSearchContentAsync, 'updateNewsHitAsync' : serviceNamespace.updateNewsHitAsync, 'getFirstContentAsync' : serviceNamespace.getFirstContentAsync, 'getPreAndNextContentAsync' : serviceNamespace.getPreAndNextContentAsync, 'getTopNewContentAsync' : serviceNamespace.getTopNewContentAsync, 'getTopNewContentIsPicurlAsync' : serviceNamespace.getTopNewContentIsPicurlAsync, 'getClassifyContentAsync' : serviceNamespace.getClassifyContentAsync }; }); } })();