import { PageQueryParam, PageResult } from '../base';

/**
 * 参数id
 */
export interface IdParam {
  id: number | string;
}

/**
 * 部门查询参数类型声明
 */
export interface DeptQueryParam extends PageQueryParam {
  property?: string;
  direction?: string;
}

/**
 * 用户管理分页项类型
 */
export type DeptPageResult = PageResult<DeptItem[]>;

/**
 * 部门列表项声明
 */
export interface DeptItem {
  id: number;
  name: string;
  leaderId: number;
  remark: string;
  createTime: string;
  updateTime: string;
}

/**
 * 添加部门表单类型声明
 */
export interface AddDeptFormData {
  name: string;
  leaderId: number;
  remark?: string;
}

/**
 * 更新部门表单类型声明
 */
export interface UpdateDeptFormData {
  id: number;
  name: string;
  leaderId: number;
  remark?: string;
  createTime: string;
  updateTime: string;
}