import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
/**
 * @description: Request list interface parameters
 */
export type PageParams = BasicPageParams;
export interface UpdateCompanyParam {
  id: number;
  sceneLogo?: string;
  floorLogo?: string;
  bgMusic?: string;
}
export interface SaveCompanyParam {
  address?: string;
  area?: string;
  contacts?: string;
  introduce?: string;
  logo?: string;
  name?: string;
  phone?: string;
  qualification?: string;
  website?: string;
}
export interface addDeiceParam {
  childNames: string | null;
  id: number;
  subNum: number;
  userName: string;
}
export interface checkDeiceParam {
  childName: string | null;
}
export interface auditParam {
  state: number | null;
  id: number | string;
}

export interface addPointParam {
  id: number | null;
  idpoint: number | null;
}
export interface selectUserListParam {
  id: number | null;
  page: number | null;
  limit: number | null;
}
export interface checkUserParam {
  phone: string | null;
}

export interface SubAccountUsers {
  id: number | null;
  subNum: string | number;
  subUsers: Recordable<any>[]; //SubAccountUser[];
}

export interface selectCompanyParam {
  id: number | null;
}
export interface SubAccountUser {
  appid: string | number | null;
  companyId: string | number | null;
  createTime: string | number | null;
  createUser: string | number | null;
  fdkkPassword: string | number | null;
  fdkkUser: string | number | null;
  head: string | number | null;
  id: number | null;
  memoName: string | null;
  message: string | number | null;
  nickName: string | null;
  phone: string | null;
  state: string | number | null;
  token: string | number | null;
  type: string | number | null;
  updateTime: string | number | null;
  updateUser: string | number | null;
  userName: string | null;
  userPassword: string | number | null;
}

export interface ListItem {
  id: number;
  bgMusic: string;
  cameraNum: string;
  childName: string;
  expirationDate: string;
  expirationTime: string;
  floorLogo: string;
  name: string;
  num: string;
  point: string;
  sceneLogo: string;
  sceneNum: string;
  subNum: string;
  userName: string;
}
export interface ListItem {
  id: number;
  bgMusic: string;
  cameraNum: string;
  childName: string;
  expirationDate: string;
  expirationTime: string;
  floorLogo: string;
  name: string;
  num: string;
  point: string;
  sceneLogo: string;
  sceneNum: string;
  subNum: string;
  userName: string;
}

export interface DeviceListItem {
  activeTime?: number;
  childName?: string;
  id?: number;
}

/**
 * @description: Request list return value
 */
export type CorporationListGetResultModel = BasicFetchResult<ListItem>;
export type DeviceGetResultModel = BasicFetchResult<DeviceListItem>;
