apifm-webapi 3.45.0 → 3.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +35 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -87,6 +87,9 @@ module.exports = {
|
|
|
87
87
|
nextMobileSegment: (data) => {
|
|
88
88
|
return request('/common/mobile-segment/next', false, 'post', data)
|
|
89
89
|
},
|
|
90
|
+
forexRate: (fromCode, toCode) => {
|
|
91
|
+
return request('/forex/rate', true, 'get', { fromCode, toCode })
|
|
92
|
+
},
|
|
90
93
|
queryConfigValue: (key) => {
|
|
91
94
|
return request('/config/value', true, 'get', { key })
|
|
92
95
|
},
|
|
@@ -309,6 +312,11 @@ module.exports = {
|
|
|
309
312
|
goodsId, priceId
|
|
310
313
|
})
|
|
311
314
|
},
|
|
315
|
+
goodsLimitationsV2: (goodsId, propertyChildIds = '') => {
|
|
316
|
+
return request('/shop/goods/limitation', true, 'get', {
|
|
317
|
+
goodsId, propertyChildIds
|
|
318
|
+
})
|
|
319
|
+
},
|
|
312
320
|
goodsPrice: (goodsId, propertyChildIds) => {
|
|
313
321
|
return request('/shop/goods/price', true, 'post', {
|
|
314
322
|
goodsId, propertyChildIds
|
|
@@ -603,6 +611,9 @@ module.exports = {
|
|
|
603
611
|
fxApply: (token, name, mobile) => {
|
|
604
612
|
return request('/saleDistribution/apply', true, 'post', { token, name, mobile })
|
|
605
613
|
},
|
|
614
|
+
fxApplyV2: data => {
|
|
615
|
+
return request('/saleDistribution/apply/v2', true, 'post', data)
|
|
616
|
+
},
|
|
606
617
|
fxBuy: token => {
|
|
607
618
|
return request('/saleDistribution/buy', true, 'post', { token })
|
|
608
619
|
},
|
|
@@ -634,6 +645,21 @@ module.exports = {
|
|
|
634
645
|
fxMembersStatistics: token => {
|
|
635
646
|
return request('/saleDistribution/members/statistics', true, 'get', { token })
|
|
636
647
|
},
|
|
648
|
+
fxMyCommisionStatistics: (token, days) => {
|
|
649
|
+
return request('/saleDistribution/my/commision', true, 'get', { token, days })
|
|
650
|
+
},
|
|
651
|
+
fxGoods: data => {
|
|
652
|
+
return request('/saleDistribution/goods', true, 'post', data)
|
|
653
|
+
},
|
|
654
|
+
fxTeamReport: data => {
|
|
655
|
+
return request('/saleDistribution/team/report', true, 'post', data)
|
|
656
|
+
},
|
|
657
|
+
fxCities: token => {
|
|
658
|
+
return request('/saleDistribution/city/list', true, 'get', { token })
|
|
659
|
+
},
|
|
660
|
+
fxCityReport: data => {
|
|
661
|
+
return request('/saleDistribution/city/report', true, 'post', data)
|
|
662
|
+
},
|
|
637
663
|
goodsSellNumberStatistics: (page, pageSize, goodsId = '') => {
|
|
638
664
|
return request('/site/goods/statistics', true, 'get', {
|
|
639
665
|
page, pageSize, goodsId
|
|
@@ -741,6 +767,15 @@ module.exports = {
|
|
|
741
767
|
depositBackApply: (token, id) => {
|
|
742
768
|
return request('/deposit/back/apply', true, 'post', { token, id })
|
|
743
769
|
},
|
|
770
|
+
shopAreaCities: () => {
|
|
771
|
+
return request('/shopArea/cities', true, 'get')
|
|
772
|
+
},
|
|
773
|
+
shopAreaList: (data) => {
|
|
774
|
+
return request('/shopArea/list', true, 'post', data)
|
|
775
|
+
},
|
|
776
|
+
shopAreaDetail: (id) => {
|
|
777
|
+
return request('/shopArea/detail', true, 'get', { id })
|
|
778
|
+
},
|
|
744
779
|
fetchShopsCities: () => {
|
|
745
780
|
return request('/shop/subshop/cities', true, 'get')
|
|
746
781
|
},
|