/** * 指标权重明细 * Created by Michael . */ (function (angular) { var app = angular.module('core.index.indexWeightDetail', [ 'ngResource', 'base.param', 'eccrm.angular', 'eccrm.angularstrap' ]); app.service('IndexWeightDetailService', function (CommonUtils, $resource) { return $resource(CommonUtils.contextPathURL('/core/index/indexWeightDetail/:method'), {}, { // 保存 save: {method: 'POST', params: {method: 'save'}, isArray: false}, // 批量保存 batchSave: {method: 'POST', params: {method: 'save-batch'}, isArray: false}, // 更新 update: {method: 'POST', params: {method: 'update'}, isArray: false}, // 不带分页的列表查询 query: {method: 'POST', params: {method: 'query', orderBy: '@orderBy'}, isArray: false}, // 根据id查询信息 get: {method: 'GET', params: {method: 'get', id: '@id'}, isArray: false}, // 分页查询 pageQuery: { method: 'POST', params: {method: 'pageQuery', limit: '@limit', start: '@start', orderBy: '@orderBy'}, isArray: false }, // 接受字符串数组 deleteByIds: {method: 'POST', params: {method: 'delete'}, isArray: false} }) }); })(angular);