apifm-webapi 3.60.0 → 3.60.1

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 +127 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -131,6 +131,12 @@ module.exports = {
131
131
  iv
132
132
  })
133
133
  },
134
+ scoreTaskList: token => {
135
+ return request('/score/taskList', true, 'get', { token })
136
+ },
137
+ scoreTaskSuccess: (token, type) => {
138
+ return request('/score/taskSuccess', true, 'post', { token, type })
139
+ },
134
140
  kanjiaSet: (goodsId) => {
135
141
  return request('/shop/goods/kanjia/set', true, 'get', { goodsId })
136
142
  },
@@ -201,6 +207,9 @@ module.exports = {
201
207
  wxpayQrcode: (data) => {
202
208
  return request('/pay/wx/qrcode', true, 'post', data)
203
209
  },
210
+ wxpayCode: data => {
211
+ return request('/pay/wx/paymentCode', true, 'post', data)
212
+ },
204
213
  wxpayApp: data => {
205
214
  return request('/pay/wx/app', true, 'post', data);
206
215
  },
@@ -252,6 +261,12 @@ module.exports = {
252
261
  alipayAPP: (data) => {
253
262
  return request('/pay/alipay/gate/app', true, 'post', data)
254
263
  },
264
+ alipayQrcode: (data) => {
265
+ return request('/pay/alipay/gate/qrcode', true, 'post', data)
266
+ },
267
+ alipayQrcode2: (data) => {
268
+ return request('/pay/alipay/gate/paymentCode', true, 'post', data)
269
+ },
255
270
  login_wx: (code) => {
256
271
  return request('/user/wxapp/login', true, 'post', {
257
272
  code,
@@ -341,9 +356,9 @@ module.exports = {
341
356
  goodsv2: (data) => {
342
357
  return request('/shop/goods/list/v2', true, 'post', data)
343
358
  },
344
- goodsDetail: (id) => {
359
+ goodsDetail: (id, token = '') => {
345
360
  return request('/shop/goods/detail', true, 'get', {
346
- id
361
+ id, token
347
362
  })
348
363
  },
349
364
  goodsLimitations: (goodsId, priceId = '') => {
@@ -356,6 +371,21 @@ module.exports = {
356
371
  goodsId, propertyChildIds
357
372
  })
358
373
  },
374
+ goodsAddition: (goodsId) => {
375
+ return request('/shop/goods/goodsAddition', true, 'get', {
376
+ goodsId
377
+ })
378
+ },
379
+ goodsVideoEpisodesList: (goodsId, token = '') => {
380
+ return request('/goodsVideoEpisodes/list', true, 'get', {
381
+ goodsId, token
382
+ })
383
+ },
384
+ goodsVideoEpisodesBuy: (goodsId, number, token) => {
385
+ return request('/goodsVideoEpisodes/buy', true, 'post', {
386
+ goodsId, number, token
387
+ })
388
+ },
359
389
  goodsPrice: (goodsId, propertyChildIds) => {
360
390
  return request('/shop/goods/price', true, 'post', {
361
391
  goodsId, propertyChildIds
@@ -770,6 +800,9 @@ module.exports = {
770
800
  uploadFileList: (path = '') => {
771
801
  return request('/dfs/upload/list', true, 'post', { path })
772
802
  },
803
+ galleryList: data => {
804
+ return request('/dfs/gallery', true, 'post', data)
805
+ },
773
806
  refundApply: (data) => {
774
807
  return request('/order/refundApply/apply', true, 'post', data)
775
808
  },
@@ -1026,6 +1059,9 @@ module.exports = {
1026
1059
  userDelete: (token) => {
1027
1060
  return request('/user/delete', true, 'post', { token })
1028
1061
  },
1062
+ dynamicUserCode: (token) => {
1063
+ return request('/user/dynamicUserCode', true, 'get', { token })
1064
+ },
1029
1065
  userLevelList: (data) => {
1030
1066
  return request('/user/level/list', true, 'post', data)
1031
1067
  },
@@ -1593,7 +1629,7 @@ module.exports = {
1593
1629
  },
1594
1630
  // 会员卡
1595
1631
  cardList: data => {
1596
- return request('/card/list', true, 'post', data)
1632
+ return request('/card/list', true, 'get', data)
1597
1633
  },
1598
1634
  cardInfo: id => {
1599
1635
  return request('/card/info', true, 'get', { id })
@@ -1768,6 +1804,61 @@ module.exports = {
1768
1804
  aliappQrcode: content => {
1769
1805
  return request('/user/aliapp/qrcode', true, 'post', { content })
1770
1806
  },
1807
+ // 企业应用 组织/成员/网盘
1808
+ organizePrices: () => {
1809
+ return request('/organizeInfo/prices', true, 'get')
1810
+ },
1811
+ organizeCreate: data => {
1812
+ return request('/organizeInfo/create', true, 'post', data)
1813
+ },
1814
+ organizeUpgrade: data => {
1815
+ return request('/organizeInfo/upgrade', true, 'post', data)
1816
+ },
1817
+ organizeModify: data => {
1818
+ return request('/organizeInfo/modify', true, 'post', data)
1819
+ },
1820
+ organizeJoinKey: data => {
1821
+ return request('/organizeInfo/joinKey', true, 'get', data)
1822
+ },
1823
+ organizeJoin: data => {
1824
+ return request('/organizeInfo/join', true, 'post', data)
1825
+ },
1826
+ organizeGrantAdmin: data => {
1827
+ return request('/organizeInfo/grantAdmin', true, 'post', data)
1828
+ },
1829
+ organizeKick: data => {
1830
+ return request('/organizeInfo/kick', true, 'post', data)
1831
+ },
1832
+ organizeKickAllMembers: data => {
1833
+ return request('/organizeInfo/kickAllMembers', true, 'post', data)
1834
+ },
1835
+ organizeKickSelf: data => {
1836
+ return request('/organizeInfo/kickSelf', true, 'post', data)
1837
+ },
1838
+ organizeNick: data => {
1839
+ return request('/organizeInfo/nick', true, 'post', data)
1840
+ },
1841
+ organizeDelete: data => {
1842
+ return request('/organizeInfo/deleteOrganize', true, 'post', data)
1843
+ },
1844
+ organizeMyOrganizeInfo: data => {
1845
+ return request('/organizeInfo/myOrganizeInfo', true, 'post', data)
1846
+ },
1847
+ organizeDetail: data => {
1848
+ return request('/organizeInfo/organizeDetail', true, 'get', data)
1849
+ },
1850
+ organizeMembers: data => {
1851
+ return request('/organizeInfo/members', true, 'post', data)
1852
+ },
1853
+ newsExtFieldList: (token, organizeId, newsId) => {
1854
+ return request('/newsExtField/extFields', true, 'get', { token, organizeId, newsId })
1855
+ },
1856
+ newsExtFieldDynamic: (token, newsId) => {
1857
+ return request('/newsExtField/dynamic', true, 'get', { token, newsId })
1858
+ },
1859
+ newsExtFieldSet: data => {
1860
+ return request('/newsExtField/setField', true, 'post', data)
1861
+ },
1771
1862
  userAttendantList: data => {
1772
1863
  return request('/user/attendant/list', true, 'post', data)
1773
1864
  },
@@ -1777,6 +1868,39 @@ module.exports = {
1777
1868
  userAttendantGoods: (id) => {
1778
1869
  return request('/user/attendant/goods', true, 'get', { id })
1779
1870
  },
1871
+ userAttendantGoodsSet: (token, ids) => {
1872
+ return request('/user/attendant/goodsSet', true, 'post', { token, ids })
1873
+ },
1874
+ userAttendantBindShop: (token, shopId) => {
1875
+ return request('/user/attendant/bindShop', true, 'post', { shopId, token })
1876
+ },
1877
+ userAttendantUnBindShop: (token) => {
1878
+ return request('/user/attendant/unbindShop', true, 'post', { token })
1879
+ },
1880
+ userAttendantChangeStatus: data => {
1881
+ return request('/user/attendant/changeStatus', true, 'post', data)
1882
+ },
1883
+ userAttendantDaysTimesAttendant: (goodsId, day) => {
1884
+ return request('/user/attendant/daysTimesAttendant', true, 'get', { goodsId, day })
1885
+ },
1886
+ userAttendantDaysTimesAttendantSetQuery: (token, day) => {
1887
+ return request('/user/attendant/daysTimesAttendant/set/query', true, 'get', { token, day })
1888
+ },
1889
+ userAttendantDaysTimesAttendantSet: data => {
1890
+ return request('/user/attendant/daysTimesAttendant/set', true, 'post', data)
1891
+ },
1892
+ userAttendantListReputation: data => {
1893
+ return request('/user/attendant/listReputation', true, 'post', data)
1894
+ },
1895
+ userAttendantShowPics: id => {
1896
+ return request('/user/attendant/showPics', true, 'get', { id })
1897
+ },
1898
+ userAttendantShowPicsAdd: (token, url) => {
1899
+ return request('/user/attendant/showPicsAdd', true, 'post', { token, url })
1900
+ },
1901
+ userAttendantUpdate: data => {
1902
+ return request('/user/attendant/update', true, 'post', data)
1903
+ },
1780
1904
  shopCategory: () => {
1781
1905
  return request('/shopCategory/all', true, 'get')
1782
1906
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "apifm-webapi",
3
- "version": "3.60.0",
4
- "description": "增加了一些SDK方法",
3
+ "version": "3.60.1",
4
+ "description": "WXAPI.goodsDetail(id, token)",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"