configurationCenterModal.ts 1.28 KB
import { BasicPageParams } from '/@/api/model/baseModel';

export interface ConfigurationCenterItemsModal {
  id: string;
  creator: string;
  createTime: string;
  updater: string;
  updateTime: string;
  name: string;
  enabled: boolean;
  tenantId: string;
  publicId: string;
  viewType: string;
  accessCredentials: string;
  organizationId: string;
  platform: string;
  thumbnail: string;
  organizationDTO: OrganizationDto;
  templateId: string;
  productAndDevice: ProductAndDevice[];
  remark?: string;
}

export interface OrganizationDto {
  name: string;
  enabled: boolean;
  sort: number;
  children: any[];
}

export interface ProductAndDevice {
  profileId: string;
  name: string;
  transportType: string;
  deviceType: string;
  deviceList: DeviceList[];
}

export interface DeviceList {
  deviceId: string;
  name: string;
  codeType: any;
}

export type queryPageParams = BasicPageParams & {
  name?: Nullable<string>;
  organizationId?: string;
  isTemplate?: number;
};

export interface ConfigurationModal {
  items: ConfigurationCenterItemsModal[];
  total: number;
}

export interface ConfigurationCenterParams {
  name: string;
  createTime: string;
  creator: string;
  remark: string;
  defaultContent?: string;
}
export type ConfigurationCenterInfo = ConfigurationCenterParams;