feat: 统一状态字段类型为字符串并重构基础类型

refactor: 重构前后端状态字段类型从布尔值改为字符串
feat: 新增基础类型定义和通用类型接口
refactor: 移除不必要的时间范围字段并统一使用created_time
style: 更新前端组件以匹配新的字段命名
docs: 更新接口文档和类型定义
This commit is contained in:
zhangtao
2025-11-27 23:47:23 +08:00
parent 2c9d66e2a7
commit 0c86069efa
73 changed files with 590 additions and 754 deletions
+5 -16
View File
@@ -55,16 +55,12 @@ export default MenuAPI;
export interface MenuPageQuery {
name?: string;
status?: boolean;
/** 开始时间 */
start_time?: string;
/** 结束时间 */
end_time?: string;
status?: string;
/** 创建时间 */
created_time?: string[];
}
export interface MenuTable {
index?: number;
id?: number;
export interface MenuTable extends BaseType {
name?: string;
type?: number;
icon?: string;
@@ -82,15 +78,10 @@ export interface MenuTable {
title?: string;
params?: { key: string; value: string }[];
affix?: boolean;
status?: boolean;
description?: string;
created_at?: string;
updated_at?: string;
children?: MenuTable[];
}
export interface MenuForm {
id?: number;
export interface MenuForm extends BaseFormType {
name?: string;
type?: number;
icon?: string;
@@ -107,8 +98,6 @@ export interface MenuForm {
title?: string;
params?: KeyValue[];
affix?: boolean;
status?: boolean;
description?: string;
}
export interface KeyValue {