homeservice.js 916 B

12345678910111213141516171819202122232425
  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?' + data,
  20. method:"get"
  21. })
  22. }
  23. };
  24. }]);
  25. })(angular.module('app.services'));