@be-link/request 1.29.10 → 1.30.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/request",
3
- "version": "1.29.10",
3
+ "version": "1.30.0",
4
4
  "type": "module",
5
5
  "description": "共比邻 request 库",
6
6
  "author": "zhuifeng <yangyiboys@163.com>",
@@ -32,5 +32,5 @@
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "f13c0e2467fadcb65c3897f0dd4d5916cd44c698"
35
+ "gitHead": "0d22d3d5be4645114d25c7d75bc1eb2f4d16568d"
36
36
  }
@@ -1,42 +0,0 @@
1
- export interface INotData<T> {
2
- apiName: string;
3
- funcName: string;
4
- param?: T;
5
- [str: string]: any;
6
- operateUser?: Record<string, any>;
7
- }
8
- export interface IData<T> {
9
- moduleName?: string;
10
- serviceName?: string;
11
- funcName?: string;
12
- param?: T;
13
- [str: string]: any;
14
- operateUser?: Record<string, any>;
15
- }
16
- export interface ICallFunctionOptions<T> {
17
- name: string;
18
- data: IData<T> | INotData<T>;
19
- query?: Record<string, any>;
20
- search?: string;
21
- parse?: boolean;
22
- }
23
- export interface ICallFunctionResponse<K> {
24
- requestId: string;
25
- data?: {
26
- response_data?: string;
27
- };
28
- result?: {
29
- msg: string;
30
- data: K;
31
- errorCode: number;
32
- success: boolean;
33
- };
34
- }
35
- declare class BeLinkCloudBase {
36
- private app;
37
- constructor();
38
- init(mode: 'development' | 'testing' | 'production'): void;
39
- callFunction<T, K>(params: ICallFunctionOptions<T>): Promise<K>;
40
- }
41
- declare const beLinkCloudBase: BeLinkCloudBase;
42
- export default beLinkCloudBase;