mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-10-13 20:51:09 +00:00
refactor: 大规模代码整理与功能优化
1. 重构后端API路由、CRUD与模块结构,整合日志管理,移除废弃demo代码 2. 优化前端组件类型定义、样式与路由配置,修复权限判断逻辑 3. 调整默认排序规则、滚动条样式与工具类函数,更新依赖与配置文件 4. 修复多处类型不匹配与默认值问题,完善表单与菜单验证逻辑
This commit is contained in:
@@ -40,17 +40,14 @@ export default TicketAPI;
|
||||
export interface TicketPageQuery extends PageQuery {
|
||||
title?: string;
|
||||
ticket_type?: string;
|
||||
status?: string;
|
||||
created_id?: number;
|
||||
assigned_id?: number;
|
||||
}
|
||||
|
||||
export interface TicketTable extends BaseType {
|
||||
title: string;
|
||||
ticket_content?: string;
|
||||
content: string;
|
||||
summary?: string;
|
||||
ticket_type: string;
|
||||
status: string;
|
||||
images?: string;
|
||||
reply?: string;
|
||||
assigned_id?: number;
|
||||
@@ -61,8 +58,8 @@ export interface TicketTable extends BaseType {
|
||||
|
||||
export interface TicketCreateForm {
|
||||
title: string;
|
||||
ticket_content: string;
|
||||
content?: string;
|
||||
ticket_content?: string;
|
||||
summary?: string;
|
||||
ticket_type: string;
|
||||
images?: string;
|
||||
description?: string;
|
||||
@@ -71,23 +68,21 @@ export interface TicketCreateForm {
|
||||
export interface TicketUpdateForm {
|
||||
title?: string;
|
||||
ticket_content?: string;
|
||||
content?: string;
|
||||
summary?: string;
|
||||
ticket_type?: string;
|
||||
status?: string;
|
||||
status?: number;
|
||||
reply?: string;
|
||||
assigned_id?: number;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface TicketForm {
|
||||
export interface TicketForm extends BaseFormType {
|
||||
id?: number;
|
||||
title: string;
|
||||
ticket_content: string;
|
||||
content?: string;
|
||||
ticket_content?: string;
|
||||
summary?: string;
|
||||
ticket_type: string;
|
||||
images?: string;
|
||||
description?: string;
|
||||
status?: string;
|
||||
reply?: string;
|
||||
assigned_id?: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user