declare namespace API {
  type UserItem = {
    id: string;
    username: string;
    realName: string;
    mobile: string;
    email: string;
    role: 'admin' | 'user';
    status: 'active' | 'disabled' | 'pending';
    department?: string;
    createdAt: string;
    updatedAt: string;
  };

  type UserParams = {
    current?: number;
    pageSize?: number;
    username?: string;
    realName?: string;
    mobile?: string;
    role?: string;
    status?: string;
  };

  type UserListResult = {
    data: UserItem[];
    total: number;
    success: boolean;
  };
}
