plain-design 1.0.0-beta.140 → 1.0.0-beta.141
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/package.json
CHANGED
|
@@ -39,7 +39,7 @@ export const buildPlainDefaultUrlConfig = (): tGetDefaultUrlConfig => {
|
|
|
39
39
|
* @date 2022.12.25 11:33
|
|
40
40
|
*/
|
|
41
41
|
insert: async (param) => {
|
|
42
|
-
return processPublicRequest('insert', { ...param, method: 'post' });
|
|
42
|
+
return processPublicRequest('insert', { ...param, suffixUrl: 'insert', method: 'post' });
|
|
43
43
|
},
|
|
44
44
|
/**
|
|
45
45
|
* 默认使用post请求调用接口base/batch批量插入数据
|
|
@@ -47,7 +47,7 @@ export const buildPlainDefaultUrlConfig = (): tGetDefaultUrlConfig => {
|
|
|
47
47
|
* @date 2022.12.25 22:25
|
|
48
48
|
*/
|
|
49
49
|
batchInsert: async (param) => {
|
|
50
|
-
return processPublicRequest('batchInsert', { ...param, suffixUrl: '
|
|
50
|
+
return processPublicRequest('batchInsert', { ...param, suffixUrl: 'batchInsert', method: 'post' });
|
|
51
51
|
},
|
|
52
52
|
/**
|
|
53
53
|
* 默认使用put方法调用接口base更新数据
|
|
@@ -55,7 +55,7 @@ export const buildPlainDefaultUrlConfig = (): tGetDefaultUrlConfig => {
|
|
|
55
55
|
* @date 2022.12.25 11:34
|
|
56
56
|
*/
|
|
57
57
|
update: async (param) => {
|
|
58
|
-
return processPublicRequest('update', { ...param, method: '
|
|
58
|
+
return processPublicRequest('update', { ...param, suffixUrl: 'update', method: 'post' });
|
|
59
59
|
},
|
|
60
60
|
/**
|
|
61
61
|
* 默认使用put请求,调用接口base/batch批量更新数据
|
|
@@ -63,7 +63,7 @@ export const buildPlainDefaultUrlConfig = (): tGetDefaultUrlConfig => {
|
|
|
63
63
|
* @date 2022.12.25 22:25
|
|
64
64
|
*/
|
|
65
65
|
batchUpdate: async (param) => {
|
|
66
|
-
return processPublicRequest('batchUpdate', { ...param, suffixUrl: '
|
|
66
|
+
return processPublicRequest('batchUpdate', { ...param, suffixUrl: 'batchUpdate', method: 'post' });
|
|
67
67
|
},
|
|
68
68
|
/**
|
|
69
69
|
* 默认使用delete方法调用接口base删除数据
|