apifm-webapi 24.7.28 → 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 +27 -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
|
},
|