@liujitcn/kratos-admin-system 0.0.55 → 0.0.57
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/dist/package/declarations/src/api/system/admin/v1/base_redact_storage_policy.d.ts +3 -1
- package/dist/package/declarations/src/api/system/admin/v1/base_table_source.d.ts +3 -3
- package/dist/package/declarations/src/locales/generated.d.ts +0 -4
- package/dist/package/declarations/src/rpc/base/v1/ai_session.d.ts +4 -0
- package/dist/package/declarations/src/rpc/base/v1/config.d.ts +11 -1
- package/dist/package/declarations/src/rpc/base/v1/notification.d.ts +2 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/auth.d.ts +16 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_api.d.ts +4 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_i18n_custom.d.ts +6 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_message.d.ts +2 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_redact_output_policy.d.ts +6 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_redact_storage_policy.d.ts +27 -2
- package/dist/package/declarations/src/rpc/system/admin/v1/base_table_source.d.ts +14 -2
- package/dist/package/declarations/src/rpc/system/admin/v1/base_tenant_project_grant.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_third_account.d.ts +2 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/oauth_client.d.ts +2 -0
- package/dist/package/src/api/system/admin/v1/base_redact_storage_policy.ts +7 -0
- package/dist/package/src/api/system/admin/v1/base_table_source.ts +4 -3
- package/dist/package/src/components/account/ChangePasswordForm.vue +1 -1
- package/dist/package/src/components/tenant-project/TenantProjectManager.vue +0 -1
- package/dist/package/src/locales/en-US.json +0 -1
- package/dist/package/src/locales/ja-JP.json +0 -1
- package/dist/package/src/locales/zh-CN.json +0 -1
- package/dist/package/src/locales/zh-TW.json +0 -1
- package/dist/package/src/rpc/base/v1/ai_session.ts +4 -0
- package/dist/package/src/rpc/base/v1/config.ts +13 -1
- package/dist/package/src/rpc/base/v1/notification.ts +2 -0
- package/dist/package/src/rpc/system/admin/v1/auth.ts +18 -0
- package/dist/package/src/rpc/system/admin/v1/base_api.ts +7 -1
- package/dist/package/src/rpc/system/admin/v1/base_i18n_custom.ts +8 -0
- package/dist/package/src/rpc/system/admin/v1/base_message.ts +2 -0
- package/dist/package/src/rpc/system/admin/v1/base_redact_output_policy.ts +8 -0
- package/dist/package/src/rpc/system/admin/v1/base_redact_storage_policy.ts +34 -4
- package/dist/package/src/rpc/system/admin/v1/base_table_source.ts +16 -2
- package/dist/package/src/rpc/system/admin/v1/base_tenant_project_grant.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_third_account.ts +2 -0
- package/dist/package/src/rpc/system/admin/v1/oauth_client.ts +2 -0
- package/dist/package/src/views/ai/chat/message.ts +3 -0
- package/dist/package/src/views/base/api/index.vue +2 -1
- package/dist/package/src/views/base/api-log/index.vue +7 -2
- package/dist/package/src/views/base/area/index.vue +33 -9
- package/dist/package/src/views/base/backup-management/archive-config/index.vue +7 -2
- package/dist/package/src/views/base/data-access-log/index.vue +8 -3
- package/dist/package/src/views/base/file/index.vue +1 -1
- package/dist/package/src/views/base/i18n-custom/index.vue +32 -4
- package/dist/package/src/views/base/job/index.vue +2 -1
- package/dist/package/src/views/base/job/log.vue +0 -1
- package/dist/package/src/views/base/login-log/index.vue +7 -12
- package/dist/package/src/views/base/login-policy/index.vue +63 -4
- package/dist/package/src/views/base/menu/index.vue +19 -4
- package/dist/package/src/views/base/message-category/index.vue +0 -1
- package/dist/package/src/views/base/oauth-client/index.vue +2 -1
- package/dist/package/src/views/base/operation-log/index.vue +9 -4
- package/dist/package/src/views/base/permission-log/index.vue +7 -2
- package/dist/package/src/views/base/policy-evaluation-log/index.vue +7 -2
- package/dist/package/src/views/base/redact-output-policy/index.vue +30 -9
- package/dist/package/src/views/base/redact-storage-policy/index.vue +19 -11
- package/dist/package/src/views/base/tenant/index.vue +5 -0
- package/dist/package/src/views/profile/components/login-log.vue +0 -1
- package/dist/package/src/views/profile/components/session.vue +18 -12
- package/dist/package/src/views/tool/code-gen/table/index.vue +4 -6
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseRedactStoragePolicyForm, BaseRedactStoragePolicyService, CreateBaseRedactStoragePolicyRequest, DeleteBaseRedactStoragePolicyRequest, GetBaseRedactStoragePolicyRequest, ListBaseRedactStorageColumnRequest, ListBaseRedactStorageColumnResponse, PageBaseRedactStoragePolicyRequest, PageBaseRedactStoragePolicyResponse, SetBaseRedactStoragePolicyStatusRequest, UpdateBaseRedactStoragePolicyRequest } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/base_redact_storage_policy";
|
|
1
|
+
import type { BaseRedactStoragePolicyForm, BaseRedactStoragePolicyService, CreateBaseRedactStoragePolicyRequest, DeleteBaseRedactStoragePolicyRequest, GetBaseRedactStoragePolicyRequest, ListBaseRedactStorageColumnRequest, ListBaseRedactStorageColumnResponse, ListBaseRedactStorageTableRequest, ListBaseRedactStorageTableResponse, PageBaseRedactStoragePolicyRequest, PageBaseRedactStoragePolicyResponse, SetBaseRedactStoragePolicyStatusRequest, UpdateBaseRedactStoragePolicyRequest } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/base_redact_storage_policy";
|
|
2
2
|
import type { Empty } from "@liujitcn/kratos-admin-system/rpc/google/protobuf/empty";
|
|
3
3
|
/** 管理端入库脱敏策略服务。 */
|
|
4
4
|
export declare class BaseRedactStoragePolicyServiceImpl implements BaseRedactStoragePolicyService {
|
|
@@ -14,6 +14,8 @@ export declare class BaseRedactStoragePolicyServiceImpl implements BaseRedactSto
|
|
|
14
14
|
DeleteBaseRedactStoragePolicy(request: DeleteBaseRedactStoragePolicyRequest): Promise<Empty>;
|
|
15
15
|
/** 设置入库脱敏策略状态。 */
|
|
16
16
|
SetBaseRedactStoragePolicyStatus(request: SetBaseRedactStoragePolicyStatusRequest): Promise<Empty>;
|
|
17
|
+
/** 查询包含租户ID字段的数据表列表。 */
|
|
18
|
+
ListBaseRedactStorageTable(request: ListBaseRedactStorageTableRequest): Promise<ListBaseRedactStorageTableResponse>;
|
|
17
19
|
/** 查询可入库脱敏的字符串字段列表。 */
|
|
18
20
|
ListBaseRedactStorageColumn(request: ListBaseRedactStorageColumnRequest): Promise<ListBaseRedactStorageColumnResponse>;
|
|
19
21
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { StringValues } from "@liujitcn/kratos-admin-system/rpc/common/v1/types";
|
|
2
|
-
import type { BaseTableSourceService, OptionBaseTableRequest, OptionBaseTableSourceRequest } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/base_table_source";
|
|
2
|
+
import type { BaseTableSourceService, OptionBaseTableRequest, OptionBaseTableResponse, OptionBaseTableSourceRequest } from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/base_table_source";
|
|
3
3
|
/** 数据源元数据服务实现。 */
|
|
4
4
|
export declare class BaseTableSourceServiceImpl implements BaseTableSourceService {
|
|
5
5
|
/** 查询已初始化的数据源名称。 */
|
|
6
6
|
OptionBaseTableSource(request: OptionBaseTableSourceRequest): Promise<StringValues>;
|
|
7
|
-
/**
|
|
8
|
-
OptionBaseTable(request: OptionBaseTableRequest): Promise<
|
|
7
|
+
/** 查询指定数据源中的数据库表选项。 */
|
|
8
|
+
OptionBaseTable(request: OptionBaseTableRequest): Promise<OptionBaseTableResponse>;
|
|
9
9
|
}
|
|
10
10
|
/** 数据源元数据服务实例。 */
|
|
11
11
|
export declare const defBaseTableSourceService: BaseTableSourceServiceImpl;
|
|
@@ -263,7 +263,6 @@ export declare const LOCALE_MESSAGES: {
|
|
|
263
263
|
"system.base.file.field.name": string;
|
|
264
264
|
"system.base.file.field.path": string;
|
|
265
265
|
"system.base.file.field.size": string;
|
|
266
|
-
"system.base.file.field.tenant": string;
|
|
267
266
|
"system.base.file.field.url": string;
|
|
268
267
|
"system.base.file.message.preview_download_hint": string;
|
|
269
268
|
"system.base.file.message.preview_failed": string;
|
|
@@ -1843,7 +1842,6 @@ export declare const LOCALE_MESSAGES: {
|
|
|
1843
1842
|
"system.base.file.field.name": string;
|
|
1844
1843
|
"system.base.file.field.path": string;
|
|
1845
1844
|
"system.base.file.field.size": string;
|
|
1846
|
-
"system.base.file.field.tenant": string;
|
|
1847
1845
|
"system.base.file.field.url": string;
|
|
1848
1846
|
"system.base.file.message.preview_download_hint": string;
|
|
1849
1847
|
"system.base.file.message.preview_failed": string;
|
|
@@ -3423,7 +3421,6 @@ export declare const LOCALE_MESSAGES: {
|
|
|
3423
3421
|
"system.base.file.field.name": string;
|
|
3424
3422
|
"system.base.file.field.path": string;
|
|
3425
3423
|
"system.base.file.field.size": string;
|
|
3426
|
-
"system.base.file.field.tenant": string;
|
|
3427
3424
|
"system.base.file.field.url": string;
|
|
3428
3425
|
"system.base.file.message.preview_download_hint": string;
|
|
3429
3426
|
"system.base.file.message.preview_failed": string;
|
|
@@ -5003,7 +5000,6 @@ export declare const LOCALE_MESSAGES: {
|
|
|
5003
5000
|
"system.base.file.field.name": string;
|
|
5004
5001
|
"system.base.file.field.path": string;
|
|
5005
5002
|
"system.base.file.field.size": string;
|
|
5006
|
-
"system.base.file.field.tenant": string;
|
|
5007
5003
|
"system.base.file.field.url": string;
|
|
5008
5004
|
"system.base.file.message.preview_download_hint": string;
|
|
5009
5005
|
"system.base.file.message.preview_failed": string;
|
|
@@ -85,6 +85,8 @@ export interface DeleteAiSessionResponse {
|
|
|
85
85
|
export interface AiSession {
|
|
86
86
|
/** 会话ID */
|
|
87
87
|
id: string;
|
|
88
|
+
/** 租户ID */
|
|
89
|
+
tenant_id: number;
|
|
88
90
|
/** 会话标题 */
|
|
89
91
|
title: string;
|
|
90
92
|
/** 会话摘要 */
|
|
@@ -98,6 +100,8 @@ export interface AiSession {
|
|
|
98
100
|
export interface AiMessage {
|
|
99
101
|
/** 消息ID */
|
|
100
102
|
id: string;
|
|
103
|
+
/** 租户ID */
|
|
104
|
+
tenant_id: number;
|
|
101
105
|
/** 输入内容 */
|
|
102
106
|
input_content: AiInputContent | undefined;
|
|
103
107
|
/** 输出内容 */
|
|
@@ -29,8 +29,16 @@ export interface GetConfigResponse {
|
|
|
29
29
|
configs: ConfigItem[];
|
|
30
30
|
/** AI 助手是否可用 */
|
|
31
31
|
ai_enabled: boolean;
|
|
32
|
+
}
|
|
33
|
+
/** 当前租户自定义国际化覆盖项查询条件。 */
|
|
34
|
+
export interface GetI18nCustomRequest {
|
|
35
|
+
/** 位置:枚举【BaseConfigSite】 */
|
|
36
|
+
site: BaseConfigSite;
|
|
37
|
+
}
|
|
38
|
+
/** 当前租户自定义国际化覆盖项查询结果。 */
|
|
39
|
+
export interface GetI18nCustomResponse {
|
|
32
40
|
/** 全部语言的自定义国际化覆盖项 */
|
|
33
|
-
|
|
41
|
+
items: I18nCustomItem[];
|
|
34
42
|
}
|
|
35
43
|
/** 全部语言的自定义国际化覆盖项。 */
|
|
36
44
|
export interface I18nCustomItem {
|
|
@@ -45,4 +53,6 @@ export interface I18nCustomItem {
|
|
|
45
53
|
export interface ConfigService {
|
|
46
54
|
/** 获取系统配置 */
|
|
47
55
|
GetConfig(request: GetConfigRequest): Promise<GetConfigResponse>;
|
|
56
|
+
/** 获取当前租户的自定义国际化覆盖项 */
|
|
57
|
+
GetI18nCustom(request: GetI18nCustomRequest): Promise<GetI18nCustomResponse>;
|
|
48
58
|
}
|
|
@@ -46,6 +46,20 @@ export interface UserInfoForm {
|
|
|
46
46
|
/** 获取个人中心用户信息请求参数 */
|
|
47
47
|
export interface GetUserProfileRequest {
|
|
48
48
|
}
|
|
49
|
+
/** 获取当前用户密码策略请求参数 */
|
|
50
|
+
export interface GetCurrentPasswordPolicyRequest {
|
|
51
|
+
}
|
|
52
|
+
/** 当前用户生效的密码策略 */
|
|
53
|
+
export interface CurrentPasswordPolicy {
|
|
54
|
+
/** 密码最小长度 */
|
|
55
|
+
min_length: number;
|
|
56
|
+
/** 密码至少满足的字符类别数量 */
|
|
57
|
+
min_complexity_classes: number;
|
|
58
|
+
/** 禁止重复使用的历史密码数量,零表示不启用 */
|
|
59
|
+
history_count: number;
|
|
60
|
+
/** 密码有效期天数,零表示长期有效 */
|
|
61
|
+
max_age_days: number;
|
|
62
|
+
}
|
|
49
63
|
/** 用户资料表单 */
|
|
50
64
|
export interface UserProfileForm {
|
|
51
65
|
/** 用户名 */
|
|
@@ -158,6 +172,8 @@ export interface AuthService {
|
|
|
158
172
|
GetUserInfo(request: GetUserInfoRequest): Promise<UserInfoForm>;
|
|
159
173
|
/** 获取个人中心用户信息 */
|
|
160
174
|
GetUserProfile(request: GetUserProfileRequest): Promise<UserProfileForm>;
|
|
175
|
+
/** 获取当前用户生效的密码策略 */
|
|
176
|
+
GetCurrentPasswordPolicy(request: GetCurrentPasswordPolicyRequest): Promise<CurrentPasswordPolicy>;
|
|
161
177
|
/** 修改个人中心密码 */
|
|
162
178
|
UpdateUserPassword(request: UpdateUserPasswordRequest): Promise<Empty>;
|
|
163
179
|
/** 修改个人中心手机号 */
|
|
@@ -4,6 +4,8 @@ import type { Empty } from "../../../google/protobuf/empty";
|
|
|
4
4
|
export interface OptionBaseApiRequest {
|
|
5
5
|
/** 是否包含免鉴权和可选鉴权接口 */
|
|
6
6
|
include_public?: boolean | undefined;
|
|
7
|
+
/** 响应是否包含租户字段 */
|
|
8
|
+
tenant_response?: boolean | undefined;
|
|
7
9
|
}
|
|
8
10
|
/** API选项响应 */
|
|
9
11
|
export interface OptionBaseApiResponse {
|
|
@@ -79,6 +81,8 @@ export interface BaseApi {
|
|
|
79
81
|
openapi_service_code: string;
|
|
80
82
|
/** OpenAPI文档名称 */
|
|
81
83
|
openapi_service_name: string;
|
|
84
|
+
/** 响应是否包含租户字段 */
|
|
85
|
+
tenant_response: boolean;
|
|
82
86
|
}
|
|
83
87
|
/** API文档查询条件 */
|
|
84
88
|
export interface GetBaseApiDocRequest {
|
|
@@ -3,6 +3,8 @@ import type { Status } from "../../../common/v1/enum";
|
|
|
3
3
|
import type { Empty } from "../../../google/protobuf/empty";
|
|
4
4
|
/** 国际化自定义翻译分页查询条件。 */
|
|
5
5
|
export interface PageBaseI18nCustomRequest {
|
|
6
|
+
/** 租户ID */
|
|
7
|
+
tenant_id?: number | undefined;
|
|
6
8
|
/** 位置:枚举【BaseConfigSite】 */
|
|
7
9
|
site?: BaseConfigSite | undefined;
|
|
8
10
|
/** 国际化语言键 */
|
|
@@ -32,6 +34,8 @@ export interface GetBaseI18nCustomRequest {
|
|
|
32
34
|
export interface BaseI18nCustomForm {
|
|
33
35
|
/** 国际化自定义翻译ID */
|
|
34
36
|
id: number;
|
|
37
|
+
/** 租户ID */
|
|
38
|
+
tenant_id: number;
|
|
35
39
|
/** 位置:枚举【BaseConfigSite】 */
|
|
36
40
|
site: BaseConfigSite;
|
|
37
41
|
/** 国际化语言键 */
|
|
@@ -71,6 +75,8 @@ export interface SetBaseI18nCustomStatusRequest {
|
|
|
71
75
|
export interface BaseI18nCustom {
|
|
72
76
|
/** 国际化自定义翻译ID */
|
|
73
77
|
id: number;
|
|
78
|
+
/** 租户ID */
|
|
79
|
+
tenant_id: number;
|
|
74
80
|
/** 位置:枚举【BaseConfigSite】 */
|
|
75
81
|
site: BaseConfigSite;
|
|
76
82
|
/** 国际化语言键 */
|
|
@@ -22,6 +22,8 @@ export interface PageBaseRedactOutputPolicyRequest {
|
|
|
22
22
|
field_path: string;
|
|
23
23
|
/** 服务名 */
|
|
24
24
|
service_name: string;
|
|
25
|
+
/** 租户ID */
|
|
26
|
+
tenant_id?: number | undefined;
|
|
25
27
|
/** 处理模式 */
|
|
26
28
|
mode?: BaseRedactOutputPolicyMode | undefined;
|
|
27
29
|
/** 状态 */
|
|
@@ -54,6 +56,8 @@ export interface BaseRedactOutputPolicyForm {
|
|
|
54
56
|
field_path: string;
|
|
55
57
|
/** 服务名 */
|
|
56
58
|
service_name: string;
|
|
59
|
+
/** 租户ID */
|
|
60
|
+
tenant_id: number;
|
|
57
61
|
/** 处理模式 */
|
|
58
62
|
mode: BaseRedactOutputPolicyMode;
|
|
59
63
|
/** 规则ID */
|
|
@@ -96,6 +100,8 @@ export interface BaseRedactOutputPolicy {
|
|
|
96
100
|
message_ref: string;
|
|
97
101
|
/** 返回字段路径 */
|
|
98
102
|
field_path: string;
|
|
103
|
+
/** 租户ID */
|
|
104
|
+
tenant_id: number;
|
|
99
105
|
/** 处理模式 */
|
|
100
106
|
mode: BaseRedactOutputPolicyMode;
|
|
101
107
|
/** 规则ID */
|
|
@@ -10,6 +10,8 @@ export interface PageBaseRedactStoragePolicyRequest {
|
|
|
10
10
|
rule_id?: number | undefined;
|
|
11
11
|
/** 数据源名称 */
|
|
12
12
|
source_name: string;
|
|
13
|
+
/** 租户ID */
|
|
14
|
+
tenant_id?: number | undefined;
|
|
13
15
|
/** 状态 */
|
|
14
16
|
status?: Status | undefined;
|
|
15
17
|
/** 当前页码 */
|
|
@@ -42,6 +44,8 @@ export interface BaseRedactStoragePolicyForm {
|
|
|
42
44
|
rule_params: string;
|
|
43
45
|
/** 数据源名称 */
|
|
44
46
|
source_name: string;
|
|
47
|
+
/** 租户ID */
|
|
48
|
+
tenant_id: number;
|
|
45
49
|
/** 状态 */
|
|
46
50
|
status: Status;
|
|
47
51
|
/** 备注 */
|
|
@@ -88,6 +92,8 @@ export interface BaseRedactStoragePolicy {
|
|
|
88
92
|
rule_params: string;
|
|
89
93
|
/** 数据源名称 */
|
|
90
94
|
source_name: string;
|
|
95
|
+
/** 租户ID */
|
|
96
|
+
tenant_id: number;
|
|
91
97
|
/** 状态 */
|
|
92
98
|
status: Status;
|
|
93
99
|
/** 备注 */
|
|
@@ -97,6 +103,23 @@ export interface BaseRedactStoragePolicy {
|
|
|
97
103
|
/** 更新时间 */
|
|
98
104
|
updated_at: string;
|
|
99
105
|
}
|
|
106
|
+
/** 可入库脱敏数据表查询条件。 */
|
|
107
|
+
export interface ListBaseRedactStorageTableRequest {
|
|
108
|
+
/** 数据源名称 */
|
|
109
|
+
source_name: string;
|
|
110
|
+
}
|
|
111
|
+
/** 可入库脱敏数据表。 */
|
|
112
|
+
export interface BaseRedactStorageTable {
|
|
113
|
+
/** 数据库表名 */
|
|
114
|
+
name: string;
|
|
115
|
+
/** 数据表注释 */
|
|
116
|
+
comment: string;
|
|
117
|
+
}
|
|
118
|
+
/** 可入库脱敏数据表列表响应。 */
|
|
119
|
+
export interface ListBaseRedactStorageTableResponse {
|
|
120
|
+
/** 包含租户ID字段的数据表列表 */
|
|
121
|
+
tables: BaseRedactStorageTable[];
|
|
122
|
+
}
|
|
100
123
|
/** 查询可入库脱敏字段请求。 */
|
|
101
124
|
export interface ListBaseRedactStorageColumnRequest {
|
|
102
125
|
/** 数据源名称 */
|
|
@@ -124,6 +147,10 @@ export interface ListBaseRedactStorageColumnResponse {
|
|
|
124
147
|
export interface BaseRedactStoragePolicyService {
|
|
125
148
|
/** 查询入库脱敏策略分页列表。 */
|
|
126
149
|
PageBaseRedactStoragePolicy(request: PageBaseRedactStoragePolicyRequest): Promise<PageBaseRedactStoragePolicyResponse>;
|
|
150
|
+
/** 查询包含租户ID字段的数据表列表。 */
|
|
151
|
+
ListBaseRedactStorageTable(request: ListBaseRedactStorageTableRequest): Promise<ListBaseRedactStorageTableResponse>;
|
|
152
|
+
/** 查询可入库脱敏的字符串字段列表。 */
|
|
153
|
+
ListBaseRedactStorageColumn(request: ListBaseRedactStorageColumnRequest): Promise<ListBaseRedactStorageColumnResponse>;
|
|
127
154
|
/** 查询入库脱敏策略详情。 */
|
|
128
155
|
GetBaseRedactStoragePolicy(request: GetBaseRedactStoragePolicyRequest): Promise<BaseRedactStoragePolicyForm>;
|
|
129
156
|
/** 批量创建入库脱敏策略。 */
|
|
@@ -134,6 +161,4 @@ export interface BaseRedactStoragePolicyService {
|
|
|
134
161
|
DeleteBaseRedactStoragePolicy(request: DeleteBaseRedactStoragePolicyRequest): Promise<Empty>;
|
|
135
162
|
/** 设置入库脱敏策略状态。 */
|
|
136
163
|
SetBaseRedactStoragePolicyStatus(request: SetBaseRedactStoragePolicyStatusRequest): Promise<Empty>;
|
|
137
|
-
/** 查询可入库脱敏的字符串字段列表。 */
|
|
138
|
-
ListBaseRedactStorageColumn(request: ListBaseRedactStorageColumnRequest): Promise<ListBaseRedactStorageColumnResponse>;
|
|
139
164
|
}
|
|
@@ -7,10 +7,22 @@ export interface OptionBaseTableRequest {
|
|
|
7
7
|
/** 数据源名称 */
|
|
8
8
|
source_name: string;
|
|
9
9
|
}
|
|
10
|
+
/** 数据库表选项。 */
|
|
11
|
+
export interface BaseTableOption {
|
|
12
|
+
/** 数据库表名 */
|
|
13
|
+
name: string;
|
|
14
|
+
/** 数据表注释 */
|
|
15
|
+
comment: string;
|
|
16
|
+
}
|
|
17
|
+
/** 数据库表选项响应。 */
|
|
18
|
+
export interface OptionBaseTableResponse {
|
|
19
|
+
/** 数据库表选项列表 */
|
|
20
|
+
tables: BaseTableOption[];
|
|
21
|
+
}
|
|
10
22
|
/** Admin数据源元数据服务,提供数据备份、数据归档和代码生成共用的数据源信息。 */
|
|
11
23
|
export interface BaseTableSourceService {
|
|
12
24
|
/** 查询已初始化的数据源名称。 */
|
|
13
25
|
OptionBaseTableSource(request: OptionBaseTableSourceRequest): Promise<StringValues>;
|
|
14
|
-
/**
|
|
15
|
-
OptionBaseTable(request: OptionBaseTableRequest): Promise<
|
|
26
|
+
/** 查询指定数据源中的数据库表选项。 */
|
|
27
|
+
OptionBaseTable(request: OptionBaseTableRequest): Promise<OptionBaseTableResponse>;
|
|
16
28
|
}
|
|
@@ -90,7 +90,7 @@ export interface DeleteBaseTenantProjectGrantRequest {
|
|
|
90
90
|
/** 授权主体ID */
|
|
91
91
|
subject_id: number;
|
|
92
92
|
}
|
|
93
|
-
/**
|
|
93
|
+
/** Admin项目授权服务 */
|
|
94
94
|
export interface BaseTenantProjectGrantService {
|
|
95
95
|
/** 查询项目授权分页列表。 */
|
|
96
96
|
PageBaseTenantProjectGrant(request: PageBaseTenantProjectGrantRequest): Promise<PageBaseTenantProjectGrantResponse>;
|
|
@@ -9,6 +9,8 @@ export interface GetBaseThirdAccountIdentifierRequest {
|
|
|
9
9
|
export interface GetBaseThirdAccountIdentifierResponse {
|
|
10
10
|
/** 三方账号唯一标识 */
|
|
11
11
|
identifier: string;
|
|
12
|
+
/** 租户ID */
|
|
13
|
+
tenant_id: number;
|
|
12
14
|
}
|
|
13
15
|
/** Admin用户三方账号服务 */
|
|
14
16
|
export interface BaseThirdAccountService {
|
|
@@ -7,6 +7,8 @@ import type {
|
|
|
7
7
|
GetBaseRedactStoragePolicyRequest,
|
|
8
8
|
ListBaseRedactStorageColumnRequest,
|
|
9
9
|
ListBaseRedactStorageColumnResponse,
|
|
10
|
+
ListBaseRedactStorageTableRequest,
|
|
11
|
+
ListBaseRedactStorageTableResponse,
|
|
10
12
|
PageBaseRedactStoragePolicyRequest,
|
|
11
13
|
PageBaseRedactStoragePolicyResponse,
|
|
12
14
|
SetBaseRedactStoragePolicyStatusRequest,
|
|
@@ -48,6 +50,11 @@ export class BaseRedactStoragePolicyServiceImpl implements BaseRedactStoragePoli
|
|
|
48
50
|
return service<SetBaseRedactStoragePolicyStatusRequest, Empty>({ url: `${BASE_REDACT_STORAGE_POLICY_URL}/${request.id}/status`, method: "put", data: request });
|
|
49
51
|
}
|
|
50
52
|
|
|
53
|
+
/** 查询包含租户ID字段的数据表列表。 */
|
|
54
|
+
ListBaseRedactStorageTable(request: ListBaseRedactStorageTableRequest): Promise<ListBaseRedactStorageTableResponse> {
|
|
55
|
+
return service<ListBaseRedactStorageTableRequest, ListBaseRedactStorageTableResponse>({ url: `${BASE_REDACT_STORAGE_POLICY_URL}/tables`, method: "get", params: request });
|
|
56
|
+
}
|
|
57
|
+
|
|
51
58
|
/** 查询可入库脱敏的字符串字段列表。 */
|
|
52
59
|
ListBaseRedactStorageColumn(request: ListBaseRedactStorageColumnRequest): Promise<ListBaseRedactStorageColumnResponse> {
|
|
53
60
|
return service<ListBaseRedactStorageColumnRequest, ListBaseRedactStorageColumnResponse>({ url: `${BASE_REDACT_STORAGE_POLICY_URL}/columns`, method: "get", params: request });
|
|
@@ -3,6 +3,7 @@ import type { StringValues } from "@liujitcn/kratos-admin-system/rpc/common/v1/t
|
|
|
3
3
|
import type {
|
|
4
4
|
BaseTableSourceService,
|
|
5
5
|
OptionBaseTableRequest,
|
|
6
|
+
OptionBaseTableResponse,
|
|
6
7
|
OptionBaseTableSourceRequest
|
|
7
8
|
} from "@liujitcn/kratos-admin-system/rpc/system/admin/v1/base_table_source";
|
|
8
9
|
|
|
@@ -19,9 +20,9 @@ export class BaseTableSourceServiceImpl implements BaseTableSourceService {
|
|
|
19
20
|
});
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
/**
|
|
23
|
-
OptionBaseTable(request: OptionBaseTableRequest): Promise<
|
|
24
|
-
return service<OptionBaseTableRequest,
|
|
23
|
+
/** 查询指定数据源中的数据库表选项。 */
|
|
24
|
+
OptionBaseTable(request: OptionBaseTableRequest): Promise<OptionBaseTableResponse> {
|
|
25
|
+
return service<OptionBaseTableRequest, OptionBaseTableResponse>({
|
|
25
26
|
url: `${BASE_TABLE_SOURCE_URL}/table/option`,
|
|
26
27
|
method: "get",
|
|
27
28
|
params: request
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
:fields="passwordFormFields"
|
|
7
7
|
:rules="passwordFormRules"
|
|
8
8
|
/>
|
|
9
|
-
<PasswordStrength :password="passwordForm.new_pwd" class="change-password-form__strength" />
|
|
9
|
+
<PasswordStrength :password="passwordForm.new_pwd" load-current-policy class="change-password-form__strength" />
|
|
10
10
|
<div class="change-password-form__footer">
|
|
11
11
|
<el-button @click="resetPasswordForm">{{ t("common.action.reset") }}</el-button>
|
|
12
12
|
<el-button type="primary" :loading="submitLoading" @click="handleSubmitPassword">
|
|
@@ -425,7 +425,6 @@ async function handleBeforeSetStatus(row: BaseTenantProject) {
|
|
|
425
425
|
);
|
|
426
426
|
await defBaseTenantProjectService.SetBaseTenantProjectStatus({ id: row.id, status: nextStatus });
|
|
427
427
|
ElMessage.success(t("common.message.status_success", { action: text }));
|
|
428
|
-
await refreshTable();
|
|
429
428
|
return true;
|
|
430
429
|
} catch {
|
|
431
430
|
return false;
|
|
@@ -262,7 +262,6 @@
|
|
|
262
262
|
"system.base.file.field.name": "Original file name",
|
|
263
263
|
"system.base.file.field.path": "Storage path",
|
|
264
264
|
"system.base.file.field.size": "File size",
|
|
265
|
-
"system.base.file.field.tenant": "Tenant ID",
|
|
266
265
|
"system.base.file.field.url": "Access URL",
|
|
267
266
|
"system.base.file.message.preview_download_hint": "Download the file to view its contents",
|
|
268
267
|
"system.base.file.message.preview_failed": "Failed to load file contents",
|
|
@@ -262,7 +262,6 @@
|
|
|
262
262
|
"system.base.file.field.name": "元のファイル名",
|
|
263
263
|
"system.base.file.field.path": "保存パス",
|
|
264
264
|
"system.base.file.field.size": "ファイルサイズ",
|
|
265
|
-
"system.base.file.field.tenant": "テナントID",
|
|
266
265
|
"system.base.file.field.url": "アクセスURL",
|
|
267
266
|
"system.base.file.message.preview_download_hint": "ファイルをダウンロードして内容を確認してください",
|
|
268
267
|
"system.base.file.message.preview_failed": "ファイル内容の読み込みに失敗しました",
|
|
@@ -262,7 +262,6 @@
|
|
|
262
262
|
"system.base.file.field.name": "原始文件名",
|
|
263
263
|
"system.base.file.field.path": "存储路径",
|
|
264
264
|
"system.base.file.field.size": "文件大小",
|
|
265
|
-
"system.base.file.field.tenant": "租户ID",
|
|
266
265
|
"system.base.file.field.url": "访问地址",
|
|
267
266
|
"system.base.file.message.preview_download_hint": "请下载文件后查看内容",
|
|
268
267
|
"system.base.file.message.preview_failed": "文件内容加载失败",
|
|
@@ -262,7 +262,6 @@
|
|
|
262
262
|
"system.base.file.field.name": "原始檔名",
|
|
263
263
|
"system.base.file.field.path": "儲存路徑",
|
|
264
264
|
"system.base.file.field.size": "檔案大小",
|
|
265
|
-
"system.base.file.field.tenant": "租戶ID",
|
|
266
265
|
"system.base.file.field.url": "存取網址",
|
|
267
266
|
"system.base.file.message.preview_download_hint": "請下載檔案後查看內容",
|
|
268
267
|
"system.base.file.message.preview_failed": "檔案內容載入失敗",
|
|
@@ -108,6 +108,8 @@ export interface DeleteAiSessionResponse {
|
|
|
108
108
|
export interface AiSession {
|
|
109
109
|
/** 会话ID */
|
|
110
110
|
id: string;
|
|
111
|
+
/** 租户ID */
|
|
112
|
+
tenant_id: number;
|
|
111
113
|
/** 会话标题 */
|
|
112
114
|
title: string;
|
|
113
115
|
/** 会话摘要 */
|
|
@@ -124,6 +126,8 @@ export interface AiSession {
|
|
|
124
126
|
export interface AiMessage {
|
|
125
127
|
/** 消息ID */
|
|
126
128
|
id: string;
|
|
129
|
+
/** 租户ID */
|
|
130
|
+
tenant_id: number;
|
|
127
131
|
/** 输入内容 */
|
|
128
132
|
input_content:
|
|
129
133
|
| AiInputContent
|
|
@@ -40,8 +40,18 @@ export interface GetConfigResponse {
|
|
|
40
40
|
configs: ConfigItem[];
|
|
41
41
|
/** AI 助手是否可用 */
|
|
42
42
|
ai_enabled: boolean;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** 当前租户自定义国际化覆盖项查询条件。 */
|
|
46
|
+
export interface GetI18nCustomRequest {
|
|
47
|
+
/** 位置:枚举【BaseConfigSite】 */
|
|
48
|
+
site: BaseConfigSite;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** 当前租户自定义国际化覆盖项查询结果。 */
|
|
52
|
+
export interface GetI18nCustomResponse {
|
|
43
53
|
/** 全部语言的自定义国际化覆盖项 */
|
|
44
|
-
|
|
54
|
+
items: I18nCustomItem[];
|
|
45
55
|
}
|
|
46
56
|
|
|
47
57
|
/** 全部语言的自定义国际化覆盖项。 */
|
|
@@ -58,4 +68,6 @@ export interface I18nCustomItem {
|
|
|
58
68
|
export interface ConfigService {
|
|
59
69
|
/** 获取系统配置 */
|
|
60
70
|
GetConfig(request: GetConfigRequest): Promise<GetConfigResponse>;
|
|
71
|
+
/** 获取当前租户的自定义国际化覆盖项 */
|
|
72
|
+
GetI18nCustom(request: GetI18nCustomRequest): Promise<GetI18nCustomResponse>;
|
|
61
73
|
}
|
|
@@ -60,6 +60,22 @@ export interface UserInfoForm {
|
|
|
60
60
|
export interface GetUserProfileRequest {
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
/** 获取当前用户密码策略请求参数 */
|
|
64
|
+
export interface GetCurrentPasswordPolicyRequest {
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** 当前用户生效的密码策略 */
|
|
68
|
+
export interface CurrentPasswordPolicy {
|
|
69
|
+
/** 密码最小长度 */
|
|
70
|
+
min_length: number;
|
|
71
|
+
/** 密码至少满足的字符类别数量 */
|
|
72
|
+
min_complexity_classes: number;
|
|
73
|
+
/** 禁止重复使用的历史密码数量,零表示不启用 */
|
|
74
|
+
history_count: number;
|
|
75
|
+
/** 密码有效期天数,零表示长期有效 */
|
|
76
|
+
max_age_days: number;
|
|
77
|
+
}
|
|
78
|
+
|
|
63
79
|
/** 用户资料表单 */
|
|
64
80
|
export interface UserProfileForm {
|
|
65
81
|
/** 用户名 */
|
|
@@ -210,6 +226,8 @@ export interface AuthService {
|
|
|
210
226
|
GetUserInfo(request: GetUserInfoRequest): Promise<UserInfoForm>;
|
|
211
227
|
/** 获取个人中心用户信息 */
|
|
212
228
|
GetUserProfile(request: GetUserProfileRequest): Promise<UserProfileForm>;
|
|
229
|
+
/** 获取当前用户生效的密码策略 */
|
|
230
|
+
GetCurrentPasswordPolicy(request: GetCurrentPasswordPolicyRequest): Promise<CurrentPasswordPolicy>;
|
|
213
231
|
/** 修改个人中心密码 */
|
|
214
232
|
UpdateUserPassword(request: UpdateUserPasswordRequest): Promise<Empty>;
|
|
215
233
|
/** 修改个人中心手机号 */
|
|
@@ -11,7 +11,11 @@ import type { Empty } from "../../../google/protobuf/empty";
|
|
|
11
11
|
/** API选项查询条件 */
|
|
12
12
|
export interface OptionBaseApiRequest {
|
|
13
13
|
/** 是否包含免鉴权和可选鉴权接口 */
|
|
14
|
-
include_public?:
|
|
14
|
+
include_public?:
|
|
15
|
+
| boolean
|
|
16
|
+
| undefined;
|
|
17
|
+
/** 响应是否包含租户字段 */
|
|
18
|
+
tenant_response?: boolean | undefined;
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
/** API选项响应 */
|
|
@@ -114,6 +118,8 @@ export interface BaseApi {
|
|
|
114
118
|
openapi_service_code: string;
|
|
115
119
|
/** OpenAPI文档名称 */
|
|
116
120
|
openapi_service_name: string;
|
|
121
|
+
/** 响应是否包含租户字段 */
|
|
122
|
+
tenant_response: boolean;
|
|
117
123
|
}
|
|
118
124
|
|
|
119
125
|
/** API文档查询条件 */
|
|
@@ -11,6 +11,10 @@ import type { Empty } from "../../../google/protobuf/empty";
|
|
|
11
11
|
|
|
12
12
|
/** 国际化自定义翻译分页查询条件。 */
|
|
13
13
|
export interface PageBaseI18nCustomRequest {
|
|
14
|
+
/** 租户ID */
|
|
15
|
+
tenant_id?:
|
|
16
|
+
| number
|
|
17
|
+
| undefined;
|
|
14
18
|
/** 位置:枚举【BaseConfigSite】 */
|
|
15
19
|
site?:
|
|
16
20
|
| BaseConfigSite
|
|
@@ -47,6 +51,8 @@ export interface GetBaseI18nCustomRequest {
|
|
|
47
51
|
export interface BaseI18nCustomForm {
|
|
48
52
|
/** 国际化自定义翻译ID */
|
|
49
53
|
id: number;
|
|
54
|
+
/** 租户ID */
|
|
55
|
+
tenant_id: number;
|
|
50
56
|
/** 位置:枚举【BaseConfigSite】 */
|
|
51
57
|
site: BaseConfigSite;
|
|
52
58
|
/** 国际化语言键 */
|
|
@@ -91,6 +97,8 @@ export interface SetBaseI18nCustomStatusRequest {
|
|
|
91
97
|
export interface BaseI18nCustom {
|
|
92
98
|
/** 国际化自定义翻译ID */
|
|
93
99
|
id: number;
|
|
100
|
+
/** 租户ID */
|
|
101
|
+
tenant_id: number;
|
|
94
102
|
/** 位置:枚举【BaseConfigSite】 */
|
|
95
103
|
site: BaseConfigSite;
|
|
96
104
|
/** 国际化语言键 */
|
|
@@ -31,6 +31,10 @@ export interface PageBaseRedactOutputPolicyRequest {
|
|
|
31
31
|
field_path: string;
|
|
32
32
|
/** 服务名 */
|
|
33
33
|
service_name: string;
|
|
34
|
+
/** 租户ID */
|
|
35
|
+
tenant_id?:
|
|
36
|
+
| number
|
|
37
|
+
| undefined;
|
|
34
38
|
/** 处理模式 */
|
|
35
39
|
mode?:
|
|
36
40
|
| BaseRedactOutputPolicyMode
|
|
@@ -70,6 +74,8 @@ export interface BaseRedactOutputPolicyForm {
|
|
|
70
74
|
field_path: string;
|
|
71
75
|
/** 服务名 */
|
|
72
76
|
service_name: string;
|
|
77
|
+
/** 租户ID */
|
|
78
|
+
tenant_id: number;
|
|
73
79
|
/** 处理模式 */
|
|
74
80
|
mode: BaseRedactOutputPolicyMode;
|
|
75
81
|
/** 规则ID */
|
|
@@ -117,6 +123,8 @@ export interface BaseRedactOutputPolicy {
|
|
|
117
123
|
message_ref: string;
|
|
118
124
|
/** 返回字段路径 */
|
|
119
125
|
field_path: string;
|
|
126
|
+
/** 租户ID */
|
|
127
|
+
tenant_id: number;
|
|
120
128
|
/** 处理模式 */
|
|
121
129
|
mode: BaseRedactOutputPolicyMode;
|
|
122
130
|
/** 规则ID */
|