| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- define([ 'ngResource' ], function() {
- angular.module('logisticsPortService', [ 'ngResource' ]).factory('LogisticsPort', ['$resource', function($resource) {
- return $resource('trade/logisticsPort', {}, {
- // 邮政新增订单接口3.2
- EMSNewOrderMailNo : {
- url : 'trade/logisticsPort/newOrderMailNo',
- method : 'POST'
- },
- queryLogistics: {
- url : 'trade/logisticsPort/queryLogistics',
- method : 'POST'
- },
- cancelOrder: {
- url : 'trade/logisticsPort/cancelOrder',
- method : 'POST'
- },
- getMailNo: {
- url : 'trade/logisticsPort/getMailNo',
- method : 'POST'
- }
-
- });
- }]).factory('KdnLogistics', ['$resource', function($resource){
- return $resource('trade/kdnLogistics', {}, {
- kdnQuery : {
- url : 'kdn/logistics/query',
- method : 'GET'
- },
- kdnQueryCompany : {
- url : 'kdn/logistics/findCompany/:companyName',
- method : 'GET'
- },
- kdnBooking : {
- url : 'kdn/logistics/booking',
- method : 'POST'
- },
- getCompanyName : {
- url : 'kdn/logistics/companyName',
- method : 'GET',
- isArray: true
- },
- getKdnAndSeller : {
- url : 'kdn/logistics/kdnAndSeller',
- method : 'GET'
- },
- findKdnPage : {
- url : 'kdn/logistics/page',
- method : 'GET'
- },
- saveSellerLogistics : {
- url : 'kdn/logistics/seller/save',
- method : 'POST'
- },
- kdnEOrder: {
- url : 'kdn/logistics/eorder',
- method : 'POST'
- },
- kdnLogisticsList: {
- url : 'kdn/logistics/list',
- method : 'GET'
- }
- });
- }]).factory('Distributor',['$resource', function($resource){
- return $resource('trade/distributor', {}, {
- saveDistributor : {
- url: 'trade/distributor/save',
- method: 'POST',
- isArray : true
- },
- deleteOne : {
- url: 'trade/distributor/delete/:id',
- method: 'PUT'
- },
- findAllSelected : {
- url: 'trade/distributor/selected',
- method: 'GET',
- isArray : true
- }
- });
- }]).factory('DistributionRule', ['$resource', function ($resource) {
- return $resource('trade/distributionRule', {}, {
- saveRule : {
- url: 'trade/distributionRule/save',
- method: 'POST'
- },
- deleteOne : {
- url: 'trade/distributionRule/delete/:id',
- method: 'PUT'
- },
- findAllRule : {
- url: 'trade/distributionRule/page',
- method: 'GET'
- },
- findAllRuleName : {
- url: 'trade/distributionRule/ruleName',
- method: 'GET',
- isArray : true
- },
- findCountOfRule : {
- url: 'trade/distributionRule/count',
- method: 'GET'
- }
- })
- }]);
- });
|