browsingHistory.js 798 B

123456789101112131415161718192021222324
  1. define(['ngResource'], function(){
  2. angular.module('BrowsingHistory', ['ngResource']).factory('GoodsBrowsingHistory', ['$resource', function($resource){
  3. return $resource('trade/history', { }, {
  4. // 保存产品浏览记录
  5. saveGoods:{
  6. url : 'trade/history/goods/save',
  7. method : 'POST'
  8. },
  9. getAllHistory : {
  10. url : 'trade/history/goods/list',
  11. method : 'GET',
  12. isArray : true
  13. },
  14. getAllHistoryPage : {
  15. url : 'trade/history/goods/page',
  16. method : 'GET'
  17. },
  18. deleteHistory :{
  19. url : 'trade/history/goods/delete',
  20. method : 'POST'
  21. }
  22. });
  23. }])
  24. });