refactor(tenant): refine menu scope boundaries and document plan/tenant menu design
This commit is contained in:
@@ -16,6 +16,7 @@ export * from "./log";
|
||||
export * from "./statistics";
|
||||
export * from "./notice";
|
||||
export * from "./tenant";
|
||||
export * from "./tenant-plan";
|
||||
|
||||
// 其他模块
|
||||
export * from "./ai";
|
||||
|
||||
@@ -34,6 +34,8 @@ export interface MenuItem {
|
||||
type?: string;
|
||||
/** 菜单是否可见(1:显示;0:隐藏) */
|
||||
visible?: number;
|
||||
/** 菜单范围(1=平台 2=业务) */
|
||||
scope?: number;
|
||||
}
|
||||
|
||||
/** 菜单表单对象 */
|
||||
@@ -62,6 +64,8 @@ export interface MenuForm {
|
||||
sort?: number;
|
||||
/** 菜单是否可见 */
|
||||
visible?: number;
|
||||
/** 菜单范围(1=平台 2=业务) */
|
||||
scope?: number;
|
||||
/** 按钮权限标识 */
|
||||
perm?: string;
|
||||
/** 路由参数(用于表单编辑 params) */
|
||||
|
||||
35
src/types/api/tenant-plan.ts
Normal file
35
src/types/api/tenant-plan.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
/**
|
||||
* Tenant Plan 租户套餐类型定义
|
||||
*/
|
||||
|
||||
import type { BaseQueryParams } from "./common";
|
||||
|
||||
/** 租户套餐分页查询参数 */
|
||||
export interface TenantPlanQueryParams extends BaseQueryParams {
|
||||
/** 关键字(套餐名称/套餐编码) */
|
||||
keywords?: string;
|
||||
/** 状态(1-启用 0-停用) */
|
||||
status?: number;
|
||||
}
|
||||
|
||||
/** 租户套餐分页对象 */
|
||||
export interface TenantPlanItem {
|
||||
id?: number;
|
||||
name?: string;
|
||||
code?: string;
|
||||
status?: number;
|
||||
sort?: number;
|
||||
remark?: string;
|
||||
createTime?: string;
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/** 租户套餐表单对象 */
|
||||
export interface TenantPlanForm {
|
||||
id?: number;
|
||||
name?: string;
|
||||
code?: string;
|
||||
status?: number;
|
||||
sort?: number;
|
||||
remark?: string;
|
||||
}
|
||||
@@ -32,6 +32,7 @@ export interface TenantItem {
|
||||
contactEmail?: string;
|
||||
domain?: string;
|
||||
logo?: string;
|
||||
planId?: number;
|
||||
status?: number;
|
||||
remark?: string;
|
||||
expireTime?: string;
|
||||
@@ -49,6 +50,7 @@ export interface TenantForm {
|
||||
contactEmail?: string;
|
||||
domain?: string;
|
||||
logo?: string;
|
||||
planId?: number;
|
||||
status?: number;
|
||||
remark?: string;
|
||||
expireTime?: string;
|
||||
@@ -63,6 +65,7 @@ export interface TenantCreateForm {
|
||||
contactEmail?: string;
|
||||
domain?: string;
|
||||
logo?: string;
|
||||
planId?: number;
|
||||
remark?: string;
|
||||
expireTime?: string;
|
||||
adminUsername?: string;
|
||||
|
||||
@@ -14,8 +14,8 @@ export interface UserInfo {
|
||||
nickname?: string;
|
||||
/** 头像URL */
|
||||
avatar?: string;
|
||||
/** 租户身份标识(PLATFORM/TENANT) */
|
||||
tenantScope?: string;
|
||||
/** 租户切换权限(true 可切换租户) */
|
||||
canSwitchTenant?: boolean;
|
||||
/** 角色集合 */
|
||||
roles: string[];
|
||||
/** 权限集合 */
|
||||
@@ -66,8 +66,6 @@ export interface UserForm {
|
||||
id?: string;
|
||||
/** 用户头像 */
|
||||
avatar?: string;
|
||||
/** 租户身份标识(PLATFORM/TENANT) */
|
||||
tenantScope?: string;
|
||||
/** 部门ID */
|
||||
deptId?: string;
|
||||
/** 用户邮箱 */
|
||||
|
||||
Reference in New Issue
Block a user