@liujitcn/kratos-admin-system 0.0.20 → 0.0.23
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 +51 -50
- package/dist/package/declarations/src/api/system/base_language.d.ts +52 -0
- package/dist/package/declarations/src/api/system/base_translation.d.ts +10 -0
- package/dist/package/declarations/src/api/system/code_gen_i18n.d.ts +8 -0
- package/dist/package/declarations/src/api/system/ops_monitoring.d.ts +19 -0
- package/dist/package/declarations/src/api/system/ops_monitoring_sse.d.ts +12 -0
- package/dist/package/declarations/src/components/DynamicTranslationCell.vue.d.ts +16 -0
- package/dist/package/declarations/src/components/DynamicTranslationEditor.vue.d.ts +20 -0
- package/dist/package/declarations/src/components/dynamicTranslation.d.ts +38 -0
- package/dist/package/declarations/src/locales/generated.d.ts +6536 -0
- package/dist/package/declarations/src/rpc/base/v1/ai_session.d.ts +12 -2
- package/dist/package/declarations/src/rpc/base/v1/ai_tool.d.ts +9 -1
- package/dist/package/declarations/src/rpc/base/v1/config.d.ts +35 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/auth.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_config.d.ts +23 -2
- package/dist/package/declarations/src/rpc/system/admin/v1/base_dict.d.ts +9 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_job.d.ts +9 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_language.d.ts +119 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_menu.d.ts +6 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_migration.d.ts +6 -6
- package/dist/package/declarations/src/rpc/system/admin/v1/base_role.d.ts +13 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_translation.d.ts +75 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_user.d.ts +11 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/code_gen.d.ts +13 -11
- package/dist/package/declarations/src/rpc/system/admin/v1/code_gen_column.d.ts +7 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/code_gen_table.d.ts +24 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/common.d.ts +13 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/ops_monitoring.d.ts +222 -0
- package/dist/package/declarations/src/views/base/language/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/tool/code-gen/components/CodeGenLocaleEditor.vue.d.ts +23 -0
- package/dist/package/declarations/src/views/tool/code-gen/config.d.ts +7 -7
- package/dist/package/declarations/src/views/tool/ops-monitoring/index.vue.d.ts +3 -0
- package/dist/package/src/api/base/ai_message.ts +7 -12
- package/dist/package/src/api/base/sse.ts +3 -1
- package/dist/package/src/api/system/base_language.ts +135 -0
- package/dist/package/src/api/system/base_translation.ts +33 -0
- package/dist/package/src/api/system/code_gen_column.ts +17 -3
- package/dist/package/src/api/system/code_gen_i18n.ts +18 -0
- package/dist/package/src/api/system/code_gen_table.ts +12 -4
- package/dist/package/src/api/system/ops_monitoring.ts +88 -0
- package/dist/package/src/api/system/ops_monitoring_sse.ts +49 -0
- package/dist/package/src/components/DynamicTranslationCell.vue +249 -0
- package/dist/package/src/components/DynamicTranslationEditor.vue +197 -0
- package/dist/package/src/components/dynamicTranslation.ts +66 -0
- package/dist/package/src/locales/README.md +30 -0
- package/dist/package/src/locales/en-US.json +933 -0
- package/dist/package/src/locales/es-ES.json +933 -0
- package/dist/package/src/locales/fr-FR.json +933 -0
- package/dist/package/src/locales/generated.ts +22 -0
- package/dist/package/src/locales/ja-JP.json +933 -0
- package/dist/package/src/locales/ko-KR.json +933 -0
- package/dist/package/src/locales/zh-CN.json +933 -0
- package/dist/package/src/locales/zh-TW.json +933 -0
- package/dist/package/src/module.ts +6 -2
- package/dist/package/src/rpc/base/v1/ai_session.ts +13 -2
- package/dist/package/src/rpc/base/v1/ai_tool.ts +10 -1
- package/dist/package/src/rpc/base/v1/config.ts +47 -0
- package/dist/package/src/rpc/system/admin/v1/auth.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_config.ts +24 -2
- package/dist/package/src/rpc/system/admin/v1/base_dict.ts +9 -0
- package/dist/package/src/rpc/system/admin/v1/base_job.ts +10 -1
- package/dist/package/src/rpc/system/admin/v1/base_language.ts +141 -0
- package/dist/package/src/rpc/system/admin/v1/base_menu.ts +6 -1
- package/dist/package/src/rpc/system/admin/v1/base_migration.ts +8 -8
- package/dist/package/src/rpc/system/admin/v1/base_role.ts +14 -1
- package/dist/package/src/rpc/system/admin/v1/base_translation.ts +90 -0
- package/dist/package/src/rpc/system/admin/v1/base_user.ts +12 -1
- package/dist/package/src/rpc/system/admin/v1/code_gen.ts +16 -12
- package/dist/package/src/rpc/system/admin/v1/code_gen_column.ts +8 -0
- package/dist/package/src/rpc/system/admin/v1/code_gen_table.ts +27 -1
- package/dist/package/src/rpc/system/admin/v1/common.ts +21 -0
- package/dist/package/src/rpc/system/admin/v1/ops_monitoring.ts +255 -0
- package/dist/package/src/views/ai/chat/components/AiMarkdown.vue +1 -6
- package/dist/package/src/views/ai/chat/components/ChatPanel.vue +75 -58
- package/dist/package/src/views/ai/chat/components/SessionPanel.vue +20 -9
- package/dist/package/src/views/ai/chat/components/XSender.vue +36 -23
- package/dist/package/src/views/ai/chat/index.vue +58 -41
- package/dist/package/src/views/ai/chat/message.ts +29 -27
- package/dist/package/src/views/base/api/index.vue +121 -84
- package/dist/package/src/views/base/area/index.vue +81 -32
- package/dist/package/src/views/base/config/index.vue +300 -96
- package/dist/package/src/views/base/dept/index.vue +110 -62
- package/dist/package/src/views/base/dict/index.vue +145 -62
- package/dist/package/src/views/base/dict/item.vue +155 -64
- package/dist/package/src/views/base/job/index.vue +134 -82
- package/dist/package/src/views/base/job/log.vue +24 -25
- package/dist/package/src/views/base/language/index.vue +260 -0
- package/dist/package/src/views/base/log/index.vue +68 -46
- package/dist/package/src/views/base/menu/index.vue +344 -200
- package/dist/package/src/views/base/migration/index.vue +49 -29
- package/dist/package/src/views/base/post/index.vue +128 -60
- package/dist/package/src/views/base/role/index.vue +145 -79
- package/dist/package/src/views/base/tenant/index.vue +132 -64
- package/dist/package/src/views/base/user/components/dept-tree.vue +2 -1
- package/dist/package/src/views/base/user/index.vue +194 -116
- package/dist/package/src/views/profile/components/base.vue +45 -28
- package/dist/package/src/views/profile/components/password.vue +45 -30
- package/dist/package/src/views/profile/components/security.vue +90 -54
- package/dist/package/src/views/profile/index.vue +10 -9
- package/dist/package/src/views/tool/api-doc/index.vue +6 -2
- package/dist/package/src/views/tool/code-gen/code-preview/index.vue +32 -16
- package/dist/package/src/views/tool/code-gen/columns/index.vue +382 -273
- package/dist/package/src/views/tool/code-gen/columns/option-copy.ts +1 -6
- package/dist/package/src/views/tool/code-gen/components/CodeGenLocaleEditor.vue +118 -0
- package/dist/package/src/views/tool/code-gen/components/CodeGenProgressDialog.vue +65 -36
- package/dist/package/src/views/tool/code-gen/components/CodePreviewPane.vue +8 -5
- package/dist/package/src/views/tool/code-gen/config.ts +116 -79
- package/dist/package/src/views/tool/code-gen/preview/data.ts +19 -17
- package/dist/package/src/views/tool/code-gen/preview/index.vue +96 -59
- package/dist/package/src/views/tool/code-gen/proto/index.vue +110 -62
- package/dist/package/src/views/tool/code-gen/table/index.vue +201 -121
- package/dist/package/src/views/tool/ops-monitoring/index.vue +1175 -0
- package/dist/package/src/views/tool/project-doc/index.vue +17 -15
- package/package.json +6 -2
- package/dist/package/declarations/src/rpc/base/v1/enum.d.ts +0 -43
- package/dist/package/declarations/src/rpc/system/common/v1/enum.d.ts +0 -67
- package/dist/package/src/rpc/base/v1/enum.ts +0 -54
- package/dist/package/src/rpc/system/common/v1/enum.ts +0 -80
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import type { Timestamp } from "../../google/protobuf/timestamp";
|
|
2
|
-
import type { AiToolCall } from "./ai_tool";
|
|
3
|
-
|
|
2
|
+
import type { AiToolCall, Terminal } from "./ai_tool";
|
|
3
|
+
/** AI 助手消息状态。 */
|
|
4
|
+
export declare enum AiMessageStatus {
|
|
5
|
+
/** AI_MESSAGE_STATUS_UNSPECIFIED - 未指定 AI 助手消息状态。 */
|
|
6
|
+
AI_MESSAGE_STATUS_UNSPECIFIED = 0,
|
|
7
|
+
/** AI_MESSAGE_STATUS_GENERATING - 生成中。 */
|
|
8
|
+
AI_MESSAGE_STATUS_GENERATING = 1,
|
|
9
|
+
/** AI_MESSAGE_STATUS_SUCCESS - 成功。 */
|
|
10
|
+
AI_MESSAGE_STATUS_SUCCESS = 2,
|
|
11
|
+
/** AI_MESSAGE_STATUS_FAILED - 失败。 */
|
|
12
|
+
AI_MESSAGE_STATUS_FAILED = 3
|
|
13
|
+
}
|
|
4
14
|
/** AI 助手消息列表查询条件 */
|
|
5
15
|
export interface ListAiMessageRequest {
|
|
6
16
|
/** 会话ID */
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/** 终端类型。 */
|
|
2
|
+
export declare enum Terminal {
|
|
3
|
+
/** TERMINAL_UNSPECIFIED - 未指定终端类型。 */
|
|
4
|
+
TERMINAL_UNSPECIFIED = 0,
|
|
5
|
+
/** TERMINAL_APP - 移动端。 */
|
|
6
|
+
TERMINAL_APP = 1,
|
|
7
|
+
/** TERMINAL_ADMIN - 管理端。 */
|
|
8
|
+
TERMINAL_ADMIN = 2
|
|
9
|
+
}
|
|
2
10
|
/** AI 助手快捷入口列表查询条件 */
|
|
3
11
|
export interface ListAiShortcutRequest {
|
|
4
12
|
/** 终端类型:枚举【Terminal】 */
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** 系统配置位置。 */
|
|
2
|
+
export declare enum BaseConfigSite {
|
|
3
|
+
/** BASE_CONFIG_SITE_UNSPECIFIED - 未指定系统配置位置。 */
|
|
4
|
+
BASE_CONFIG_SITE_UNSPECIFIED = 0,
|
|
5
|
+
/** BASE_CONFIG_SITE_SYSTEM - 系统内使用。 */
|
|
6
|
+
BASE_CONFIG_SITE_SYSTEM = 1,
|
|
7
|
+
/** BASE_CONFIG_SITE_ADMIN - 管理端。 */
|
|
8
|
+
BASE_CONFIG_SITE_ADMIN = 2,
|
|
9
|
+
/** BASE_CONFIG_SITE_APP - 移动端。 */
|
|
10
|
+
BASE_CONFIG_SITE_APP = 3
|
|
11
|
+
}
|
|
12
|
+
/** 获取系统配置条件 */
|
|
13
|
+
export interface GetConfigRequest {
|
|
14
|
+
/** 位置:枚举【BaseConfigSite】 */
|
|
15
|
+
site: BaseConfigSite;
|
|
16
|
+
}
|
|
17
|
+
/** 系统配置项 */
|
|
18
|
+
export interface ConfigItem {
|
|
19
|
+
/** 配置ID */
|
|
20
|
+
id: number;
|
|
21
|
+
/** 配置key */
|
|
22
|
+
key: string;
|
|
23
|
+
/** 配置value */
|
|
24
|
+
value: string;
|
|
25
|
+
}
|
|
26
|
+
/** 系统配置查询结果 */
|
|
27
|
+
export interface GetConfigResponse {
|
|
28
|
+
/** 系统配置列表 */
|
|
29
|
+
configs: ConfigItem[];
|
|
30
|
+
}
|
|
31
|
+
/** Base系统配置公共服务 */
|
|
32
|
+
export interface ConfigService {
|
|
33
|
+
/** 获取系统配置 */
|
|
34
|
+
GetConfig(request: GetConfigRequest): Promise<GetConfigResponse>;
|
|
35
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PasswordCrypto, StringValues } from "../../../common/v1/types";
|
|
2
2
|
import type { Empty } from "../../../google/protobuf/empty";
|
|
3
|
-
import type { BaseMenuType } from "
|
|
3
|
+
import type { BaseMenuType } from "./common";
|
|
4
4
|
/** 登录用户菜单树查询参数 */
|
|
5
5
|
export interface TreeUserMenuRequest {
|
|
6
6
|
}
|
|
@@ -1,7 +1,22 @@
|
|
|
1
|
-
import type { BaseConfigSite } from "../../../base/v1/
|
|
1
|
+
import type { BaseConfigSite } from "../../../base/v1/config";
|
|
2
2
|
import type { Status } from "../../../common/v1/enum";
|
|
3
3
|
import type { Empty } from "../../../google/protobuf/empty";
|
|
4
|
-
import type {
|
|
4
|
+
import type { BaseTranslation } from "./base_translation";
|
|
5
|
+
/** 系统配置类型。 */
|
|
6
|
+
export declare enum BaseConfigType {
|
|
7
|
+
/** BASE_CONFIG_TYPE_UNSPECIFIED - 未指定系统配置类型。 */
|
|
8
|
+
BASE_CONFIG_TYPE_UNSPECIFIED = 0,
|
|
9
|
+
/** BASE_CONFIG_TYPE_TEXT - 文本。 */
|
|
10
|
+
BASE_CONFIG_TYPE_TEXT = 1,
|
|
11
|
+
/** BASE_CONFIG_TYPE_IMAGE - 图片。 */
|
|
12
|
+
BASE_CONFIG_TYPE_IMAGE = 2,
|
|
13
|
+
/** BASE_CONFIG_TYPE_RICH_TEXT - 富文本。 */
|
|
14
|
+
BASE_CONFIG_TYPE_RICH_TEXT = 3,
|
|
15
|
+
/** BASE_CONFIG_TYPE_DICT - 字典。 */
|
|
16
|
+
BASE_CONFIG_TYPE_DICT = 4,
|
|
17
|
+
/** BASE_CONFIG_TYPE_BOOLEAN - 布尔。 */
|
|
18
|
+
BASE_CONFIG_TYPE_BOOLEAN = 5
|
|
19
|
+
}
|
|
5
20
|
/** 系统配置分页查询条件 */
|
|
6
21
|
export interface PageBaseConfigRequest {
|
|
7
22
|
/** 位置:枚举【BaseConfigSite】 */
|
|
@@ -45,6 +60,10 @@ export interface BaseConfigForm {
|
|
|
45
60
|
key: string;
|
|
46
61
|
/** 配置value */
|
|
47
62
|
value: string;
|
|
63
|
+
/** 配置名称多语言翻 */
|
|
64
|
+
name_translations: BaseTranslation[];
|
|
65
|
+
/** 配置value文本/富文本配置值的多语言翻译 */
|
|
66
|
+
value_translations: BaseTranslation[];
|
|
48
67
|
/** 状态 */
|
|
49
68
|
status: Status;
|
|
50
69
|
}
|
|
@@ -93,6 +112,8 @@ export interface BaseConfig {
|
|
|
93
112
|
created_at: string;
|
|
94
113
|
/** 更新时间 */
|
|
95
114
|
updated_at: string;
|
|
115
|
+
/** 配置名称及文本/富文本配置值的多语言翻译 */
|
|
116
|
+
translations: BaseTranslation[];
|
|
96
117
|
}
|
|
97
118
|
/** Admin系统配置服务 */
|
|
98
119
|
export interface BaseConfigService {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Status } from "../../../common/v1/enum";
|
|
2
2
|
import type { Empty } from "../../../google/protobuf/empty";
|
|
3
|
+
import type { BaseTranslation } from "./base_translation";
|
|
3
4
|
/** 字典选项查询条件 */
|
|
4
5
|
export interface OptionBaseDictRequest {
|
|
5
6
|
}
|
|
@@ -79,6 +80,8 @@ export interface BaseDictForm {
|
|
|
79
80
|
code: string;
|
|
80
81
|
/** 字典名称 */
|
|
81
82
|
name: string;
|
|
83
|
+
/** 非主语言翻译 */
|
|
84
|
+
translations: BaseTranslation[];
|
|
82
85
|
/** 状态 */
|
|
83
86
|
status: Status;
|
|
84
87
|
}
|
|
@@ -101,6 +104,8 @@ export interface BaseDictItemForm {
|
|
|
101
104
|
tag_type: string;
|
|
102
105
|
/** 排序 */
|
|
103
106
|
sort: number;
|
|
107
|
+
/** 非主语言翻译 */
|
|
108
|
+
translations: BaseTranslation[];
|
|
104
109
|
/** 状态 */
|
|
105
110
|
status: Status;
|
|
106
111
|
}
|
|
@@ -162,6 +167,8 @@ export interface BaseDict {
|
|
|
162
167
|
created_at: string;
|
|
163
168
|
/** 更新时间 */
|
|
164
169
|
updated_at: string;
|
|
170
|
+
/** 非主语言翻译 */
|
|
171
|
+
translations: BaseTranslation[];
|
|
165
172
|
}
|
|
166
173
|
/** 字典项 */
|
|
167
174
|
export interface BaseDictItem {
|
|
@@ -183,6 +190,8 @@ export interface BaseDictItem {
|
|
|
183
190
|
created_at: string;
|
|
184
191
|
/** 更新时间 */
|
|
185
192
|
updated_at: string;
|
|
193
|
+
/** 非主语言翻译 */
|
|
194
|
+
translations: BaseTranslation[];
|
|
186
195
|
}
|
|
187
196
|
/** Admin字典服务 */
|
|
188
197
|
export interface BaseDictService {
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import type { Status } from "../../../common/v1/enum";
|
|
2
2
|
import type { Empty } from "../../../google/protobuf/empty";
|
|
3
|
-
|
|
3
|
+
/** 定时任务日志状态。 */
|
|
4
|
+
export declare enum BaseJobLogStatus {
|
|
5
|
+
/** BASE_JOB_LOG_STATUS_UNSPECIFIED - 未指定定时任务日志状态。 */
|
|
6
|
+
BASE_JOB_LOG_STATUS_UNSPECIFIED = 0,
|
|
7
|
+
/** BASE_JOB_LOG_STATUS_SUCCESS - 成功。 */
|
|
8
|
+
BASE_JOB_LOG_STATUS_SUCCESS = 1,
|
|
9
|
+
/** BASE_JOB_LOG_STATUS_FAIL - 失败。 */
|
|
10
|
+
BASE_JOB_LOG_STATUS_FAIL = 2
|
|
11
|
+
}
|
|
4
12
|
/** 定时任务分页查询条件 */
|
|
5
13
|
export interface PageBaseJobRequest {
|
|
6
14
|
/** 任务名称 */
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import type { Status } from "../../../common/v1/enum";
|
|
2
|
+
import type { Empty } from "../../../google/protobuf/empty";
|
|
3
|
+
/** 语言选项查询条件 */
|
|
4
|
+
export interface OptionBaseLanguageRequest {
|
|
5
|
+
/** 是否只返回启用语言 */
|
|
6
|
+
enabled_only?: boolean | undefined;
|
|
7
|
+
}
|
|
8
|
+
/** 语言选项响应 */
|
|
9
|
+
export interface OptionBaseLanguageResponse {
|
|
10
|
+
/** 语言选项 */
|
|
11
|
+
base_languages: BaseLanguage[];
|
|
12
|
+
}
|
|
13
|
+
/** 语言分页查询条件 */
|
|
14
|
+
export interface PageBaseLanguageRequest {
|
|
15
|
+
/** 语言名称 */
|
|
16
|
+
language_name: string;
|
|
17
|
+
/** 语言代码 */
|
|
18
|
+
language_code: string;
|
|
19
|
+
/** 启用状态 */
|
|
20
|
+
status?: Status | undefined;
|
|
21
|
+
/** 当前页码 */
|
|
22
|
+
page_num: number;
|
|
23
|
+
/** 每页数量 */
|
|
24
|
+
page_size: number;
|
|
25
|
+
}
|
|
26
|
+
/** 语言分页响应 */
|
|
27
|
+
export interface PageBaseLanguageResponse {
|
|
28
|
+
/** 语言列表 */
|
|
29
|
+
base_languages: BaseLanguage[];
|
|
30
|
+
/** 总数 */
|
|
31
|
+
total: number;
|
|
32
|
+
}
|
|
33
|
+
/** 语言详情查询条件 */
|
|
34
|
+
export interface GetBaseLanguageRequest {
|
|
35
|
+
/** 语言ID */
|
|
36
|
+
id: number;
|
|
37
|
+
}
|
|
38
|
+
/** 语言表单 */
|
|
39
|
+
export interface BaseLanguageForm {
|
|
40
|
+
/** 语言ID */
|
|
41
|
+
id: number;
|
|
42
|
+
/** 标准语言代码 */
|
|
43
|
+
language_code: string;
|
|
44
|
+
/** 语言名称 */
|
|
45
|
+
language_name: string;
|
|
46
|
+
/** 本地语言名称 */
|
|
47
|
+
native_name: string;
|
|
48
|
+
/** 排序,值越小越靠前 */
|
|
49
|
+
sort: number;
|
|
50
|
+
/** 启用状态 */
|
|
51
|
+
status: Status;
|
|
52
|
+
}
|
|
53
|
+
/** 语言 */
|
|
54
|
+
export interface BaseLanguage {
|
|
55
|
+
/** 语言ID */
|
|
56
|
+
id: number;
|
|
57
|
+
/** 标准语言代码 */
|
|
58
|
+
language_code: string;
|
|
59
|
+
/** 语言名称 */
|
|
60
|
+
language_name: string;
|
|
61
|
+
/** 本地语言名称 */
|
|
62
|
+
native_name: string;
|
|
63
|
+
/** 排序 */
|
|
64
|
+
sort: number;
|
|
65
|
+
/** 是否主语言 */
|
|
66
|
+
is_primary: boolean;
|
|
67
|
+
/** 启用状态 */
|
|
68
|
+
status: Status;
|
|
69
|
+
/** 创建时间 */
|
|
70
|
+
created_at: string;
|
|
71
|
+
/** 更新时间 */
|
|
72
|
+
updated_at: string;
|
|
73
|
+
}
|
|
74
|
+
/** 创建语言请求参数 */
|
|
75
|
+
export interface CreateBaseLanguageRequest {
|
|
76
|
+
/** 语言表单 */
|
|
77
|
+
base_language: BaseLanguageForm | undefined;
|
|
78
|
+
}
|
|
79
|
+
/** 更新语言请求参数 */
|
|
80
|
+
export interface UpdateBaseLanguageRequest {
|
|
81
|
+
/** 语言表单 */
|
|
82
|
+
base_language: BaseLanguageForm | undefined;
|
|
83
|
+
}
|
|
84
|
+
/** 删除语言请求参数 */
|
|
85
|
+
export interface DeleteBaseLanguageRequest {
|
|
86
|
+
/** 语言ID列表 */
|
|
87
|
+
id: string;
|
|
88
|
+
}
|
|
89
|
+
/** 设置语言状态请求参数 */
|
|
90
|
+
export interface SetBaseLanguageStatusRequest {
|
|
91
|
+
/** 语言ID */
|
|
92
|
+
id: number;
|
|
93
|
+
/** 启用状态 */
|
|
94
|
+
status: Status;
|
|
95
|
+
}
|
|
96
|
+
/** 设置主语言请求参数 */
|
|
97
|
+
export interface SetBaseLanguagePrimaryRequest {
|
|
98
|
+
/** 语言ID */
|
|
99
|
+
id: number;
|
|
100
|
+
}
|
|
101
|
+
/** Admin语言管理服务 */
|
|
102
|
+
export interface BaseLanguageService {
|
|
103
|
+
/** 查询启用语言选项 */
|
|
104
|
+
OptionBaseLanguage(request: OptionBaseLanguageRequest): Promise<OptionBaseLanguageResponse>;
|
|
105
|
+
/** 查询语言分页列表 */
|
|
106
|
+
PageBaseLanguage(request: PageBaseLanguageRequest): Promise<PageBaseLanguageResponse>;
|
|
107
|
+
/** 查询语言详情 */
|
|
108
|
+
GetBaseLanguage(request: GetBaseLanguageRequest): Promise<BaseLanguageForm>;
|
|
109
|
+
/** 创建语言 */
|
|
110
|
+
CreateBaseLanguage(request: CreateBaseLanguageRequest): Promise<Empty>;
|
|
111
|
+
/** 更新语言 */
|
|
112
|
+
UpdateBaseLanguage(request: UpdateBaseLanguageRequest): Promise<Empty>;
|
|
113
|
+
/** 删除语言 */
|
|
114
|
+
DeleteBaseLanguage(request: DeleteBaseLanguageRequest): Promise<Empty>;
|
|
115
|
+
/** 设置语言状态 */
|
|
116
|
+
SetBaseLanguageStatus(request: SetBaseLanguageStatusRequest): Promise<Empty>;
|
|
117
|
+
/** 设置主语言 */
|
|
118
|
+
SetBaseLanguagePrimary(request: SetBaseLanguagePrimaryRequest): Promise<Empty>;
|
|
119
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { TreeOptionResponse } from "../../../common/v1/common";
|
|
2
2
|
import type { Status } from "../../../common/v1/enum";
|
|
3
3
|
import type { Empty } from "../../../google/protobuf/empty";
|
|
4
|
-
import type {
|
|
4
|
+
import type { BaseTranslation } from "./base_translation";
|
|
5
|
+
import type { BaseMenuType } from "./common";
|
|
5
6
|
/** 菜单选项查询条件 */
|
|
6
7
|
export interface OptionBaseMenuRequest {
|
|
7
8
|
/** 父级菜单ID */
|
|
@@ -48,6 +49,8 @@ export interface BaseMenuForm {
|
|
|
48
49
|
meta: BaseMenuMeta | undefined;
|
|
49
50
|
/** 分配的API列表 */
|
|
50
51
|
api: string[];
|
|
52
|
+
/** 非主语言翻译 */
|
|
53
|
+
translations: BaseTranslation[];
|
|
51
54
|
/** 排序 */
|
|
52
55
|
sort: number;
|
|
53
56
|
/** 状态 */
|
|
@@ -105,6 +108,8 @@ export interface BaseMenu {
|
|
|
105
108
|
children: BaseMenu[];
|
|
106
109
|
/** 是否存在子节点 */
|
|
107
110
|
has_children: boolean;
|
|
111
|
+
/** 非主语言翻译 */
|
|
112
|
+
translations: BaseTranslation[];
|
|
108
113
|
}
|
|
109
114
|
/** 菜单元信息 */
|
|
110
115
|
export interface BaseMenuMeta {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
export interface PageBaseMigrationRequest {
|
|
3
3
|
/** 数据源 */
|
|
4
4
|
data_source: string;
|
|
5
|
-
/** 迁移版本 */
|
|
6
|
-
version?: string | undefined;
|
|
7
5
|
/** 迁移模块 */
|
|
8
6
|
module?: string | undefined;
|
|
7
|
+
/** 迁移版本 */
|
|
8
|
+
version?: string | undefined;
|
|
9
9
|
/** 当前页码 */
|
|
10
10
|
page_num: number;
|
|
11
11
|
/** 每一页的行数 */
|
|
@@ -15,14 +15,14 @@ export interface PageBaseMigrationRequest {
|
|
|
15
15
|
export interface BaseMigrationListItem {
|
|
16
16
|
/** 主键 */
|
|
17
17
|
id: number;
|
|
18
|
+
/** 迁移模块 */
|
|
19
|
+
module: string;
|
|
18
20
|
/** 数据源 */
|
|
19
21
|
data_source: string;
|
|
20
22
|
/** 迁移版本 */
|
|
21
23
|
version: string;
|
|
22
24
|
/** 创建时间 */
|
|
23
25
|
created_at: string;
|
|
24
|
-
/** 迁移模块 */
|
|
25
|
-
module: string;
|
|
26
26
|
}
|
|
27
27
|
/** 数据库迁移记录分页响应 */
|
|
28
28
|
export interface PageBaseMigrationResponse {
|
|
@@ -40,6 +40,8 @@ export interface GetBaseMigrationRequest {
|
|
|
40
40
|
export interface BaseMigration {
|
|
41
41
|
/** 主键 */
|
|
42
42
|
id: number;
|
|
43
|
+
/** 迁移模块 */
|
|
44
|
+
module: string;
|
|
43
45
|
/** 数据源 */
|
|
44
46
|
data_source: string;
|
|
45
47
|
/** 迁移版本 */
|
|
@@ -52,8 +54,6 @@ export interface BaseMigration {
|
|
|
52
54
|
description: string;
|
|
53
55
|
/** 创建时间 */
|
|
54
56
|
created_at: string;
|
|
55
|
-
/** 迁移模块 */
|
|
56
|
-
module: string;
|
|
57
57
|
}
|
|
58
58
|
/** 数据库迁移服务 */
|
|
59
59
|
export interface BaseMigrationService {
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import type { SelectOptionResponse } from "../../../common/v1/common";
|
|
2
2
|
import type { Status } from "../../../common/v1/enum";
|
|
3
3
|
import type { Empty } from "../../../google/protobuf/empty";
|
|
4
|
-
|
|
4
|
+
/** 角色数据范围。 */
|
|
5
|
+
export declare enum BaseRoleDataScope {
|
|
6
|
+
/** BASE_ROLE_DATA_SCOPE_UNSPECIFIED - 未指定角色数据范围。 */
|
|
7
|
+
BASE_ROLE_DATA_SCOPE_UNSPECIFIED = 0,
|
|
8
|
+
/** BASE_ROLE_DATA_SCOPE_ALL - 全部数据。 */
|
|
9
|
+
BASE_ROLE_DATA_SCOPE_ALL = 1,
|
|
10
|
+
/** BASE_ROLE_DATA_SCOPE_DEPT_AND_CHILDREN - 部门及子部门数据。 */
|
|
11
|
+
BASE_ROLE_DATA_SCOPE_DEPT_AND_CHILDREN = 2,
|
|
12
|
+
/** BASE_ROLE_DATA_SCOPE_SELF_DEPT - 本部门数据。 */
|
|
13
|
+
BASE_ROLE_DATA_SCOPE_SELF_DEPT = 3,
|
|
14
|
+
/** BASE_ROLE_DATA_SCOPE_SELF_USER - 本人数据。 */
|
|
15
|
+
BASE_ROLE_DATA_SCOPE_SELF_USER = 4
|
|
16
|
+
}
|
|
5
17
|
/** 角色选项查询条件 */
|
|
6
18
|
export interface OptionBaseRoleRequest {
|
|
7
19
|
/** 租户ID */
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { Empty } from "../../../google/protobuf/empty";
|
|
2
|
+
/** 统一翻译表目标类型,和 base_translation.target_type 的值一一对应。 */
|
|
3
|
+
export declare enum TranslationTargetType {
|
|
4
|
+
/** TRANSLATION_TARGET_TYPE_UNSPECIFIED - 未指定统一翻译表目标类型。 */
|
|
5
|
+
TRANSLATION_TARGET_TYPE_UNSPECIFIED = 0,
|
|
6
|
+
/** TRANSLATION_TARGET_TYPE_BASE_CONFIG_VALUE - 系统配置值。 */
|
|
7
|
+
TRANSLATION_TARGET_TYPE_BASE_CONFIG_VALUE = 1,
|
|
8
|
+
/** TRANSLATION_TARGET_TYPE_BASE_CONFIG_NAME - 系统配置名称。 */
|
|
9
|
+
TRANSLATION_TARGET_TYPE_BASE_CONFIG_NAME = 2,
|
|
10
|
+
/** TRANSLATION_TARGET_TYPE_BASE_DICT - 字典名称。 */
|
|
11
|
+
TRANSLATION_TARGET_TYPE_BASE_DICT = 3,
|
|
12
|
+
/** TRANSLATION_TARGET_TYPE_BASE_DICT_ITEM - 字典项标签。 */
|
|
13
|
+
TRANSLATION_TARGET_TYPE_BASE_DICT_ITEM = 4,
|
|
14
|
+
/** TRANSLATION_TARGET_TYPE_BASE_MENU - 菜单标题。 */
|
|
15
|
+
TRANSLATION_TARGET_TYPE_BASE_MENU = 5
|
|
16
|
+
}
|
|
17
|
+
/** 翻译单个文本请求。 */
|
|
18
|
+
export interface DraftBaseTranslationRequest {
|
|
19
|
+
/** 待翻译文本 */
|
|
20
|
+
source: string;
|
|
21
|
+
/** 目标语言区域,不传时翻译所有启用的非主语言 */
|
|
22
|
+
locale?: string | undefined;
|
|
23
|
+
}
|
|
24
|
+
/** 翻译单个文本响应。 */
|
|
25
|
+
export interface DraftBaseTranslationResponse {
|
|
26
|
+
/** 翻译结果 */
|
|
27
|
+
translations: DraftBaseTranslationItem[];
|
|
28
|
+
}
|
|
29
|
+
/** 翻译单个文本响应。 */
|
|
30
|
+
export interface DraftBaseTranslationItem {
|
|
31
|
+
/** 目标语言区域 */
|
|
32
|
+
locale: string;
|
|
33
|
+
/** 翻译文本 */
|
|
34
|
+
translation: string;
|
|
35
|
+
}
|
|
36
|
+
/** 修改单个翻译信息请求。 */
|
|
37
|
+
export interface UpdateBaseTranslationRequest {
|
|
38
|
+
/** 翻译记录ID,大于零时优先按ID更新;ID不存在时根据目标信息更新或新增 */
|
|
39
|
+
id: number;
|
|
40
|
+
/** 翻译目标类型,ID为零时用于查询或新增 */
|
|
41
|
+
target_type: TranslationTargetType;
|
|
42
|
+
/** 目标资源ID,ID为零时用于查询或新增 */
|
|
43
|
+
target_id: number;
|
|
44
|
+
/** 目标语言区域,ID为零时用于查询或新增 */
|
|
45
|
+
locale: string;
|
|
46
|
+
/** 翻译文本 */
|
|
47
|
+
name: string;
|
|
48
|
+
}
|
|
49
|
+
/** 国际化翻译信息 */
|
|
50
|
+
export interface BaseTranslation {
|
|
51
|
+
/** 翻译记录ID */
|
|
52
|
+
id: number;
|
|
53
|
+
/** 翻译目标类型 */
|
|
54
|
+
target_type: TranslationTargetType;
|
|
55
|
+
/** 目标资源ID */
|
|
56
|
+
target_id: number;
|
|
57
|
+
/** 语言区域 */
|
|
58
|
+
locale: string;
|
|
59
|
+
/** 翻译文本 */
|
|
60
|
+
name: string;
|
|
61
|
+
}
|
|
62
|
+
/** 代码生成单语言国际化配置 */
|
|
63
|
+
export interface CodeGenLocaleConfig {
|
|
64
|
+
/** 业务或字段描述 */
|
|
65
|
+
comment: string;
|
|
66
|
+
/** 左树描述 */
|
|
67
|
+
left_tree_comment: string;
|
|
68
|
+
}
|
|
69
|
+
/** 国际化翻译信息服务。 */
|
|
70
|
+
export interface BaseTranslationService {
|
|
71
|
+
/** 翻译单个文本。 */
|
|
72
|
+
DraftBaseTranslation(request: DraftBaseTranslationRequest): Promise<DraftBaseTranslationResponse>;
|
|
73
|
+
/** 修改国际化翻译信息 */
|
|
74
|
+
UpdateBaseTranslation(request: UpdateBaseTranslationRequest): Promise<Empty>;
|
|
75
|
+
}
|
|
@@ -4,7 +4,17 @@ import type { Status } from "../../../common/v1/enum";
|
|
|
4
4
|
import type { PasswordCrypto } from "../../../common/v1/types";
|
|
5
5
|
import type { Empty } from "../../../google/protobuf/empty";
|
|
6
6
|
import type { Timestamp } from "../../../google/protobuf/timestamp";
|
|
7
|
-
|
|
7
|
+
/** 用户性别。 */
|
|
8
|
+
export declare enum BaseUserGender {
|
|
9
|
+
/** BASE_USER_GENDER_UNSPECIFIED - 未指定用户性别。 */
|
|
10
|
+
BASE_USER_GENDER_UNSPECIFIED = 0,
|
|
11
|
+
/** BASE_USER_GENDER_SECRET - 保密。 */
|
|
12
|
+
BASE_USER_GENDER_SECRET = 1,
|
|
13
|
+
/** BASE_USER_GENDER_MALE - 男。 */
|
|
14
|
+
BASE_USER_GENDER_MALE = 2,
|
|
15
|
+
/** BASE_USER_GENDER_FEMALE - 女。 */
|
|
16
|
+
BASE_USER_GENDER_FEMALE = 3
|
|
17
|
+
}
|
|
8
18
|
/** 用户选项查询条件 */
|
|
9
19
|
export interface OptionBaseUserRequest {
|
|
10
20
|
/** 关键字 */
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import type { Empty } from "../../../google/protobuf/empty";
|
|
2
2
|
/** 代码生成任务状态 */
|
|
3
3
|
export declare enum CodeGenTaskStatus {
|
|
4
|
-
/** CODE_GEN_TASK_STATUS_UNSPECIFIED -
|
|
4
|
+
/** CODE_GEN_TASK_STATUS_UNSPECIFIED - 未指定代码生成任务状态。 */
|
|
5
5
|
CODE_GEN_TASK_STATUS_UNSPECIFIED = 0,
|
|
6
|
-
/** CODE_GEN_TASK_STATUS_PENDING -
|
|
6
|
+
/** CODE_GEN_TASK_STATUS_PENDING - 等待执行。 */
|
|
7
7
|
CODE_GEN_TASK_STATUS_PENDING = 1,
|
|
8
|
-
/** CODE_GEN_TASK_STATUS_RUNNING -
|
|
8
|
+
/** CODE_GEN_TASK_STATUS_RUNNING - 正在执行。 */
|
|
9
9
|
CODE_GEN_TASK_STATUS_RUNNING = 2,
|
|
10
|
-
/** CODE_GEN_TASK_STATUS_SUCCEEDED -
|
|
10
|
+
/** CODE_GEN_TASK_STATUS_SUCCEEDED - 执行成功。 */
|
|
11
11
|
CODE_GEN_TASK_STATUS_SUCCEEDED = 3,
|
|
12
|
-
/** CODE_GEN_TASK_STATUS_FAILED -
|
|
12
|
+
/** CODE_GEN_TASK_STATUS_FAILED - 执行失败。 */
|
|
13
13
|
CODE_GEN_TASK_STATUS_FAILED = 4
|
|
14
14
|
}
|
|
15
15
|
/** 代码生成步骤状态 */
|
|
16
16
|
export declare enum CodeGenTaskStepStatus {
|
|
17
|
-
/** CODE_GEN_TASK_STEP_STATUS_UNSPECIFIED -
|
|
17
|
+
/** CODE_GEN_TASK_STEP_STATUS_UNSPECIFIED - 未指定代码生成步骤状态。 */
|
|
18
18
|
CODE_GEN_TASK_STEP_STATUS_UNSPECIFIED = 0,
|
|
19
|
-
/** CODE_GEN_TASK_STEP_STATUS_PENDING -
|
|
19
|
+
/** CODE_GEN_TASK_STEP_STATUS_PENDING - 等待执行。 */
|
|
20
20
|
CODE_GEN_TASK_STEP_STATUS_PENDING = 1,
|
|
21
|
-
/** CODE_GEN_TASK_STEP_STATUS_RUNNING -
|
|
21
|
+
/** CODE_GEN_TASK_STEP_STATUS_RUNNING - 正在执行。 */
|
|
22
22
|
CODE_GEN_TASK_STEP_STATUS_RUNNING = 2,
|
|
23
|
-
/** CODE_GEN_TASK_STEP_STATUS_SUCCEEDED -
|
|
23
|
+
/** CODE_GEN_TASK_STEP_STATUS_SUCCEEDED - 执行成功。 */
|
|
24
24
|
CODE_GEN_TASK_STEP_STATUS_SUCCEEDED = 3,
|
|
25
|
-
/** CODE_GEN_TASK_STEP_STATUS_FAILED -
|
|
25
|
+
/** CODE_GEN_TASK_STEP_STATUS_FAILED - 执行失败。 */
|
|
26
26
|
CODE_GEN_TASK_STEP_STATUS_FAILED = 4,
|
|
27
|
-
/** CODE_GEN_TASK_STEP_STATUS_SKIPPED -
|
|
27
|
+
/** CODE_GEN_TASK_STEP_STATUS_SKIPPED - 无需处理。 */
|
|
28
28
|
CODE_GEN_TASK_STEP_STATUS_SKIPPED = 5
|
|
29
29
|
}
|
|
30
30
|
/** 查询代码生成任务条件 */
|
|
@@ -66,6 +66,8 @@ export interface PreviewCodeGenResponse {
|
|
|
66
66
|
files: CodeGenPreviewFile[];
|
|
67
67
|
/** 本次生效输出路径 */
|
|
68
68
|
output_paths: CodeGenOutputPaths | undefined;
|
|
69
|
+
/** 正式生成前必须补齐的翻译配置 */
|
|
70
|
+
missing_translations: string[];
|
|
69
71
|
}
|
|
70
72
|
/** 启动代码生成任务条件 */
|
|
71
73
|
export interface StartCodeGenTaskRequest {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Empty } from "../../../google/protobuf/empty";
|
|
2
|
+
import type { CodeGenLocaleConfig } from "./base_translation";
|
|
2
3
|
/** 代码生成字段配置查询条件 */
|
|
3
4
|
export interface ListCodeGenColumnRequest {
|
|
4
5
|
/** 代码生成表配置ID */
|
|
@@ -77,6 +78,12 @@ export interface CodeGenColumn {
|
|
|
77
78
|
form_config: CodeGenColumnFormConfig | undefined;
|
|
78
79
|
/** 排序 */
|
|
79
80
|
sort: number;
|
|
81
|
+
/** 按语言区域索引的字段国际化配置 */
|
|
82
|
+
i18n_config: Map<string, CodeGenLocaleConfig>;
|
|
83
|
+
}
|
|
84
|
+
export interface CodeGenColumn_I18nConfigEntry {
|
|
85
|
+
key: string;
|
|
86
|
+
value: CodeGenLocaleConfig | undefined;
|
|
80
87
|
}
|
|
81
88
|
/** 代码生成字段查询条件配置 */
|
|
82
89
|
export interface CodeGenColumnQueryConfig {
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import type { Empty } from "../../../google/protobuf/empty";
|
|
2
|
-
import type {
|
|
2
|
+
import type { CodeGenLocaleConfig } from "./base_translation";
|
|
3
|
+
/** 代码生成表状态。 */
|
|
4
|
+
export declare enum CodeGenTableStatus {
|
|
5
|
+
/** CODE_GEN_TABLE_STATUS_UNSPECIFIED - 未指定代码生成表状态。 */
|
|
6
|
+
CODE_GEN_TABLE_STATUS_UNSPECIFIED = 0,
|
|
7
|
+
/** CODE_GEN_TABLE_STATUS_DRAFT - 草稿。 */
|
|
8
|
+
CODE_GEN_TABLE_STATUS_DRAFT = 1,
|
|
9
|
+
/** CODE_GEN_TABLE_STATUS_GENERATED - 已生成。 */
|
|
10
|
+
CODE_GEN_TABLE_STATUS_GENERATED = 2,
|
|
11
|
+
/** CODE_GEN_TABLE_STATUS_DISABLED - 停用。 */
|
|
12
|
+
CODE_GEN_TABLE_STATUS_DISABLED = 3
|
|
13
|
+
}
|
|
3
14
|
/** 代码生成表配置分页查询条件 */
|
|
4
15
|
export interface PageCodeGenTableRequest {
|
|
5
16
|
/** 业务表名 */
|
|
@@ -65,6 +76,12 @@ export interface CodeGenTableForm {
|
|
|
65
76
|
status: CodeGenTableStatus;
|
|
66
77
|
/** 备注 */
|
|
67
78
|
remark: string;
|
|
79
|
+
/** 按语言区域索引的表级国际化配置 */
|
|
80
|
+
i18n_config: Map<string, CodeGenLocaleConfig>;
|
|
81
|
+
}
|
|
82
|
+
export interface CodeGenTableForm_I18nConfigEntry {
|
|
83
|
+
key: string;
|
|
84
|
+
value: CodeGenLocaleConfig | undefined;
|
|
68
85
|
}
|
|
69
86
|
/** 代码生成表配置创建条件 */
|
|
70
87
|
export interface CreateCodeGenTableRequest {
|
|
@@ -114,6 +131,12 @@ export interface CodeGenTable {
|
|
|
114
131
|
updated_at: string;
|
|
115
132
|
/** 是否可以还原生成结果 */
|
|
116
133
|
restore_available: boolean;
|
|
134
|
+
/** 按语言区域索引的表级国际化配置 */
|
|
135
|
+
i18n_config: Map<string, CodeGenLocaleConfig>;
|
|
136
|
+
}
|
|
137
|
+
export interface CodeGenTable_I18nConfigEntry {
|
|
138
|
+
key: string;
|
|
139
|
+
value: CodeGenLocaleConfig | undefined;
|
|
117
140
|
}
|
|
118
141
|
/** 左树右表页面配置 */
|
|
119
142
|
export interface CodeGenLeftTreeConfig {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** 菜单类型。 */
|
|
2
|
+
export declare enum BaseMenuType {
|
|
3
|
+
/** BASE_MENU_TYPE_UNSPECIFIED - 未指定菜单类型。 */
|
|
4
|
+
BASE_MENU_TYPE_UNSPECIFIED = 0,
|
|
5
|
+
/** BASE_MENU_TYPE_FOLDER - 目录。 */
|
|
6
|
+
BASE_MENU_TYPE_FOLDER = 1,
|
|
7
|
+
/** BASE_MENU_TYPE_MENU - 菜单。 */
|
|
8
|
+
BASE_MENU_TYPE_MENU = 2,
|
|
9
|
+
/** BASE_MENU_TYPE_BUTTON - 按钮。 */
|
|
10
|
+
BASE_MENU_TYPE_BUTTON = 3,
|
|
11
|
+
/** BASE_MENU_TYPE_EXT_LINK - 外部链接。 */
|
|
12
|
+
BASE_MENU_TYPE_EXT_LINK = 4
|
|
13
|
+
}
|