smart-admin-web 10.12.2 → 10.13.0
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/api/index.d.ts +16 -1
- package/dist/api/index.js +48 -33
- package/dist/api/index.js.map +1 -1
- package/dist/api/schema.d.ts +409 -0
- package/dist/assets/icons/ph-subset.json.js +1 -1
- package/dist/composables/useModule.js +35 -27
- package/dist/composables/useModule.js.map +1 -1
- package/dist/index.js +250 -249
- package/dist/layouts/AppHeader.vue.js +1 -1
- package/dist/layouts/AppHeader2.vue.js +306 -292
- package/dist/layouts/AppHeader2.vue.js.map +1 -1
- package/dist/lib/runtime.js +1 -1
- package/dist/locales/en-US.d.ts +37 -0
- package/dist/locales/en-US.js +37 -0
- package/dist/locales/en-US.js.map +1 -1
- package/dist/locales/zh-CN.d.ts +37 -0
- package/dist/locales/zh-CN.js +37 -0
- package/dist/locales/zh-CN.js.map +1 -1
- package/dist/router/viewRegistry.js +1 -1
- package/dist/router/viewRegistry.js.map +1 -1
- package/dist/stores/user.d.ts +6 -1
- package/dist/stores/user.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/api.d.ts +33 -0
- package/dist/types/api.js.map +1 -1
- package/dist/views/system/tenant/index.vue.d.ts +3 -0
- package/dist/views/system/tenant/index.vue.js +8 -0
- package/dist/views/system/tenant/index.vue.js.map +1 -0
- package/dist/views/system/tenant/index2.vue.js +366 -0
- package/dist/views/system/tenant/index2.vue.js.map +1 -0
- package/package.json +1 -1
package/dist/api/schema.d.ts
CHANGED
|
@@ -2380,6 +2380,54 @@ 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
|
+
};
|
|
2383
2431
|
"/api/v1/sys/user/page": {
|
|
2384
2432
|
parameters: {
|
|
2385
2433
|
query?: never;
|
|
@@ -4155,6 +4203,34 @@ export interface components {
|
|
|
4155
4203
|
/** @description 当前页数据 */
|
|
4156
4204
|
items?: components["schemas"]["SysRole"][];
|
|
4157
4205
|
};
|
|
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
|
+
};
|
|
4158
4234
|
/**
|
|
4159
4235
|
* @description 分页结果模型——所有分页查询的统一返回。ORM 中立(放 Core),
|
|
4160
4236
|
* SqlSugar 侧的 `ToPagedListAsync` 扩展负责把查询物化成它。
|
|
@@ -5433,6 +5509,27 @@ export interface components {
|
|
|
5433
5509
|
message?: null | string;
|
|
5434
5510
|
data?: null | components["schemas"]["PagedListOfSysRole"];
|
|
5435
5511
|
};
|
|
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
|
+
};
|
|
5436
5533
|
/**
|
|
5437
5534
|
* @description 统一返回模型——所有接口的响应外壳。
|
|
5438
5535
|
* 字段分工:Code 给机器判断;MsgKey+Args 给前端 i18n 渲染;
|
|
@@ -5707,6 +5804,27 @@ export interface components {
|
|
|
5707
5804
|
message?: null | string;
|
|
5708
5805
|
data?: null | components["schemas"]["SysRoleDataScope"];
|
|
5709
5806
|
};
|
|
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
|
+
};
|
|
5710
5828
|
/**
|
|
5711
5829
|
* @description 统一返回模型——所有接口的响应外壳。
|
|
5712
5830
|
* 字段分工:Code 给机器判断;MsgKey+Args 给前端 i18n 渲染;
|
|
@@ -6155,6 +6273,14 @@ export interface components {
|
|
|
6155
6273
|
operatorName?: null | string;
|
|
6156
6274
|
ip?: null | string;
|
|
6157
6275
|
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;
|
|
6158
6284
|
/** @description 软删除标记;`true` 即被全局查询过滤器排除,可经 `RestoreAsync` 恢复。 */
|
|
6159
6285
|
isDelete?: boolean;
|
|
6160
6286
|
/**
|
|
@@ -6205,6 +6331,14 @@ export interface components {
|
|
|
6205
6331
|
sizeBytes?: number | string;
|
|
6206
6332
|
/** @description 内容 SHA-256(hex,小写);分片上传落库,供「秒传」按内容去重。单文件上传暂不计算(留 null)。 */
|
|
6207
6333
|
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;
|
|
6208
6342
|
/** @description 软删除标记;`true` 即被全局查询过滤器排除,可经 `RestoreAsync` 恢复。 */
|
|
6209
6343
|
isDelete?: boolean;
|
|
6210
6344
|
/**
|
|
@@ -6448,6 +6582,14 @@ export interface components {
|
|
|
6448
6582
|
userAgent?: null | string;
|
|
6449
6583
|
/** @description 用户姓名——非持久化,分页时按 long? SysLoginLog.UserId 批量回填(失败/账号不存在的行为 null,前端回落账号)。 */
|
|
6450
6584
|
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;
|
|
6451
6593
|
/** @description 软删除标记;`true` 即被全局查询过滤器排除,可经 `RestoreAsync` 恢复。 */
|
|
6452
6594
|
isDelete?: boolean;
|
|
6453
6595
|
/**
|
|
@@ -6543,6 +6685,14 @@ export interface components {
|
|
|
6543
6685
|
* 可空:旧行 NULL,即"没有动作",不需要迁移。
|
|
6544
6686
|
*/
|
|
6545
6687
|
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;
|
|
6546
6696
|
/** @description 软删除标记;`true` 即被全局查询过滤器排除,可经 `RestoreAsync` 恢复。 */
|
|
6547
6697
|
isDelete?: boolean;
|
|
6548
6698
|
/**
|
|
@@ -6610,6 +6760,14 @@ export interface components {
|
|
|
6610
6760
|
operatorName?: null | string;
|
|
6611
6761
|
ip?: null | string;
|
|
6612
6762
|
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;
|
|
6613
6771
|
/** @description 软删除标记;`true` 即被全局查询过滤器排除,可经 `RestoreAsync` 恢复。 */
|
|
6614
6772
|
isDelete?: boolean;
|
|
6615
6773
|
/**
|
|
@@ -6656,6 +6814,14 @@ export interface components {
|
|
|
6656
6814
|
/** Format: int32 */
|
|
6657
6815
|
sort?: number | string;
|
|
6658
6816
|
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;
|
|
6659
6825
|
/** @description 软删除标记;`true` 即被全局查询过滤器排除,可经 `RestoreAsync` 恢复。 */
|
|
6660
6826
|
isDelete?: boolean;
|
|
6661
6827
|
/**
|
|
@@ -6696,6 +6862,14 @@ export interface components {
|
|
|
6696
6862
|
/** Format: int32 */
|
|
6697
6863
|
sort?: number | string;
|
|
6698
6864
|
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;
|
|
6699
6873
|
/** @description 软删除标记;`true` 即被全局查询过滤器排除,可经 `RestoreAsync` 恢复。 */
|
|
6700
6874
|
isDelete?: boolean;
|
|
6701
6875
|
/**
|
|
@@ -6744,6 +6918,14 @@ export interface components {
|
|
|
6744
6918
|
* ADD 无 DEFAULT 的 NOT NULL 列(同 bool SysUser.ForceTotp 的成法)。
|
|
6745
6919
|
*/
|
|
6746
6920
|
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;
|
|
6747
6929
|
/** @description 软删除标记;`true` 即被全局查询过滤器排除,可经 `RestoreAsync` 恢复。 */
|
|
6748
6930
|
isDelete?: boolean;
|
|
6749
6931
|
/**
|
|
@@ -6782,6 +6964,59 @@ export interface components {
|
|
|
6782
6964
|
scopeType?: components["schemas"]["DataScopeType"];
|
|
6783
6965
|
/** @description 自定义机构 Id 列表(逗号分隔),仅 DataScopeType.Custom 时使用。 */
|
|
6784
6966
|
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;
|
|
6785
7020
|
/** @description 软删除标记;`true` 即被全局查询过滤器排除,可经 `RestoreAsync` 恢复。 */
|
|
6786
7021
|
isDelete?: boolean;
|
|
6787
7022
|
/**
|
|
@@ -6810,6 +7045,42 @@ export interface components {
|
|
|
6810
7045
|
*/
|
|
6811
7046
|
id?: number | string;
|
|
6812
7047
|
};
|
|
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;
|
|
6813
7084
|
/** @description 绑定完成入参:挑战 + 当前 Authenticator 动态口令。 */
|
|
6814
7085
|
TotpBindCompleteInput: {
|
|
6815
7086
|
/** @description string TotpBindStartOutput.BindChallengeId */
|
|
@@ -6978,6 +7249,10 @@ export interface components {
|
|
|
6978
7249
|
orgName?: null | string;
|
|
6979
7250
|
/** @description 职位名称(已删/未分配则为 null) */
|
|
6980
7251
|
positionName?: null | string;
|
|
7252
|
+
/** Format: int64 */
|
|
7253
|
+
tenantId?: null | number | string;
|
|
7254
|
+
/** @description 所属租户名称(已删则为 null)。前端只读展示,不参与任何切换交互(spec §6.3)。 */
|
|
7255
|
+
tenantName?: null | string;
|
|
6981
7256
|
nickname?: null | string;
|
|
6982
7257
|
phone?: null | string;
|
|
6983
7258
|
email?: null | string;
|
|
@@ -11112,6 +11387,140 @@ export interface operations {
|
|
|
11112
11387
|
};
|
|
11113
11388
|
};
|
|
11114
11389
|
};
|
|
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
|
+
};
|
|
11115
11524
|
User_Page: {
|
|
11116
11525
|
parameters: {
|
|
11117
11526
|
query?: {
|