feat: 添加权限管理
This commit is contained in:
40
types/i18n.d.ts
vendored
40
types/i18n.d.ts
vendored
@@ -1,40 +0,0 @@
|
||||
/** 语言信息类型 */
|
||||
export type LanguageInfo = {
|
||||
/** 语言ID */
|
||||
id: string;
|
||||
/** 语言代码 */
|
||||
code: string;
|
||||
/** 语言名称 */
|
||||
name: string;
|
||||
/** 创建时间 */
|
||||
create_time: string;
|
||||
/** 更新时间 */
|
||||
update_time: string;
|
||||
/** 创建人 */
|
||||
create_by: string;
|
||||
/** 更新人 */
|
||||
update_by: string;
|
||||
};
|
||||
/** 翻译信息类型 */
|
||||
export type TranslationInfo = {
|
||||
/** 翻译记录ID */
|
||||
id: string;
|
||||
/** 键值 */
|
||||
key: string;
|
||||
/** 翻译内容 */
|
||||
translation: string;
|
||||
/** 语言ID */
|
||||
locale_id: string;
|
||||
/** 语言代码 */
|
||||
locale_code: string;
|
||||
/** 语言名称 */
|
||||
locale_name: string;
|
||||
/** 创建时间 */
|
||||
create_time: string;
|
||||
/** 修改时间 */
|
||||
update_time: string;
|
||||
/** 创建人 */
|
||||
create_by: string;
|
||||
/** 修改人 */
|
||||
update_by: string;
|
||||
};
|
||||
58
types/system.d.ts
vendored
58
types/system.d.ts
vendored
@@ -51,7 +51,7 @@ export type DepartmentInfo = {
|
||||
/**部门名称 */
|
||||
name: string;
|
||||
/**父部门ID */
|
||||
parentId: string;
|
||||
parent_id: string;
|
||||
/**排序 */
|
||||
sort: number;
|
||||
/**部门电话 */
|
||||
@@ -63,3 +63,59 @@ export type DepartmentInfo = {
|
||||
/**备注信息 */
|
||||
remark: string;
|
||||
};
|
||||
|
||||
/**权限信息类型 */
|
||||
export type PermissionInfo = {
|
||||
/** 菜单ID */
|
||||
id: string;
|
||||
/** 创建人 */
|
||||
create_by: string;
|
||||
/** 创建时间 */
|
||||
create_time: string;
|
||||
/** 更新人 */
|
||||
update_by: string;
|
||||
/** 更新时间 */
|
||||
update_time: string;
|
||||
/** 菜单类型(0代表菜单、1代表按钮) */
|
||||
menu_type: number;
|
||||
/** 父菜单ID */
|
||||
parent_id: string;
|
||||
/** 菜单标题 */
|
||||
title: string;
|
||||
/** 菜单名称(用于路由名称) */
|
||||
name: string;
|
||||
/** 菜单路径 */
|
||||
path: string;
|
||||
/** 组件路径 */
|
||||
component: string;
|
||||
/** 菜单排序 */
|
||||
rank: number;
|
||||
/** 重定向路径 */
|
||||
redirect: string | null;
|
||||
/** 菜单图标 */
|
||||
icon: string;
|
||||
/** 额外图标 */
|
||||
extra_icon: string | null;
|
||||
/** 进入页面过渡动画 */
|
||||
enter_transition: string | null;
|
||||
/** 离开页面过渡动画 */
|
||||
leave_transition: string | null;
|
||||
/** 激活路径 */
|
||||
active_path: string | null;
|
||||
/** 权限标识 */
|
||||
auths: string;
|
||||
/** 内嵌框架地址 */
|
||||
frame_src: string | null;
|
||||
/** 内嵌框架加载状态 */
|
||||
frame_loading: boolean;
|
||||
/** 是否缓存页面 */
|
||||
keep_alive: boolean;
|
||||
/** 是否隐藏标签页 */
|
||||
hidden_tag: boolean;
|
||||
/** 是否固定标签页 */
|
||||
fixed_tag: boolean;
|
||||
/** 是否显示菜单链接 */
|
||||
show_link: boolean;
|
||||
/** 是否显示父菜单 */
|
||||
show_parent: boolean;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user