import { PageParam } from '@/api';
import { CompanyUser } from '@/api/oa/company/user/model';
import { CompanyField } from '@/api/oa/company/field/model';

/**
 * 企业信息
 */
export interface Company {
  companyId?: number;
  shortName?: string;
  companyName?: string;
  companyType?: number;
  companyTypeMultiple?: string;
  appType?: string;
  companyLogo?: string;
  companyCode?: string;
  domain?: string;
  phone?: string;
  tel?: string;
  email?: string;
  InvoiceHeader?: string;
  startTime?: string;
  expirationTime?: string;
  version?: number;
  members?: number;
  storage?: string;
  storageMax?: string;
  buys?: number;
  clicks?: number;
  users?: number;
  departments?: number;
  industryParent?: string;
  industryChild?: string;
  country?: string;
  province?: string;
  city?: string;
  region?: string;
  address?: string;
  latitude?: string;
  longitude?: string;
  businessEntity?: string;
  comments?: any;
  authentication?: number;
  industryId?: number;
  industryName?: string;
  status?: number;
  userId?: number;
  planId?: number;
  sortNumber?: number;
  authoritative?: boolean;
  merchantId?: number;
  tenantId?: number;
  tenantName?: string;
  tenantCode?: string;
  modules?: string;
  requestUrl?: string;
  socketUrl?: string;
  serverUrl?: string;
  modulesUrl?: string;
  mpWeixinCode?: string;
  h5Code?: string;
  androidUrl?: string;
  iosUrl?: string;
  avatar?: string;
  nickname?: string;
  code?: number;
  createTime?: string;
  updateTime?: string;
  password?: string;
  password2?: string;
  userList?: CompanyUser[];
  fields?: CompanyField[];
}

/**
 * 企业信息搜索条件
 */
export interface CompanyParam extends PageParam {
  companyId?: number;
  shortName?: string;
  companyName?: string;
  domain?: string;
  recommend?: boolean;
  keywords?: any;
  authoritative?: number;
  authentication?: number;
  industryParent?: string;
  industryChild?: string;
  province?: string;
  city?: string;
  region?: string;
  version?: number;
  sceneType?: string;
  createTimeStart?: string;
  createTimeEnd?: string;
  tenantId?: number;
}
