Blame view
app/views/fbo-Clients/fboClient.service.js
1.44 KB
988ec12e4
|
1 2 |
(function() { 'use strict'; |
9835dbe3e
|
3 |
angular.module('acuefuel') |
988ec12e4
|
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
.service('FBOClient', ['$rootScope', '$q', '$http', 'BE', FBOClient]) function FBOClient($rootScope, $q, $http, BE) { this.getALlFBOList = function(data) { var deferred = $q.defer(); $http({ method : 'GET', url : BE.url +'/account/user/getAllFBOs', headers : {'Content-Type': 'application/json'}, }) .success(function(result) { deferred.resolve(result); }) return deferred.promise; } |
d5fb510e5
|
21 |
this.getAllFlightDeptList = function(data) { |
988ec12e4
|
22 23 24 25 26 27 28 29 30 31 32 33 |
var deferred = $q.defer(); $http({ method : 'GET', url : BE.url +'/account/user/getAllFlightDept', headers : {'Content-Type': 'application/json'}, }) .success(function(result) { deferred.resolve(result); }) return deferred.promise; } |
d5fb510e5
|
34 35 36 37 38 |
this.getSearchClient = function(data) { console.log(data) var deferred = $q.defer(); $http({ method : 'GET', |
104d51edf
|
39 |
url : BE.url +'/user/search', |
d5fb510e5
|
40 41 42 43 44 45 46 47 |
headers : {'Content-Type': 'application/x-www-form-urlencoded'}, params: data }) .success(function(result) { deferred.resolve(result); }) return deferred.promise; } |
988ec12e4
|
48 49 50 |
} })(); |