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

export interface DepartmentResponse extends BaseResponse {
    code: string;
    name: string;
    description?: string;
    parentId?: number;
    sort: number;
    enabled: boolean;
    leaderId?: number;
    leaderName?: string;
    children?: DepartmentResponse[];
}

export interface DepartmentRequest {
    code: string;
    name: string;
    description?: string;
    parentId?: number;
    sort: number;
    enabled: boolean;
    leaderId?: number;
    leaderName?: string;
}

export interface DepartmentQuery {
    code?: string;
    name?: string;
    parentId?: number;
    enabled?: boolean;
    leaderId?: number;
    leaderName?: string;
} 