SystemUserService.js
598 字节
"use strict";
var systemUserService = angular.module('SystemUserService',[]);
systemUserService.service("SystemUserService", [
'$rootScope',
'BaseService',
function ($rootScope,BaseService) {
var _service = {
userinfo:{},
getCuurentUserinfo:function() {
BaseService.request({
url:BaseService.url.getCurrentUserInfo_url,
method:'get',
mark:true,
fn:function(response) {
if(response.code == 0) {
_service.userinfo = response.data;
$rootScope.$broadcast('current.userinfo');
}
}
});
}
}
return _service;
}]);