import type { PageParam } from '@/api';
import type { User } from '@/api/system/user/model';

/**
 * 资产
 */
export interface Assets {
  // 资产id
  assetsId?: number;
  // 资产类型
  type?: string;
  // 资产标识
  code: string;
  // 资产名称
  name?: string;
  //
  account?: string;
  //
  password?: string;
  //
  panel?: string;
  //
  panelAccount?: string;
  //
  panelPassword?: string;
  //
  configuration?: any;
  root?: string;
  //
  sortNumber?: number;
  financeAmount?: any;
  financeYears?: any;
  financeRenew?: any;
  financeCustomerName?: string;
  financeCustomerContact?: string;
  financeCustomerPhone?: string;
  //
  brandAccount?: string;
  brandPassword?: string;
  btSign?: string;
  openPort?: any;
  comments?: string;
  // 所属客户
  customerId?: number;
  customerName?: string;
  // 品牌
  brand?: string;
  // 购买时间
  startTime?: string;
  // 到期时间
  endTime?: string;
  // 创建时间
  createTime?: string;
  // 状态
  status?: string;
  userId?: number;
  companyId?: number;
  companyName?: string;
  nickname?: string;
  // 可见性类型
  visibility?: string;
  // 可见用户ID
  userList?: User[];
  systemTotal?: Object;
  diskInfo?: Object;
  netWork?: Object;
  sites?: Object;
}

/**
 * 资产搜索条件
 */
export interface AssetsParam extends PageParam {
  name?: string;
  code?: string;
  isExpire?: string;
  status?: string;
  brand?: string;
  customerId?: string;
  companyId?: number;
  companyName?: string;
  userId?: number;
  // 商户编号
  merchantCode?: string;
}
