/** * Created by NICK on 15/9/2. * email:nick121212@126.com * qq:289412378 * copyright NICK */ import ref = require('ref'); import passport = require('common/services/passport_service'); import putong = require('common/services/putong_service'); import dashboard = require('common/services/dashboard_service'); import http = require('common/services/httpinterceptor_factory'); import moemash = require('common/services/moemash_service'); import config = require ('common/services/config_constant'); import shiji = require ('common/services/shiji_service'); import httptype = require ('common/services/http_type_constant'); export class Services { constructor(module:ng.IModule) { module .service(passport.PassportService._name, passport.PassportService.factory) .service(putong.PutongService._name, putong.PutongService.factory) .service(dashboard.DashboardService._name, dashboard.DashboardService.factory) .factory(http.HttpInterceptorFactory._name, http.HttpInterceptorFactory.factory) .service(moemash.MoemashService._name, moemash.MoemashService.factory) .constant(config.ConfigConstant._name, config.ConfigConstant.config) .service(shiji.ShijiService._name, shiji.ShijiService.factory) .constant(httptype.Constant._name, httptype.Constant.config); } }