homeservice.js 938 B

1234567891011121314151617181920212223242526
  1. (function (app) {
  2. app.factory('homeService', ['$http', 'config', "util", function ($http, config, util) {
  3. return {
  4. sent_list: function (filter) {
  5. return $http({
  6. url: config.server + 'api/service/sent_list?q=' + filter.q + "&status=" + filter.status+ "&page=" + filter.page+"&f="+filter.f,
  7. method: "get"
  8. })
  9. },
  10. supportDream:function(data){
  11. return $http({
  12. url:config.server + "api/user/support",
  13. method:"post",
  14. data:data
  15. })
  16. },
  17. searchContent:function (data){
  18. return $http({
  19. url:config.server + 'api/index/search',
  20. method:"get",
  21. data:data
  22. })
  23. }
  24. };
  25. }]);
  26. })(angular.module('app.services'));