apifm-webapi 1.42.0 → 1.46.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 +151 -0
  2. package/package.json +2 -2
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
  },
@@ -304,6 +343,9 @@ module.exports = {
304
343
  token, goodsId
305
344
  })
306
345
  },
346
+ goodsFavCheckV2: data => {
347
+ return request('/shop/goods/fav/check', true, 'get', data)
348
+ },
307
349
  goodsFavDelete: (token, id = '', goodsId = '') => {
308
350
  return request('/shop/goods/fav/delete', true, 'post', {
309
351
  token, id, goodsId
@@ -312,6 +354,9 @@ module.exports = {
312
354
  goodsFavDeleteV2: data => {
313
355
  return request('/shop/goods/fav/delete', true, 'post', data)
314
356
  },
357
+ goodsSeckillGrab: (goodsId, seconds) => {
358
+ return request('/goods/seckill/grab', false, 'post', { goodsId, seconds })
359
+ },
315
360
  coupons: (data) => {
316
361
  return request('/discounts/coupons', true, 'get', data)
317
362
  },
@@ -708,6 +753,12 @@ module.exports = {
708
753
  modifyUserInfo: (data) => {
709
754
  return request('/user/modify', true, 'post', data)
710
755
  },
756
+ bindSaleman: data => {
757
+ return request('/user/bindSaleman', true, 'post', data)
758
+ },
759
+ modifyUserPassword: (token, pwdOld, pwdNew) => {
760
+ return request('/user/modify/password', true, 'post', { token, pwdOld, pwdNew })
761
+ },
711
762
  uniqueId: (type = '') => {
712
763
  return request('/uniqueId/get', true, 'get', { type })
713
764
  },
@@ -961,6 +1012,106 @@ module.exports = {
961
1012
  wxOpenAuthorization: (data) => {
962
1013
  return request('/user/wxsns/authorization', true, 'post', data)
963
1014
  },
1015
+ userAttentioncheck: (token, uid) => {
1016
+ return request('/user/attention/check', true, 'get', {
1017
+ token, uid
1018
+ })
1019
+ },
1020
+ userAttentionAdd: (token, uid) => {
1021
+ return request('/user/attention/add', true, 'post', {
1022
+ token, uid
1023
+ })
1024
+ },
1025
+ userAttentionRemove: (token, uid) => {
1026
+ return request('/user/attention/remove', true, 'post', {
1027
+ token, uid
1028
+ })
1029
+ },
1030
+ userAttentionMeList: (data) => {
1031
+ return request('/user/attention/attention-me', true, 'post', data)
1032
+ },
1033
+ userMyAttentionList: (data) => {
1034
+ return request('/user/attention/my-attention', true, 'post', data)
1035
+ },
1036
+ userAttentionDetail: (token, uid) => {
1037
+ return request('/user/attention/detail', true, 'get', {
1038
+ token, uid
1039
+ })
1040
+ },
1041
+ userAttentionStatistics: (token) => {
1042
+ return request('/user/attention/statistics', true, 'get', {
1043
+ token
1044
+ })
1045
+ },
1046
+ cyTableToken: (tableId, key) => {
1047
+ return request('/cyTable/token', true, 'post', {
1048
+ id: tableId,
1049
+ k: key
1050
+ })
1051
+ },
1052
+ cyTableAddOrder: data => {
1053
+ return request('/cyTable/add-order', true, 'post', data)
1054
+ },
1055
+ cyTablePayOrder: data => {
1056
+ return request('/cyTable/pay-order', true, 'post', data)
1057
+ },
1058
+ goodsTimesSchedule: (goodsId = '', propertyChildIds = '', brandId = '', categoryId = '') => {
1059
+ return request('/shop/goods/times/schedule', true, 'post', { goodsId, propertyChildIds, brandId, categoryId })
1060
+ },
1061
+ goodsTimesDays: (goodsId, propertyChildIds = '') => {
1062
+ return request('/shop/goods/times/days', true, 'post', { goodsId, propertyChildIds })
1063
+ },
1064
+ goodsTimesDayItems: (day, goodsId, propertyChildIds = '') => {
1065
+ return request('/shop/goods/times/items', true, 'post', { day, goodsId, propertyChildIds })
1066
+ },
1067
+ goodsBrandList: data => {
1068
+ return request('/shop/goods/brand/list', true, 'post', data)
1069
+ },
1070
+ goodsBrandDetail: id => {
1071
+ return request('/shop/goods/brand/detail', true, 'get', { id })
1072
+ },
1073
+ wxappServiceLogin: data => {
1074
+ return request('/user/wxappService/login', true, 'post', data)
1075
+ },
1076
+ wxappServiceLoginWxaMobile: data => {
1077
+ return request('/user/wxappService/login/mobile', true, 'post', data)
1078
+ },
1079
+ wxappServiceRegisterComplex: data => {
1080
+ return request('/user/wxappService/register/complex', true, 'post', data)
1081
+ },
1082
+ wxappServiceRegisterSimple: data => {
1083
+ return request('/user/wxappService/register/simple', true, 'post', data)
1084
+ },
1085
+ wxappServiceAuthorize: data => {
1086
+ return request('/user/wxappService/authorize', true, 'post', data)
1087
+ },
1088
+ wxappServiceBindMobile: data => {
1089
+ return request('/user/wxappService/bindMobile', true, 'post', data)
1090
+ },
1091
+ wxappServiceBindOpenid: data => {
1092
+ return request('/user/wxappService/bindOpenid', true, 'post', data)
1093
+ },
1094
+ wxappServiceEncryptedData: data => {
1095
+ return request('/user/wxappService/decode/encryptedData', true, 'post', data)
1096
+ },
1097
+ trtcUserSig: token => {
1098
+ return request('/trtc/userSig', true, 'get', { token })
1099
+ },
1100
+ setPayPassword: (token, pwd) => {
1101
+ return request('/user/paypwd/set', true, 'post', { token, pwd })
1102
+ },
1103
+ modifyPayPassword: (token, pwdOld, pwdNew) => {
1104
+ return request('/user/paypwd/modify', true, 'post', { token, pwdOld, pwdNew })
1105
+ },
1106
+ resetPayPassword: (mobile, code, pwd) => {
1107
+ return request('/user/paypwd/reset', true, 'post', { mobile, code, pwd })
1108
+ },
1109
+ adPosition: key => {
1110
+ return request('/site/adPosition/info', true, 'get', { key })
1111
+ },
1112
+ adPositionBatch: keys => {
1113
+ return request('/site/adPosition/batch', true, 'get', { keys })
1114
+ },
964
1115
  momentsCategory: () => {
965
1116
  return request('/momentsCategory/list', true, 'get')
966
1117
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "apifm-webapi",
3
- "version": "1.42.0",
4
- "description": "增加 goodsv2 方法",
3
+ "version": "1.46.0",
4
+ "description": "增加SDK方法",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"