1. 合并拆分的API类型定义到统一的api/interface.ts文件 2. 删除旧的api/client.ts与api/types.ts文件 3. 重构所有页面与组件的API调用方式,统一使用api/index.ts导出的接口 4. 调整组件文件结构,将分散的组件按模块整理 5. 统一类型导入路径,移除冗余的类型重复定义
23 lines
501 B
TypeScript
23 lines
501 B
TypeScript
import type { AdminProfile, ChangePasswordPayload, UpdateProfilePayload } from "../api";
|
|
|
|
export type { AdminProfile };
|
|
|
|
export type ProfileFormValues = UpdateProfilePayload;
|
|
|
|
export type ChangePasswordFormValues = ChangePasswordPayload & {
|
|
confirmPassword: string;
|
|
};
|
|
|
|
export type ProfileSummaryProps = {
|
|
profile: AdminProfile | null;
|
|
};
|
|
|
|
export type ProfileInfoListProps = {
|
|
profile: AdminProfile | null;
|
|
};
|
|
|
|
export type ProfileInfoItemProps = {
|
|
label: string;
|
|
value: string;
|
|
};
|