import type { PageParam } from '@/api';

/**
 * 项目成员
 */
export interface ProjectUser {
  // 项目成员id
  id?: number;
  role?: number;
  userId?: number;
  username?: string;
  nickname?: string;
  avatar?: string;
  email?: string;
  phone?: string;
  organizationName?: string;
  projectId?: number;
  status?: string;
  createTime?: string;
}

/**
 * 项目成员搜索条件
 */
export interface ProjectUserParam extends PageParam {
  userId?: number;
  projectId?: number;
}

export interface UserItem {
  key: string;
  isEdit?: boolean;
  number?: string;
  name?: string;
  department?: string;
}
