系统配置

This commit is contained in:
2025-11-18 18:46:14 +08:00
parent 9f3176194b
commit ca756dcfd7
23 changed files with 1039 additions and 49 deletions

View File

@@ -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';
/**

View File

@@ -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';
/**
* 系统部门

View File

@@ -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';

View 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;
}

View File

@@ -0,0 +1,6 @@
export * from './config';
export * from './menu';
export * from './module';
export * from './permission';
export * from './role';
export * from './user'

View File

@@ -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';
/**
*