std-service.js 488 B

12345678910111213141516
  1. 'use strict';
  2. angular.module('app')
  3. .service('StdService', ['$http','main_host','UserService',function ($http,main_host,UserService) {
  4. this.getStdInfo = function(taskId,module){
  5. var user = UserService.getUserInfo();
  6. var userId = user.userId;
  7. var type = user.type;
  8. var params = {
  9. taskId:taskId,
  10. module:module,
  11. type:type
  12. }
  13. return $http.get(main_host+'/api/EvalStudentPages/'+userId,params);
  14. }
  15. }])