xframelib 0.7.3 → 0.7.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.
Files changed (72) hide show
  1. package/README.md +22 -18
  2. package/dist/api/Token.d.ts +15 -15
  3. package/dist/api/User.d.ts +49 -49
  4. package/dist/api/index.d.ts +2 -2
  5. package/dist/assets/output-ad5f5cbf.css +307 -0
  6. package/dist/controls/collapsepanel/VCollapsiblePanel.vue.d.ts +27 -27
  7. package/dist/controls/collapsepanel/VCollapsiblePanelGroup.vue.d.ts +33 -33
  8. package/dist/controls/collapsepanel/color.util.d.ts +1 -1
  9. package/dist/controls/collapsepanel/composables/store.d.ts +7 -7
  10. package/dist/controls/collapsepanel/constant.d.ts +1 -1
  11. package/dist/controls/collapsepanel/index.d.ts +3 -3
  12. package/dist/controls/layoutcontainer/LayoutManager.d.ts +119 -112
  13. package/dist/controls/layoutcontainer/index.d.ts +3 -3
  14. package/dist/controls/layoutcontainer/layout.vue.d.ts +61 -60
  15. package/dist/controls/splitpanes/index.d.ts +3 -3
  16. package/dist/controls/vuewindow/SinglePointerEvent.d.ts +23 -23
  17. package/dist/controls/vuewindow/dom.d.ts +16 -16
  18. package/dist/controls/vuewindow/draggable_helper.d.ts +20 -20
  19. package/dist/controls/vuewindow/index.d.ts +6 -6
  20. package/dist/controls/vuewindow/resizable_helper.d.ts +16 -16
  21. package/dist/controls/vuewindow/style.d.ts +110 -110
  22. package/dist/controls/vuewindow/window/Button.vue.d.ts +29 -29
  23. package/dist/controls/vuewindow/window/index.vue.d.ts +211 -211
  24. package/dist/controls/vuewindow/window/utils.d.ts +17 -17
  25. package/dist/controls/vuewindow/z_element.d.ts +11 -11
  26. package/dist/core/Global.d.ts +2 -2
  27. package/dist/core/IModel.d.ts +46 -46
  28. package/dist/core/Init.d.ts +20 -20
  29. package/dist/core/MsgHelper.d.ts +13 -13
  30. package/dist/core/SysEvents.d.ts +24 -24
  31. package/dist/core/index.d.ts +4 -4
  32. package/dist/hprose/HproseClient.d.ts +20 -20
  33. package/dist/hprose/ProxyClient.d.ts +39 -39
  34. package/dist/hprose/index.d.ts +11 -11
  35. package/dist/index.cjs +10 -5
  36. package/dist/index.css +20 -5
  37. package/dist/index.d.ts +11 -11
  38. package/dist/index.js +10 -5
  39. package/dist/mitt/index.d.ts +25 -25
  40. package/dist/model/Config.d.ts +151 -151
  41. package/dist/model/Constants.d.ts +19 -19
  42. package/dist/model/IRole.d.ts +89 -89
  43. package/dist/model/IUserModel.d.ts +67 -67
  44. package/dist/model/Layout.d.ts +83 -83
  45. package/dist/model/index.d.ts +5 -5
  46. package/dist/permission/RoleSysRightHelper.d.ts +27 -27
  47. package/dist/permission/filter.d.ts +45 -45
  48. package/dist/permission/index.d.ts +4 -4
  49. package/dist/permission/register.d.ts +24 -24
  50. package/dist/permission/right.d.ts +15 -15
  51. package/dist/utils/AxiosHelper.d.ts +58 -58
  52. package/dist/utils/BigFileDownload.d.ts +117 -117
  53. package/dist/utils/CodeHelper.d.ts +14 -14
  54. package/dist/utils/Color.d.ts +74 -74
  55. package/dist/utils/FileDownload.d.ts +36 -36
  56. package/dist/utils/FileUpload.d.ts +90 -90
  57. package/dist/utils/H5Tool.d.ts +158 -150
  58. package/dist/utils/IsTool.d.ts +101 -101
  59. package/dist/utils/JQuery.d.ts +41 -41
  60. package/dist/utils/LockHelper.d.ts +17 -17
  61. package/dist/utils/SignalRClient.d.ts +8 -8
  62. package/dist/utils/Storage.d.ts +66 -66
  63. package/dist/utils/StringUtils.d.ts +15 -15
  64. package/dist/utils/Time.d.ts +11 -11
  65. package/dist/utils/TokenHelper.d.ts +18 -18
  66. package/dist/utils/URLTool.d.ts +18 -18
  67. package/dist/utils/ValidateTool.d.ts +149 -149
  68. package/dist/utils/WaterMark.d.ts +10 -10
  69. package/dist/utils/XXTEA.d.ts +15 -15
  70. package/dist/utils/index.d.ts +21 -21
  71. package/dist/utils/uuid.d.ts +3 -3
  72. package/package.json +19 -19
@@ -1,67 +1,67 @@
1
- /**
2
- * 当前存储的token对象
3
- */
4
- export interface ITokenInfo {
5
- token: string;
6
- expire: string;
7
- refresh: string;
8
- appkey?: string;
9
- }
10
- /**
11
- * 单个token对象内容
12
- * 与后台相匹配
13
- */
14
- export interface IToken {
15
- /**
16
- * token内容
17
- */
18
- tokenContent: string;
19
- /**
20
- * 超时时间
21
- */
22
- expires: string;
23
- }
24
- /**
25
- * 双Token接口定义
26
- */
27
- export interface IDoubleToken {
28
- /**
29
- * 当前有效token
30
- */
31
- accessToken: IToken;
32
- /**
33
- * 用于刷新的token
34
- */
35
- refreshToken: IToken;
36
- }
37
- /**
38
- * 系统用户
39
- */
40
- export interface ISystemUser {
41
- /**
42
- * 用户ID
43
- */
44
- id?: string;
45
- /**
46
- * 用户名
47
- */
48
- name?: string;
49
- doubletoken?: IDoubleToken;
50
- roles?: IUserRole[];
51
- /**
52
- * 外部绑定用户信息ID
53
- */
54
- bindid?: string;
55
- }
56
- export interface IUserRole {
57
- id: string;
58
- name: string;
59
- level: number;
60
- createrid?: string;
61
- syslist?: IUserSystem[];
62
- }
63
- export interface IUserSystem {
64
- id: string;
65
- name: string;
66
- version: string;
67
- }
1
+ /**
2
+ * 当前存储的token对象
3
+ */
4
+ export interface ITokenInfo {
5
+ token: string;
6
+ expire: string;
7
+ refresh: string;
8
+ appkey?: string;
9
+ }
10
+ /**
11
+ * 单个token对象内容
12
+ * 与后台相匹配
13
+ */
14
+ export interface IToken {
15
+ /**
16
+ * token内容
17
+ */
18
+ tokenContent: string;
19
+ /**
20
+ * 超时时间
21
+ */
22
+ expires: string;
23
+ }
24
+ /**
25
+ * 双Token接口定义
26
+ */
27
+ export interface IDoubleToken {
28
+ /**
29
+ * 当前有效token
30
+ */
31
+ accessToken: IToken;
32
+ /**
33
+ * 用于刷新的token
34
+ */
35
+ refreshToken: IToken;
36
+ }
37
+ /**
38
+ * 系统用户
39
+ */
40
+ export interface ISystemUser {
41
+ /**
42
+ * 用户ID
43
+ */
44
+ id?: string;
45
+ /**
46
+ * 用户名
47
+ */
48
+ name?: string;
49
+ doubletoken?: IDoubleToken;
50
+ roles?: IUserRole[];
51
+ /**
52
+ * 外部绑定用户信息ID
53
+ */
54
+ bindid?: string;
55
+ }
56
+ export interface IUserRole {
57
+ id: string;
58
+ name: string;
59
+ level: number;
60
+ createrid?: string;
61
+ syslist?: IUserSystem[];
62
+ }
63
+ export interface IUserSystem {
64
+ id: string;
65
+ name: string;
66
+ version: string;
67
+ }
@@ -1,83 +1,83 @@
1
- import { Component } from 'vue';
2
- import type { Lazy } from './Config';
3
- /**
4
- *布局枚举类型
5
- */
6
- export declare enum LayoutContainerEnum {
7
- top = 0,
8
- bottom = 1,
9
- centerBack = 2,
10
- centerMain = 3,
11
- centerFront = 4,
12
- left = 5,
13
- right = 6
14
- }
15
- /**
16
- * 组件布局
17
- */
18
- export interface IWidgetLayout {
19
- top?: number;
20
- left?: number;
21
- right?: number;
22
- bottom?: number;
23
- width?: string;
24
- height?: string;
25
- }
26
- export interface IWidgetConfig {
27
- /**
28
- * Layout标识名,以支撑多个布局使用
29
- */
30
- layoutID?: string;
31
- /**
32
- * 唯一ID,与组件名一致
33
- */
34
- id: string;
35
- /**
36
- * 标题或说明
37
- */
38
- label?: string;
39
- /**
40
- * 图标路径(备用)
41
- */
42
- icon?: string;
43
- /**
44
- * 所属容器,top/bottom/left/right等
45
- */
46
- container: LayoutContainerEnum;
47
- /**
48
- * 外部组件js url(备用)
49
- */
50
- jsURL?: string;
51
- /**
52
- * 外部组件css url(备用)
53
- */
54
- cssURL?: string;
55
- /**
56
- * 动态加载的组件
57
- */
58
- component: Lazy<Component>;
59
- /**
60
- * 是否初始化时,预加载
61
- */
62
- preload?: boolean;
63
- /**
64
- * 前置组件 ID,一般也就是bindid
65
- */
66
- afterid?: string;
67
- /**
68
- * 20220424 WM:暂时去掉,容易混乱和循环引用
69
- * 绑定依赖组件ID,不一定有afterid
70
- */
71
- /**
72
- * 所属组,用于业务分类
73
- */
74
- group?: string;
75
- /**
76
- * 外部定义布局(备用)
77
- */
78
- layout?: IWidgetLayout;
79
- /**
80
- * 扩展属性,支持应用
81
- */
82
- [props: string]: any;
83
- }
1
+ import { Component } from 'vue';
2
+ import type { Lazy } from './Config';
3
+ /**
4
+ *布局枚举类型
5
+ */
6
+ export declare enum LayoutContainerEnum {
7
+ top = 0,
8
+ bottom = 1,
9
+ centerBack = 2,
10
+ centerMain = 3,
11
+ centerFront = 4,
12
+ left = 5,
13
+ right = 6
14
+ }
15
+ /**
16
+ * 组件布局
17
+ */
18
+ export interface IWidgetLayout {
19
+ top?: number;
20
+ left?: number;
21
+ right?: number;
22
+ bottom?: number;
23
+ width?: string;
24
+ height?: string;
25
+ }
26
+ export interface IWidgetConfig {
27
+ /**
28
+ * Layout标识名,以支撑多个布局使用
29
+ */
30
+ layoutID?: string;
31
+ /**
32
+ * 唯一ID,与组件名一致
33
+ */
34
+ id: string;
35
+ /**
36
+ * 标题或说明
37
+ */
38
+ label?: string;
39
+ /**
40
+ * 图标路径(备用)
41
+ */
42
+ icon?: string;
43
+ /**
44
+ * 所属容器,top/bottom/left/right等
45
+ */
46
+ container: LayoutContainerEnum;
47
+ /**
48
+ * 外部组件js url(备用)
49
+ */
50
+ jsURL?: string;
51
+ /**
52
+ * 外部组件css url(备用)
53
+ */
54
+ cssURL?: string;
55
+ /**
56
+ * 动态加载的组件
57
+ */
58
+ component: Lazy<Component>;
59
+ /**
60
+ * 是否初始化时,预加载
61
+ */
62
+ preload?: boolean;
63
+ /**
64
+ * 前置组件 ID,一般也就是bindid
65
+ */
66
+ afterid?: string;
67
+ /**
68
+ * 20220424 WM:暂时去掉,容易混乱和循环引用
69
+ * 绑定依赖组件ID,不一定有afterid
70
+ */
71
+ /**
72
+ * 所属组,用于业务分类
73
+ */
74
+ group?: string;
75
+ /**
76
+ * 外部定义布局(备用)
77
+ */
78
+ layout?: IWidgetLayout;
79
+ /**
80
+ * 扩展属性,支持应用
81
+ */
82
+ [props: string]: any;
83
+ }
@@ -1,5 +1,5 @@
1
- export * from './Config';
2
- export * from './IUserModel';
3
- export * from './Constants';
4
- export * from './Layout';
5
- export * from './IRole';
1
+ export * from './Config';
2
+ export * from './IUserModel';
3
+ export * from './Constants';
4
+ export * from './Layout';
5
+ export * from './IRole';
@@ -1,27 +1,27 @@
1
- import { ISysRoleRight } from '../model/IRole';
2
- /**
3
- * 删除非选中节点
4
- * @param childrenNodes
5
- */
6
- export declare function handleNodes(childrenNodes: any[]): void;
7
- /**
8
- * 新旧合并
9
- * @param newNodes
10
- * @param oldNodes
11
- * @param fieldName
12
- */
13
- export declare function mergeNodes(newNodes: any[], oldNodes: any[], fieldName?: string): void;
14
- /**
15
- *
16
- * @param jsonObj
17
- * @param jsonObjOld
18
- * @param groupName 'routes'|'widgetMenu'|'widgets'|'functions'
19
- * @param fieldName 主键字段名
20
- */
21
- export declare function mergeNodesAll(jsonObj: ISysRoleRight, jsonObjOld: ISysRoleRight, groupName: string, fieldName?: string): void;
22
- /**
23
- * 融合过滤角色权限功能
24
- * @param jsonObjArray ISysRoleRight对象数组
25
- * @returns
26
- */
27
- export declare function mergeFilterRoleSysRight(jsonObjArray: any[]): ISysRoleRight | undefined;
1
+ import { ISysRoleRight } from '../model/IRole';
2
+ /**
3
+ * 删除非选中节点
4
+ * @param childrenNodes
5
+ */
6
+ export declare function handleNodes(childrenNodes: any[]): void;
7
+ /**
8
+ * 新旧合并
9
+ * @param newNodes
10
+ * @param oldNodes
11
+ * @param fieldName
12
+ */
13
+ export declare function mergeNodes(newNodes: any[], oldNodes: any[], fieldName?: string): void;
14
+ /**
15
+ *
16
+ * @param jsonObj
17
+ * @param jsonObjOld
18
+ * @param groupName 'routes'|'widgetMenu'|'widgets'|'functions'
19
+ * @param fieldName 主键字段名
20
+ */
21
+ export declare function mergeNodesAll(jsonObj: ISysRoleRight, jsonObjOld: ISysRoleRight, groupName: string, fieldName?: string): void;
22
+ /**
23
+ * 融合过滤角色权限功能
24
+ * @param jsonObjArray ISysRoleRight对象数组
25
+ * @returns
26
+ */
27
+ export declare function mergeFilterRoleSysRight(jsonObjArray: any[]): ISysRoleRight | undefined;
@@ -1,45 +1,45 @@
1
- import { RouteRecordRaw } from 'vue-router';
2
- import { IRoleFunction, ISysRoleRight } from '../model/IRole';
3
- import { IWidgetConfig } from '../model/Layout';
4
- type IWidgetMenu = any;
5
- /**
6
- * 获得当前系统的授权信息
7
- * @returns
8
- */
9
- export declare function getCurrentSystemRight(): ISysRoleRight | undefined;
10
- /**
11
- * 获取用户角色权限列表对象
12
- * @param sysID 系统ID
13
- * @param isSuperLevel 当前用户的最高等级
14
- * @returns
15
- */
16
- export declare function getSystemRoleRight(sysID: string, isSuperLevel?: boolean): Promise<ISysRoleRight | undefined>;
17
- /**
18
- * 获取授权的Route 集合
19
- * @param bussinessRoutes 全部业务路由
20
- * @param roleLevel 角色级别,默认为普通用户,如果为0,则是超级管理员
21
- * @returns
22
- */
23
- export declare function getRoutes(bussinessRoutes: Array<RouteRecordRaw>, roleLevel?: number): Array<RouteRecordRaw> | undefined;
24
- /**
25
- * 获取授权的Widget Menu集合
26
- * @param widgetMenuConfig 全部widget配置
27
- * @param roleLevel 角色级别,默认为普通用户,如果为0,则是超级管理员
28
- * @returns
29
- */
30
- export declare function getWidgetMenus(widgetMenuConfig: Array<IWidgetMenu>, roleLevel?: number): Array<IWidgetMenu> | undefined;
31
- /**
32
- * 获取授权的 widget配置对象集合
33
- * @param widgetConfig 全部
34
- * @param roleLevel 角色级别,默认为普通用户,如果为0,则是超级管理员
35
- * @returns
36
- */
37
- export declare function getWidgetConfig(widgetConfig?: Array<IWidgetConfig>, roleLevel?: number): Array<IWidgetConfig> | undefined;
38
- /**
39
- * 获取授权的功能点集合
40
- * @param functionList 全部功能列表
41
- * @param roleLevel 角色级别,默认为普通用户,如果为0,则是超级管理员
42
- * @returns
43
- */
44
- export declare function getFunctions(functionList?: Array<IRoleFunction>, roleLevel?: number): IRoleFunction[] | undefined;
45
- export {};
1
+ import { RouteRecordRaw } from 'vue-router';
2
+ import { IRoleFunction, ISysRoleRight } from '../model/IRole';
3
+ import { IWidgetConfig } from '../model/Layout';
4
+ type IWidgetMenu = any;
5
+ /**
6
+ * 获得当前系统的授权信息
7
+ * @returns
8
+ */
9
+ export declare function getCurrentSystemRight(): ISysRoleRight | undefined;
10
+ /**
11
+ * 获取用户角色权限列表对象
12
+ * @param sysID 系统ID
13
+ * @param isSuperLevel 当前用户的最高等级
14
+ * @returns
15
+ */
16
+ export declare function getSystemRoleRight(sysID: string, isSuperLevel?: boolean): Promise<ISysRoleRight | undefined>;
17
+ /**
18
+ * 获取授权的Route 集合
19
+ * @param bussinessRoutes 全部业务路由
20
+ * @param roleLevel 角色级别,默认为普通用户,如果为0,则是超级管理员
21
+ * @returns
22
+ */
23
+ export declare function getRoutes(bussinessRoutes: Array<RouteRecordRaw>, roleLevel?: number): Array<RouteRecordRaw> | undefined;
24
+ /**
25
+ * 获取授权的Widget Menu集合
26
+ * @param widgetMenuConfig 全部widget配置
27
+ * @param roleLevel 角色级别,默认为普通用户,如果为0,则是超级管理员
28
+ * @returns
29
+ */
30
+ export declare function getWidgetMenus(widgetMenuConfig: Array<IWidgetMenu>, roleLevel?: number): Array<IWidgetMenu> | undefined;
31
+ /**
32
+ * 获取授权的 widget配置对象集合
33
+ * @param widgetConfig 全部
34
+ * @param roleLevel 角色级别,默认为普通用户,如果为0,则是超级管理员
35
+ * @returns
36
+ */
37
+ export declare function getWidgetConfig(widgetConfig?: Array<IWidgetConfig>, roleLevel?: number): Array<IWidgetConfig> | undefined;
38
+ /**
39
+ * 获取授权的功能点集合
40
+ * @param functionList 全部功能列表
41
+ * @param roleLevel 角色级别,默认为普通用户,如果为0,则是超级管理员
42
+ * @returns
43
+ */
44
+ export declare function getFunctions(functionList?: Array<IRoleFunction>, roleLevel?: number): IRoleFunction[] | undefined;
45
+ export {};
@@ -1,4 +1,4 @@
1
- export * from './register';
2
- export * from './filter';
3
- export * from './right';
4
- export * from './RoleSysRightHelper';
1
+ export * from './register';
2
+ export * from './filter';
3
+ export * from './right';
4
+ export * from './RoleSysRightHelper';
@@ -1,24 +1,24 @@
1
- import { RouteRecordRaw } from 'vue-router';
2
- import { ISysRoleRight, IRoleFunction } from '../model/IRole';
3
- import { IWidgetConfig } from '../model/Layout';
4
- type IWidgetMenu = any;
5
- interface IPackage {
6
- name: string;
7
- version: string;
8
- }
9
- /**
10
- * 系统权限参数对象
11
- */
12
- export interface ISysRightOptions {
13
- bussinessRoutes?: Array<RouteRecordRaw>;
14
- widgetMenuConfig?: Array<IWidgetMenu>;
15
- functionList?: Array<IRoleFunction>;
16
- widgetConfig?: Array<IWidgetConfig>;
17
- pkgObject: IPackage;
18
- }
19
- /**
20
- * 导出系统权限路由菜单
21
- * @returns 系统权限路由菜单
22
- */
23
- export declare function exportSystemRights(options: ISysRightOptions): ISysRoleRight;
24
- export {};
1
+ import { RouteRecordRaw } from 'vue-router';
2
+ import { ISysRoleRight, IRoleFunction } from '../model/IRole';
3
+ import { IWidgetConfig } from '../model/Layout';
4
+ type IWidgetMenu = any;
5
+ interface IPackage {
6
+ name: string;
7
+ version: string;
8
+ }
9
+ /**
10
+ * 系统权限参数对象
11
+ */
12
+ export interface ISysRightOptions {
13
+ bussinessRoutes?: Array<RouteRecordRaw>;
14
+ widgetMenuConfig?: Array<IWidgetMenu>;
15
+ functionList?: Array<IRoleFunction>;
16
+ widgetConfig?: Array<IWidgetConfig>;
17
+ pkgObject: IPackage;
18
+ }
19
+ /**
20
+ * 导出系统权限路由菜单
21
+ * @returns 系统权限路由菜单
22
+ */
23
+ export declare function exportSystemRights(options: ISysRightOptions): ISysRoleRight;
24
+ export {};
@@ -1,15 +1,15 @@
1
- import { ISysRoleRight } from '../model/IRole';
2
- /**
3
- * 获取 系统角色权限 对象
4
- * @returns
5
- */
6
- export declare function getRight(): ISysRoleRight | undefined;
7
- /**
8
- * 设置 系统角色权限 对象
9
- * @param sysRoleRight 系统角色权限对象
10
- */
11
- export declare function setRight(sysRoleRight?: ISysRoleRight): void;
12
- /**
13
- * 清除
14
- */
15
- export declare function clearRight(): void;
1
+ import { ISysRoleRight } from '../model/IRole';
2
+ /**
3
+ * 获取 系统角色权限 对象
4
+ * @returns
5
+ */
6
+ export declare function getRight(): ISysRoleRight | undefined;
7
+ /**
8
+ * 设置 系统角色权限 对象
9
+ * @param sysRoleRight 系统角色权限对象
10
+ */
11
+ export declare function setRight(sysRoleRight?: ISysRoleRight): void;
12
+ /**
13
+ * 清除
14
+ */
15
+ export declare function clearRight(): void;
@@ -1,58 +1,58 @@
1
- export type ResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream';
2
- /**
3
- * Get服务请求
4
- * @param apiUrl API接口路径
5
- * @param baseUrl 基础服务路径
6
- * @param _params 参数
7
- * @param headers headers参数
8
- * @param responseType 响应类型,默认为json
9
- * @param cancelToken 取消标识
10
- * @param timeoutMS 超时时间-毫秒
11
- * @returns 返回Promise对象
12
- */
13
- declare function requestGet(apiUrl: string, baseUrl?: string, _params?: any, headers?: any, responseType?: ResponseType, cancelToken?: any, timeoutMS?: number): Promise<any>;
14
- /**
15
- * Post服务请求-FormData
16
- * @param apiUrl API接口路径
17
- * @param baseUrl 基础服务路径
18
- * @param _params 参数
19
- * @param headers headers参数
20
- * @param responseType 返回类型,默认为json
21
- * @param timeoutMS 超时时间,默认为60000毫秒
22
- * @returns 返回Promise对象
23
- */
24
- declare function requestPost(apiUrl: string, baseUrl?: string, _bodyFormParams?: any, _queryParams?: any, headers?: any, responseType?: ResponseType, timeoutMS?: number): Promise<any>;
25
- /**
26
- * Post服务请求-Body方式
27
- * @param apiUrl API接口路径
28
- * @param baseUrl 基础服务路径
29
- * @param _bodyParams body相关参数
30
- * @param _queryParams url的相关参数
31
- * @param headers 头相关参数
32
- * @param responseType 返回类型,默认为json
33
- * @param timeoutMS 超时时间,默认为60000毫秒
34
- * @returns
35
- */
36
- declare function requestPostBody(apiUrl: string, baseUrl?: string, _bodyParams?: any, _queryParams?: any, headers?: any, responseType?: ResponseType, timeoutMS?: number): Promise<any>;
37
- /**
38
- * 业务服务Get请求
39
- * @param apiUrl API接口路径
40
- * @param _params 参数
41
- * @returns 返回Promise对象
42
- */
43
- declare function get(apiUrl: string, _params?: any): Promise<any>;
44
- /**
45
- * 业务服务Post请求
46
- * @param apiUrl API接口路径
47
- * @param _params 参数
48
- * @returns 返回Promise对象
49
- */
50
- declare function post(apiUrl: string, _params?: any): Promise<any>;
51
- /**
52
- * 独立的外部Get请求(无token验证信息)
53
- * @param fullRequestURL 完整请求路径
54
- * @param _params 请求参数
55
- * @returns 返回Promise对象
56
- */
57
- declare function getData(fullRequestURL: string, _params?: any): Promise<any>;
58
- export { get, post, requestPost, requestGet, getData, requestPostBody };
1
+ export type ResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream';
2
+ /**
3
+ * Get服务请求
4
+ * @param apiUrl API接口路径
5
+ * @param baseUrl 基础服务路径
6
+ * @param _params 参数
7
+ * @param headers headers参数
8
+ * @param responseType 响应类型,默认为json
9
+ * @param cancelToken 取消标识
10
+ * @param timeoutMS 超时时间-毫秒
11
+ * @returns 返回Promise对象
12
+ */
13
+ declare function requestGet(apiUrl: string, baseUrl?: string, _params?: any, headers?: any, responseType?: ResponseType, cancelToken?: any, timeoutMS?: number): Promise<any>;
14
+ /**
15
+ * Post服务请求-FormData
16
+ * @param apiUrl API接口路径
17
+ * @param baseUrl 基础服务路径
18
+ * @param _params 参数
19
+ * @param headers headers参数
20
+ * @param responseType 返回类型,默认为json
21
+ * @param timeoutMS 超时时间,默认为60000毫秒
22
+ * @returns 返回Promise对象
23
+ */
24
+ declare function requestPost(apiUrl: string, baseUrl?: string, _bodyFormParams?: any, _queryParams?: any, headers?: any, responseType?: ResponseType, timeoutMS?: number): Promise<any>;
25
+ /**
26
+ * Post服务请求-Body方式
27
+ * @param apiUrl API接口路径
28
+ * @param baseUrl 基础服务路径
29
+ * @param _bodyParams body相关参数
30
+ * @param _queryParams url的相关参数
31
+ * @param headers 头相关参数
32
+ * @param responseType 返回类型,默认为json
33
+ * @param timeoutMS 超时时间,默认为60000毫秒
34
+ * @returns
35
+ */
36
+ declare function requestPostBody(apiUrl: string, baseUrl?: string, _bodyParams?: any, _queryParams?: any, headers?: any, responseType?: ResponseType, timeoutMS?: number): Promise<any>;
37
+ /**
38
+ * 业务服务Get请求
39
+ * @param apiUrl API接口路径
40
+ * @param _params 参数
41
+ * @returns 返回Promise对象
42
+ */
43
+ declare function get(apiUrl: string, _params?: any): Promise<any>;
44
+ /**
45
+ * 业务服务Post请求
46
+ * @param apiUrl API接口路径
47
+ * @param _params 参数
48
+ * @returns 返回Promise对象
49
+ */
50
+ declare function post(apiUrl: string, _params?: any): Promise<any>;
51
+ /**
52
+ * 独立的外部Get请求(无token验证信息)
53
+ * @param fullRequestURL 完整请求路径
54
+ * @param _params 请求参数
55
+ * @returns 返回Promise对象
56
+ */
57
+ declare function getData(fullRequestURL: string, _params?: any): Promise<any>;
58
+ export { get, post, requestPost, requestGet, getData, requestPostBody };