apifm-webapi 24.6.21 → 24.8.5
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 +33 -0
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -497,6 +497,9 @@ module.exports = {
|
|
|
497
497
|
couponsShareFetch: (token, id, shareToken) => {
|
|
498
498
|
return request('/discounts/share/fetch', true, 'post', { token, id, shareToken })
|
|
499
499
|
},
|
|
500
|
+
couponsHX: data => {
|
|
501
|
+
return request('/discounts/hx', true, 'post', data)
|
|
502
|
+
},
|
|
500
503
|
noticeList: (data) => {
|
|
501
504
|
return request('/notice/list', true, 'post', data)
|
|
502
505
|
},
|
|
@@ -746,6 +749,30 @@ module.exports = {
|
|
|
746
749
|
regionSearch: data => {
|
|
747
750
|
return request('/common/region/v2/search', false, 'post', data)
|
|
748
751
|
},
|
|
752
|
+
provinceV2: () => {
|
|
753
|
+
return request('https://common.apifm.com/' + subDomain + '/region/province', false, 'get')
|
|
754
|
+
},
|
|
755
|
+
cityV2: () => {
|
|
756
|
+
return request('https://common.apifm.com/' + subDomain + '/region/city', false, 'get')
|
|
757
|
+
},
|
|
758
|
+
districtsV2: data => {
|
|
759
|
+
return request('https://common.apifm.com/' + subDomain + '/region/districts', false, 'post', data)
|
|
760
|
+
},
|
|
761
|
+
streetsV2: data => {
|
|
762
|
+
return request('https://common.apifm.com/' + subDomain + '/region/streets', false, 'post', data)
|
|
763
|
+
},
|
|
764
|
+
nextRegionV2: pid => {
|
|
765
|
+
return request('https://common.apifm.com/' + subDomain + '/region/child', false, 'get', { pid })
|
|
766
|
+
},
|
|
767
|
+
regionInfoV2: id => {
|
|
768
|
+
return request('https://common.apifm.com/' + subDomain + '/region/info', false, 'get', { id })
|
|
769
|
+
},
|
|
770
|
+
regionInfoBatchV2: ids => {
|
|
771
|
+
return request('https://common.apifm.com/' + subDomain + '/region/infoBatch', false, 'get', { ids })
|
|
772
|
+
},
|
|
773
|
+
regionSearchV2: data => {
|
|
774
|
+
return request('https://common.apifm.com/' + subDomain + '/region/search', false, 'post', data)
|
|
775
|
+
},
|
|
749
776
|
cashLogs: (data) => {
|
|
750
777
|
return request('/user/cashLog', true, 'post', data)
|
|
751
778
|
},
|
|
@@ -975,6 +1002,9 @@ module.exports = {
|
|
|
975
1002
|
cmsTags: () => {
|
|
976
1003
|
return request('/cms/tags/list', true, 'get', { })
|
|
977
1004
|
},
|
|
1005
|
+
cmsTagsV2: data => {
|
|
1006
|
+
return request('https://cms.apifm.com/' + merchantId + '/newsTag/list', true, 'post', data)
|
|
1007
|
+
},
|
|
978
1008
|
cmsNewsSignUsers: (data) => {
|
|
979
1009
|
return request('/newsSign/signUsers', true, 'post', data)
|
|
980
1010
|
},
|
|
@@ -1195,6 +1225,9 @@ module.exports = {
|
|
|
1195
1225
|
loginout: (token) => {
|
|
1196
1226
|
return request('/user/loginout', true, 'get', { token })
|
|
1197
1227
|
},
|
|
1228
|
+
userLogedList: (token) => {
|
|
1229
|
+
return request('/user/logedUserList', true, 'get', { token })
|
|
1230
|
+
},
|
|
1198
1231
|
userDelete: (token) => {
|
|
1199
1232
|
return request('/user/delete', true, 'post', { token })
|
|
1200
1233
|
},
|