keywordmap.svc.js 808 Bytes
Newer Older
frank.xa.zhang's avatar
frank.xa.zhang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// web service proxy for org
webservices.factory('keywordmapService', ['$http', 'apiConfig', function ($http, apiConfig) {
    'use strict';
    return {
        get: function (type) {
            return $http.get('/keywordmap/get?type=' + type, apiConfig.create());
        },
        getsingle: function (type) {
            return $http.get('/keywordmap/getsingle?keywordId=' + type, apiConfig.create());
        },
        add: function (model) {
            return $http.post('/keywordmap/add', model, apiConfig.create());
        },
        update: function (model) {
            return $http.post('/keywordmap/update', model, apiConfig.create());
        },
        isactive: function (model) {
            return $http.post('/keywordmap/isactive', model, apiConfig.create());
        }
    };
}]);