apifm-webapi 3.44.0 → 3.48.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.
Files changed (2) hide show
  1. package/index.js +29 -0
  2. 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,9 @@ module.exports = {
741
767
  depositBackApply: (token, id) => {
742
768
  return request('/deposit/back/apply', true, 'post', { token, id })
743
769
  },
770
+ fetchShopsCities: () => {
771
+ return request('/shop/subshop/cities', true, 'get')
772
+ },
744
773
  fetchShops: (data) => {
745
774
  return request('/shop/subshop/list', true, 'post', data)
746
775
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apifm-webapi",
3
- "version": "3.44.0",
3
+ "version": "3.48.0",
4
4
  "description": "增加SDK方法",
5
5
  "main": "index.js",
6
6
  "scripts": {