@pisell/pisellos 0.0.220 → 0.0.221
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/README.md +180 -180
- package/dist/core/index.js +4 -4
- package/dist/index.js +3 -3
- package/dist/modules/Account/types.js +6 -6
- package/dist/modules/AccountList/index.js +14 -14
- package/dist/modules/AccountList/types.js +14 -14
- package/dist/modules/AccountList/utils.js +5 -5
- package/dist/modules/Cart/index.js +35 -35
- package/dist/modules/Cart/types.js +14 -14
- package/dist/modules/Cart/utils/cartAccount.js +8 -8
- package/dist/modules/Cart/utils/cartDate.js +12 -12
- package/dist/modules/Cart/utils/cartDiscount.js +8 -8
- package/dist/modules/Cart/utils/cartNote.js +8 -8
- package/dist/modules/Cart/utils/cartProduct.js +39 -39
- package/dist/modules/Cart/utils/cartRelationForms.js +8 -8
- package/dist/modules/Cart/utils/cartResource.js +8 -8
- package/dist/modules/Cart/utils/index.js +4 -4
- package/dist/modules/Customer/index.js +67 -67
- package/dist/modules/Customer/types.js +18 -18
- package/dist/modules/Date/types.js +6 -6
- package/dist/modules/Date/utils.js +25 -25
- package/dist/modules/Guests/types.js +8 -8
- package/dist/modules/Order/types.js +4 -4
- package/dist/modules/Order/utils.js +8 -8
- package/dist/modules/Payment/cash.js +2 -2
- package/dist/modules/Payment/eftpos.js +2 -2
- package/dist/modules/Payment/index.js +135 -135
- package/dist/modules/Payment/types.js +50 -50
- package/dist/modules/Payment/wallet.js +2 -2
- package/dist/modules/Product/index.js +22 -22
- package/dist/modules/Product/utils.js +12 -12
- package/dist/modules/ProductList/index.js +4 -4
- package/dist/modules/Resource/types.js +8 -8
- package/dist/modules/Resource/utils.js +14 -14
- package/dist/modules/Schedule/index.js +4 -4
- package/dist/modules/Schedule/utils.js +73 -73
- package/dist/modules/Step/index.js +18 -18
- package/dist/modules/Summary/index.js +4 -4
- package/dist/modules/Summary/utils.js +15 -15
- package/dist/plugins/app-types/app/app.d.ts +83 -83
- package/dist/plugins/app-types/app/const.d.ts +4 -4
- package/dist/plugins/app-types/app/index.d.ts +14 -14
- package/dist/plugins/app-types/applicationManager/application.d.ts +50 -50
- package/dist/plugins/app-types/applicationManager/index.d.ts +13 -13
- package/dist/plugins/app-types/config.d.ts +3 -3
- package/dist/plugins/app-types/cookie/index.d.ts +13 -13
- package/dist/plugins/app-types/data/index.d.ts +8 -8
- package/dist/plugins/app-types/history/config.d.ts +24 -24
- package/dist/plugins/app-types/history/index.d.ts +20 -20
- package/dist/plugins/app-types/history/type.d.ts +2 -2
- package/dist/plugins/app-types/hooks/index.d.ts +12 -12
- package/dist/plugins/app-types/hooks/useDelayedValue/index.d.ts +2 -2
- package/dist/plugins/app-types/hooks/useDispatch/index.d.ts +2 -2
- package/dist/plugins/app-types/hooks/useLowCode/index.d.ts +13 -13
- package/dist/plugins/app-types/hooks/useStore/index.d.ts +6 -6
- package/dist/plugins/app-types/index.d.ts +6 -6
- package/dist/plugins/app-types/indexDB/index.d.ts +178 -178
- package/dist/plugins/app-types/locales/en.d.ts +3 -3
- package/dist/plugins/app-types/locales/index.d.ts +37 -37
- package/dist/plugins/app-types/locales/original.d.ts +3 -3
- package/dist/plugins/app-types/locales/type.d.ts +19 -19
- package/dist/plugins/app-types/locales/zh-CN.d.ts +3 -3
- package/dist/plugins/app-types/locales/zh-HK.d.ts +3 -3
- package/dist/plugins/app-types/logger/feishu.d.ts +11 -11
- package/dist/plugins/app-types/logger/index.d.ts +122 -122
- package/dist/plugins/app-types/menuManager/hooks.d.ts +17 -17
- package/dist/plugins/app-types/menuManager/index.d.ts +28 -28
- package/dist/plugins/app-types/models/global.d.ts +32 -32
- package/dist/plugins/app-types/models/index.d.ts +45 -45
- package/dist/plugins/app-types/models/type.d.ts +2 -2
- package/dist/plugins/app-types/package.json +14 -14
- package/dist/plugins/app-types/pubsub/example.d.ts +5 -5
- package/dist/plugins/app-types/pubsub/index.d.ts +63 -63
- package/dist/plugins/app-types/request/cache.d.ts +46 -46
- package/dist/plugins/app-types/request/cancelToken.d.ts +38 -38
- package/dist/plugins/app-types/request/config.d.ts +3 -3
- package/dist/plugins/app-types/request/constants.d.ts +2 -2
- package/dist/plugins/app-types/request/index.d.ts +24 -24
- package/dist/plugins/app-types/request/pisell2Request.d.ts +6 -6
- package/dist/plugins/app-types/request/type.d.ts +41 -41
- package/dist/plugins/app-types/request/utils.d.ts +46 -46
- package/dist/plugins/app-types/routes/config.d.ts +7 -7
- package/dist/plugins/app-types/routes/index.d.ts +28 -28
- package/dist/plugins/app-types/socket/components/SocketMonitorPage.d.ts +6 -6
- package/dist/plugins/app-types/socket/components/index.d.ts +2 -2
- package/dist/plugins/app-types/socket/constants.d.ts +33 -33
- package/dist/plugins/app-types/socket/events.d.ts +31 -31
- package/dist/plugins/app-types/socket/heartbeat.d.ts +66 -66
- package/dist/plugins/app-types/socket/index.d.ts +61 -61
- package/dist/plugins/app-types/socket/monitor.d.ts +169 -169
- package/dist/plugins/app-types/socket/reconnect.d.ts +61 -61
- package/dist/plugins/app-types/socket/socket.d.ts +129 -129
- package/dist/plugins/app-types/socket/types.d.ts +85 -85
- package/dist/plugins/app-types/storage/index.d.ts +17 -17
- package/dist/plugins/app-types/tasks/index.d.ts +77 -77
- package/dist/plugins/app-types/tasks/type.d.ts +62 -62
- package/dist/plugins/app-types/tasks/useTasks.d.ts +5 -5
- package/dist/plugins/app-types/type.d.ts +2 -2
- package/dist/plugins/app-types/variables/VariablesProvider.d.ts +7 -7
- package/dist/plugins/app-types/variables/config.d.ts +3 -3
- package/dist/plugins/app-types/variables/index.d.ts +6 -6
- package/dist/plugins/app-types/variables/type.d.ts +2 -2
- package/dist/plugins/app-types/website/index.d.ts +6 -6
- package/dist/plugins/request.js +33 -33
- package/dist/plugins/window.js +16 -16
- package/dist/solution/BookingByStep/index.js +126 -126
- package/dist/solution/BookingByStep/utils/capacity.js +30 -30
- package/dist/solution/BookingByStep/utils/products.js +4 -4
- package/dist/solution/BookingByStep/utils/resources.js +146 -146
- package/dist/solution/BookingByStep/utils/timeslots.js +20 -20
- package/dist/solution/BookingTicket/index.d.ts +1 -1
- package/dist/solution/BookingTicket/index.js +82 -86
- package/dist/solution/BookingTicket/types.js +8 -8
- package/dist/solution/BookingTicket/utils/scan/cloudSearch.js +6 -6
- package/dist/solution/BookingTicket/utils/scan/handleScan.d.ts +1 -4
- package/dist/solution/BookingTicket/utils/scan/handleScan.js +20 -28
- package/dist/solution/BookingTicket/utils/scan/index.js +19 -19
- package/dist/solution/BookingTicket/utils/scan/scanCache.js +52 -52
- package/dist/solution/BuyTickets/types.js +4 -4
- package/dist/utils/task.js +11 -11
- package/dist/utils/watch.js +59 -59
- package/lib/plugins/app-types/app/app.d.ts +83 -83
- package/lib/plugins/app-types/app/const.d.ts +4 -4
- package/lib/plugins/app-types/app/index.d.ts +14 -14
- package/lib/plugins/app-types/applicationManager/application.d.ts +50 -50
- package/lib/plugins/app-types/applicationManager/index.d.ts +13 -13
- package/lib/plugins/app-types/config.d.ts +3 -3
- package/lib/plugins/app-types/cookie/index.d.ts +13 -13
- package/lib/plugins/app-types/data/index.d.ts +8 -8
- package/lib/plugins/app-types/history/config.d.ts +24 -24
- package/lib/plugins/app-types/history/index.d.ts +20 -20
- package/lib/plugins/app-types/history/type.d.ts +2 -2
- package/lib/plugins/app-types/hooks/index.d.ts +12 -12
- package/lib/plugins/app-types/hooks/useDelayedValue/index.d.ts +2 -2
- package/lib/plugins/app-types/hooks/useDispatch/index.d.ts +2 -2
- package/lib/plugins/app-types/hooks/useLowCode/index.d.ts +13 -13
- package/lib/plugins/app-types/hooks/useStore/index.d.ts +6 -6
- package/lib/plugins/app-types/index.d.ts +6 -6
- package/lib/plugins/app-types/indexDB/index.d.ts +178 -178
- package/lib/plugins/app-types/locales/en.d.ts +3 -3
- package/lib/plugins/app-types/locales/index.d.ts +37 -37
- package/lib/plugins/app-types/locales/original.d.ts +3 -3
- package/lib/plugins/app-types/locales/type.d.ts +19 -19
- package/lib/plugins/app-types/locales/zh-CN.d.ts +3 -3
- package/lib/plugins/app-types/locales/zh-HK.d.ts +3 -3
- package/lib/plugins/app-types/logger/feishu.d.ts +11 -11
- package/lib/plugins/app-types/logger/index.d.ts +122 -122
- package/lib/plugins/app-types/menuManager/hooks.d.ts +17 -17
- package/lib/plugins/app-types/menuManager/index.d.ts +28 -28
- package/lib/plugins/app-types/models/global.d.ts +32 -32
- package/lib/plugins/app-types/models/index.d.ts +45 -45
- package/lib/plugins/app-types/models/type.d.ts +2 -2
- package/lib/plugins/app-types/package.json +14 -14
- package/lib/plugins/app-types/pubsub/example.d.ts +5 -5
- package/lib/plugins/app-types/pubsub/index.d.ts +63 -63
- package/lib/plugins/app-types/request/cache.d.ts +46 -46
- package/lib/plugins/app-types/request/cancelToken.d.ts +38 -38
- package/lib/plugins/app-types/request/config.d.ts +3 -3
- package/lib/plugins/app-types/request/constants.d.ts +2 -2
- package/lib/plugins/app-types/request/index.d.ts +24 -24
- package/lib/plugins/app-types/request/pisell2Request.d.ts +6 -6
- package/lib/plugins/app-types/request/type.d.ts +41 -41
- package/lib/plugins/app-types/request/utils.d.ts +46 -46
- package/lib/plugins/app-types/routes/config.d.ts +7 -7
- package/lib/plugins/app-types/routes/index.d.ts +28 -28
- package/lib/plugins/app-types/socket/components/SocketMonitorPage.d.ts +6 -6
- package/lib/plugins/app-types/socket/components/index.d.ts +2 -2
- package/lib/plugins/app-types/socket/constants.d.ts +33 -33
- package/lib/plugins/app-types/socket/events.d.ts +31 -31
- package/lib/plugins/app-types/socket/heartbeat.d.ts +66 -66
- package/lib/plugins/app-types/socket/index.d.ts +61 -61
- package/lib/plugins/app-types/socket/monitor.d.ts +169 -169
- package/lib/plugins/app-types/socket/reconnect.d.ts +61 -61
- package/lib/plugins/app-types/socket/socket.d.ts +129 -129
- package/lib/plugins/app-types/socket/types.d.ts +85 -85
- package/lib/plugins/app-types/storage/index.d.ts +17 -17
- package/lib/plugins/app-types/tasks/index.d.ts +77 -77
- package/lib/plugins/app-types/tasks/type.d.ts +62 -62
- package/lib/plugins/app-types/tasks/useTasks.d.ts +5 -5
- package/lib/plugins/app-types/type.d.ts +2 -2
- package/lib/plugins/app-types/variables/VariablesProvider.d.ts +7 -7
- package/lib/plugins/app-types/variables/config.d.ts +3 -3
- package/lib/plugins/app-types/variables/index.d.ts +6 -6
- package/lib/plugins/app-types/variables/type.d.ts +2 -2
- package/lib/plugins/app-types/website/index.d.ts +6 -6
- package/lib/solution/BookingTicket/index.d.ts +1 -1
- package/lib/solution/BookingTicket/index.js +1 -2
- package/lib/solution/BookingTicket/utils/scan/handleScan.d.ts +1 -4
- package/lib/solution/BookingTicket/utils/scan/handleScan.js +2 -14
- package/package.json +1 -1
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { CacheProps } from './type';
|
|
2
|
-
export type CacheType = 'memory' | 'storage' | 'indexDB';
|
|
3
|
-
/**
|
|
4
|
-
* @title: 设置缓存
|
|
5
|
-
* @description:
|
|
6
|
-
* @return {*}
|
|
7
|
-
* @Author: zhiwei.Wang
|
|
8
|
-
*/
|
|
9
|
-
export declare const setCache: (key: string, data: any, cache: CacheProps) => Promise<void>;
|
|
10
|
-
/**
|
|
11
|
-
* @title: 删除缓存数据
|
|
12
|
-
* @description:
|
|
13
|
-
* @return {*}
|
|
14
|
-
* @Author: zhiwei.Wang
|
|
15
|
-
*/
|
|
16
|
-
export declare const removeCache: (key: string, cache: CacheProps) => void;
|
|
17
|
-
/**
|
|
18
|
-
* @title: 获取数据
|
|
19
|
-
* @description:
|
|
20
|
-
* @param {any} url
|
|
21
|
-
* @param {any} data
|
|
22
|
-
* @return {*}
|
|
23
|
-
* @Author: zhiwei.Wang
|
|
24
|
-
*/
|
|
25
|
-
export declare const getCacheData: (url: string, data: any, cache: CacheProps) => Promise<any>;
|
|
26
|
-
/**
|
|
27
|
-
* @title: 设置缓存
|
|
28
|
-
* @description:
|
|
29
|
-
* @param {any} url 路径
|
|
30
|
-
* @param {any} data 参数
|
|
31
|
-
* @param {any} res 数据
|
|
32
|
-
* @return {*}
|
|
33
|
-
* @Author: zhiwei.Wang
|
|
34
|
-
*/
|
|
35
|
-
export declare const setCacheData: (url: string, data: any, res: any, cache: CacheProps) => any | null;
|
|
36
|
-
/**
|
|
37
|
-
* @title: 缓存函数包装器
|
|
38
|
-
* @description:
|
|
39
|
-
* @param {any} url
|
|
40
|
-
* @param {any} data
|
|
41
|
-
* @param {any} config
|
|
42
|
-
* @param {any} fn
|
|
43
|
-
* @return {*}
|
|
44
|
-
* @Author: zhiwei.Wang
|
|
45
|
-
*/
|
|
46
|
-
export declare const cacheFn: (props: any, fn: any) => Promise<any>;
|
|
1
|
+
import { CacheProps } from './type';
|
|
2
|
+
export type CacheType = 'memory' | 'storage' | 'indexDB';
|
|
3
|
+
/**
|
|
4
|
+
* @title: 设置缓存
|
|
5
|
+
* @description:
|
|
6
|
+
* @return {*}
|
|
7
|
+
* @Author: zhiwei.Wang
|
|
8
|
+
*/
|
|
9
|
+
export declare const setCache: (key: string, data: any, cache: CacheProps) => Promise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* @title: 删除缓存数据
|
|
12
|
+
* @description:
|
|
13
|
+
* @return {*}
|
|
14
|
+
* @Author: zhiwei.Wang
|
|
15
|
+
*/
|
|
16
|
+
export declare const removeCache: (key: string, cache: CacheProps) => void;
|
|
17
|
+
/**
|
|
18
|
+
* @title: 获取数据
|
|
19
|
+
* @description:
|
|
20
|
+
* @param {any} url
|
|
21
|
+
* @param {any} data
|
|
22
|
+
* @return {*}
|
|
23
|
+
* @Author: zhiwei.Wang
|
|
24
|
+
*/
|
|
25
|
+
export declare const getCacheData: (url: string, data: any, cache: CacheProps) => Promise<any>;
|
|
26
|
+
/**
|
|
27
|
+
* @title: 设置缓存
|
|
28
|
+
* @description:
|
|
29
|
+
* @param {any} url 路径
|
|
30
|
+
* @param {any} data 参数
|
|
31
|
+
* @param {any} res 数据
|
|
32
|
+
* @return {*}
|
|
33
|
+
* @Author: zhiwei.Wang
|
|
34
|
+
*/
|
|
35
|
+
export declare const setCacheData: (url: string, data: any, res: any, cache: CacheProps) => any | null;
|
|
36
|
+
/**
|
|
37
|
+
* @title: 缓存函数包装器
|
|
38
|
+
* @description:
|
|
39
|
+
* @param {any} url
|
|
40
|
+
* @param {any} data
|
|
41
|
+
* @param {any} config
|
|
42
|
+
* @param {any} fn
|
|
43
|
+
* @return {*}
|
|
44
|
+
* @Author: zhiwei.Wang
|
|
45
|
+
*/
|
|
46
|
+
export declare const cacheFn: (props: any, fn: any) => Promise<any>;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @Title: 请求列表
|
|
3
|
-
* @Describe:
|
|
4
|
-
* @Author: Wzw
|
|
5
|
-
*/
|
|
6
|
-
export declare let requestList: {
|
|
7
|
-
[key: string]: AbortController;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* @Title: 创建一个控制器
|
|
11
|
-
* @Describe:
|
|
12
|
-
* @Author: Wzw
|
|
13
|
-
* @param {string} key
|
|
14
|
-
*/
|
|
15
|
-
export declare const createController: (key: string) => AbortController;
|
|
16
|
-
/**
|
|
17
|
-
* @Title: 储存请求
|
|
18
|
-
* @Describe:
|
|
19
|
-
* @Author: Wzw
|
|
20
|
-
* @param {AbortController} controller
|
|
21
|
-
* @param {string} key
|
|
22
|
-
*/
|
|
23
|
-
export declare const setRequestList: (controller: AbortController, key: string) => void;
|
|
24
|
-
/**
|
|
25
|
-
* @Title: 取消请求
|
|
26
|
-
* @Describe:
|
|
27
|
-
* @Author: Wzw
|
|
28
|
-
* @param {string} key
|
|
29
|
-
*/
|
|
30
|
-
export declare const abortRequest: (key: string) => void;
|
|
31
|
-
/**
|
|
32
|
-
* @Title: 创建signal
|
|
33
|
-
* @Describe:
|
|
34
|
-
* @Author: Wzw
|
|
35
|
-
* @param {string} isAbort
|
|
36
|
-
* @param {string} url
|
|
37
|
-
*/
|
|
38
|
-
export declare const createSignal: (isAbort: boolean, url: string) => AbortSignal | null;
|
|
1
|
+
/**
|
|
2
|
+
* @Title: 请求列表
|
|
3
|
+
* @Describe:
|
|
4
|
+
* @Author: Wzw
|
|
5
|
+
*/
|
|
6
|
+
export declare let requestList: {
|
|
7
|
+
[key: string]: AbortController;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @Title: 创建一个控制器
|
|
11
|
+
* @Describe:
|
|
12
|
+
* @Author: Wzw
|
|
13
|
+
* @param {string} key
|
|
14
|
+
*/
|
|
15
|
+
export declare const createController: (key: string) => AbortController;
|
|
16
|
+
/**
|
|
17
|
+
* @Title: 储存请求
|
|
18
|
+
* @Describe:
|
|
19
|
+
* @Author: Wzw
|
|
20
|
+
* @param {AbortController} controller
|
|
21
|
+
* @param {string} key
|
|
22
|
+
*/
|
|
23
|
+
export declare const setRequestList: (controller: AbortController, key: string) => void;
|
|
24
|
+
/**
|
|
25
|
+
* @Title: 取消请求
|
|
26
|
+
* @Describe:
|
|
27
|
+
* @Author: Wzw
|
|
28
|
+
* @param {string} key
|
|
29
|
+
*/
|
|
30
|
+
export declare const abortRequest: (key: string) => void;
|
|
31
|
+
/**
|
|
32
|
+
* @Title: 创建signal
|
|
33
|
+
* @Describe:
|
|
34
|
+
* @Author: Wzw
|
|
35
|
+
* @param {string} isAbort
|
|
36
|
+
* @param {string} url
|
|
37
|
+
*/
|
|
38
|
+
export declare const createSignal: (isAbort: boolean, url: string) => AbortSignal | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { RequestConfig } from './type';
|
|
2
|
-
export declare const setConfig: (newConfig: Partial<RequestConfig>) => void;
|
|
3
|
-
export declare const getConfig: () => RequestConfig;
|
|
1
|
+
import { RequestConfig } from './type';
|
|
2
|
+
export declare const setConfig: (newConfig: Partial<RequestConfig>) => void;
|
|
3
|
+
export declare const getConfig: () => RequestConfig;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CreateAxiosDefaults } from "axios";
|
|
2
|
-
export declare const axiosConfig: CreateAxiosDefaults;
|
|
1
|
+
import { CreateAxiosDefaults } from "axios";
|
|
2
|
+
export declare const axiosConfig: CreateAxiosDefaults;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { RequestWrapperProps, RequestConfig } from "./type";
|
|
2
|
-
export declare const createRequest: (props: RequestWrapperProps) => Promise<unknown>;
|
|
3
|
-
/**
|
|
4
|
-
* 请求
|
|
5
|
-
* @param props
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
export declare const request: (props: RequestWrapperProps) => Promise<any>;
|
|
9
|
-
export declare const get: (url: RequestWrapperProps["url"], data: RequestWrapperProps["data"], config: RequestWrapperProps["config"]) => Promise<any>;
|
|
10
|
-
export declare const post: (url: RequestWrapperProps["url"], data: RequestWrapperProps["data"], config: RequestWrapperProps["config"]) => Promise<any>;
|
|
11
|
-
export declare const put: (url: RequestWrapperProps["url"], data: RequestWrapperProps["data"], config: RequestWrapperProps["config"]) => Promise<any>;
|
|
12
|
-
export declare const remove: (url: RequestWrapperProps["url"], data: RequestWrapperProps["data"], config: RequestWrapperProps["config"]) => Promise<any>;
|
|
13
|
-
export declare const custom: (url: RequestWrapperProps["url"], config: RequestWrapperProps["config"]) => Promise<any>;
|
|
14
|
-
export * from "./type";
|
|
15
|
-
declare const _default: {
|
|
16
|
-
get: (url: RequestWrapperProps["url"], data: RequestWrapperProps["data"], config: RequestWrapperProps["config"]) => Promise<any>;
|
|
17
|
-
post: (url: RequestWrapperProps["url"], data: RequestWrapperProps["data"], config: RequestWrapperProps["config"]) => Promise<any>;
|
|
18
|
-
put: (url: RequestWrapperProps["url"], data: RequestWrapperProps["data"], config: RequestWrapperProps["config"]) => Promise<any>;
|
|
19
|
-
remove: (url: RequestWrapperProps["url"], data: RequestWrapperProps["data"], config: RequestWrapperProps["config"]) => Promise<any>;
|
|
20
|
-
custom: (url: RequestWrapperProps["url"], config: RequestWrapperProps["config"]) => Promise<any>;
|
|
21
|
-
setConfig: (newConfig: Partial<RequestConfig>) => void;
|
|
22
|
-
getConfig: () => RequestConfig;
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
1
|
+
import { RequestWrapperProps, RequestConfig } from "./type";
|
|
2
|
+
export declare const createRequest: (props: RequestWrapperProps) => Promise<unknown>;
|
|
3
|
+
/**
|
|
4
|
+
* 请求
|
|
5
|
+
* @param props
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare const request: (props: RequestWrapperProps) => Promise<any>;
|
|
9
|
+
export declare const get: (url: RequestWrapperProps["url"], data: RequestWrapperProps["data"], config: RequestWrapperProps["config"]) => Promise<any>;
|
|
10
|
+
export declare const post: (url: RequestWrapperProps["url"], data: RequestWrapperProps["data"], config: RequestWrapperProps["config"]) => Promise<any>;
|
|
11
|
+
export declare const put: (url: RequestWrapperProps["url"], data: RequestWrapperProps["data"], config: RequestWrapperProps["config"]) => Promise<any>;
|
|
12
|
+
export declare const remove: (url: RequestWrapperProps["url"], data: RequestWrapperProps["data"], config: RequestWrapperProps["config"]) => Promise<any>;
|
|
13
|
+
export declare const custom: (url: RequestWrapperProps["url"], config: RequestWrapperProps["config"]) => Promise<any>;
|
|
14
|
+
export * from "./type";
|
|
15
|
+
declare const _default: {
|
|
16
|
+
get: (url: RequestWrapperProps["url"], data: RequestWrapperProps["data"], config: RequestWrapperProps["config"]) => Promise<any>;
|
|
17
|
+
post: (url: RequestWrapperProps["url"], data: RequestWrapperProps["data"], config: RequestWrapperProps["config"]) => Promise<any>;
|
|
18
|
+
put: (url: RequestWrapperProps["url"], data: RequestWrapperProps["data"], config: RequestWrapperProps["config"]) => Promise<any>;
|
|
19
|
+
remove: (url: RequestWrapperProps["url"], data: RequestWrapperProps["data"], config: RequestWrapperProps["config"]) => Promise<any>;
|
|
20
|
+
custom: (url: RequestWrapperProps["url"], config: RequestWrapperProps["config"]) => Promise<any>;
|
|
21
|
+
setConfig: (newConfig: Partial<RequestConfig>) => void;
|
|
22
|
+
getConfig: () => RequestConfig;
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
type RequestMethod = any;
|
|
2
|
-
declare const pisell2Get: RequestMethod;
|
|
3
|
-
declare const pisell2Post: RequestMethod;
|
|
4
|
-
declare const pisell2Put: RequestMethod;
|
|
5
|
-
declare const pisell2Remove: RequestMethod;
|
|
6
|
-
export { pisell2Get as get, pisell2Post as post, pisell2Put as put, pisell2Remove as remove, };
|
|
1
|
+
type RequestMethod = any;
|
|
2
|
+
declare const pisell2Get: RequestMethod;
|
|
3
|
+
declare const pisell2Post: RequestMethod;
|
|
4
|
+
declare const pisell2Put: RequestMethod;
|
|
5
|
+
declare const pisell2Remove: RequestMethod;
|
|
6
|
+
export { pisell2Get as get, pisell2Post as post, pisell2Put as put, pisell2Remove as remove, };
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { CreateAxiosDefaults } from "axios";
|
|
2
|
-
import { CacheType } from './cache';
|
|
3
|
-
export interface RequestConfig {
|
|
4
|
-
interceptorsRequest?: ((value: any) => any | Promise<any>) | null;
|
|
5
|
-
interceptorsRequestError?: ((error: any) => any) | null;
|
|
6
|
-
interceptorsResponse?: any;
|
|
7
|
-
interceptorsResponseError?: ((error: any) => any) | null;
|
|
8
|
-
axiosConfig?: CreateAxiosDefaults;
|
|
9
|
-
storage?: any;
|
|
10
|
-
getToken?: () => string | null;
|
|
11
|
-
setToken?: (token: string) => void;
|
|
12
|
-
getLocale?: () => string | null;
|
|
13
|
-
getUrl?: (config: any) => string;
|
|
14
|
-
requestCallbacks?: {
|
|
15
|
-
200?: (data: any) => void;
|
|
16
|
-
401?: (data: any) => void;
|
|
17
|
-
403?: (data: any) => void;
|
|
18
|
-
other?: (data: any) => void;
|
|
19
|
-
[key: string]: any;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export interface CacheProps {
|
|
23
|
-
key?: string;
|
|
24
|
-
type?: CacheType;
|
|
25
|
-
updateCache?: boolean;
|
|
26
|
-
cacheUpdateChange?: (data: any) => void;
|
|
27
|
-
}
|
|
28
|
-
export interface RequestSetting {
|
|
29
|
-
abort?: boolean;
|
|
30
|
-
headers?: any;
|
|
31
|
-
cache?: CacheProps;
|
|
32
|
-
signal?: any;
|
|
33
|
-
token?: string;
|
|
34
|
-
[key: string]: any;
|
|
35
|
-
}
|
|
36
|
-
export interface RequestWrapperProps {
|
|
37
|
-
url: string;
|
|
38
|
-
method: 'get' | 'post' | 'remove' | 'put';
|
|
39
|
-
data?: any;
|
|
40
|
-
config?: RequestSetting;
|
|
41
|
-
}
|
|
1
|
+
import { CreateAxiosDefaults } from "axios";
|
|
2
|
+
import { CacheType } from './cache';
|
|
3
|
+
export interface RequestConfig {
|
|
4
|
+
interceptorsRequest?: ((value: any) => any | Promise<any>) | null;
|
|
5
|
+
interceptorsRequestError?: ((error: any) => any) | null;
|
|
6
|
+
interceptorsResponse?: any;
|
|
7
|
+
interceptorsResponseError?: ((error: any) => any) | null;
|
|
8
|
+
axiosConfig?: CreateAxiosDefaults;
|
|
9
|
+
storage?: any;
|
|
10
|
+
getToken?: () => string | null;
|
|
11
|
+
setToken?: (token: string) => void;
|
|
12
|
+
getLocale?: () => string | null;
|
|
13
|
+
getUrl?: (config: any) => string;
|
|
14
|
+
requestCallbacks?: {
|
|
15
|
+
200?: (data: any) => void;
|
|
16
|
+
401?: (data: any) => void;
|
|
17
|
+
403?: (data: any) => void;
|
|
18
|
+
other?: (data: any) => void;
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface CacheProps {
|
|
23
|
+
key?: string;
|
|
24
|
+
type?: CacheType;
|
|
25
|
+
updateCache?: boolean;
|
|
26
|
+
cacheUpdateChange?: (data: any) => void;
|
|
27
|
+
}
|
|
28
|
+
export interface RequestSetting {
|
|
29
|
+
abort?: boolean;
|
|
30
|
+
headers?: any;
|
|
31
|
+
cache?: CacheProps;
|
|
32
|
+
signal?: any;
|
|
33
|
+
token?: string;
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}
|
|
36
|
+
export interface RequestWrapperProps {
|
|
37
|
+
url: string;
|
|
38
|
+
method: 'get' | 'post' | 'remove' | 'put';
|
|
39
|
+
data?: any;
|
|
40
|
+
config?: RequestSetting;
|
|
41
|
+
}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { InternalAxiosRequestConfig } from "axios";
|
|
2
|
-
import { RequestSetting, RequestConfig, RequestWrapperProps } from "./type";
|
|
3
|
-
export declare const getRequestHeaders: (config: InternalAxiosRequestConfig<RequestSetting> & Record<string, any>) => Record<string, string | null>;
|
|
4
|
-
/**
|
|
5
|
-
* @title: 请求前拦截
|
|
6
|
-
* @description:
|
|
7
|
-
* @param {any} config
|
|
8
|
-
* @return {*}
|
|
9
|
-
* @Author: zhiwei.Wang
|
|
10
|
-
* @Date: 2024-07-04 10:51
|
|
11
|
-
*/
|
|
12
|
-
export declare const interceptorsRequest: (config: InternalAxiosRequestConfig<RequestSetting> & Record<string, any>) => Promise<InternalAxiosRequestConfig<RequestSetting> & Record<string, any>>;
|
|
13
|
-
/**
|
|
14
|
-
* @title: 请求前error
|
|
15
|
-
* @description:
|
|
16
|
-
* @param {any} err
|
|
17
|
-
* @return {*}
|
|
18
|
-
* @Author: zhiwei.Wang
|
|
19
|
-
* @Date: 2024-07-04 10:51
|
|
20
|
-
*/
|
|
21
|
-
export declare const interceptorsRequestError: (err: RequestConfig["interceptorsRequestError"]) => any;
|
|
22
|
-
/**
|
|
23
|
-
* @title: 请求后拦截
|
|
24
|
-
* @description:
|
|
25
|
-
* @param {any} response
|
|
26
|
-
* @return {*}
|
|
27
|
-
* @Author: zhiwei.Wang
|
|
28
|
-
* @Date: 2024-07-04 10:51
|
|
29
|
-
*/
|
|
30
|
-
export declare const interceptorsResponse: (response: RequestConfig["interceptorsResponse"]) => any;
|
|
31
|
-
/**
|
|
32
|
-
* @title: 请求后错误拦截
|
|
33
|
-
* @description:
|
|
34
|
-
* @param {any} response
|
|
35
|
-
* @return {*}
|
|
36
|
-
* @Author: zhiwei.Wang
|
|
37
|
-
* @Date: 2024-07-04 10:51
|
|
38
|
-
*/
|
|
39
|
-
export declare const interceptorsResponseError: (response: RequestConfig["interceptorsResponseError"]) => any;
|
|
40
|
-
export declare const requestCallback: (resData: {
|
|
41
|
-
res?: any;
|
|
42
|
-
props: RequestWrapperProps;
|
|
43
|
-
resolve: (value: unknown) => void;
|
|
44
|
-
reject: () => void;
|
|
45
|
-
err?: any;
|
|
46
|
-
}) => void;
|
|
1
|
+
import { InternalAxiosRequestConfig } from "axios";
|
|
2
|
+
import { RequestSetting, RequestConfig, RequestWrapperProps } from "./type";
|
|
3
|
+
export declare const getRequestHeaders: (config: InternalAxiosRequestConfig<RequestSetting> & Record<string, any>) => Record<string, string | null>;
|
|
4
|
+
/**
|
|
5
|
+
* @title: 请求前拦截
|
|
6
|
+
* @description:
|
|
7
|
+
* @param {any} config
|
|
8
|
+
* @return {*}
|
|
9
|
+
* @Author: zhiwei.Wang
|
|
10
|
+
* @Date: 2024-07-04 10:51
|
|
11
|
+
*/
|
|
12
|
+
export declare const interceptorsRequest: (config: InternalAxiosRequestConfig<RequestSetting> & Record<string, any>) => Promise<InternalAxiosRequestConfig<RequestSetting> & Record<string, any>>;
|
|
13
|
+
/**
|
|
14
|
+
* @title: 请求前error
|
|
15
|
+
* @description:
|
|
16
|
+
* @param {any} err
|
|
17
|
+
* @return {*}
|
|
18
|
+
* @Author: zhiwei.Wang
|
|
19
|
+
* @Date: 2024-07-04 10:51
|
|
20
|
+
*/
|
|
21
|
+
export declare const interceptorsRequestError: (err: RequestConfig["interceptorsRequestError"]) => any;
|
|
22
|
+
/**
|
|
23
|
+
* @title: 请求后拦截
|
|
24
|
+
* @description:
|
|
25
|
+
* @param {any} response
|
|
26
|
+
* @return {*}
|
|
27
|
+
* @Author: zhiwei.Wang
|
|
28
|
+
* @Date: 2024-07-04 10:51
|
|
29
|
+
*/
|
|
30
|
+
export declare const interceptorsResponse: (response: RequestConfig["interceptorsResponse"]) => any;
|
|
31
|
+
/**
|
|
32
|
+
* @title: 请求后错误拦截
|
|
33
|
+
* @description:
|
|
34
|
+
* @param {any} response
|
|
35
|
+
* @return {*}
|
|
36
|
+
* @Author: zhiwei.Wang
|
|
37
|
+
* @Date: 2024-07-04 10:51
|
|
38
|
+
*/
|
|
39
|
+
export declare const interceptorsResponseError: (response: RequestConfig["interceptorsResponseError"]) => any;
|
|
40
|
+
export declare const requestCallback: (resData: {
|
|
41
|
+
res?: any;
|
|
42
|
+
props: RequestWrapperProps;
|
|
43
|
+
resolve: (value: unknown) => void;
|
|
44
|
+
reject: () => void;
|
|
45
|
+
err?: any;
|
|
46
|
+
}) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface RouteItem {
|
|
2
|
-
path: string;
|
|
3
|
-
component: any;
|
|
4
|
-
exact?: boolean;
|
|
5
|
-
routes?: RouteItem[];
|
|
6
|
-
}
|
|
7
|
-
export declare const routes: RouteItem[];
|
|
1
|
+
export interface RouteItem {
|
|
2
|
+
path: string;
|
|
3
|
+
component: any;
|
|
4
|
+
exact?: boolean;
|
|
5
|
+
routes?: RouteItem[];
|
|
6
|
+
}
|
|
7
|
+
export declare const routes: RouteItem[];
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import App from '../app';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { ApplicationInterface } from '../applicationManager/application';
|
|
4
|
-
export interface RouterOptions {
|
|
5
|
-
routes?: Record<string, RouteType>;
|
|
6
|
-
basename?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface RouteType extends ApplicationInterface {
|
|
9
|
-
}
|
|
10
|
-
export declare class RouterManager {
|
|
11
|
-
routes: Record<string, RouteType>;
|
|
12
|
-
options: RouterOptions;
|
|
13
|
-
app: App;
|
|
14
|
-
constructor(options: RouterOptions | undefined, app: App);
|
|
15
|
-
init(): void;
|
|
16
|
-
getRoutes(): Record<string, RouteType>;
|
|
17
|
-
getBasename(): string | undefined;
|
|
18
|
-
setBasename(basename: string): void;
|
|
19
|
-
add(name: string, route: any): void;
|
|
20
|
-
get(name: string): RouteType;
|
|
21
|
-
has(name: string): boolean;
|
|
22
|
-
remove(name: string): void;
|
|
23
|
-
renderComponent(item: RouteType, children?: React.ReactNode): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
24
|
-
getPageByRoute(route: string): ApplicationInterface | undefined;
|
|
25
|
-
getRouterComponent({ fallback }: {
|
|
26
|
-
fallback?: React.ReactNode;
|
|
27
|
-
}): React.JSX.Element[];
|
|
28
|
-
}
|
|
1
|
+
import App from '../app';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { ApplicationInterface } from '../applicationManager/application';
|
|
4
|
+
export interface RouterOptions {
|
|
5
|
+
routes?: Record<string, RouteType>;
|
|
6
|
+
basename?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface RouteType extends ApplicationInterface {
|
|
9
|
+
}
|
|
10
|
+
export declare class RouterManager {
|
|
11
|
+
routes: Record<string, RouteType>;
|
|
12
|
+
options: RouterOptions;
|
|
13
|
+
app: App;
|
|
14
|
+
constructor(options: RouterOptions | undefined, app: App);
|
|
15
|
+
init(): void;
|
|
16
|
+
getRoutes(): Record<string, RouteType>;
|
|
17
|
+
getBasename(): string | undefined;
|
|
18
|
+
setBasename(basename: string): void;
|
|
19
|
+
add(name: string, route: any): void;
|
|
20
|
+
get(name: string): RouteType;
|
|
21
|
+
has(name: string): boolean;
|
|
22
|
+
remove(name: string): void;
|
|
23
|
+
renderComponent(item: RouteType, children?: React.ReactNode): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
24
|
+
getPageByRoute(route: string): ApplicationInterface | undefined;
|
|
25
|
+
getRouterComponent({ fallback }: {
|
|
26
|
+
fallback?: React.ReactNode;
|
|
27
|
+
}): React.JSX.Element[];
|
|
28
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* Socket监控页面组件
|
|
4
|
-
*/
|
|
5
|
-
declare const SocketMonitorPage: React.FC;
|
|
6
|
-
export default SocketMonitorPage;
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Socket监控页面组件
|
|
4
|
+
*/
|
|
5
|
+
declare const SocketMonitorPage: React.FC;
|
|
6
|
+
export default SocketMonitorPage;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import SocketMonitorPage from './SocketMonitorPage';
|
|
2
|
-
export { SocketMonitorPage };
|
|
1
|
+
import SocketMonitorPage from './SocketMonitorPage';
|
|
2
|
+
export { SocketMonitorPage };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Socket模块常量
|
|
3
|
-
*/
|
|
4
|
-
/** 默认配置选项 */
|
|
5
|
-
export declare const DEFAULT_SOCKET_OPTIONS: {
|
|
6
|
-
autoConnect: boolean;
|
|
7
|
-
reconnection: boolean;
|
|
8
|
-
reconnectionAttempts: number;
|
|
9
|
-
reconnectionDelay: number;
|
|
10
|
-
reconnectionDelayMax: number;
|
|
11
|
-
heartbeat: boolean;
|
|
12
|
-
heartbeatInterval: number;
|
|
13
|
-
heartbeatTimeout: number;
|
|
14
|
-
timeout: number;
|
|
15
|
-
};
|
|
16
|
-
/** 默认心跳消息 */
|
|
17
|
-
export declare const DEFAULT_HEARTBEAT_MESSAGE: {
|
|
18
|
-
type: string;
|
|
19
|
-
};
|
|
20
|
-
/** 默认心跳响应事件 */
|
|
21
|
-
export declare const DEFAULT_HEARTBEAT_RESPONSE = "pong";
|
|
22
|
-
/** 最小心跳间隔(毫秒) */
|
|
23
|
-
export declare const MIN_HEARTBEAT_INTERVAL = 1000;
|
|
24
|
-
/** 最小重连延迟(毫秒) */
|
|
25
|
-
export declare const MIN_RECONNECTION_DELAY = 500;
|
|
26
|
-
/** 连接状态码映射 */
|
|
27
|
-
export declare const WS_STATUS_MAP: {
|
|
28
|
-
0: string;
|
|
29
|
-
1: string;
|
|
30
|
-
2: string;
|
|
31
|
-
3: string;
|
|
32
|
-
4: string;
|
|
33
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Socket模块常量
|
|
3
|
+
*/
|
|
4
|
+
/** 默认配置选项 */
|
|
5
|
+
export declare const DEFAULT_SOCKET_OPTIONS: {
|
|
6
|
+
autoConnect: boolean;
|
|
7
|
+
reconnection: boolean;
|
|
8
|
+
reconnectionAttempts: number;
|
|
9
|
+
reconnectionDelay: number;
|
|
10
|
+
reconnectionDelayMax: number;
|
|
11
|
+
heartbeat: boolean;
|
|
12
|
+
heartbeatInterval: number;
|
|
13
|
+
heartbeatTimeout: number;
|
|
14
|
+
timeout: number;
|
|
15
|
+
};
|
|
16
|
+
/** 默认心跳消息 */
|
|
17
|
+
export declare const DEFAULT_HEARTBEAT_MESSAGE: {
|
|
18
|
+
type: string;
|
|
19
|
+
};
|
|
20
|
+
/** 默认心跳响应事件 */
|
|
21
|
+
export declare const DEFAULT_HEARTBEAT_RESPONSE = "pong";
|
|
22
|
+
/** 最小心跳间隔(毫秒) */
|
|
23
|
+
export declare const MIN_HEARTBEAT_INTERVAL = 1000;
|
|
24
|
+
/** 最小重连延迟(毫秒) */
|
|
25
|
+
export declare const MIN_RECONNECTION_DELAY = 500;
|
|
26
|
+
/** 连接状态码映射 */
|
|
27
|
+
export declare const WS_STATUS_MAP: {
|
|
28
|
+
0: string;
|
|
29
|
+
1: string;
|
|
30
|
+
2: string;
|
|
31
|
+
3: string;
|
|
32
|
+
4: string;
|
|
33
|
+
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Socket标准事件类型
|
|
3
|
-
*/
|
|
4
|
-
export declare enum SocketEvents {
|
|
5
|
-
/** 连接成功事件 */
|
|
6
|
-
CONNECT = "connect",
|
|
7
|
-
/** 连接断开事件 */
|
|
8
|
-
DISCONNECT = "disconnect",
|
|
9
|
-
/** 连接错误事件 */
|
|
10
|
-
ERROR = "error",
|
|
11
|
-
/** 接收消息事件 */
|
|
12
|
-
MESSAGE = "message",
|
|
13
|
-
/** 发送消息事件 */
|
|
14
|
-
SEND = "send",
|
|
15
|
-
/** 重连中事件 */
|
|
16
|
-
RECONNECTING = "reconnecting",
|
|
17
|
-
/** 重连尝试事件 */
|
|
18
|
-
RECONNECT_ATTEMPT = "reconnect_attempt",
|
|
19
|
-
/** 重连成功事件 */
|
|
20
|
-
RECONNECT = "reconnect",
|
|
21
|
-
/** 重连失败事件 */
|
|
22
|
-
RECONNECT_ERROR = "reconnect_error",
|
|
23
|
-
/** 重连次数超限 */
|
|
24
|
-
RECONNECT_FAILED = "reconnect_failed",
|
|
25
|
-
/** 心跳发送事件 */
|
|
26
|
-
HEARTBEAT = "heartbeat",
|
|
27
|
-
/** 心跳响应事件 */
|
|
28
|
-
HEARTBEAT_RESPONSE = "heartbeat_response",
|
|
29
|
-
/** 心跳超时事件 */
|
|
30
|
-
HEARTBEAT_TIMEOUT = "heartbeat_timeout"
|
|
31
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Socket标准事件类型
|
|
3
|
+
*/
|
|
4
|
+
export declare enum SocketEvents {
|
|
5
|
+
/** 连接成功事件 */
|
|
6
|
+
CONNECT = "connect",
|
|
7
|
+
/** 连接断开事件 */
|
|
8
|
+
DISCONNECT = "disconnect",
|
|
9
|
+
/** 连接错误事件 */
|
|
10
|
+
ERROR = "error",
|
|
11
|
+
/** 接收消息事件 */
|
|
12
|
+
MESSAGE = "message",
|
|
13
|
+
/** 发送消息事件 */
|
|
14
|
+
SEND = "send",
|
|
15
|
+
/** 重连中事件 */
|
|
16
|
+
RECONNECTING = "reconnecting",
|
|
17
|
+
/** 重连尝试事件 */
|
|
18
|
+
RECONNECT_ATTEMPT = "reconnect_attempt",
|
|
19
|
+
/** 重连成功事件 */
|
|
20
|
+
RECONNECT = "reconnect",
|
|
21
|
+
/** 重连失败事件 */
|
|
22
|
+
RECONNECT_ERROR = "reconnect_error",
|
|
23
|
+
/** 重连次数超限 */
|
|
24
|
+
RECONNECT_FAILED = "reconnect_failed",
|
|
25
|
+
/** 心跳发送事件 */
|
|
26
|
+
HEARTBEAT = "heartbeat",
|
|
27
|
+
/** 心跳响应事件 */
|
|
28
|
+
HEARTBEAT_RESPONSE = "heartbeat_response",
|
|
29
|
+
/** 心跳超时事件 */
|
|
30
|
+
HEARTBEAT_TIMEOUT = "heartbeat_timeout"
|
|
31
|
+
}
|