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

/**
 * 成员
 */
export interface CompanyUser {
  // 成员id
  companyUserId?: number;
  role?: number;
  userId?: number;
  username?: string;
  nickname?: string;
  avatar?: string;
  email?: string;
  phone?: string;
  mobile?: string;
  companyId?: number;
  status?: string;
  createTime?: string;
}

/**
 * 成员搜索条件
 */
export interface CompanyUserParam extends PageParam {
  userId?: number;
  companyId?: number;
  role?: number;
}

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