apifm-webapi 1.41.0 → 1.45.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 +154 -0
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -186,6 +186,9 @@ module.exports = {
186
186
  payVariableUrl: (url, data) => {
187
187
  return request(url, true, 'post', data)
188
188
  },
189
+ wxpay: (data) => {
190
+ return request('/pay/wx/wxapp', true, 'post', data)
191
+ },
189
192
  wxpayH5: (data) => {
190
193
  return request('/pay/wx/h5', true, 'post', data)
191
194
  },
@@ -195,6 +198,42 @@ module.exports = {
195
198
  wxpayQrcode: (data) => {
196
199
  return request('/pay/wx/qrcode', true, 'post', data)
197
200
  },
201
+ wxpayFOMO: (data) => {
202
+ return request('/pay/fomo/wxapp', true, 'post', data)
203
+ },
204
+ payNow: (data) => {
205
+ return request('/pay/fomo/payNow', true, 'post', data)
206
+ },
207
+ fomoCheckout: (data) => {
208
+ return request('/pay/fomo/checkout', true, 'post', data)
209
+ },
210
+ wxpayFWS: (data) => {
211
+ return request('/pay/wxfws/wxapp', true, 'post', data)
212
+ },
213
+ ttpay: (data) => {
214
+ return request('/pay/tt/microapp', true, 'post', data)
215
+ },
216
+ payQuery: (token, outTradeId) => {
217
+ return request('/pay/query', true, 'get', { token, outTradeId })
218
+ },
219
+ wxpaySaobei: (data) => {
220
+ return request('/pay/lcsw/wxapp', true, 'post', data)
221
+ },
222
+ wxpayWepayez: (data) => {
223
+ return request('/pay/wepayez/wxapp', true, 'post', data)
224
+ },
225
+ wxpayxpert: (data) => {
226
+ return request('/pay/payxpert/wxapp', true, 'post', data)
227
+ },
228
+ wxpayIPaynow: (data) => {
229
+ return request('/pay/ipaynow/wxapp', true, 'post', data)
230
+ },
231
+ wxpayAirwallex: (data) => {
232
+ return request('/pay/airwallex/wxapp', true, 'post', data)
233
+ },
234
+ paypalCheckout: (data) => {
235
+ return request('/pay/paypal/checkout', true, 'post', data)
236
+ },
198
237
  alipay: (data) => {
199
238
  return request('/pay/alipay/semiAutomatic/payurl', true, 'post', data)
200
239
  },
@@ -248,9 +287,15 @@ module.exports = {
248
287
  goodsCategory: () => {
249
288
  return request('/shop/goods/category/all', true, 'get')
250
289
  },
290
+ goodsCategoryDetail: (id) => {
291
+ return request('/shop/goods/category/info', true, 'get', { id })
292
+ },
251
293
  goods: (data) => {
252
294
  return request('/shop/goods/list', true, 'post', data)
253
295
  },
296
+ goodsv2: (data) => {
297
+ return request('/shop/goods/list/v2', true, 'post', data)
298
+ },
254
299
  goodsDetail: (id) => {
255
300
  return request('/shop/goods/detail', true, 'get', {
256
301
  id
@@ -306,6 +351,9 @@ module.exports = {
306
351
  goodsFavDeleteV2: data => {
307
352
  return request('/shop/goods/fav/delete', true, 'post', data)
308
353
  },
354
+ goodsSeckillGrab: (goodsId, seconds) => {
355
+ return request('/goods/seckill/grab', false, 'post', { goodsId, seconds })
356
+ },
309
357
  coupons: (data) => {
310
358
  return request('/discounts/coupons', true, 'get', data)
311
359
  },
@@ -702,6 +750,12 @@ module.exports = {
702
750
  modifyUserInfo: (data) => {
703
751
  return request('/user/modify', true, 'post', data)
704
752
  },
753
+ bindSaleman: data => {
754
+ return request('/user/bindSaleman', true, 'post', data)
755
+ },
756
+ modifyUserPassword: (token, pwdOld, pwdNew) => {
757
+ return request('/user/modify/password', true, 'post', { token, pwdOld, pwdNew })
758
+ },
705
759
  uniqueId: (type = '') => {
706
760
  return request('/uniqueId/get', true, 'get', { type })
707
761
  },
@@ -955,6 +1009,106 @@ module.exports = {
955
1009
  wxOpenAuthorization: (data) => {
956
1010
  return request('/user/wxsns/authorization', true, 'post', data)
957
1011
  },
1012
+ userAttentioncheck: (token, uid) => {
1013
+ return request('/user/attention/check', true, 'get', {
1014
+ token, uid
1015
+ })
1016
+ },
1017
+ userAttentionAdd: (token, uid) => {
1018
+ return request('/user/attention/add', true, 'post', {
1019
+ token, uid
1020
+ })
1021
+ },
1022
+ userAttentionRemove: (token, uid) => {
1023
+ return request('/user/attention/remove', true, 'post', {
1024
+ token, uid
1025
+ })
1026
+ },
1027
+ userAttentionMeList: (data) => {
1028
+ return request('/user/attention/attention-me', true, 'post', data)
1029
+ },
1030
+ userMyAttentionList: (data) => {
1031
+ return request('/user/attention/my-attention', true, 'post', data)
1032
+ },
1033
+ userAttentionDetail: (token, uid) => {
1034
+ return request('/user/attention/detail', true, 'get', {
1035
+ token, uid
1036
+ })
1037
+ },
1038
+ userAttentionStatistics: (token) => {
1039
+ return request('/user/attention/statistics', true, 'get', {
1040
+ token
1041
+ })
1042
+ },
1043
+ cyTableToken: (tableId, key) => {
1044
+ return request('/cyTable/token', true, 'post', {
1045
+ id: tableId,
1046
+ k: key
1047
+ })
1048
+ },
1049
+ cyTableAddOrder: data => {
1050
+ return request('/cyTable/add-order', true, 'post', data)
1051
+ },
1052
+ cyTablePayOrder: data => {
1053
+ return request('/cyTable/pay-order', true, 'post', data)
1054
+ },
1055
+ goodsTimesSchedule: (goodsId = '', propertyChildIds = '', brandId = '', categoryId = '') => {
1056
+ return request('/shop/goods/times/schedule', true, 'post', { goodsId, propertyChildIds, brandId, categoryId })
1057
+ },
1058
+ goodsTimesDays: (goodsId, propertyChildIds = '') => {
1059
+ return request('/shop/goods/times/days', true, 'post', { goodsId, propertyChildIds })
1060
+ },
1061
+ goodsTimesDayItems: (day, goodsId, propertyChildIds = '') => {
1062
+ return request('/shop/goods/times/items', true, 'post', { day, goodsId, propertyChildIds })
1063
+ },
1064
+ goodsBrandList: data => {
1065
+ return request('/shop/goods/brand/list', true, 'post', data)
1066
+ },
1067
+ goodsBrandDetail: id => {
1068
+ return request('/shop/goods/brand/detail', true, 'get', { id })
1069
+ },
1070
+ wxappServiceLogin: data => {
1071
+ return request('/user/wxappService/login', true, 'post', data)
1072
+ },
1073
+ wxappServiceLoginWxaMobile: data => {
1074
+ return request('/user/wxappService/login/mobile', true, 'post', data)
1075
+ },
1076
+ wxappServiceRegisterComplex: data => {
1077
+ return request('/user/wxappService/register/complex', true, 'post', data)
1078
+ },
1079
+ wxappServiceRegisterSimple: data => {
1080
+ return request('/user/wxappService/register/simple', true, 'post', data)
1081
+ },
1082
+ wxappServiceAuthorize: data => {
1083
+ return request('/user/wxappService/authorize', true, 'post', data)
1084
+ },
1085
+ wxappServiceBindMobile: data => {
1086
+ return request('/user/wxappService/bindMobile', true, 'post', data)
1087
+ },
1088
+ wxappServiceBindOpenid: data => {
1089
+ return request('/user/wxappService/bindOpenid', true, 'post', data)
1090
+ },
1091
+ wxappServiceEncryptedData: data => {
1092
+ return request('/user/wxappService/decode/encryptedData', true, 'post', data)
1093
+ },
1094
+ trtcUserSig: token => {
1095
+ return request('/trtc/userSig', true, 'get', { token })
1096
+ },
1097
+ setPayPassword: (token, pwd) => {
1098
+ return request('/user/paypwd/set', true, 'post', { token, pwd })
1099
+ },
1100
+ modifyPayPassword: (token, pwdOld, pwdNew) => {
1101
+ return request('/user/paypwd/modify', true, 'post', { token, pwdOld, pwdNew })
1102
+ },
1103
+ resetPayPassword: (mobile, code, pwd) => {
1104
+ return request('/user/paypwd/reset', true, 'post', { mobile, code, pwd })
1105
+ },
1106
+ adPosition: key => {
1107
+ return request('/site/adPosition/info', true, 'get', { key })
1108
+ },
1109
+ adPositionBatch: keys => {
1110
+ return request('/site/adPosition/batch', true, 'get', { keys })
1111
+ },
958
1112
  momentsCategory: () => {
959
1113
  return request('/momentsCategory/list', true, 'get')
960
1114
  },
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "apifm-webapi",
3
- "version": "1.41.0",
4
- "description": "1.41.0",
3
+ "version": "1.45.0",
4
+ "description": "增加秒杀占位方法",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
9
9
  "dependencies": {
10
- "axios": "^0.19.0"
10
+ "axios": "^0.24.0"
11
11
  },
12
12
  "keywords": [
13
13
  "云开发,无需投入服务器、无需接口编程、无需开发后台"