seekPurchase.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. define([ 'ngResource' ], function() {
  2. angular.module('seekPurchaseServices', [ 'ngResource' ]).factory('seekPurchase', ['$resource', 'BaseService', function($resource, BaseService) {
  3. const rootPath = BaseService.getRootPath();
  4. return $resource('seek', {}, {
  5. getSeekPurchaseRate: {
  6. url: 'seek/offer/getSeekPurchaseRate',
  7. method: 'GET'
  8. },
  9. getSeekPushGoodsPageInfo: {
  10. url: 'http://10.1.51.88:8080/inquiry/public',
  11. method: 'GET',
  12. },
  13. saveOneSeekPurchase: {
  14. url: 'http://10.1.51.88:8080/inquiry/buyer/save',
  15. method: 'POST'
  16. },
  17. saveOffer: {
  18. url: 'http://10.1.51.88:8080/inquiry/sale/item/save',
  19. method: 'POST'
  20. },
  21. getUserSeekPageInfo: {
  22. url: 'http://10.1.51.88:8080/inquiry/buyer/list',
  23. method: 'GET'
  24. },
  25. getMallGoodsList: {
  26. url: 'seek/getMallGoodsList',
  27. method: 'GET',
  28. isArray: true
  29. },
  30. getSeekPurchaseOfferPageInfo: {
  31. url: 'http://10.1.51.88:8080/inquiry/buyer/product/detail',
  32. method: 'GET'
  33. },
  34. getMyOfferPageInfo: {
  35. url: 'http://10.1.51.88:8080/inquiry/public/quotation/list',
  36. method: 'GET'
  37. },
  38. updateSeekPurchaseStatus: {
  39. url: 'http://10.1.51.88:8080/inquiry/buyer/decide',
  40. method: 'POST'
  41. },
  42. getSeekPurchaseBomListPage: {
  43. url: 'http://10.1.51.88:8080/inquiry/buyer/inquiryList',
  44. method: 'GET'
  45. },
  46. findOneBom: {
  47. url: 'http://10.1.51.88:8080/inquiry/public/findInquiryById',
  48. method: 'GET'
  49. },
  50. saveBomName: {
  51. url: 'seek/updateSeekPurchaseBom',
  52. method: 'PUT'
  53. },
  54. getBomDetail: {
  55. url: 'http://10.1.51.88:8080/inquiry/sale/publicInquiry/detail',
  56. method: 'GET'
  57. }
  58. });
  59. }])
  60. });