-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathzh-CN.objects.generated.ts
More file actions
3074 lines (3071 loc) · 82.8 KB
/
Copy pathzh-CN.objects.generated.ts
File metadata and controls
3074 lines (3071 loc) · 82.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
/**
* Auto-generated by 'os i18n extract' for locale 'zh-CN'.
* Edit translations in place; re-run extract (with --merge) to fill new gaps.
* Do not hand-edit the structure — only the leaf string values.
*/
import type { TranslationData } from '@objectstack/spec/system';
export const zhCNObjects: NonNullable<TranslationData['objects']> = {
sys_user: {
label: "用户",
pluralLabel: "用户",
description: "用于身份认证的用户账号",
fields: {
name: {
label: "名称"
},
email: {
label: "邮箱"
},
email_verified: {
label: "邮箱已验证"
},
two_factor_enabled: {
label: "已启用双因素认证",
help: "该用户是否已启用双因素认证。由 better-auth 的 `twoFactor` 插件维护。"
},
role: {
label: "平台角色",
help: "平台级角色(admin、user 等)。通过“设置平台角色”操作设置。"
},
banned: {
label: "已封禁",
help: "为 true 时,用户无法登录。可通过“封禁用户 / 解除封禁”操作切换。"
},
ban_reason: {
label: "封禁原因"
},
ban_expires: {
label: "封禁到期时间",
help: "设置后,到达该时间会自动解除封禁。"
},
failed_login_count: {
label: "连续登录失败次数",
help: "连续登录失败的次数;登录成功后重置为 0。由认证管理器维护。"
},
locked_until: {
label: "锁定至",
help: "设置且时间在未来时,登录会被拒绝(防暴力破解锁定)。超过该时间自动解除;管理员也可通过“解锁账号”提前解除。"
},
password_changed_at: {
label: "密码修改时间",
help: "最近一次修改密码的时间。支撑 password_expiry_days(密码有效期);系统维护。"
},
phone_number: {
label: "手机号码",
help: "用于登录的手机号(建议 E.164 格式)。每个用户唯一;启用 phoneNumber 插件时由 better-auth 管理。"
},
phone_number_verified: {
label: "手机已验证",
help: "手机号是否已验证(OTP 验证依赖短信基础设施,在其上线前保持 false)。系统维护。"
},
must_change_password: {
label: "须修改密码",
help: "为 true 时,用户会被阻止访问(403 PASSWORD_EXPIRED),直到修改密码。由管理员用户管理接口写入;系统维护。"
},
mfa_required_at: {
label: "MFA 强制生效时间",
help: "强制 MFA 首次对该用户生效的时间(宽限期计时起点)。支撑 mfa_required;系统维护。"
},
last_login_at: {
label: "最近登录时间",
help: "最近一次成功登录的时间。由认证管理器写入;系统维护。"
},
last_login_ip: {
label: "最近登录 IP",
help: "最近一次成功登录的客户端 IP(取自可信代理转发头)。系统维护。"
},
ai_access: {
label: "AI 访问权限",
help: "该用户是否占用一个 AI 席位——授予界面内 AI 智能体(build / ask)的使用权限。框架会根据此标志合成 `ai_seat` 能力(plugin-hono-server resolveCtx)。可分配数量受许可/已购席位数限制(由 @objectstack/security-enterprise AiSeatPlugin 强制执行)。归 objectql 所有(better-auth 不感知此列)。"
},
image: {
label: "头像"
},
manager_id: {
label: "经理",
help: "This user's direct manager. Forms the reporting chain the `own_and_reports` hierarchy scope walks (ADR-0057 / @objectstack/security-enterprise)."
},
primary_business_unit_id: {
label: "主属业务单元",
help: "The user's primary business unit — a denormalised projection of sys_business_unit_member.is_primary, maintained by plugin-sharing (ADR-0057 addendum D12). Lets a user-lookup filter candidates by business unit without traversing the membership junction. Do not edit directly; set it via business-unit membership."
},
source: {
label: "身份来源",
help: "该身份的创建方式——idp_provisioned(联合 SSO 即时开通)或 env_native(本地注册 / 应用最终用户)。系统维护,请勿编辑。",
options: {
idp_provisioned: "IdP 开通",
env_native: "环境本地"
}
},
id: {
label: "用户 ID"
},
created_at: {
label: "创建时间"
},
updated_at: {
label: "更新时间"
}
},
_views: {
me: {
label: "我的资料"
},
all_users: {
label: "全部用户"
},
unverified: {
label: "未验证"
},
two_factor: {
label: "已启用 2FA"
},
banned: {
label: "已封禁"
}
},
_actions: {
invite_user: {
label: "邀请用户",
successMessage: "邀请已发送"
},
ban_user: {
label: "封禁用户",
confirmText: "要封禁该用户吗?封禁后会立即登出,且在解除封禁前无法再次登录。",
successMessage: "用户已封禁",
params: {
banReason: {
label: "封禁原因"
}
}
},
unban_user: {
label: "解除封禁",
successMessage: "用户已解除封禁"
},
unlock_user: {
label: "解锁账号",
successMessage: "账号已解锁"
},
create_user: {
label: "创建用户",
successMessage: "用户已创建",
params: {
phoneNumber: {
label: "手机号",
helpText: "登录手机号(E.164 格式,如 +8613800000000)。未填写邮箱时必填。"
},
generatePassword: {
label: "生成临时密码"
},
password: {
label: "密码(留空则自动生成)"
},
mustChangePassword: {
label: "首次登录时必须修改密码"
}
},
resultDialog: {
title: "用户已创建",
description: "请立即复制临时密码——它只显示一次,不会被保存。",
acknowledge: "我已保存该密码",
fields: {
"user.email": "邮箱",
"user.phoneNumber": "手机号",
temporaryPassword: "临时密码"
}
}
},
set_user_password: {
label: "设置密码",
successMessage: "密码已更新",
params: {
generatePassword: {
label: "生成临时密码"
},
newPassword: {
label: "新密码(留空则自动生成)"
},
mustChangePassword: {
label: "下次登录时必须修改密码"
}
},
resultDialog: {
title: "密码已更新",
description: "如果生成了临时密码,请立即复制——它只显示一次,不会被保存。",
acknowledge: "完成",
fields: {
temporaryPassword: "临时密码"
}
}
},
set_user_role: {
label: "设置平台角色",
successMessage: "角色已更新",
params: {
role: {
label: "平台角色"
}
}
},
impersonate_user: {
label: "模拟用户",
confirmText: "要为该用户启动模拟会话吗?仅限合法支持场景使用——所有操作都会被记录。",
successMessage: "已开始模拟该用户"
},
update_my_profile: {
label: "更新资料",
successMessage: "已更新资料"
},
change_my_password: {
label: "修改密码",
successMessage: "已修改密码",
params: {
currentPassword: {
label: "当前密码"
},
newPassword: {
label: "新密码"
},
revokeOtherSessions: {
label: "登出其他设备"
}
}
},
change_my_email: {
label: "修改邮箱",
successMessage: "已发送验证邮件,请前往新邮箱确认。",
params: {
newEmail: {
label: "新邮箱"
}
}
},
resend_verification_email: {
label: "重发验证邮件",
successMessage: "验证邮件已发送,请查收。"
},
delete_my_account: {
label: "删除我的账号",
confirmText: "确定要永久删除您的账户吗?此操作无法撤销——您的所有会话都将被终止,并将按照配置的保留策略移除您拥有的所有数据。",
successMessage: "已删除账号",
params: {
password: {
label: "当前密码"
}
}
},
enable_two_factor: {
label: "启用双因素认证",
successMessage: "双因素认证已启用。用身份验证器 App 扫描二维码或粘贴 otpauth URI,然后验证一次动态码以完成设置。",
params: {
password: {
label: "当前密码"
}
}
},
disable_two_factor: {
label: "停用双因素认证",
confirmText: "要关闭双因素认证吗?您的账户安全性将降低。",
successMessage: "双因素认证已停用。",
params: {
password: {
label: "当前密码"
}
}
},
generate_backup_codes: {
label: "重新生成备用码",
confirmText: "要生成一组新的备用码吗?之前生成的备用码将全部失效。",
successMessage: "新备用码已生成——请妥善保存。",
params: {
password: {
label: "当前密码"
}
}
}
}
},
sys_session: {
label: "会话",
pluralLabel: "会话",
description: "活跃的用户会话",
fields: {
user_id: {
label: "用户"
},
expires_at: {
label: "过期时间"
},
last_activity_at: {
label: "Last Activity At",
help: "Timestamp of the last request on this session; drives idle-timeout. System-managed."
},
revoked_at: {
label: "Revoked At",
help: "When set, this session was revoked (idle / absolute-max / concurrent-cap / admin). System-managed."
},
revoke_reason: {
label: "Revoke Reason",
help: "Why the session was revoked (idle_timeout, absolute_max, concurrent_cap, …)."
},
active_organization_id: {
label: "当前组织"
},
active_team_id: {
label: "当前团队"
},
ip_address: {
label: "IP 地址"
},
user_agent: {
label: "用户代理"
},
impersonated_by: {
label: "模拟发起人",
help: "如存在,该字段表示发起本次模拟会话的管理员用户 ID。"
},
token: {
label: "会话令牌",
help: "不透明会话令牌——绝不会在 UI 中暴露。"
},
id: {
label: "会话 ID"
},
created_at: {
label: "创建时间"
},
updated_at: {
label: "更新时间"
}
},
_views: {
mine: {
label: "我的会话"
},
all_sessions: {
label: "全部"
}
},
_actions: {
revoke_my_other_sessions: {
label: "退出其他设备",
confirmText: "要退出你当前已登录的其他所有设备吗?当前会话将保持活跃。",
successMessage: "其他所有会话已撤销"
},
revoke_session: {
label: "撤销会话",
confirmText: "要撤销此会话吗?系统将使该设备上的用户退出登录。",
successMessage: "会话已撤销"
}
}
},
sys_account: {
label: "身份链接",
pluralLabel: "身份链接",
description: "OAuth 与认证提供方账号",
fields: {
id: {
label: "身份链接 ID"
},
created_at: {
label: "创建时间"
},
updated_at: {
label: "更新时间"
},
provider_id: {
label: "提供方 ID",
help: "OAuth 提供方标识(google、github 等)"
},
issuer: {
label: "颁发者",
help: "为该提供方账号 ID 背书的权威方 —— OIDC 的 issuer,或对自身没有 issuer 的提供方使用 local:…"
},
account_id: {
label: "提供方账号 ID",
help: "用户在该提供方系统中的 ID"
},
user_id: {
label: "用户",
help: "关联到用户表"
},
access_token: {
label: "访问令牌"
},
refresh_token: {
label: "刷新令牌"
},
id_token: {
label: "ID 令牌"
},
access_token_expires_at: {
label: "Access Token 过期时间"
},
refresh_token_expires_at: {
label: "Refresh Token 过期时间"
},
scope: {
label: "OAuth 范围"
},
password: {
label: "密码哈希",
help: "邮箱/密码提供方使用的密码哈希"
},
previous_password_hashes: {
label: "Previous Password Hashes",
help: "JSON array of prior password hashes (bounded by password_history_count); reuse-prevention only. System-managed."
}
},
_views: {
mine: {
label: "我的链接"
},
by_provider: {
label: "按提供方"
},
all_links: {
label: "全部"
}
},
_actions: {
link_social: {
label: "关联社交账号",
params: {
provider: {
label: "服务提供商",
options: {
google: "Google",
github: "GitHub",
microsoft: "Microsoft",
apple: "Apple",
facebook: "Facebook",
gitlab: "GitLab",
discord: "Discord"
}
}
}
},
unlink_account: {
label: "解除关联",
confirmText: "确定要解除此身份关联吗?在用户从账户设置中重新关联之前,将无法再使用此提供方登录。",
successMessage: "已解除身份关联"
}
}
},
sys_verification: {
label: "验证记录",
pluralLabel: "验证记录",
description: "邮箱和手机号验证令牌",
fields: {
id: {
label: "验证记录 ID"
},
created_at: {
label: "创建时间"
},
updated_at: {
label: "更新时间"
},
value: {
label: "验证令牌",
help: "用于验证的令牌或验证码"
},
expires_at: {
label: "过期时间"
},
identifier: {
label: "标识",
help: "邮箱地址或手机号码"
}
}
},
sys_organization: {
label: "组织",
pluralLabel: "组织",
description: "用于多租户分组的组织",
fields: {
name: {
label: "名称"
},
slug: {
label: "标识符",
help: "适合 URL 使用的标识符"
},
logo: {
label: "标识"
},
metadata: {
label: "元数据",
help: "JSON 序列化的组织元数据"
},
require_mfa: {
label: "强制多因素认证",
help: "为 true 时,该组织的每位成员都必须注册身份验证器 App 才能访问数据。"
},
parent_organization_id: {
label: "Parent Organization",
help: "Reporting/grouping parent. Grants NOTHING — visibility across organizations comes from membership, never from this reference (ADR-0105 D6)."
},
sort_order: {
label: "Sort Order",
help: "Display order among sibling organizations. Presentation only."
},
id: {
label: "组织 ID"
},
created_at: {
label: "创建时间"
},
updated_at: {
label: "更新时间"
}
},
_views: {
all_orgs: {
label: "全部"
}
},
_actions: {
create_organization: {
label: "创建组织",
successMessage: "组织已创建"
},
update_organization: {
label: "编辑组织",
successMessage: "组织已更新"
},
delete_organization: {
label: "删除组织",
confirmText: "要删除该组织吗?所有成员将立即失去访问权限。此操作无法撤销。",
successMessage: "组织已删除"
},
set_active_organization: {
label: "设为当前",
successMessage: "当前组织已切换"
},
leave_organization: {
label: "退出组织",
confirmText: "要退出该组织吗?退出后你将失去对其所有资源的访问权限。",
successMessage: "你已退出该组织"
},
change_slug: {
label: "修改标识符",
confirmText: "重命名标识符会重写该组织所有平台子域名,旧标识符将保留占用 90 天。继续吗?",
successMessage: "组织标识符已修改"
}
}
},
sys_member: {
label: "成员",
pluralLabel: "成员",
description: "组织成员关系记录",
fields: {
id: {
label: "成员 ID"
},
created_at: {
label: "创建时间"
},
organization_id: {
label: "组织"
},
user_id: {
label: "用户"
},
role: {
label: "角色",
help: "成员在组织内的角色",
options: {
owner: "所有者",
admin: "管理员",
member: "成员"
}
}
},
_views: {
mine: {
label: "My Memberships",
emptyState: {
title: "No organizations yet",
message: "You haven't joined any organizations."
}
}
},
_actions: {
add_member: {
label: "添加成员",
successMessage: "成员已添加"
},
update_member_role: {
label: "更改角色",
successMessage: "成员角色已更新"
},
remove_member: {
label: "移除成员",
confirmText: "要将该成员移出组织吗?移除后其将失去对该组织所有资源的访问权限。",
successMessage: "成员已移除"
},
transfer_ownership: {
label: "转移所有权",
confirmText: "确定要将该组织的所有权转移给所选成员吗?您将被降级为管理员,并失去仅所有者拥有的权限。",
successMessage: "已转移所有权"
}
}
},
sys_invitation: {
label: "邀请",
pluralLabel: "邀请",
description: "用于用户加入组织的邀请记录",
fields: {
id: {
label: "邀请 ID"
},
created_at: {
label: "创建时间"
},
organization_id: {
label: "组织"
},
email: {
label: "邮箱",
help: "被邀请用户的邮箱地址"
},
role: {
label: "角色",
help: "接受邀请后分配的角色",
options: {
owner: "所有者",
admin: "管理员",
member: "成员"
}
},
status: {
label: "状态",
options: {
pending: "待处理",
accepted: "已接受",
rejected: "已拒绝",
expired: "已过期",
canceled: "已取消"
}
},
inviter_id: {
label: "邀请人",
help: "发送邀请的用户"
},
expires_at: {
label: "过期时间"
},
team_id: {
label: "团队",
help: "接受邀请后可选分配的团队"
}
},
_views: {
pending: {
label: "待处理"
},
accepted: {
label: "已接受"
},
expired: {
label: "已过期 / 已取消"
},
all_invitations: {
label: "全部"
}
},
_actions: {
invite_user: {
label: "邀请用户",
successMessage: "邀请已发送"
},
cancel_invitation: {
label: "取消邀请",
confirmText: "要取消该邀请吗?接收人将无法再接受该邀请。",
successMessage: "邀请已取消"
},
resend_invitation: {
label: "重新发送邀请",
successMessage: "邀请已重新发送"
},
accept_invitation: {
label: "接受邀请",
successMessage: "已接受邀请"
},
reject_invitation: {
label: "拒绝邀请",
confirmText: "确定要拒绝此邀请吗?邀请人将收到通知,您需要新的邀请才能加入。",
successMessage: "已拒绝邀请"
}
}
},
sys_team: {
label: "团队",
pluralLabel: "团队",
description: "组织内用于精细化分组的团队",
fields: {
name: {
label: "名称"
},
organization_id: {
label: "组织",
help: "该团队所属的上级组织"
},
member_count: {
label: "Member Count",
help: "Seat counter maintained by better-auth; do not write directly."
},
id: {
label: "团队 ID"
},
created_at: {
label: "创建时间"
},
updated_at: {
label: "更新时间"
}
},
_views: {
by_org: {
label: "按组织"
},
all_teams: {
label: "全部"
}
},
_actions: {
create_team: {
label: "创建团队",
successMessage: "团队已创建"
},
update_team: {
label: "编辑团队",
successMessage: "团队已更新"
},
remove_team: {
label: "删除团队",
confirmText: "要删除该团队吗?成员将失去所有团队范围内的访问权限。此操作无法撤销。",
successMessage: "团队已删除"
}
}
},
sys_team_member: {
label: "团队成员",
pluralLabel: "团队成员",
description: "将用户关联到团队的团队成员记录",
fields: {
id: {
label: "团队成员 ID"
},
created_at: {
label: "创建时间"
},
team_id: {
label: "团队"
},
user_id: {
label: "用户"
},
membership_key: {
label: "Membership Key",
help: "Derived membership digest maintained by better-auth; do not write directly."
}
},
_actions: {
add_team_member: {
label: "添加成员",
successMessage: "团队成员已添加"
},
remove_team_member: {
label: "移出团队",
confirmText: "要将该用户移出团队吗?移除后其将失去所有团队范围内的访问权限。",
successMessage: "团队成员已移除"
}
}
},
sys_business_unit: {
label: "业务单元",
pluralLabel: "业务单元",
description: "层级化组织骨架节点(部门 / 事业部 / 业务单元 / 办公地点)。",
fields: {
name: {
label: "名称"
},
code: {
label: "编码",
help: "简短且稳定的编码(例如 EMEA-SALES),在租户内唯一。"
},
kind: {
label: "类型",
help: "分类提示——不会改变图谱语义。",
options: {
company: "公司",
division: "事业部",
department: "部门",
office: "办公地点",
cost_center: "成本中心"
}
},
parent_business_unit_id: {
label: "上级业务单元",
help: "组织树的自关联字段。Null 表示租户根节点。"
},
organization_id: {
label: "组织",
help: "租户范围。"
},
manager_user_id: {
label: "业务单元负责人",
help: "负责该组织单元的用户(业务单元负责人 / lead)。"
},
active: {
label: "启用",
help: "为 false 时,图谱查询不会展开该业务单元成员。"
},
effective_from: {
label: "生效时间",
help: "该业务单元生效的时间(HRIS 同步)。"
},
effective_to: {
label: "失效时间",
help: "该业务单元停用的时间(HRIS 同步)。"
},
external_ref: {
label: "外部引用",
help: "上游 HRIS 中的 ID(Workday / SAP HR / 北森)。"
},
id: {
label: "业务单元 ID"
},
created_at: {
label: "创建时间"
},
updated_at: {
label: "更新时间"
}
},
_views: {
org_chart: {
label: "组织架构"
},
active: {
label: "启用"
},
inactive: {
label: "停用"
},
by_kind: {
label: "按类型"
},
all_departments: {
label: "全部"
}
}
},
sys_business_unit_member: {
label: "业务单元成员",
pluralLabel: "业务单元成员",
description: "用户到业务单元的任职关系(适配矩阵组织并支持生效时间)。",
fields: {
id: {
label: "成员 ID"
},
business_unit_id: {
label: "业务单元"
},
user_id: {
label: "用户"
},
function_in_business_unit: {
label: "业务单元内职能",
help: "`lead` 表示日常负责人;`deputy` 可在审批路由中代替负责人。",
options: {
member: "成员",
lead: "负责人",
deputy: "副负责人"
}
},
is_primary: {
label: "主任职",
help: "当用户属于多个业务单元时,用于标记报表上的主业务单元。"
},
effective_from: {
label: "生效时间"
},
effective_to: {
label: "失效时间"
},
created_at: {
label: "创建时间"
},
updated_at: {
label: "更新时间"
}
}
},
sys_api_key: {
label: "API 密钥",
pluralLabel: "API 密钥",
description: "用于程序化访问的 API 密钥",
fields: {
name: {
label: "名称",
help: "API 密钥的人类可读标签"
},
prefix: {
label: "前缀",
help: "用于识别密钥的可见前缀(例如 `osk_`)"
},
user_id: {
label: "所有者",
help: "拥有该 API 密钥的用户"
},
scopes: {
label: "范围",
help: "权限范围的 JSON 数组"
},
expires_at: {
label: "过期时间"
},
last_used_at: {
label: "最近使用时间",
help: "每次 API 调用时自动更新"
},
revoked: {
label: "已撤销"
},
key: {
label: "哈希密钥",
help: "API 密钥值的哈希——绝不会向客户端暴露"
},
id: {
label: "API 密钥 ID"
},
created_at: {
label: "创建时间"
},
updated_at: {
label: "更新时间"
}
},
_views: {
mine: {
label: "我的密钥"
},
active: {
label: "启用"
},
revoked: {
label: "已撤销"
},
all_keys: {
label: "全部"
}
},
_actions: {
revoke_api_key: {
label: "撤销 API 密钥",
confirmText: "要撤销该 API 密钥吗?所有使用该密钥的客户端都将立即失去访问权限。",
successMessage: "API 密钥已撤销"
},
restore_api_key: {
label: "恢复 API 密钥",
confirmText: "要恢复已撤销的 API 密钥吗?持有该密钥的现有客户端将重新获得访问权限。",
successMessage: "API 密钥已恢复"
}
}
},
sys_two_factor: {
label: "双因素认证",
pluralLabel: "双因素认证凭据",
description: "双因素认证凭据",
fields: {
id: {
label: "双因素认证 ID"
},
created_at: {
label: "创建时间"
},
updated_at: {
label: "更新时间"
},
user_id: {
label: "用户"
},