apifm-webapi 3.66.0 → 3.67.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 +85 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -266,6 +266,12 @@ module.exports = {
266
266
  alipayQrcode2: (data) => {
267
267
  return request('/pay/alipay/gate/paymentCode', true, 'post', data)
268
268
  },
269
+ kasipayH5: (data) => {
270
+ return request('/pay/kasipay/h5', true, 'post', data)
271
+ },
272
+ hmpayJsapi: (data) => {
273
+ return request('/pay/sandpay/hmpay/jsapi', true, 'post', data)
274
+ },
269
275
  login_wx: (code) => {
270
276
  return request('/user/wxapp/login', true, 'post', {
271
277
  code,
@@ -825,6 +831,9 @@ module.exports = {
825
831
  uploadFileList: (path = '') => {
826
832
  return request('/dfs/upload/list', true, 'post', { path })
827
833
  },
834
+ uploadFileListV2: data => {
835
+ return request('/dfs/upload/list/v2', true, 'post', data)
836
+ },
828
837
  galleryList: data => {
829
838
  return request('/dfs/gallery', true, 'post', data)
830
839
  },
@@ -1036,6 +1045,12 @@ module.exports = {
1036
1045
  shortUrl: (url = '') => {
1037
1046
  return request('/common/short-url/shorten', false, 'post', { url })
1038
1047
  },
1048
+ shortUrlV2: (content) => {
1049
+ return request('/common/short-url/shorten/v2', false, 'post', { content })
1050
+ },
1051
+ shortUrlExpand: (suffix) => {
1052
+ return request('/common/short-url/expand', false, 'post', { suffix })
1053
+ },
1039
1054
  smsValidateCode: (mobile, key = '', picCode = '') => {
1040
1055
  return request('/verification/sms/get', true, 'get', { mobile, key, picCode })
1041
1056
  },
@@ -1139,6 +1154,9 @@ module.exports = {
1139
1154
  bindWxmpOpenid: data => {
1140
1155
  return request('/user/wxmp/bindOpenid', true, 'post', data)
1141
1156
  },
1157
+ wxmpOpenid: code => {
1158
+ return request('/user/wxmp/openid', true, 'get', { code })
1159
+ },
1142
1160
  encryptedData: (code, encryptedData, iv) => {
1143
1161
  return request('/user/wxapp/decode/encryptedData', true, 'post', {
1144
1162
  code, encryptedData, iv
@@ -1295,6 +1313,12 @@ module.exports = {
1295
1313
  gpsDistance: (data) => {
1296
1314
  return request('/common/map/qq/distance', false, 'post', data)
1297
1315
  },
1316
+ mockApi: (groupName, apiName, method) => {
1317
+ return request(`/mock/${groupName}/${apiName}`, true, method)
1318
+ },
1319
+ commonIP: (ip) => {
1320
+ return request('/common/ip', false, 'get', { ip })
1321
+ },
1298
1322
  peisongfei: () => {
1299
1323
  return request('/fee/peisong/list', true, 'get')
1300
1324
  },
@@ -1353,6 +1377,12 @@ module.exports = {
1353
1377
  cyTablePayOrder: data => {
1354
1378
  return request('/cyTable/pay-order', true, 'post', data)
1355
1379
  },
1380
+ cyTableInfo: id => {
1381
+ return request('/cyTable/info', true, 'get', { id })
1382
+ },
1383
+ cyTableList: data => {
1384
+ return request('/cyTable/list', true, 'post', data)
1385
+ },
1356
1386
  goodsTimesSchedule: (goodsId = '', propertyChildIds = '', brandId = '', categoryId = '') => {
1357
1387
  return request('/shop/goods/times/schedule', true, 'post', { goodsId, propertyChildIds, brandId, categoryId })
1358
1388
  },
@@ -1845,6 +1875,9 @@ module.exports = {
1845
1875
  commonDays: (startDay = '', days = '') => {
1846
1876
  return request('/common/days', false, 'get', { startDay, days })
1847
1877
  },
1878
+ commonDiffMillis: (d1 = '', d2 = '') => {
1879
+ return request('/common/diffMillis', false, 'get', { d1, d2 })
1880
+ },
1848
1881
  // 支付宝小程序
1849
1882
  aliappUserRegister: data => {
1850
1883
  return request('/user/aliapp/register', true, 'post', data)
@@ -1966,5 +1999,56 @@ module.exports = {
1966
1999
  },
1967
2000
  contactList: () => {
1968
2001
  return request('/contact/list', true, 'get')
1969
- }
2002
+ },
2003
+ distributedLock: (key, seconds) => {
2004
+ return request('/distributedLock/lock', true, 'get', { key, seconds })
2005
+ },
2006
+ distributedLockRelease: (key) => {
2007
+ return request('/distributedLock/lock', true, 'get', { key })
2008
+ },
2009
+ communitySetting: () => {
2010
+ return request('/community/setting', true, 'get')
2011
+ },
2012
+ communityLeaderApply: data => {
2013
+ return request('/communityLeader/apply', true, 'post', data)
2014
+ },
2015
+ communityLeaderApplyInfo: token => {
2016
+ return request('/communityLeader/apply/info', true, 'get', { token })
2017
+ },
2018
+ communityLeaderBuy: token => {
2019
+ return request('/communityLeader/buy', true, 'post', { token })
2020
+ },
2021
+ communityOrderFahuo: data => {
2022
+ return request('/communityOrder/fahuo', true, 'post', data)
2023
+ },
2024
+ listingSet: () => {
2025
+ return request('/listingSet/info', true, 'get')
2026
+ },
2027
+ listingMyListing: (token) => {
2028
+ return request('/listingInfo/myListing', true, 'get', { token })
2029
+ },
2030
+ listingSave: data => {
2031
+ return request('/listingInfo/save', true, 'post', data)
2032
+ },
2033
+ listingDetail: (id) => {
2034
+ return request('/listingInfo/detail', true, 'get', { id })
2035
+ },
2036
+ listingCancel: (token, id) => {
2037
+ return request('/listingInfo/cancel', true, 'post', { token, id })
2038
+ },
2039
+ listingSuccess: (token, id) => {
2040
+ return request('/listingInfo/success', true, 'post', { token, id })
2041
+ },
2042
+ listingDelete: (token, id) => {
2043
+ return request('/listingInfo/delete', true, 'post', { token, id })
2044
+ },
2045
+ listingAddGoods: data => {
2046
+ return request('/listingInfo/addGoods', true, 'post', data)
2047
+ },
2048
+ listingRemoveGoods: data => {
2049
+ return request('/listingInfo/removeGoods', true, 'post', data)
2050
+ },
2051
+ listingJoinList: data => {
2052
+ return request('/listingInfo/joinList', true, 'post', data)
2053
+ },
1970
2054
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "apifm-webapi",
3
- "version": "3.66.0",
4
- "description": "2023-07-24",
3
+ "version": "3.67.0",
4
+ "description": "2023-07-27",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"