@ibiz-template/core 0.6.0 → 0.6.1-dev.1
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 +3 -4
- package/src/command/command-register.ts +0 -135
- package/src/command/command.ts +0 -79
- package/src/command/index.ts +0 -11
- package/src/command/interface/command/command-option.ts +0 -22
- package/src/command/interface/command/command.ts +0 -86
- package/src/command/interface/disposable/disposable.ts +0 -3
- package/src/command/interface/index.ts +0 -9
- package/src/command/utils/index.ts +0 -2
- package/src/command/utils/linked-list.ts +0 -136
- package/src/command/utils/util.ts +0 -95
- package/src/constant/core/core.ts +0 -63
- package/src/constant/http-status-message/http-status-message.ts +0 -20
- package/src/constant/index.ts +0 -5
- package/src/constant/login-mode/login-mode.ts +0 -23
- package/src/constant/menu-permission-mode/menu-permission-mode.ts +0 -23
- package/src/constant/util/util.ts +0 -5
- package/src/context/index.ts +0 -231
- package/src/environment/environment.ts +0 -39
- package/src/error/http-error/http-error.ts +0 -45
- package/src/error/index.ts +0 -5
- package/src/error/model-error/model-error.ts +0 -26
- package/src/error/notice-error/notice-error.ts +0 -19
- package/src/error/runtime-error/runtime-error.ts +0 -16
- package/src/error/runtime-model-error/runtime-model-error.ts +0 -27
- package/src/ibizsys.ts +0 -78
- package/src/index.ts +0 -14
- package/src/install.ts +0 -15
- package/src/interface/click-outside/click-outside.ts +0 -71
- package/src/interface/i-18n/i-18n.ts +0 -68
- package/src/interface/i-chat-message/i-chat-message.ts +0 -83
- package/src/interface/i-devtool-config/i-devtool-config.ts +0 -16
- package/src/interface/i-environment/i-environment.ts +0 -289
- package/src/interface/i-internal-message/i-internal-message.ts +0 -151
- package/src/interface/i-mark-open-data/i-mark-open-data.ts +0 -39
- package/src/interface/i-portal-async-action/i-portal-async-action.ts +0 -177
- package/src/interface/i-portal-message/i-portal-message.ts +0 -84
- package/src/interface/index.ts +0 -14
- package/src/interface/org-data/org-data.ts +0 -42
- package/src/params/params.ts +0 -134
- package/src/types.ts +0 -110
- package/src/utils/bit-mask/bit-mask.ts +0 -85
- package/src/utils/click-outside/click-outside.ts +0 -110
- package/src/utils/clone/clone.ts +0 -43
- package/src/utils/color/color.ts +0 -84
- package/src/utils/data-type/data-types.ts +0 -99
- package/src/utils/download-file/download-file.ts +0 -109
- package/src/utils/event/event.ts +0 -77
- package/src/utils/history-list/history-item.ts +0 -45
- package/src/utils/history-list/history-list.ts +0 -151
- package/src/utils/index.ts +0 -24
- package/src/utils/interceptor/core-interceptor.ts +0 -40
- package/src/utils/interceptor/index.ts +0 -2
- package/src/utils/interceptor/interceptor.ts +0 -126
- package/src/utils/logger/logger.ts +0 -10
- package/src/utils/message-center/base/message-all.ts +0 -12
- package/src/utils/message-center/base/message-base.ts +0 -86
- package/src/utils/message-center/command/async-action/command-async-action.ts +0 -24
- package/src/utils/message-center/command/change/command-change.ts +0 -12
- package/src/utils/message-center/command/command-base/command-base.ts +0 -30
- package/src/utils/message-center/command/create/command-create.ts +0 -24
- package/src/utils/message-center/command/internal-message/command-internal-message.ts +0 -24
- package/src/utils/message-center/command/mark-open-data/command-mark-open-data.ts +0 -24
- package/src/utils/message-center/command/message-command.ts +0 -158
- package/src/utils/message-center/command/remove/command-remove.ts +0 -24
- package/src/utils/message-center/command/update/command-update.ts +0 -24
- package/src/utils/message-center/console/message-console.ts +0 -31
- package/src/utils/message-center/index.ts +0 -1
- package/src/utils/message-center/interface/i-app-data-entity.ts +0 -19
- package/src/utils/message-center/interface/index.ts +0 -1
- package/src/utils/message-center/message-center.ts +0 -82
- package/src/utils/namespace/namespace.ts +0 -247
- package/src/utils/net/http-response.ts +0 -106
- package/src/utils/net/net.ts +0 -469
- package/src/utils/recursive/find-recursive-child.ts +0 -133
- package/src/utils/string-util/string-util.ts +0 -60
- package/src/utils/style/remote-style.ts +0 -20
- package/src/utils/sync/await-timeout.ts +0 -27
- package/src/utils/sync/count-latch.ts +0 -95
- package/src/utils/sync/index.ts +0 -2
- package/src/utils/types/types.ts +0 -22
- package/src/utils/upload/select-file.ts +0 -86
- package/src/utils/upload/upload-file.ts +0 -208
- package/src/utils/url-helper/url-helper.ts +0 -63
- package/src/utils/util/util.ts +0 -376
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 多语言接口
|
|
3
|
-
*
|
|
4
|
-
* @author chitanda
|
|
5
|
-
* @date 2023-08-11 16:08:21
|
|
6
|
-
* @export
|
|
7
|
-
* @interface I18n
|
|
8
|
-
*/
|
|
9
|
-
export interface I18n {
|
|
10
|
-
/**
|
|
11
|
-
* 异步初始化,加载多语言文件
|
|
12
|
-
*
|
|
13
|
-
* @author chitanda
|
|
14
|
-
* @date 2023-08-24 17:08:03
|
|
15
|
-
* @return {*} {Promise<void>}
|
|
16
|
-
*/
|
|
17
|
-
init(): Promise<void>;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* 设置异步加载的多语言模块
|
|
21
|
-
*
|
|
22
|
-
* @author chitanda
|
|
23
|
-
* @date 2023-08-24 23:08:28
|
|
24
|
-
* @param {Record<string, () => Promise<IData>>} languages
|
|
25
|
-
*/
|
|
26
|
-
setLangConfigs(languages: Record<string, () => Promise<IData>>): void;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* 设置当前语言
|
|
30
|
-
*
|
|
31
|
-
* @author chitanda
|
|
32
|
-
* @date 2023-08-24 16:08:11
|
|
33
|
-
* @param {string} lang
|
|
34
|
-
*/
|
|
35
|
-
setLang(lang: string): void;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* 获取当前语言
|
|
39
|
-
*
|
|
40
|
-
* @author chitanda
|
|
41
|
-
* @date 2023-08-24 16:08:04
|
|
42
|
-
* @return {*} {string}
|
|
43
|
-
*/
|
|
44
|
-
getLang(): string;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* 消息格式化
|
|
48
|
-
*
|
|
49
|
-
* @author chitanda
|
|
50
|
-
* @date 2023-08-11 16:08:40
|
|
51
|
-
* @param {string} tag
|
|
52
|
-
* @param {IParams} [options]
|
|
53
|
-
* @return {*} {string}
|
|
54
|
-
*/
|
|
55
|
-
t(tag: string, options?: IParams): string;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* 消息格式化
|
|
59
|
-
*
|
|
60
|
-
* @author chitanda
|
|
61
|
-
* @date 2023-08-11 16:08:42
|
|
62
|
-
* @param {string} tag
|
|
63
|
-
* @param {string} [defaultMsg]
|
|
64
|
-
* @param {IParams} [options]
|
|
65
|
-
* @return {*} {string}
|
|
66
|
-
*/
|
|
67
|
-
t(tag: string, defaultMsg?: string, options?: IParams): string;
|
|
68
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { IPortalAsyncAction } from '../i-portal-async-action/i-portal-async-action';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* AI聊天消息
|
|
5
|
-
*
|
|
6
|
-
* @author chitanda
|
|
7
|
-
* @date 2023-10-10 16:10:29
|
|
8
|
-
* @export
|
|
9
|
-
* @interface IChatMessage
|
|
10
|
-
*/
|
|
11
|
-
export interface IChatMessage {
|
|
12
|
-
/**
|
|
13
|
-
* 消息标识
|
|
14
|
-
*
|
|
15
|
-
* @author chitanda
|
|
16
|
-
* @date 2023-09-05 15:09:43
|
|
17
|
-
* @type {string}
|
|
18
|
-
*/
|
|
19
|
-
messageid?: string;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* 消息名称
|
|
23
|
-
*
|
|
24
|
-
* @author chitanda
|
|
25
|
-
* @date 2023-09-05 15:09:49
|
|
26
|
-
* @type {string}
|
|
27
|
-
*/
|
|
28
|
-
messagename?: string;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* 消息类型
|
|
32
|
-
*
|
|
33
|
-
* @author chitanda
|
|
34
|
-
* @date 2023-10-10 16:10:21
|
|
35
|
-
* @type {string}
|
|
36
|
-
*/
|
|
37
|
-
type?: string;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* 消息子类型
|
|
41
|
-
*
|
|
42
|
-
* @author chitanda
|
|
43
|
-
* @date 2023-10-10 16:10:00
|
|
44
|
-
* @type {string}
|
|
45
|
-
*/
|
|
46
|
-
subtype?: string;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* 消息角色
|
|
50
|
-
*
|
|
51
|
-
* @author chitanda
|
|
52
|
-
* @date 2023-10-10 16:10:32
|
|
53
|
-
* @type {('ASSISTANT' | 'USER' | 'SYSTEM')} 助手 | 用户 | 系统
|
|
54
|
-
*/
|
|
55
|
-
role: 'ASSISTANT' | 'USER' | 'SYSTEM';
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* 内容摘要
|
|
59
|
-
*
|
|
60
|
-
* @author chitanda
|
|
61
|
-
* @date 2023-09-05 15:09:23
|
|
62
|
-
* @type {string}
|
|
63
|
-
*/
|
|
64
|
-
content: string;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* 消息数据
|
|
68
|
-
*
|
|
69
|
-
* @author chitanda
|
|
70
|
-
* @date 2023-09-05 15:09:55
|
|
71
|
-
* @type {(IPortalAsyncAction | IData | string | unknown)}
|
|
72
|
-
*/
|
|
73
|
-
data?: IPortalAsyncAction | IData | string | unknown;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* 消息路径
|
|
77
|
-
*
|
|
78
|
-
* @author chitanda
|
|
79
|
-
* @date 2023-09-05 15:09:25
|
|
80
|
-
* @type {string}
|
|
81
|
-
*/
|
|
82
|
-
url?: string;
|
|
83
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* devtool的配置对象
|
|
3
|
-
* @author lxm
|
|
4
|
-
* @date 2024-01-29 11:29:59
|
|
5
|
-
* @export
|
|
6
|
-
* @interface IDevToolConfig
|
|
7
|
-
*/
|
|
8
|
-
export interface IDevToolConfig {
|
|
9
|
-
/**
|
|
10
|
-
* 配置平台基础路径
|
|
11
|
-
* @author lxm
|
|
12
|
-
* @date 2024-01-19 05:26:35
|
|
13
|
-
* @type {string}
|
|
14
|
-
*/
|
|
15
|
-
studioBaseUrl?: string;
|
|
16
|
-
}
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
import { LogLevelDesc } from 'loglevel';
|
|
2
|
-
import { LoginMode, MenuPermissionMode } from '../../constant';
|
|
3
|
-
import { IDevToolConfig } from '../i-devtool-config/i-devtool-config';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* 配置参数
|
|
7
|
-
*
|
|
8
|
-
* @author chitanda
|
|
9
|
-
* @date 2022-07-19 18:07:29
|
|
10
|
-
* @export
|
|
11
|
-
* @interface IEnvironment
|
|
12
|
-
*/
|
|
13
|
-
export interface IEnvironment {
|
|
14
|
-
/**
|
|
15
|
-
* 命名空间
|
|
16
|
-
*
|
|
17
|
-
* @author chitanda
|
|
18
|
-
* @date 2022-09-06 11:09:32
|
|
19
|
-
* @type {string}
|
|
20
|
-
*/
|
|
21
|
-
namespace?: string;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* 是否为开发模式
|
|
25
|
-
*
|
|
26
|
-
* @default false
|
|
27
|
-
* @author chitanda
|
|
28
|
-
* @date 2022-10-21 11:10:29
|
|
29
|
-
* @type {boolean}
|
|
30
|
-
*/
|
|
31
|
-
dev: boolean;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* 是否为多应用 hub 基座模式
|
|
35
|
-
*
|
|
36
|
-
* @author chitanda
|
|
37
|
-
* @date 2022-12-20 10:12:45
|
|
38
|
-
* @type {boolean}
|
|
39
|
-
*/
|
|
40
|
-
hub: boolean;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* 是否启用 mqtt 异步消息(ws模式消息)
|
|
44
|
-
*
|
|
45
|
-
* @author chitanda
|
|
46
|
-
* @date 2023-10-23 15:10:01
|
|
47
|
-
* @type {boolean}
|
|
48
|
-
*/
|
|
49
|
-
enableMqtt: boolean;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* mqtt 默认连接地址
|
|
53
|
-
*
|
|
54
|
-
* @description emq 服务地址 /portal/mqtt/mqtt, rebbitmq 服务地址 /portal/mqtt/ws
|
|
55
|
-
* @author chitanda
|
|
56
|
-
* @date 2023-10-23 15:10:54
|
|
57
|
-
* @type {string}
|
|
58
|
-
*/
|
|
59
|
-
mqttUrl: string;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* 默认应用的应用标识
|
|
63
|
-
*
|
|
64
|
-
* @author chitanda
|
|
65
|
-
* @date 2022-12-22 15:12:35
|
|
66
|
-
* @type {string}
|
|
67
|
-
*/
|
|
68
|
-
appId: string;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* 日志级别
|
|
72
|
-
*
|
|
73
|
-
* @author chitanda
|
|
74
|
-
* @date 2022-10-25 20:10:55
|
|
75
|
-
* @type {LogLevelDesc}
|
|
76
|
-
*/
|
|
77
|
-
logLevel: LogLevelDesc;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* 请求根路径
|
|
81
|
-
*
|
|
82
|
-
* @author chitanda
|
|
83
|
-
* @date 2022-07-19 18:07:58
|
|
84
|
-
* @type {string}
|
|
85
|
-
*/
|
|
86
|
-
baseUrl: string;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* 插件默认所在目录
|
|
90
|
-
*
|
|
91
|
-
* @author chitanda
|
|
92
|
-
* @date 2022-10-31 14:10:49
|
|
93
|
-
* @type {string}
|
|
94
|
-
*/
|
|
95
|
-
pluginBaseUrl: string;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* 登录模式
|
|
99
|
-
*
|
|
100
|
-
* @author lxm
|
|
101
|
-
* @date 2022-10-12 14:10:51
|
|
102
|
-
* @type {LoginMode}
|
|
103
|
-
*/
|
|
104
|
-
loginMode: LoginMode;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* 中央认证登录地址
|
|
108
|
-
*
|
|
109
|
-
* @author lxm
|
|
110
|
-
* @date 2022-10-11 12:10:21
|
|
111
|
-
* @type {string}
|
|
112
|
-
*/
|
|
113
|
-
casLoginUrl: string;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* 模型是否为本地模型(走静态资源模式)
|
|
117
|
-
*
|
|
118
|
-
* @author chitanda
|
|
119
|
-
* @date 2023-07-06 15:07:19
|
|
120
|
-
* @type {boolean}
|
|
121
|
-
*/
|
|
122
|
-
isLocalModel: boolean;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* 远程模型路径
|
|
126
|
-
*
|
|
127
|
-
* @author chitanda
|
|
128
|
-
* @date 2022-09-22 18:09:25
|
|
129
|
-
* @type {string}
|
|
130
|
-
*/
|
|
131
|
-
remoteModelUrl: string;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* 资源文件根路径
|
|
135
|
-
*
|
|
136
|
-
* @author lxm
|
|
137
|
-
* @date 2022-08-25 14:08:08
|
|
138
|
-
* @type {string}
|
|
139
|
-
*/
|
|
140
|
-
assetsUrl: string;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* 中心系统标识
|
|
144
|
-
*
|
|
145
|
-
* @author chitanda
|
|
146
|
-
* @date 2022-08-22 23:08:46
|
|
147
|
-
* @type {string}
|
|
148
|
-
*/
|
|
149
|
-
dcSystem: string;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* 文件下载url
|
|
153
|
-
*
|
|
154
|
-
* @author chitanda
|
|
155
|
-
* @date 2022-08-22 23:08:46
|
|
156
|
-
* @type {string}
|
|
157
|
-
*/
|
|
158
|
-
downloadFileUrl: string;
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* 文件上传url
|
|
162
|
-
*
|
|
163
|
-
* @author chitanda
|
|
164
|
-
* @date 2022-08-22 23:08:46
|
|
165
|
-
* @type {string}
|
|
166
|
-
*/
|
|
167
|
-
uploadFileUrl: string;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* 是否启用权限校验(默认true)
|
|
171
|
-
*
|
|
172
|
-
* @author lxm
|
|
173
|
-
* @date 2022-10-12 18:10:25
|
|
174
|
-
* @type {boolean}
|
|
175
|
-
*/
|
|
176
|
-
enablePermission: boolean;
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* 菜单权限校验模式(默认MIXIN)
|
|
180
|
-
*
|
|
181
|
-
* @author lxm
|
|
182
|
-
* @date 2022-10-12 18:10:27
|
|
183
|
-
* @type {MenuPermissionMode}
|
|
184
|
-
*/
|
|
185
|
-
menuPermissionMode: MenuPermissionMode;
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* 路由占位符
|
|
189
|
-
*
|
|
190
|
-
* @type {string}
|
|
191
|
-
* @memberof IEnvironment
|
|
192
|
-
*/
|
|
193
|
-
routePlaceholder: string;
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* 是否让所有工作流history接口走all
|
|
197
|
-
*
|
|
198
|
-
* @type {boolean}
|
|
199
|
-
* @memberof IEnvironment
|
|
200
|
-
*/
|
|
201
|
-
enableWfAllHistory: boolean;
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* 应用标题
|
|
205
|
-
*
|
|
206
|
-
* @type {string}
|
|
207
|
-
* @memberof IEnvironment
|
|
208
|
-
*/
|
|
209
|
-
AppTitle?: string;
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* 是否为 SaaS 模式
|
|
213
|
-
*
|
|
214
|
-
* @author chitanda
|
|
215
|
-
* @date 2023-07-11 16:07:23
|
|
216
|
-
* @type {boolean}
|
|
217
|
-
*/
|
|
218
|
-
isSaaSMode?: boolean;
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* 是否为移动端应用
|
|
222
|
-
*
|
|
223
|
-
* @author chitanda
|
|
224
|
-
* @date 2023-06-20 12:06:15
|
|
225
|
-
* @type {boolean}
|
|
226
|
-
*/
|
|
227
|
-
isMob?: boolean;
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* 应用图标地址
|
|
231
|
-
*
|
|
232
|
-
* @author chitanda
|
|
233
|
-
* @date 2023-07-17 17:07:23
|
|
234
|
-
* @type {string}
|
|
235
|
-
*/
|
|
236
|
-
favicon?: string;
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* 是否启用多语言
|
|
240
|
-
*
|
|
241
|
-
* @description 此值是默认加载后,根据应用模型中的配置来决定是否启用多语言。请勿手动修改此值
|
|
242
|
-
* @author chitanda
|
|
243
|
-
* @date 2023-08-25 15:08:28
|
|
244
|
-
* @type {boolean}
|
|
245
|
-
*/
|
|
246
|
-
isEnableMultiLan?: boolean;
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* 匿名用户名
|
|
250
|
-
*
|
|
251
|
-
* @author chitanda
|
|
252
|
-
* @date 2023-12-27 14:12:01
|
|
253
|
-
* @type {string}
|
|
254
|
-
*/
|
|
255
|
-
anonymousUser?: string;
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* 匿名用户密码
|
|
259
|
-
*
|
|
260
|
-
* @author chitanda
|
|
261
|
-
* @date 2023-12-27 14:12:06
|
|
262
|
-
* @type {string}
|
|
263
|
-
*/
|
|
264
|
-
anonymousPwd?: string;
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* 启用匿名模式
|
|
268
|
-
* @author lxm
|
|
269
|
-
* @date 2024-01-03 05:12:45
|
|
270
|
-
* @type {boolean}
|
|
271
|
-
*/
|
|
272
|
-
enableAnonymous?: boolean;
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* 市场地址
|
|
276
|
-
* @author: zhujiamin
|
|
277
|
-
* @date 2024-01-04 16:11:17
|
|
278
|
-
* @type {string}
|
|
279
|
-
*/
|
|
280
|
-
marketAddress?: string;
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* devtool的配置对象
|
|
284
|
-
* @author lxm
|
|
285
|
-
* @date 2024-01-29 11:30:15
|
|
286
|
-
* @type {IDevToolConfig}
|
|
287
|
-
*/
|
|
288
|
-
devtoolConfig?: IDevToolConfig;
|
|
289
|
-
}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
export type InternalMessageStatus =
|
|
2
|
-
| 'SENT'
|
|
3
|
-
| 'RECEIVED'
|
|
4
|
-
| 'READ'
|
|
5
|
-
| 'NOT_SENT'
|
|
6
|
-
| 'SEND_FAILED'
|
|
7
|
-
| 'REPLIED'
|
|
8
|
-
| 'DELETED';
|
|
9
|
-
|
|
10
|
-
export type InternalMessageContentType = 'TEXT' | 'HTML' | 'MARKDOWN' | 'JSON';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* 站内信
|
|
14
|
-
* @author lxm
|
|
15
|
-
* @date 2024-01-23 01:50:09
|
|
16
|
-
* @export
|
|
17
|
-
* @interface IInternalMessage
|
|
18
|
-
*/
|
|
19
|
-
export interface IInternalMessage {
|
|
20
|
-
/**
|
|
21
|
-
* 更新人
|
|
22
|
-
* @author lxm
|
|
23
|
-
* @date 2024-01-23 01:53:09
|
|
24
|
-
* @type {string}
|
|
25
|
-
*/
|
|
26
|
-
update_man: string;
|
|
27
|
-
/**
|
|
28
|
-
* 更新时间
|
|
29
|
-
* @author lxm
|
|
30
|
-
* @date 2024-01-23 01:53:08
|
|
31
|
-
* @type {string}
|
|
32
|
-
*/
|
|
33
|
-
update_time: string;
|
|
34
|
-
/**
|
|
35
|
-
* 创建人
|
|
36
|
-
* @author lxm
|
|
37
|
-
* @date 2024-01-23 01:53:06
|
|
38
|
-
* @type {string}
|
|
39
|
-
*/
|
|
40
|
-
create_man: string;
|
|
41
|
-
/**
|
|
42
|
-
* 创建时间
|
|
43
|
-
* @author lxm
|
|
44
|
-
* @date 2024-01-23 01:53:04
|
|
45
|
-
* @type {string}
|
|
46
|
-
*/
|
|
47
|
-
create_time: string;
|
|
48
|
-
/**
|
|
49
|
-
* 唯一标识
|
|
50
|
-
* @author lxm
|
|
51
|
-
* @date 2024-01-23 01:52:58
|
|
52
|
-
* @type {string}
|
|
53
|
-
*/
|
|
54
|
-
id: string;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* 状态
|
|
58
|
-
* @author lxm
|
|
59
|
-
* @date 2024-01-23 01:57:58
|
|
60
|
-
* @type {InternalMessageStatus}
|
|
61
|
-
*/
|
|
62
|
-
status: InternalMessageStatus;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* 内容类型
|
|
66
|
-
* @author lxm
|
|
67
|
-
* @date 2024-01-23 01:57:52
|
|
68
|
-
* @type {InternalMessageContentType}
|
|
69
|
-
*/
|
|
70
|
-
content_type: InternalMessageContentType;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* 内容
|
|
74
|
-
* @author lxm
|
|
75
|
-
* @date 2024-01-23 03:32:23
|
|
76
|
-
* @type {string}
|
|
77
|
-
*/
|
|
78
|
-
content: string;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* 系统标记
|
|
82
|
-
* @author lxm
|
|
83
|
-
* @date 2024-01-23 01:58:27
|
|
84
|
-
* @type {string}
|
|
85
|
-
*/
|
|
86
|
-
system_tag: string;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* 所有者标记
|
|
90
|
-
* @author lxm
|
|
91
|
-
* @date 2024-01-23 01:58:45
|
|
92
|
-
* @type {string}
|
|
93
|
-
*/
|
|
94
|
-
owner_id: string;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* 消息所有者类型
|
|
98
|
-
* @author lxm
|
|
99
|
-
* @date 2024-01-23 01:52:39
|
|
100
|
-
* @type {('PERSONAL' | 'SYSTEM')}
|
|
101
|
-
*/
|
|
102
|
-
owner_type: 'PERSONAL' | 'SYSTEM';
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* 消息类型
|
|
106
|
-
* @author lxm
|
|
107
|
-
* @date 2024-01-23 01:59:34
|
|
108
|
-
* @type {string}
|
|
109
|
-
*/
|
|
110
|
-
message_type: string;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* 标题
|
|
114
|
-
* @author lxm
|
|
115
|
-
* @date 2024-01-23 01:59:52
|
|
116
|
-
* @type {string}
|
|
117
|
-
*/
|
|
118
|
-
title: string;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* 接受者
|
|
122
|
-
* @author lxm
|
|
123
|
-
* @date 2024-01-23 02:00:04
|
|
124
|
-
* @type {string}
|
|
125
|
-
*/
|
|
126
|
-
receiver: string;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* 短内容
|
|
130
|
-
* @author lxm
|
|
131
|
-
* @date 2024-01-23 02:00:22
|
|
132
|
-
* @type {string}
|
|
133
|
-
*/
|
|
134
|
-
short_content?: string;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* 链接
|
|
138
|
-
* @author lxm
|
|
139
|
-
* @date 2024-02-02 10:55:35
|
|
140
|
-
* @type {string}
|
|
141
|
-
*/
|
|
142
|
-
url?: string;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* 移动端链接
|
|
146
|
-
* @author lxm
|
|
147
|
-
* @date 2024-02-02 10:55:35
|
|
148
|
-
* @type {string}
|
|
149
|
-
*/
|
|
150
|
-
mobile_url?: string;
|
|
151
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export type MarkOpenDataAction = 'VIEW' | 'EDIT' | 'UPDATE' | 'CLOSE';
|
|
2
|
-
|
|
3
|
-
export interface IMarkOpenData {
|
|
4
|
-
/**
|
|
5
|
-
* 行为类型
|
|
6
|
-
* @author lxm
|
|
7
|
-
* @date 2024-01-23 01:53:09
|
|
8
|
-
* @type {string}
|
|
9
|
-
*/
|
|
10
|
-
action: MarkOpenDataAction;
|
|
11
|
-
/**
|
|
12
|
-
* 实体名称
|
|
13
|
-
* @author lxm
|
|
14
|
-
* @date 2024-01-23 01:53:08
|
|
15
|
-
* @type {string}
|
|
16
|
-
*/
|
|
17
|
-
entity: string;
|
|
18
|
-
/**
|
|
19
|
-
* 实体主键
|
|
20
|
-
* @author lxm
|
|
21
|
-
* @date 2024-01-23 01:53:06
|
|
22
|
-
* @type {string}
|
|
23
|
-
*/
|
|
24
|
-
key: string;
|
|
25
|
-
/**
|
|
26
|
-
* 时间戳
|
|
27
|
-
* @author lxm
|
|
28
|
-
* @date 2024-02-01 03:40:31
|
|
29
|
-
* @type {number}
|
|
30
|
-
*/
|
|
31
|
-
time: number;
|
|
32
|
-
/**
|
|
33
|
-
* 用户名
|
|
34
|
-
* @author lxm
|
|
35
|
-
* @date 2024-02-01 03:40:47
|
|
36
|
-
* @type {string}
|
|
37
|
-
*/
|
|
38
|
-
username: string;
|
|
39
|
-
}
|