mobileoa-common-modules
Version:
移动办公平台前端公共功能模块
34 lines (29 loc) • 786 B
JavaScript
;
var angular = require('angular');
require('../modules');
var module = angular.module('info.services');
module.factory('ModelRemoteService', function($http, $q) {
var service = {};
service.queryLatestInfos = function() {
return $http.get('/info/v3/latestinfo', {
timeout: 15000
}).then(function(response) {
return response.data;
});
};
service.queryModel = function (md5) {
return $http.get('/info/v3/configs/all/' + md5, {
timeout: 15000
}).then(function(response) {
return response.data;
});
};
service.queryImgPath = function(id) {
return $http.get('/pic/latest/imageFilePath/' + id, {
timeout: 15000
}).then(function(response) {
return response.data;
});
}
return service;
});