mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-22 13:05:18 +00:00
feat: 统一状态字段类型为字符串并重构基础类型
refactor: 重构前后端状态字段类型从布尔值改为字符串 feat: 新增基础类型定义和通用类型接口 refactor: 移除不必要的时间范围字段并统一使用created_time style: 更新前端组件以匹配新的字段命名 docs: 更新接口文档和类型定义
This commit is contained in:
@@ -141,26 +141,31 @@ export default UserAPI;
|
||||
export interface ForgetPasswordForm {
|
||||
username: string;
|
||||
new_password: string;
|
||||
mobile?: string;
|
||||
confirmPassword: string;
|
||||
}
|
||||
|
||||
export interface RegisterForm {
|
||||
name: string;
|
||||
mobile?: string;
|
||||
username: string;
|
||||
password: string;
|
||||
role_ids?: number[];
|
||||
customer_id?: number;
|
||||
description?: string;
|
||||
user_type?: string;
|
||||
confirmPassword: string;
|
||||
}
|
||||
|
||||
export interface UserPageQuery extends PageQuery {
|
||||
username?: string;
|
||||
name?: string;
|
||||
status?: boolean;
|
||||
mobile?: string;
|
||||
email?: string;
|
||||
dept_id?: number;
|
||||
/** 开始时间 */
|
||||
start_time?: string;
|
||||
/** 结束时间 */
|
||||
end_time?: string;
|
||||
// 创建人ID
|
||||
creator?: number;
|
||||
status?: string;
|
||||
created_time?: string[];
|
||||
created_id?: number;
|
||||
}
|
||||
|
||||
export interface searchSelectDataType {
|
||||
@@ -168,9 +173,7 @@ export interface searchSelectDataType {
|
||||
status?: string;
|
||||
}
|
||||
|
||||
export interface UserInfo {
|
||||
index?: number;
|
||||
id?: number;
|
||||
export interface UserInfo extends BaseType {
|
||||
username?: string;
|
||||
name?: string;
|
||||
avatar?: string;
|
||||
@@ -189,12 +192,11 @@ export interface UserInfo {
|
||||
position_names?: positionSelectorType["name"][];
|
||||
position_ids?: positionSelectorType["id"][];
|
||||
is_superuser?: boolean;
|
||||
status?: boolean;
|
||||
description?: string;
|
||||
last_login?: string;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
creator?: creatorType;
|
||||
created_by?: creatorType;
|
||||
updated_by?: updatorType;
|
||||
tenant?: CommonType;
|
||||
customer?: CommonType;
|
||||
}
|
||||
|
||||
export interface deptTreeType {
|
||||
@@ -208,7 +210,7 @@ export interface roleSelectorType {
|
||||
id?: number;
|
||||
name?: string;
|
||||
code?: string;
|
||||
status?: boolean;
|
||||
status?: string;
|
||||
description?: string;
|
||||
menus?: MenuForm[];
|
||||
}
|
||||
@@ -216,7 +218,7 @@ export interface roleSelectorType {
|
||||
export interface positionSelectorType {
|
||||
id?: number;
|
||||
name?: string;
|
||||
status?: boolean;
|
||||
status?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
@@ -232,7 +234,8 @@ export interface InfoFormState {
|
||||
positions?: positionSelectorType[];
|
||||
roles?: roleSelectorType[];
|
||||
avatar?: string;
|
||||
created_at?: string;
|
||||
created_time?: string;
|
||||
updated_time?: string;
|
||||
}
|
||||
|
||||
export interface PasswordFormState {
|
||||
@@ -246,8 +249,7 @@ export interface ResetPasswordForm {
|
||||
password: string;
|
||||
}
|
||||
|
||||
export interface UserForm {
|
||||
id?: number;
|
||||
export interface UserForm extends BaseFormType {
|
||||
username?: string;
|
||||
name?: string;
|
||||
dept_id?: number;
|
||||
@@ -261,8 +263,6 @@ export interface UserForm {
|
||||
email?: string;
|
||||
mobile?: string;
|
||||
is_superuser?: boolean;
|
||||
status?: boolean;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface CurrentUserFormState {
|
||||
|
||||
Reference in New Issue
Block a user