import type { BaseResponse } from '@/types/base';

// 用户查询参数
export interface UserQuery {
    username?: string;
    nickname?: string;
    email?: string;
    enabled?: boolean;
    pageNum?: number;
    pageSize?: number;
    sortField?: string;
    sortOrder?: string;
}

// 用户请求参数
export interface UserRequest {
    username: string;
    nickname?: string;
    email?: string;
    phone?: string;
    password?: string;
    enabled?: boolean;
    departmentId?: number;
}

// 角色类型定义
export interface Role {
    id: number;
    code: string;
    name: string;
    description?: string;
    type: number;
    sort: number;
    enabled: boolean;
}

// 用户响应类型
export interface UserResponse extends BaseResponse {
    username: string;
    nickname?: string;
    email?: string;
    phone?: string;
    enabled: boolean;
    roles: Role[];
    departmentId?: number;
    departmentName?: string;
} 