apifm-webapi 3.60.0 → 3.60.2
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 +135 -3
- 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
|
},
|
|
@@ -1061,6 +1097,14 @@ module.exports = {
|
|
|
1061
1097
|
type: 2
|
|
1062
1098
|
})
|
|
1063
1099
|
},
|
|
1100
|
+
bindOpenidV2: (token, code, appid) => {
|
|
1101
|
+
return request('/user/wxapp/bindOpenid/v2', true, 'post', {
|
|
1102
|
+
token, code, appid
|
|
1103
|
+
})
|
|
1104
|
+
},
|
|
1105
|
+
bindWxmpOpenid: data => {
|
|
1106
|
+
return request('/user/wxmp/bindOpenid', true, 'post', data)
|
|
1107
|
+
},
|
|
1064
1108
|
encryptedData: (code, encryptedData, iv) => {
|
|
1065
1109
|
return request('/user/wxapp/decode/encryptedData', true, 'post', {
|
|
1066
1110
|
code, encryptedData, iv
|
|
@@ -1593,7 +1637,7 @@ module.exports = {
|
|
|
1593
1637
|
},
|
|
1594
1638
|
// 会员卡
|
|
1595
1639
|
cardList: data => {
|
|
1596
|
-
return request('/card/list', true, '
|
|
1640
|
+
return request('/card/list', true, 'get', data)
|
|
1597
1641
|
},
|
|
1598
1642
|
cardInfo: id => {
|
|
1599
1643
|
return request('/card/info', true, 'get', { id })
|
|
@@ -1768,6 +1812,61 @@ module.exports = {
|
|
|
1768
1812
|
aliappQrcode: content => {
|
|
1769
1813
|
return request('/user/aliapp/qrcode', true, 'post', { content })
|
|
1770
1814
|
},
|
|
1815
|
+
// 企业应用 组织/成员/网盘
|
|
1816
|
+
organizePrices: () => {
|
|
1817
|
+
return request('/organizeInfo/prices', true, 'get')
|
|
1818
|
+
},
|
|
1819
|
+
organizeCreate: data => {
|
|
1820
|
+
return request('/organizeInfo/create', true, 'post', data)
|
|
1821
|
+
},
|
|
1822
|
+
organizeUpgrade: data => {
|
|
1823
|
+
return request('/organizeInfo/upgrade', true, 'post', data)
|
|
1824
|
+
},
|
|
1825
|
+
organizeModify: data => {
|
|
1826
|
+
return request('/organizeInfo/modify', true, 'post', data)
|
|
1827
|
+
},
|
|
1828
|
+
organizeJoinKey: data => {
|
|
1829
|
+
return request('/organizeInfo/joinKey', true, 'get', data)
|
|
1830
|
+
},
|
|
1831
|
+
organizeJoin: data => {
|
|
1832
|
+
return request('/organizeInfo/join', true, 'post', data)
|
|
1833
|
+
},
|
|
1834
|
+
organizeGrantAdmin: data => {
|
|
1835
|
+
return request('/organizeInfo/grantAdmin', true, 'post', data)
|
|
1836
|
+
},
|
|
1837
|
+
organizeKick: data => {
|
|
1838
|
+
return request('/organizeInfo/kick', true, 'post', data)
|
|
1839
|
+
},
|
|
1840
|
+
organizeKickAllMembers: data => {
|
|
1841
|
+
return request('/organizeInfo/kickAllMembers', true, 'post', data)
|
|
1842
|
+
},
|
|
1843
|
+
organizeKickSelf: data => {
|
|
1844
|
+
return request('/organizeInfo/kickSelf', true, 'post', data)
|
|
1845
|
+
},
|
|
1846
|
+
organizeNick: data => {
|
|
1847
|
+
return request('/organizeInfo/nick', true, 'post', data)
|
|
1848
|
+
},
|
|
1849
|
+
organizeDelete: data => {
|
|
1850
|
+
return request('/organizeInfo/deleteOrganize', true, 'post', data)
|
|
1851
|
+
},
|
|
1852
|
+
organizeMyOrganizeInfo: data => {
|
|
1853
|
+
return request('/organizeInfo/myOrganizeInfo', true, 'post', data)
|
|
1854
|
+
},
|
|
1855
|
+
organizeDetail: data => {
|
|
1856
|
+
return request('/organizeInfo/organizeDetail', true, 'get', data)
|
|
1857
|
+
},
|
|
1858
|
+
organizeMembers: data => {
|
|
1859
|
+
return request('/organizeInfo/members', true, 'post', data)
|
|
1860
|
+
},
|
|
1861
|
+
newsExtFieldList: (token, organizeId, newsId) => {
|
|
1862
|
+
return request('/newsExtField/extFields', true, 'get', { token, organizeId, newsId })
|
|
1863
|
+
},
|
|
1864
|
+
newsExtFieldDynamic: (token, newsId) => {
|
|
1865
|
+
return request('/newsExtField/dynamic', true, 'get', { token, newsId })
|
|
1866
|
+
},
|
|
1867
|
+
newsExtFieldSet: data => {
|
|
1868
|
+
return request('/newsExtField/setField', true, 'post', data)
|
|
1869
|
+
},
|
|
1771
1870
|
userAttendantList: data => {
|
|
1772
1871
|
return request('/user/attendant/list', true, 'post', data)
|
|
1773
1872
|
},
|
|
@@ -1777,6 +1876,39 @@ module.exports = {
|
|
|
1777
1876
|
userAttendantGoods: (id) => {
|
|
1778
1877
|
return request('/user/attendant/goods', true, 'get', { id })
|
|
1779
1878
|
},
|
|
1879
|
+
userAttendantGoodsSet: (token, ids) => {
|
|
1880
|
+
return request('/user/attendant/goodsSet', true, 'post', { token, ids })
|
|
1881
|
+
},
|
|
1882
|
+
userAttendantBindShop: (token, shopId) => {
|
|
1883
|
+
return request('/user/attendant/bindShop', true, 'post', { shopId, token })
|
|
1884
|
+
},
|
|
1885
|
+
userAttendantUnBindShop: (token) => {
|
|
1886
|
+
return request('/user/attendant/unbindShop', true, 'post', { token })
|
|
1887
|
+
},
|
|
1888
|
+
userAttendantChangeStatus: data => {
|
|
1889
|
+
return request('/user/attendant/changeStatus', true, 'post', data)
|
|
1890
|
+
},
|
|
1891
|
+
userAttendantDaysTimesAttendant: (goodsId, day) => {
|
|
1892
|
+
return request('/user/attendant/daysTimesAttendant', true, 'get', { goodsId, day })
|
|
1893
|
+
},
|
|
1894
|
+
userAttendantDaysTimesAttendantSetQuery: (token, day) => {
|
|
1895
|
+
return request('/user/attendant/daysTimesAttendant/set/query', true, 'get', { token, day })
|
|
1896
|
+
},
|
|
1897
|
+
userAttendantDaysTimesAttendantSet: data => {
|
|
1898
|
+
return request('/user/attendant/daysTimesAttendant/set', true, 'post', data)
|
|
1899
|
+
},
|
|
1900
|
+
userAttendantListReputation: data => {
|
|
1901
|
+
return request('/user/attendant/listReputation', true, 'post', data)
|
|
1902
|
+
},
|
|
1903
|
+
userAttendantShowPics: id => {
|
|
1904
|
+
return request('/user/attendant/showPics', true, 'get', { id })
|
|
1905
|
+
},
|
|
1906
|
+
userAttendantShowPicsAdd: (token, url) => {
|
|
1907
|
+
return request('/user/attendant/showPicsAdd', true, 'post', { token, url })
|
|
1908
|
+
},
|
|
1909
|
+
userAttendantUpdate: data => {
|
|
1910
|
+
return request('/user/attendant/update', true, 'post', data)
|
|
1911
|
+
},
|
|
1780
1912
|
shopCategory: () => {
|
|
1781
1913
|
return request('/shopCategory/all', true, 'get')
|
|
1782
1914
|
},
|