|
@@ -174,4 +174,72 @@ export function paperCoupon(couponCode, vehicleNo) {
|
|
|
|
|
|
export function updateUnionId({openId, unionId, vipCode = null}) {
|
|
|
return window.requestms.put(`update-union-id?openId=${openId}&unionId=${unionId}&vipCode=${vipCode}`, {}, { loading: false });
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// Temp parking Frontend |前端功能开关 config api: https://kerryprops.atlassian.net/browse/KIP-11003
|
|
|
+
|
|
|
+/*
|
|
|
+新增键值对配置:
|
|
|
+curl --request POST \
|
|
|
+ --url http://localhost:8080/conf-values \
|
|
|
+ --header 'Content-Type: application/json' \
|
|
|
+ --data '{
|
|
|
+ "key": "key1",
|
|
|
+ "value": {
|
|
|
+ "key": "key1",
|
|
|
+ "value": null,
|
|
|
+ "description": "some desc 中文一些描述性文字",
|
|
|
+ "createTime": "2023-07-19 11:11:00"
|
|
|
+ },
|
|
|
+ "description": "some desc 中文一些描述性文字",
|
|
|
+ "createTime": "2023-07-19 11:11:00"
|
|
|
+}'
|
|
|
+ */
|
|
|
+export function aDDConfValues(params) {
|
|
|
+ return window.requestms.post(`conf-values`, params, { loading: false });
|
|
|
+}
|
|
|
+/*
|
|
|
+所有配置列表:
|
|
|
+curl --request GET \
|
|
|
+ --url http://localhost:8080/conf-values/
|
|
|
+ */
|
|
|
+export function getConfValues(params) {
|
|
|
+ return window.requestms.get(`conf-values`, {}, { loading: false });
|
|
|
+}
|
|
|
+/*
|
|
|
+查询具体key1的值:
|
|
|
+curl --request GET \
|
|
|
+ --url http://localhost:8080/conf-values/key1
|
|
|
+ */
|
|
|
+export function getConfValueOfKey(key) {
|
|
|
+ return window.requestms.get(`conf-values/${key}`, {}, { loading: false });
|
|
|
+ // return window.requestms.get(`https://qa-kip-service-internal.kerryplus.com/temporary-parking-service/conf-values/${key}`, {}, { loading: false });
|
|
|
+}
|
|
|
+/*
|
|
|
+修改key1的值:
|
|
|
+curl --request PUT \
|
|
|
+ --url http://localhost:8080/conf-values/key1 \
|
|
|
+ --header 'Content-Type: application/json' \
|
|
|
+ --data '{
|
|
|
+ "key": "key1",
|
|
|
+ "value": {
|
|
|
+ "key": "key333",
|
|
|
+ "description": "ffffffffff",
|
|
|
+ "createTime": "2023333300"
|
|
|
+ },
|
|
|
+ "description": "sofgggggg4545字",
|
|
|
+ "createTime": "2023-01-11 11:11:00"
|
|
|
+}'
|
|
|
+ */
|
|
|
+export function putConfValueOfKey(key, params) {
|
|
|
+ return window.requestms.put(`conf-values/${key}`, params, { loading: false });
|
|
|
+}
|
|
|
+/*
|
|
|
+删除key1:
|
|
|
+curl --request DELETE \
|
|
|
+ --url http://localhost:8080/conf-values/key1
|
|
|
+ */
|
|
|
+export function deleteConfValueOfKey(key) {
|
|
|
+ return window.requestms.delete(`conf-values/${key}`, {}, { loading: false });
|
|
|
}
|