smart-admin-web 10.13.0 → 10.13.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.
@@ -2380,54 +2380,6 @@ export interface paths {
2380
2380
  patch?: never;
2381
2381
  trace?: never;
2382
2382
  };
2383
- "/api/v1/sys/tenant/page": {
2384
- parameters: {
2385
- query?: never;
2386
- header?: never;
2387
- path?: never;
2388
- cookie?: never;
2389
- };
2390
- get: operations["Tenant_Page"];
2391
- put?: never;
2392
- post?: never;
2393
- delete?: never;
2394
- options?: never;
2395
- head?: never;
2396
- patch?: never;
2397
- trace?: never;
2398
- };
2399
- "/api/v1/sys/tenant/{id}": {
2400
- parameters: {
2401
- query?: never;
2402
- header?: never;
2403
- path?: never;
2404
- cookie?: never;
2405
- };
2406
- get: operations["Tenant_Get"];
2407
- put: operations["Tenant_Update"];
2408
- post?: never;
2409
- delete: operations["Tenant_Delete"];
2410
- options?: never;
2411
- head?: never;
2412
- patch?: never;
2413
- trace?: never;
2414
- };
2415
- "/api/v1/sys/tenant/add": {
2416
- parameters: {
2417
- query?: never;
2418
- header?: never;
2419
- path?: never;
2420
- cookie?: never;
2421
- };
2422
- get?: never;
2423
- put?: never;
2424
- post: operations["Tenant_Add"];
2425
- delete?: never;
2426
- options?: never;
2427
- head?: never;
2428
- patch?: never;
2429
- trace?: never;
2430
- };
2431
2383
  "/api/v1/sys/user/page": {
2432
2384
  parameters: {
2433
2385
  query?: never;
@@ -4203,34 +4155,6 @@ export interface components {
4203
4155
  /** @description 当前页数据 */
4204
4156
  items?: components["schemas"]["SysRole"][];
4205
4157
  };
4206
- /**
4207
- * @description 分页结果模型——所有分页查询的统一返回。ORM 中立(放 Core),
4208
- * SqlSugar 侧的 `ToPagedListAsync` 扩展负责把查询物化成它。
4209
- */
4210
- PagedListOfSysTenant: {
4211
- /**
4212
- * Format: int32
4213
- * @description 当前页码(从 1 起)
4214
- */
4215
- current?: number | string;
4216
- /**
4217
- * Format: int32
4218
- * @description 每页条数
4219
- */
4220
- size?: number | string;
4221
- /**
4222
- * Format: int32
4223
- * @description 总记录数
4224
- */
4225
- total?: number | string;
4226
- /**
4227
- * Format: int32
4228
- * @description 总页数(向上取整;Size 为 0 时为 0)
4229
- */
4230
- pages?: number | string;
4231
- /** @description 当前页数据 */
4232
- items?: components["schemas"]["SysTenant"][];
4233
- };
4234
4158
  /**
4235
4159
  * @description 分页结果模型——所有分页查询的统一返回。ORM 中立(放 Core),
4236
4160
  * SqlSugar 侧的 `ToPagedListAsync` 扩展负责把查询物化成它。
@@ -5509,27 +5433,6 @@ export interface components {
5509
5433
  message?: null | string;
5510
5434
  data?: null | components["schemas"]["PagedListOfSysRole"];
5511
5435
  };
5512
- /**
5513
- * @description 统一返回模型——所有接口的响应外壳。
5514
- * 字段分工:Code 给机器判断;MsgKey+Args 给前端 i18n 渲染;
5515
- * Message 是后端兜底文案(非浏览器调用方降级用,浏览器端应忽略它);Data 为业务载荷。<example>
5516
- * 成功:`{ "code": 0, "msgKey": "common.success", "data": {...} }`<br />
5517
- * 失败:`{ "code": 40001, "msgKey": "error.auth.passwordWrong", "args": {}, "message": "...", "data": null }`</example>
5518
- */
5519
- ResultOfPagedListOfSysTenant: {
5520
- /**
5521
- * Format: int32
5522
- * @description 业务码,0 为成功,其余见 ErrorCode 分段
5523
- */
5524
- code?: number | string;
5525
- /** @description 语义键(前端 i18n 语言包的键),如 `error.auth.passwordWrong` */
5526
- msgKey?: null | string;
5527
- /** @description 文案插值参数,与语言包模板占位符对应;无参数时为 null(序列化省略) */
5528
- args?: null | Record<string, never>;
5529
- /** @description 兜底文案(仅降级用途,浏览器端一律走 MsgKey 翻译) */
5530
- message?: null | string;
5531
- data?: null | components["schemas"]["PagedListOfSysTenant"];
5532
- };
5533
5436
  /**
5534
5437
  * @description 统一返回模型——所有接口的响应外壳。
5535
5438
  * 字段分工:Code 给机器判断;MsgKey+Args 给前端 i18n 渲染;
@@ -5804,27 +5707,6 @@ export interface components {
5804
5707
  message?: null | string;
5805
5708
  data?: null | components["schemas"]["SysRoleDataScope"];
5806
5709
  };
5807
- /**
5808
- * @description 统一返回模型——所有接口的响应外壳。
5809
- * 字段分工:Code 给机器判断;MsgKey+Args 给前端 i18n 渲染;
5810
- * Message 是后端兜底文案(非浏览器调用方降级用,浏览器端应忽略它);Data 为业务载荷。<example>
5811
- * 成功:`{ "code": 0, "msgKey": "common.success", "data": {...} }`<br />
5812
- * 失败:`{ "code": 40001, "msgKey": "error.auth.passwordWrong", "args": {}, "message": "...", "data": null }`</example>
5813
- */
5814
- ResultOfSysTenant: {
5815
- /**
5816
- * Format: int32
5817
- * @description 业务码,0 为成功,其余见 ErrorCode 分段
5818
- */
5819
- code?: number | string;
5820
- /** @description 语义键(前端 i18n 语言包的键),如 `error.auth.passwordWrong` */
5821
- msgKey?: null | string;
5822
- /** @description 文案插值参数,与语言包模板占位符对应;无参数时为 null(序列化省略) */
5823
- args?: null | Record<string, never>;
5824
- /** @description 兜底文案(仅降级用途,浏览器端一律走 MsgKey 翻译) */
5825
- message?: null | string;
5826
- data?: null | components["schemas"]["SysTenant"];
5827
- };
5828
5710
  /**
5829
5711
  * @description 统一返回模型——所有接口的响应外壳。
5830
5712
  * 字段分工:Code 给机器判断;MsgKey+Args 给前端 i18n 渲染;
@@ -6273,14 +6155,6 @@ export interface components {
6273
6155
  operatorName?: null | string;
6274
6156
  ip?: null | string;
6275
6157
  userAgent?: null | string;
6276
- /**
6277
- * Format: int64
6278
- * @description 所属租户 Id。插入时由审计 AOP 从租户上下文自动填充。为 null <b>不是</b>"不受租户隔离约束"——
6279
- * 硬化后的过滤器谓词显式要求 `currentUser.TenantId != null`,null 行对任何调用者(含无租户上下文的
6280
- * 系统调用者)都恒不可见。null 只表示"还没回填":老库升级补列后、`TenantBackfillHook` 尚未处理过的
6281
- * 存量行,稳态下不该有活的这类行。
6282
- */
6283
- tenantId?: null | number | string;
6284
6158
  /** @description 软删除标记;`true` 即被全局查询过滤器排除,可经 `RestoreAsync` 恢复。 */
6285
6159
  isDelete?: boolean;
6286
6160
  /**
@@ -6331,14 +6205,6 @@ export interface components {
6331
6205
  sizeBytes?: number | string;
6332
6206
  /** @description 内容 SHA-256(hex,小写);分片上传落库,供「秒传」按内容去重。单文件上传暂不计算(留 null)。 */
6333
6207
  hash?: null | string;
6334
- /**
6335
- * Format: int64
6336
- * @description 所属租户 Id。插入时由审计 AOP 从租户上下文自动填充。为 null <b>不是</b>"不受租户隔离约束"——
6337
- * 硬化后的过滤器谓词显式要求 `currentUser.TenantId != null`,null 行对任何调用者(含无租户上下文的
6338
- * 系统调用者)都恒不可见。null 只表示"还没回填":老库升级补列后、`TenantBackfillHook` 尚未处理过的
6339
- * 存量行,稳态下不该有活的这类行。
6340
- */
6341
- tenantId?: null | number | string;
6342
6208
  /** @description 软删除标记;`true` 即被全局查询过滤器排除,可经 `RestoreAsync` 恢复。 */
6343
6209
  isDelete?: boolean;
6344
6210
  /**
@@ -6582,14 +6448,6 @@ export interface components {
6582
6448
  userAgent?: null | string;
6583
6449
  /** @description 用户姓名——非持久化,分页时按 long? SysLoginLog.UserId 批量回填(失败/账号不存在的行为 null,前端回落账号)。 */
6584
6450
  name?: null | string;
6585
- /**
6586
- * Format: int64
6587
- * @description 所属租户 Id。插入时由审计 AOP 从租户上下文自动填充。为 null <b>不是</b>"不受租户隔离约束"——
6588
- * 硬化后的过滤器谓词显式要求 `currentUser.TenantId != null`,null 行对任何调用者(含无租户上下文的
6589
- * 系统调用者)都恒不可见。null 只表示"还没回填":老库升级补列后、`TenantBackfillHook` 尚未处理过的
6590
- * 存量行,稳态下不该有活的这类行。
6591
- */
6592
- tenantId?: null | number | string;
6593
6451
  /** @description 软删除标记;`true` 即被全局查询过滤器排除,可经 `RestoreAsync` 恢复。 */
6594
6452
  isDelete?: boolean;
6595
6453
  /**
@@ -6685,14 +6543,6 @@ export interface components {
6685
6543
  * 可空:旧行 NULL,即"没有动作",不需要迁移。
6686
6544
  */
6687
6545
  actionsJson?: null | string;
6688
- /**
6689
- * Format: int64
6690
- * @description 所属租户 Id。插入时由审计 AOP 从租户上下文自动填充。为 null <b>不是</b>"不受租户隔离约束"——
6691
- * 硬化后的过滤器谓词显式要求 `currentUser.TenantId != null`,null 行对任何调用者(含无租户上下文的
6692
- * 系统调用者)都恒不可见。null 只表示"还没回填":老库升级补列后、`TenantBackfillHook` 尚未处理过的
6693
- * 存量行,稳态下不该有活的这类行。
6694
- */
6695
- tenantId?: null | number | string;
6696
6546
  /** @description 软删除标记;`true` 即被全局查询过滤器排除,可经 `RestoreAsync` 恢复。 */
6697
6547
  isDelete?: boolean;
6698
6548
  /**
@@ -6760,14 +6610,6 @@ export interface components {
6760
6610
  operatorName?: null | string;
6761
6611
  ip?: null | string;
6762
6612
  userAgent?: null | string;
6763
- /**
6764
- * Format: int64
6765
- * @description 所属租户 Id。插入时由审计 AOP 从租户上下文自动填充。为 null <b>不是</b>"不受租户隔离约束"——
6766
- * 硬化后的过滤器谓词显式要求 `currentUser.TenantId != null`,null 行对任何调用者(含无租户上下文的
6767
- * 系统调用者)都恒不可见。null 只表示"还没回填":老库升级补列后、`TenantBackfillHook` 尚未处理过的
6768
- * 存量行,稳态下不该有活的这类行。
6769
- */
6770
- tenantId?: null | number | string;
6771
6613
  /** @description 软删除标记;`true` 即被全局查询过滤器排除,可经 `RestoreAsync` 恢复。 */
6772
6614
  isDelete?: boolean;
6773
6615
  /**
@@ -6814,14 +6656,6 @@ export interface components {
6814
6656
  /** Format: int32 */
6815
6657
  sort?: number | string;
6816
6658
  enabled?: boolean;
6817
- /**
6818
- * Format: int64
6819
- * @description 所属租户 Id。插入时由审计 AOP 从租户上下文自动填充。为 null <b>不是</b>"不受租户隔离约束"——
6820
- * 硬化后的过滤器谓词显式要求 `currentUser.TenantId != null`,null 行对任何调用者(含无租户上下文的
6821
- * 系统调用者)都恒不可见。null 只表示"还没回填":老库升级补列后、`TenantBackfillHook` 尚未处理过的
6822
- * 存量行,稳态下不该有活的这类行。
6823
- */
6824
- tenantId?: null | number | string;
6825
6659
  /** @description 软删除标记;`true` 即被全局查询过滤器排除,可经 `RestoreAsync` 恢复。 */
6826
6660
  isDelete?: boolean;
6827
6661
  /**
@@ -6862,14 +6696,6 @@ export interface components {
6862
6696
  /** Format: int32 */
6863
6697
  sort?: number | string;
6864
6698
  enabled?: boolean;
6865
- /**
6866
- * Format: int64
6867
- * @description 所属租户 Id。插入时由审计 AOP 从租户上下文自动填充。为 null <b>不是</b>"不受租户隔离约束"——
6868
- * 硬化后的过滤器谓词显式要求 `currentUser.TenantId != null`,null 行对任何调用者(含无租户上下文的
6869
- * 系统调用者)都恒不可见。null 只表示"还没回填":老库升级补列后、`TenantBackfillHook` 尚未处理过的
6870
- * 存量行,稳态下不该有活的这类行。
6871
- */
6872
- tenantId?: null | number | string;
6873
6699
  /** @description 软删除标记;`true` 即被全局查询过滤器排除,可经 `RestoreAsync` 恢复。 */
6874
6700
  isDelete?: boolean;
6875
6701
  /**
@@ -6918,14 +6744,6 @@ export interface components {
6918
6744
  * ADD 无 DEFAULT 的 NOT NULL 列(同 bool SysUser.ForceTotp 的成法)。
6919
6745
  */
6920
6746
  isDelegatable?: null | boolean;
6921
- /**
6922
- * Format: int64
6923
- * @description 所属租户 Id。插入时由审计 AOP 从租户上下文自动填充。为 null <b>不是</b>"不受租户隔离约束"——
6924
- * 硬化后的过滤器谓词显式要求 `currentUser.TenantId != null`,null 行对任何调用者(含无租户上下文的
6925
- * 系统调用者)都恒不可见。null 只表示"还没回填":老库升级补列后、`TenantBackfillHook` 尚未处理过的
6926
- * 存量行,稳态下不该有活的这类行。
6927
- */
6928
- tenantId?: null | number | string;
6929
6747
  /** @description 软删除标记;`true` 即被全局查询过滤器排除,可经 `RestoreAsync` 恢复。 */
6930
6748
  isDelete?: boolean;
6931
6749
  /**
@@ -6964,59 +6782,6 @@ export interface components {
6964
6782
  scopeType?: components["schemas"]["DataScopeType"];
6965
6783
  /** @description 自定义机构 Id 列表(逗号分隔),仅 DataScopeType.Custom 时使用。 */
6966
6784
  customOrgIds?: string;
6967
- /**
6968
- * Format: int64
6969
- * @description 所属租户 Id。插入时由审计 AOP 从租户上下文自动填充。为 null <b>不是</b>"不受租户隔离约束"——
6970
- * 硬化后的过滤器谓词显式要求 `currentUser.TenantId != null`,null 行对任何调用者(含无租户上下文的
6971
- * 系统调用者)都恒不可见。null 只表示"还没回填":老库升级补列后、`TenantBackfillHook` 尚未处理过的
6972
- * 存量行,稳态下不该有活的这类行。
6973
- */
6974
- tenantId?: null | number | string;
6975
- /** @description 软删除标记;`true` 即被全局查询过滤器排除,可经 `RestoreAsync` 恢复。 */
6976
- isDelete?: boolean;
6977
- /**
6978
- * Format: date-time
6979
- * @description 创建时间;插入时由审计 AOP 自动填充。
6980
- */
6981
- createTime?: string;
6982
- /**
6983
- * Format: int64
6984
- * @description 创建人用户 Id;插入时由审计 AOP 从当前登录用户填充,系统写入为 null。
6985
- */
6986
- createUserId?: null | number | string;
6987
- /**
6988
- * Format: date-time
6989
- * @description 最后更新时间;每次更新由审计 AOP 自动刷新。
6990
- */
6991
- updateTime?: null | string;
6992
- /**
6993
- * Format: int64
6994
- * @description 最后更新人用户 Id;每次更新由审计 AOP 从当前登录用户填充。
6995
- */
6996
- updateUserId?: null | number | string;
6997
- /**
6998
- * Format: int64
6999
- * @description 主键(雪花 ID;种子数据可用固定小整数)。插入时为 0 则由审计 AOP 自动生成。
7000
- */
7001
- id?: number | string;
7002
- };
7003
- /**
7004
- * @description 租户表——隔离边界的根,自己不实现 ITenantScoped(不自我引用)。新表,首次建表可直接 NOT NULL,
7005
- * 不受"已有表加列必须可空"约束。
7006
- */
7007
- SysTenant: {
7008
- code?: string;
7009
- name?: string;
7010
- contactName?: null | string;
7011
- contactPhone?: null | string;
7012
- /** Format: date-time */
7013
- expireTime?: null | string;
7014
- /** @description 二期预留,一期恒为 Shared;TenantService 对 Standalone 写入一律拒绝。 */
7015
- isolationMode?: components["schemas"]["TenantIsolationMode"];
7016
- /** @description 二期预留:对应 SqlSugar ConfigId,只路由消费方业务库连接,不影响内核自身数据。一期恒为空。 */
7017
- connectionConfigId?: null | string;
7018
- enabled?: boolean;
7019
- remark?: null | string;
7020
6785
  /** @description 软删除标记;`true` 即被全局查询过滤器排除,可经 `RestoreAsync` 恢复。 */
7021
6786
  isDelete?: boolean;
7022
6787
  /**
@@ -7045,42 +6810,6 @@ export interface components {
7045
6810
  */
7046
6811
  id?: number | string;
7047
6812
  };
7048
- /**
7049
- * @description 租户创建入参:在编辑字段基础上,额外携带该租户第一个管理员账号的凭据——
7050
- * 新租户必须带着能登录的管理员一起出生,否则平台管理员建完之后没人能进去继续配置。
7051
- */
7052
- TenantCreateInput: {
7053
- adminAccount?: string;
7054
- adminPassword?: string;
7055
- code?: string;
7056
- name?: string;
7057
- contactName?: null | string;
7058
- contactPhone?: null | string;
7059
- /** Format: date-time */
7060
- expireTime?: null | string;
7061
- isolationMode?: components["schemas"]["TenantIsolationMode"];
7062
- enabled?: boolean;
7063
- remark?: null | string;
7064
- };
7065
- /** @description 租户编辑入参(更新用;不含初始管理员字段——那是创建独有的一次性动作)。 */
7066
- TenantInput: {
7067
- code?: string;
7068
- name?: string;
7069
- contactName?: null | string;
7070
- contactPhone?: null | string;
7071
- /** Format: date-time */
7072
- expireTime?: null | string;
7073
- isolationMode?: components["schemas"]["TenantIsolationMode"];
7074
- enabled?: boolean;
7075
- remark?: null | string;
7076
- };
7077
- /**
7078
- * @description 租户的数据隔离模式。一期只支持 TenantIsolationMode.Shared;TenantIsolationMode.Standalone 是二期"混合模式"的预留值,
7079
- * 一期 `TenantService` 会拒绝写入(见 `ErrorCode.TenantIsolationModeNotSupported`)。
7080
- * 二期即便某租户选了 Standalone,内核自身的机构/用户/角色/菜单授权数据仍然留在共享主库,只有消费方
7081
- * 自己的业务表会路由到独立连接串——对应 SqlSugar 官方"基础信息库 + 业务库"的划分,见设计文档 §8。
7082
- */
7083
- TenantIsolationMode: number;
7084
6813
  /** @description 绑定完成入参:挑战 + 当前 Authenticator 动态口令。 */
7085
6814
  TotpBindCompleteInput: {
7086
6815
  /** @description string TotpBindStartOutput.BindChallengeId */
@@ -7249,10 +6978,6 @@ export interface components {
7249
6978
  orgName?: null | string;
7250
6979
  /** @description 职位名称(已删/未分配则为 null) */
7251
6980
  positionName?: null | string;
7252
- /** Format: int64 */
7253
- tenantId?: null | number | string;
7254
- /** @description 所属租户名称(已删则为 null)。前端只读展示,不参与任何切换交互(spec §6.3)。 */
7255
- tenantName?: null | string;
7256
6981
  nickname?: null | string;
7257
6982
  phone?: null | string;
7258
6983
  email?: null | string;
@@ -11387,140 +11112,6 @@ export interface operations {
11387
11112
  };
11388
11113
  };
11389
11114
  };
11390
- Tenant_Page: {
11391
- parameters: {
11392
- query?: {
11393
- Name?: string;
11394
- Current?: number | string;
11395
- Size?: number | string;
11396
- SortField?: string;
11397
- SortOrder?: string;
11398
- };
11399
- header?: never;
11400
- path?: never;
11401
- cookie?: never;
11402
- };
11403
- requestBody?: never;
11404
- responses: {
11405
- /** @description OK */
11406
- 200: {
11407
- headers: {
11408
- [name: string]: unknown;
11409
- };
11410
- content: {
11411
- "text/plain": components["schemas"]["ResultOfPagedListOfSysTenant"];
11412
- "application/json": components["schemas"]["ResultOfPagedListOfSysTenant"];
11413
- "text/json": components["schemas"]["ResultOfPagedListOfSysTenant"];
11414
- };
11415
- };
11416
- };
11417
- };
11418
- Tenant_Get: {
11419
- parameters: {
11420
- query?: never;
11421
- header?: never;
11422
- path: {
11423
- id: number | string;
11424
- };
11425
- cookie?: never;
11426
- };
11427
- requestBody?: never;
11428
- responses: {
11429
- /** @description OK */
11430
- 200: {
11431
- headers: {
11432
- [name: string]: unknown;
11433
- };
11434
- content: {
11435
- "text/plain": components["schemas"]["ResultOfSysTenant"];
11436
- "application/json": components["schemas"]["ResultOfSysTenant"];
11437
- "text/json": components["schemas"]["ResultOfSysTenant"];
11438
- };
11439
- };
11440
- };
11441
- };
11442
- Tenant_Update: {
11443
- parameters: {
11444
- query?: never;
11445
- header?: never;
11446
- path: {
11447
- id: number | string;
11448
- };
11449
- cookie?: never;
11450
- };
11451
- requestBody: {
11452
- content: {
11453
- "application/json": components["schemas"]["TenantInput"];
11454
- "text/json": components["schemas"]["TenantInput"];
11455
- "application/*+json": components["schemas"]["TenantInput"];
11456
- };
11457
- };
11458
- responses: {
11459
- /** @description OK */
11460
- 200: {
11461
- headers: {
11462
- [name: string]: unknown;
11463
- };
11464
- content: {
11465
- "text/plain": components["schemas"]["ResultOfboolean"];
11466
- "application/json": components["schemas"]["ResultOfboolean"];
11467
- "text/json": components["schemas"]["ResultOfboolean"];
11468
- };
11469
- };
11470
- };
11471
- };
11472
- Tenant_Delete: {
11473
- parameters: {
11474
- query?: never;
11475
- header?: never;
11476
- path: {
11477
- id: number | string;
11478
- };
11479
- cookie?: never;
11480
- };
11481
- requestBody?: never;
11482
- responses: {
11483
- /** @description OK */
11484
- 200: {
11485
- headers: {
11486
- [name: string]: unknown;
11487
- };
11488
- content: {
11489
- "text/plain": components["schemas"]["ResultOfboolean"];
11490
- "application/json": components["schemas"]["ResultOfboolean"];
11491
- "text/json": components["schemas"]["ResultOfboolean"];
11492
- };
11493
- };
11494
- };
11495
- };
11496
- Tenant_Add: {
11497
- parameters: {
11498
- query?: never;
11499
- header?: never;
11500
- path?: never;
11501
- cookie?: never;
11502
- };
11503
- requestBody: {
11504
- content: {
11505
- "application/json": components["schemas"]["TenantCreateInput"];
11506
- "text/json": components["schemas"]["TenantCreateInput"];
11507
- "application/*+json": components["schemas"]["TenantCreateInput"];
11508
- };
11509
- };
11510
- responses: {
11511
- /** @description OK */
11512
- 200: {
11513
- headers: {
11514
- [name: string]: unknown;
11515
- };
11516
- content: {
11517
- "text/plain": components["schemas"]["ResultOflong"];
11518
- "application/json": components["schemas"]["ResultOflong"];
11519
- "text/json": components["schemas"]["ResultOflong"];
11520
- };
11521
- };
11522
- };
11523
- };
11524
11115
  User_Page: {
11525
11116
  parameters: {
11526
11117
  query?: {