系统配置
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
* @since 2025-10-06
|
||||
*/
|
||||
|
||||
import { SysUser, SysUserInfo } from '../user';
|
||||
import { SysUser, SysUserInfo } from '../system/user';
|
||||
import { UserDeptRoleVO } from '../dept';
|
||||
import { SysPermission } from '../permission';
|
||||
import { SysMenu } from '../menu';
|
||||
import { SysPermission } from '../system/permission';
|
||||
import { SysMenu } from '../system/menu';
|
||||
import { LoginType } from '../enums';
|
||||
|
||||
/**
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
*/
|
||||
|
||||
import { BaseDTO } from '../base';
|
||||
import { SysRole } from '../role';
|
||||
import { SysUserDeptRole } from '../user';
|
||||
import { SysRole } from '../system/role';
|
||||
import { SysUserDeptRole } from '../system/user';
|
||||
|
||||
/**
|
||||
* 系统部门
|
||||
|
||||
@@ -8,22 +8,22 @@
|
||||
export * from './base';
|
||||
|
||||
// 用户相关
|
||||
export * from './user';
|
||||
export * from './system/user';
|
||||
|
||||
// 角色相关
|
||||
export * from './role';
|
||||
export * from './system/role';
|
||||
|
||||
// 部门相关
|
||||
export * from './dept';
|
||||
|
||||
// 菜单相关
|
||||
export * from './menu';
|
||||
export * from './system/menu';
|
||||
|
||||
// 权限相关
|
||||
export * from './permission';
|
||||
export * from './system/permission';
|
||||
|
||||
// 系统相关
|
||||
export * from './module';
|
||||
export * from './system/module';
|
||||
|
||||
export * from './achievement';
|
||||
|
||||
|
||||
37
schoolNewsWeb/src/types/system/config.ts
Normal file
37
schoolNewsWeb/src/types/system/config.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
import type { ResultDomain } from '@/types';
|
||||
|
||||
/**
|
||||
* 配置项接口定义(对应后端 TbSysConfig)
|
||||
*/
|
||||
export interface ConfigItem {
|
||||
// 后端 TbSysConfig 字段(完全匹配)
|
||||
configKey: string; // 配置键
|
||||
configName?: string; // 配置显示名称
|
||||
configValue: string; // 配置值
|
||||
configType: string; // 数据类型:string/number/boolean/json
|
||||
renderType?: string; // 前端渲染类型:input/textarea/number/switch/select/password
|
||||
configGroup: string; // 配置分组
|
||||
description?: string; // 配置描述
|
||||
placeholder?: string; // 输入框占位符
|
||||
remark?: string; // 备注说明(显示在表单项下方)
|
||||
rows?: number; // 文本框行数(textarea用)
|
||||
minValue?: number; // 最小值(number用)
|
||||
maxValue?: number; // 最大值(number用)
|
||||
unit?: string; // 单位(number用)
|
||||
options?: string; // 下拉选项(select用,JSON字符串)
|
||||
orderNum?: number; // 排序号
|
||||
isSystem?: boolean; // 是否系统配置
|
||||
creator?: string; // 创建者
|
||||
updater?: string; // 更新者
|
||||
createTime?: string; // 创建时间
|
||||
updateTime?: string; // 更新时间
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存配置项参数
|
||||
*/
|
||||
export interface SaveConfigParam {
|
||||
configKey: string;
|
||||
configValue: string;
|
||||
configGroup: string;
|
||||
}
|
||||
6
schoolNewsWeb/src/types/system/index.ts
Normal file
6
schoolNewsWeb/src/types/system/index.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export * from './config';
|
||||
export * from './menu';
|
||||
export * from './module';
|
||||
export * from './permission';
|
||||
export * from './role';
|
||||
export * from './user'
|
||||
@@ -5,9 +5,9 @@
|
||||
*/
|
||||
|
||||
import { BaseDTO } from '../base';
|
||||
import { SysMenu } from '../menu';
|
||||
import { SysRole } from '../role';
|
||||
import { SysModule } from '../module';
|
||||
import { SysMenu } from './menu';
|
||||
import { SysRole } from './role';
|
||||
import { SysModule } from './module';
|
||||
|
||||
/**
|
||||
* 系统权限
|
||||
Reference in New Issue
Block a user